PIC16CR58A Microchip Technology, PIC16CR58A Datasheet - Page 156

no-image

PIC16CR58A

Manufacturer Part Number
PIC16CR58A
Description
ROM-Based 8-Bit CMOS Microcontroller Series
Manufacturer
Microchip Technology
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16CR58A-04/P042
Manufacturer:
MOTOROLA
Quantity:
80
PIC16C6X
SLEEP
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
DS30234D-page 156
0
1
0
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 13.8 for more details.
1
1
SLEEP
[ label ]
None
00h
TO, PD
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)
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
C, DC, Z
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
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 negative
0
Process
kkkk
data
Q3
Write to W
kkkk
Q4

Related parts for PIC16CR58A