16-Bit Oscillator System: Secondary Oscillator (SOSC)
The Secondary Oscillator (SOSC) is designed specifically for low-power operation with an external32 to 100 KHz crystal. The oscillator is connected to the SOSCO and SOSCI device pins and serves as a secondary crystal clock source for low-power operation. It can also drive Timer1 and/or the Real-Time Clock and Calendar (RTCC) module for Real-Time Clock (RTC) applications.
Code Example:
The following MPLAB® XC16 complier code example enables theSOSC as the default system clock for aPIC24FJ128GA010 MCU:
#include <xc.h>#pragma config FNOSC = SOSC // default System clock = SOSCint main(void){ ...}

