PIC12C509-04E/SM Microchip Technology, PIC12C509-04E/SM Datasheet - Page 56

no-image

PIC12C509-04E/SM

Manufacturer Part Number
PIC12C509-04E/SM
Description
IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,SOP,8PIN,PLASTIC
Manufacturer
Microchip Technology
Series
PIC® 12Cr

Specifications of PIC12C509-04E/SM

Rohs Compliant
YES
Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Peripherals
POR, WDT
Number Of I /o
5
Program Memory Size
1.5KB (1K x 12)
Program Memory Type
OTP
Ram Size
41 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
8-SOIC (5.3mm Width), 8-SOP, 8-SOEIAJ
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
XLT08SO-1 - SOCKET TRANSITION 8SOIC 150/208AC164312 - MODULE SKT FOR PM3 16SOIC309-1048 - ADAPTER 8-SOIC TO 8-DIP309-1047 - ADAPTER 8-SOIC TO 8-DIP
Eeprom Size
-
Data Converters
-
Connectivity
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
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 PIC12C509-04E/SM