English
Language : 

PIC17C7XX_13 Datasheet, PDF (208/306 Pages) Microchip Technology – High-Performance 8-bit CMOS EPROM Microcontrollers with 10-bit A/D
PIC17C7XX
CLRWDT
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Clear Watchdog Timer
[ label ] CLRWDT
None
00h  WDT
0  WDT postscaler,
1  TO
1  PD
TO, PD
0000 0000 0000 0100
CLRWDT instruction resets the Watch-
dog Timer. It also resets the postscaler
of the WDT. Status bits TO and PD are
set.
1
1
Q2
No
operation
Q3
Process
Data
Q4
No
operation
Example:
CLRWDT
Before Instruction
WDT counter
=
After Instruction
WDT counter
=
WDT Postscaler =
TO
=
PD
=
?
0x00
0
1
1
COMF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Complement f
[ label ] COMF f,d
0  f  255
d  [0,1]
( f )  (dest)
Z
0001 001d ffff ffff
The contents of register 'f' are comple-
mented. If 'd' is 0 the result is stored in
WREG. If 'd' is 1 the result is stored
back in register 'f'.
1
1
Q2
Read
register 'f'
Q3
Process
Data
Q4
Write to
destination
Example:
COMF REG1,0
Before Instruction
REG1 = 0x13
After Instruction
REG1 = 0x13
WREG = 0xEC
DS30289C-page 208
 1998-2013 Microchip Technology Inc.