If OSCCON1 is written with a new value and the device is put to Sleep before the switch completes, the switch will not take place and the device will enter Sleep mode.
When the device wakes from Sleep and the CSWHOLD bit is clear, the
device will wake with the ‘new’ clock active, and the Clock Switch Interrupt Flag bit
(CSWIF) will be set.
When the device wakes from Sleep and the CSWHOLD bit is set, the
device will wake with the ‘old’ clock active and the new clock will be requested again.
The online versions of the documents are provided as a courtesy. Verify all content and data in the device’s PDF documentation found on the device product page.