English
Language : 

PIC16C9XX Datasheet, PDF (134/189 Pages) Microchip Technology – 8-Bit CMOS Microcontroller with LCD Driver
PIC16C9XX
SLEEP
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
[ label ] SLEEP
None
00h → WDT,
0 → WDT prescaler,
1 → TO,
0 → PD
TO, PD
00 0000 0110
0011
The power-down status bit, PD is
cleared. Time-out status bit, TO is
set. Watchdog Timer and its pres-
caler are cleared.
The processor is put into SLEEP
mode with the oscillator stopped. See
Section 14.8 for more details.
1
1
Q1
Q2
Q3
Q4
Decode No-
No-
Go to
Operation Operation Sleep
Example:
SLEEP
SUBLW
Subtract W from Literal
Syntax:
[ label ] SUBLW k
Operands:
0 ≤ k ≤ 255
Operation:
k - (W) → (W)
Status Affected: C, DC, Z
Encoding:
11 110x kkkk kkkk
Description:
The W register is subtracted (2’s comple-
ment method) from the eight bit literal 'k'.
The result is placed in the W register.
Words:
1
Cycles:
1
Q Cycle Activity: Q1
Q2
Q3
Q4
Decode Read Process Write to W
literal 'k'
data
Example 1:
Example 2:
Example 3:
SUBLW 0x02
Before Instruction
W= 1
C= ?
Z=?
After Instruction
W=
C=
Z=
1
1; result is positive
0
Before Instruction
W= 2
C= ?
Z=?
After Instruction
W=
C=
Z=
0
1; result is zero
1
Before Instruction
W= 3
C= ?
Z=?
After Instruction
W=
C=
tive
Z=
0xFF
0; result is nega-
0
DS30444E - page 134
© 1997 Microchip Technology Inc.