English
Language : 

PIC17C75X Datasheet, PDF (194/320 Pages) Microchip Technology – High-Performance 8-Bit CMOS EPROM Microcontrollers
PIC17C75X
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 prescaler
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
Before Instruction
REG1 = 0x13
After Instruction
REG1 = 0x13
WREG = 0xEC
REG1,0
DS30264A-page 194
© 1997 Microchip Technology Inc.