There is no way except, maybe, with an external clock??
Selecting the internal 20MHz oscillator it will always be divided by at least 2 by the divisor so no 20MHz! It runs @10MHz.
There is no way except, maybe, with an external clock??
Selecting the internal 20MHz oscillator it will always be divided by at least 2 by the divisor so no 20MHz! It runs @10MHz.
You can disable the prescaler.
Clear MCLKCTRLB bit 0? (PEN - Prescaler enable). (just guessing...)
Bit 0 – PEN Prescaler Enable
This bit must be written '1' to enable the prescaler. When enabled, the division ratio is selected by the PDIV bit field.When this bit is written to '0', the main clock will pass through undivided (CLK_PER=CLK_MAIN), regardless of the value of PDIV.
Thank you, that does it. I was reading bit 0 as being some form of interlock bit to enable the change.