PIC17C42 Microchip Technology, PIC17C42 Datasheet - Page 135

no-image

PIC17C42

Manufacturer Part Number
PIC17C42
Description
High-Performance 8-Bit CMOS EPROM/ROM Microcontroller
Manufacturer
Microchip Technology
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC17C42-16/JW
Manufacturer:
AD
Quantity:
12
Part Number:
PIC17C42A-16/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16/PQ
Manufacturer:
MICROCH
Quantity:
20 000
Part Number:
PIC17C42A-16/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16E/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-25/P
Manufacturer:
MICROCLOCK
Quantity:
20 000
SLEEP
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
† If WDT causes wake-up, this bit is cleared
1996 Microchip Technology Inc.
Before Instruction
After Instruction
Decode
TO =
PD =
TO =
PD =
Q1
?
?
1 †
0
PCLATH
register
Enter SLEEP mode
0
1
0
The power down status bit (PD) is
cleared. The 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.
SLEEP
[ label ] SLEEP
None
00h
TO, PD
1
1
Read
Q2
0000
WDT postscaler;
TO;
PD
WDT;
0000
Execute
Q3
0000
NOP
Q4
0011
SUBLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example 1:
Example 2:
Example 3:
Before Instruction
After Instruction
Before Instruction
After Instruction
Before Instruction
After Instruction
Decode
WREG
C
WREG
C
Z
WREG
C
WREG
C
Z
WREG
C
WREG
C
Z
Q1
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
literal 'k'
Subtract WREG from Literal
[ label ] SUBLW k
0
k – (WREG)
OV, C, DC, Z
WREG is subtracted from the eight bit
literal 'k'. The result is placed in
WREG.
1
1
SUBLW
Read
Q2
1011
1
?
1
1
0
2
?
0
1
1
3
?
FF ; (2’s complement)
0
1
k
; result is positive
; result is zero
; result is negative
255
PIC17C4X
0x02
0010
Execute
Q3
DS30412C-page 135
WREG)
kkkk
Write to
WREG
Q4
kkkk

Related parts for PIC17C42