CLRWDT

Clear Watchdog Timer

CLRWDT instruction resets the Watchdog Timer. It also resets the prescaler of the WDT. Status bits, TO and PD, are set.

[the_ad id="3059"]

Syntax:

[ label ] CLRWDT

Operation:

00h → WDT
0 → WDT prescaler,
1 → TO
1 → PD

Operands:

  • None

Status Affected: TO, PD

Example:

CLRWDT

The watchdog timer runs independently from the program at 18 milliseconds, without prescale. A watchdog resets also resets the program execution back to the starting line. If the instruction above is called, the watchdog resets to zero.

[the_ad id="3059"]