33.8.1 Run WDT Configuration

Run WDT Configuration shows a code example to configure Run WDT for 1.024 sec with LPRC as its clock source.

Run WDT Configuration

//code example to configure Run WDT for 1.024sec
int main()
{

WDTCONbits.RMCLK = 3;         // LPRC as Run WDT Clock
WDTCONbits.RMPS = 10;         // Run Postscaler 1024
WDTCONbits.ON = 1;            // Enable WDT

}