DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC17C43T-08/P View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC17C43T-08/P
Microchip
Microchip Technology 
PIC17C43T-08/P Datasheet PDF : 240 Pages
First Prev 131 132 133 134 135 136 137 138 139 140 Next Last
PIC17C4X
SLEEP
Enter SLEEP mode
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
[ label ] SLEEP
None
00h WDT;
0 WDT postscaler;
1 TO;
0 PD
TO, PD
0000 0000 0000 0011
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.
1
1
Q2
Read
register
PCLATH
Q3
Execute
Q4
NOP
Example:
SLEEP
Before Instruction
TO = ?
PD = ?
After Instruction
TO = 1 †
PD = 0
† If WDT causes wake-up, this bit is cleared
SUBLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Subtract WREG from Literal
[ label ] SUBLW k
0 k 255
k – (WREG) → (WREG)
OV, C, DC, Z
1011 0010 kkkk kkkk
WREG is subtracted from the eight bit
literal 'k'. The result is placed in
WREG.
1
1
Q2
Read
literal 'k'
Q3
Execute
Q4
Write to
WREG
Example 1:
SUBLW 0x02
Before Instruction
WREG = 1
C
=?
After Instruction
WREG = 1
C
=1
Z
=0
Example 2:
; result is positive
Before Instruction
WREG = 2
C
=?
After Instruction
WREG = 0
C
=1
Z
=1
Example 3:
; result is zero
Before Instruction
WREG = 3
C
=?
After Instruction
WREG =
C
=
Z
=
FF ; (2’s complement)
0 ; result is negative
1
© 1996 Microchip Technology Inc.
DS30412C-page 135

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]