hi, is anyone able to talk me through the steps required to change the clock source from an external 10 MHz crystal with PLL (ie 40 MHZ clock) down to the 31 KHz internal clock?
it looked simple until i found out that i had to start up oscilators before i could switch sources, now im a bit confused
dont you need to turn on the oscilator before you switch? and what about polling the oscon frequency stable bit [OSCCON<2>&<3>] ?
i know it says it waits for a few clock cycles as it switches but can you safely just change OSCCON to 0x02 and back to 0x00 without it causing glitches?