PIC12C508A-04/EJW MICROCHIP [Microchip Technology], PIC12C508A-04/EJW Datasheet - Page 56
PIC12C508A-04/EJW
Manufacturer Part Number
PIC12C508A-04/EJW
Description
8-Pin, 8-Bit CMOS Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
1.PIC12C508A-04EJW.pdf
(113 pages)
- Current page: 56 of 113
- Download datasheet (2Mb)
PIC12C5XX
SLEEP
Syntax:
Operands:
Operation:
Status Affected: TO, PD, GPWUF
Encoding:
Description:
Words:
Cycles:
Example:
DS40139E-page 56
Enter SLEEP Mode
[ label ]
None
00h
0
1
0
Time-out status bit (TO) is set. The
power down status bit (PD) is cleared.
GPWUF is unaffected.
The WDT and its prescaler are
cleared.
The processor is put into SLEEP mode
with the oscillator stopped. See sec-
tion on SLEEP for more details.
1
1
SLEEP
0000
WDT prescaler;
TO;
PD
WDT;
SLEEP
0000
0011
SUBWF
Syntax:
Operands:
Operation:
Status Affected: C, DC, Z
Encoding:
Description:
Words:
Cycles:
Example 1:
Example 2:
Example 3:
Before Instruction
After Instruction
Before Instruction
After Instruction
Before Instruction
After Instruction
REG1
W
C
REG1
W
C
REG1
W
C
REG1
W
C
REG1
W
C
REG1
W
C
Subtract W from f
[ label ]
0
d
(f) – (W)
Subtract (2’s complement method) the
W register from register 'f'. If 'd' is 0 the
result is stored in the W register. If 'd' is
1 the result is stored back in register 'f'.
1
1
SUBWF
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
0000
f
[0,1]
3
2
?
1
2
1
2
2
?
0
2
1
1
2
?
FF
2
0
31
1999 Microchip Technology Inc.
SUBWF f,d
REG1, 1
; result is positive
; result is zero
; result is negative
10df
dest)
ffff
Related parts for PIC12C508A-04/EJW
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
IC MCU OTP 512X12 8-SOIJ
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU OTP 512X12 8DIP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU OTP 512X12 8-SOIJ
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU OTP 512X12 8DIP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU OTP 512X12 8SOIC
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU OTP 512X12 8SOIC
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
8-Pin/ 8-Bit CMOS Microcontrollers
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU OTP 512X12 8DIP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU OTP 512X12 8-SOIJ
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU OTP 512X12 8DFN
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU EPROM 512X12 8CDIP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,SOP,8PIN,PLASTIC
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
IC MCU OTP 512X12 8DIP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU OTP 512X12 8-SOIJ
Manufacturer:
Microchip Technology
Datasheet: