English
Language : 

PIC17C4X Datasheet, PDF (118/240 Pages) Microchip Technology – High-Performance 8-Bit CMOS EPROM/ROM Microcontroller
PIC17C4X
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 watchdog
timer. It also resets the prescaler of the
WDT. Status bits TO and PD are set.
1
1
Q2
Read
register
ALUSTA
Q3
Execute
Q4
NOP
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
Execute
Q4
Write
register 'f'
Example:
COMF
Before Instruction
REG1 = 0x13
After Instruction
REG1 = 0x13
WREG = 0xEC
REG1,0
DS30412C-page 118
© 1996 Microchip Technology Inc.