Hi Jessey,
Yep. That's pretty much all there is to it.
This enables osc switching in config word: _OSCS_ON_1H.
T1CON.3 = 1 enables the Timer1 oscillator.
OSCCON.0 = 1 switches from whatever external primary osc you're using to the one on Timer1.
Switch to Timer1 osc: OSCCON.0 = 1
Switch to main osc: OSCCON.0 = 0
NOTE: Its not OSCCON0.0. It's OSCCON.0.
Bookmarks