PIC16C925/926
CLRWDT
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Clear Watchdog Timer
[ label ] CLRWDT
None
00h → WDT
0 → WDT prescaler,
1 → TO
1 → PD
TO, PD
00
0000 0110 0100
CLRWDT instruction resets the
Watchdog Timer. It also resets the
prescaler of the WDT. Status bits TO
and PD are set.
1
1
Q1
Q2
Q3
Q4
Decode
No Process
Operation data
Clear
WDT
Counter
Example
CLRWDT
Before Instruction:
WDT counter =
After Instruction:
WDT counter =
WDT prescaler =
TO
=
PD
=
?
0x00
0
1
1
COMF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Complement f
[ label ] COMF f [,d]
0 ≤ f ≤ 127
d ∈ [0,1]
(f) → (destination)
Z
00 1001 dfff ffff
The contents of register ’f’ are com-
plemented. If ’d’ is 0, the result is
stored in W. If ’d’ is 1, the result is
stored back in register ’f’.
1
1
Q1 Q2 Q3
Q4
Decode
Read Process
register ’f’ data
Write to
destination
Example
COMF
Before Instruction:
REG1 = 0x13
After Instruction:
REG1 = 0x13
W
= 0xEC
REG1,0
DS39544A-page 120
Preliminary
2001 Microchip Technology Inc.