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

no-image

16F84

Manufacturer Part Number
16F84
Description
18-pin Flash/EEPROM 8-Bit Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
PIC16F8X
SLEEP
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
DS30430C-page 66
[ label ]
None
00h
0
1
0
TO, PD
The power-down status bit, PD is
cleared. Time-out status bit, TO is
set. Watchdog Timer and its prescaler
are cleared.
The processor is put into SLEEP
mode with the oscillator stopped. See
Section 14.8 for more details.
1
1
SLEEP
Decode No-Opera
Q1
00
WDT prescaler,
TO,
PD
WDT,
SLEEP
0000
Q2
tion
No-Opera
0110
Q3
tion
0011
Go to
Sleep
Q4
SUBLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example 1:
Example 2:
Example 3:
Subtract W from Literal
[ label ]
0
The W register is subtracted (2’s comple-
ment method) from the eight bit literal 'k'.
The result is placed in the W register.
1
1
SUBLW
Before Instruction
After Instruction
Before Instruction
After Instruction
Before Instruction
After Instruction
k - (W)
C, DC, Z
Decode
Q1
11
k
255
1998 Microchip Technology Inc.
W
C
Z
W
C
Z
W
C
Z
W
C
Z
W
C
Z
W
C
tive
Z
W)
SUBLW k
literal 'k'
110x
Read
Q2
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
1
?
?
1
1; result is positive
0
2
?
?
0
1; result is zero
1
3
?
?
0xFF
0; result is nega-
0
Process
kkkk
0x02
data
Q3
Write to W
kkkk
Q4

Related parts for 16F84