Specifications
mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction Set
EXAMPLE 1:
....
[label] CLRW
Before instruction: W=0x55
After instruction: W=0x00
Z = 1
CLRWDT - Clear Watchdog Timer
Syntax: [label] CLRWDT
Description: Resets the watchdog timer and the WDT prescaler. Status bits TO and PD are
set.
Operation: 0 -> WDT 0 -> WDT prescaler 1 -> TO 1 -> PD
Operand: -
Status affected: TO, PD
Number of cycles: 1
EXAMPLE :
....
[label] CLRWDT
Before instruction execution: WDT counter = x
WDT prescaler = 1:128
After instruction: WDT counter = 0x00
WDT prescaler = 0
TO = 1
PD = 1
WDT prescaler = 1: 128
COMF - Complement f
http://www.mikroe.com/en/books/picmcubook/ch9/ (14 of 35)5/3/2009 11:35:12 AM