33.8.2 Sleep WDT Configuration
Sleep WDT Configuration Example shows a code example to configure Sleep WDT for 1.024 sec with LPRC as its default clock source.
Sleep WDT Configuration Example
//code example to configure Sleep WDT for 1.024 sec
int main()
{
WDTCONbits.SMPS = 10; // Sleep Postscaler 1024
WDTCONbits.ON = 1; // Enable WDT
}