9.2.1 CLRWDT Macro
A macro that clears the watchdog timer.
Include
<xc.h>
Prototype
void CLRWDT(void);
Remarks
This macro executes a clrwdt
instruction.
Example
#include <xc.h>
void main(void) {
unsigned char c;
SYSTEM_Initialize();
WDTCON0bits.SWDTEN = 1;
while (1) {
c = PORTA;
LATB = c;
CLRWDT();
}
}