PIC16C923-04I/CL Microchip Technology, PIC16C923-04I/CL Datasheet - Page 134

no-image

PIC16C923-04I/CL

Manufacturer Part Number
PIC16C923-04I/CL
Description
8-Bit CMOS Microcontroller with LCD Driver
Manufacturer
Microchip Technology
Datasheet
PIC16C9XX
SLEEP
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
DS30444E - page 134
[ 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 pres-
caler are cleared.
The processor is put into SLEEP
mode with the oscillator stopped. See
Section 14.8 for more details.
1
1
SLEEP
Decode
Q1
00
WDT prescaler,
TO,
PD
WDT,
Operation
SLEEP
0000
Q2
No-
Operation
0110
Q3
No-
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
k - (W)
C, DC, Z
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
Decode
Q1
11
k
255
1997 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
0x02
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
data
Q3
Write to W
kkkk
Q4

Related parts for PIC16C923-04I/CL