16F84 MICROCHIP [Microchip Technology], 16F84 Datasheet - Page 58

no-image

16F84

Manufacturer Part Number
16F84
Description
18-pin Flash/EEPROM 8-Bit Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
PIC16F8X
CLRF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
DS30430C-page 58
Clear f
[ label ] CLRF
0
00h
1
Z
The contents of register 'f' are cleared
and the Z bit is set.
1
1
Before Instruction
After Instruction
Decode
CLRF
Q1
00
f
Z
127
(f)
FLAG_REG
FLAG_REG
Z
register
0001
Read
Q2
'f'
FLAG_REG
f
Process
1fff
data
Q3
=
=
=
0x5A
0x00
1
register 'f'
ffff
Write
Q4
CLRW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
CLRWDT
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
Clear W
[ label ] CLRW
None
00h
1
Z
W register is cleared. Zero bit (Z) is
set.
1
1
Before Instruction
After Instruction
Clear Watchdog Timer
[ label ] CLRWDT
None
00h
0
1
1
TO, PD
CLRWDT instruction resets the Watch-
dog Timer. It also resets the prescaler
of the WDT. Status bits TO and PD are
set.
1
1
Before Instruction
After Instruction
CLRW
CLRWDT
Decode
Decode
Q1
Q1
00
00
WDT prescaler,
TO
Z
PD
1998 Microchip Technology Inc.
WDT
(W)
W
W
Z
WDT counter =
WDT counter =
WDT prescaler=
TO
PD
No-Opera
No-Opera
0001
0000
Q2
tion
Q2
tion
=
=
=
0x5A
0x00
1
Process
Process
0xxx
0110
data
data
Q3
Q3
=
=
?
0x00
0
1
1
Write to
Counter
xxxx
0100
Clear
WDT
Q4
Q4
W

Related parts for 16F84