PIC12LF1552
8-Pin Flash, 8-Bit Microcontrollers
High-Performance RISC CPU:
C Compiler Optimized Architecture
Only 49 Instructions
2K Words Linear Program Memory Addressing
256 bytes Linear Data Memory Addressing
Operating Speed:
- DC – 32 MHz clock input
- DC – 125 ns instruction cycle
• Interrupt Capability with Automatic Context
Saving
• 16-Level Deep Hardware Stack with Optional
Overflow/Underflow Reset
• Direct, Indirect and Relative Addressing modes:
- Two full 16-bit File Select Registers (FSRs)
- FSRs can read program and data memory
•
•
•
•
•
Low-Power Features:
• Standby Current:
- 20 nA @ 1.8V, typical
• Watchdog Timer Current:
- 200 nA @ 1.8V, typical
• Operating Current:
- 30
A/MHz
@ 1.8V, typical
Peripheral Features:
• Analog-to-Digital Converter (ADC):
- 10-bit resolution
- 5 external channels
- 2 internal channels:
- Fixed Voltage Reference
- Temperature Indicator channel
- Auto acquisition capability
- Conversion available during Sleep
- Special Event Triggers
• Hardware Capacitive Voltage Divider (CVD)
- Double sample conversions
- Two sets of result registers
- Inverted acquisition
- 7-bit pre-charge timer
- 7-bit acquisition timer
- Two guard ring output drives
- Adjustable sample and hold capacitor array
• Voltage Reference module:
- Fixed Voltage Reference (FVR) with 1.024V
and 2.048V output levels
• 6 I/O Pins (1 Input-only Pin):
- High current sink/source 25 mA/25 mA
- Individually programmable weak pull-ups
- Individually programmable interrupt-on-change
(IOC) pins
• Timer0: 8-Bit Timer/Counter with 8-Bit
Programmable Prescaler
• Master Synchronous Serial Port (MSSP) with SPI
and I
2
C
TM
with:
- 7-bit address masking
- SMBus/PMBus
TM
compatibility
Flexible Oscillator Structure:
• 16 MHz Internal Oscillator Block:
- Factory calibrated to ±1%, typical
- Software selectable frequency range from
32 MHz to 31 kHz
• 4x Phase-Lock Loop (PLL), usable with 16 MHz
internal oscillator
- Allows 32 MHz software selectable clock
frequency
• 31 kHz Low-Power Internal Oscillator
• Three External Clock modes up to 20 MHz
Special Microcontroller Features:
• Operating Voltage Range:
- 1.8V to 3.6V
• Self-Programmable under Software Control
• Power-on Reset (POR)
• Power-up Timer (PWRT)
• Programmable Low-Power Brown-Out Reset
(LPBOR)
• Extended Watchdog Timer (WDT):
- Programmable period from 1 ms to 256s
• Programmable Code Protection
• In-Circuit Serial Programming™ (ICSP™) via Two
Pins
• Enhanced Low-Voltage Programming (LVP)
• Power-Saving Sleep mode:
- Low-Power Sleep mode
- Low-Power BOR (LPBOR)
• Integrated Temperature Indicator
• 128 Bytes High-Endurance Flash:
- 100,000 write Flash endurance (minimum)
2012-2014 Microchip Technology Inc.
DS40001674D-page 1
PIC12LF1552
PIC12LF1552 Family Types Table
Program Memory
Flash (words)
MSSP (I
2
C™/SPI)
Data Sheet Index
10-bit ADC (ch)
Data SRAM
(bytes)
Device
PIC12LF1552
(1)
2048
256
6
5
1
Note 1:
Not available.
2:
One pin is input-only.
Data Sheet Index:
(Unshaded devices are described in this document.)
1:
DS40001674
PIC12LF1552 Data Sheet, 8-Pin Flash, 8-bit Microcontrollers.
Note:
For other small form-factor package availability and marking information, please visit
http://www.microchip.com/packaging
or contact your local sales office.
1
N/A
DS40001674D-page 2
2012-2014 Microchip Technology Inc.
Debug
(1)
Timers
(8-bit)
I/O’s
(2)
PIC12LF1552
FIGURE 1:
8-PIN PDIP, SOIC, MSOP, UDFN
V
DD
1
RA5 2
RA4 3
MCLR/V
PP
/RA3 4
PIC12LF1552
8
7
6
5
V
SS
RA0/ICSPDAT
RA1/ICSPCLK
RA2
Note:
See
Table 1
for location of all peripheral functions.
TABLE 1:
8-PIN ALLOCATION TABLE
8-Pin PDIP/SOIC/MSOP/UDFN
ADC/Hardware CVD
Reference
Interrupt
Pull-Up
MSSP
Timer
RA0
RA1
RA2
RA3
7
6
5
4
AN0
AN1
AN2
ADOUT
—
—
V
REF
+
—
—
—
—
T0CKI
—
SDO
(1)
SS
(2)
SCK
SCL
SDI
(1)
SDA
(1)
SS
(1)
SDA
(2)
SDI
(2)
SDO
(2)
—
—
—
IOC
IOC
INT
IOC
IOC
Y
Y
Y
Y
ICSPDAT
ICSPCLK
—
MCLR
V
PP
CLKOUT
CLKIN
V
DD
V
SS
RA4
RA5
V
DD
V
SS
Note 1:
2:
3
2
1
8
AN3
ADGRDA
AN4
ADGRDB
—
—
—
—
—
—
—
—
—
—
IOC
IOC
—
—
Y
Y
—
—
Default location for peripheral pin function. Alternate location can be selected using the APFCON register.
Alternate location for peripheral pin function selected by the APFCON register.
2012-2014 Microchip Technology Inc.
DS40001674D-page 3
Basic
I/O
PIC12LF1552
Table of Contents
1.0 Device Overview .......................................................................................................................................................................... 5
2.0 Enhanced Mid-Range CPU .......................................................................................................................................................... 8
3.0 Memory Organization ................................................................................................................................................................. 10
4.0 Device Configuration .................................................................................................................................................................. 31
5.0 Oscillator Module........................................................................................................................................................................ 36
6.0 Resets ........................................................................................................................................................................................ 44
7.0 Interrupts .................................................................................................................................................................................... 52
8.0 Power-down Mode (Sleep) ......................................................................................................................................................... 63
9.0 Watchdog Timer (WDT) ............................................................................................................................................................. 65
10.0 Flash Program Memory Control ................................................................................................................................................. 69
11.0 I/O Ports ..................................................................................................................................................................................... 85
12.0 Interrupt-on-Change ................................................................................................................................................................... 91
13.0 Fixed Voltage Reference (FVR) ................................................................................................................................................. 95
14.0 Temperature Indicator Module ................................................................................................................................................... 97
15.0 Analog-to-Digital Converter (ADC) Module ................................................................................................................................ 99
16.0 Hardware Capacitive Voltage Divider (CVD) Module ............................................................................................................... 112
17.0 Timer0 Module ......................................................................................................................................................................... 131
18.0 Master Synchronous Serial Port Module .................................................................................................................................. 134
19.0 In-Circuit Serial Programming™ (ICSP™) ............................................................................................................................... 186
20.0 Instruction Set Summary .......................................................................................................................................................... 188
21.0 Electrical Specifications............................................................................................................................................................ 202
22.0 DC and AC Characteristics Graphs and Charts ....................................................................................................................... 219
23.0 Development Support............................................................................................................................................................... 234
24.0 Packaging Information.............................................................................................................................................................. 238
The Microchip Web Site ..................................................................................................................................................................... 251
Customer Change Notification Service .............................................................................................................................................. 251
Customer Support .............................................................................................................................................................................. 251
Product Identification System............................................................................................................................................................. 252
TO OUR VALUED CUSTOMERS
It is our intention to provide our valued customers with the best documentation possible to ensure successful use of your Microchip
products. To this end, we will continue to improve our publications to better suit your needs. Our publications will be refined and
enhanced as new volumes and updates are introduced.
If you have any questions or comments regarding this publication, please contact the Marketing Communications Department via
E-mail at
docerrors@microchip.com.
We welcome your feedback.
Most Current Data Sheet
To obtain the most up-to-date version of this data sheet, please register at our Worldwide Web site at:
http://www.microchip.com
You can determine the version of a data sheet by examining its literature number found on the bottom outside corner of any page.
The last character of the literature number is the version number, (e.g., DS30000000A is version A of document DS30000000).
Errata
An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for current
devices. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision
of silicon and revision of document to which it applies.
To determine if an errata sheet exists for a particular device, please check with one of the following:
• Microchip’s Worldwide Web site;
http://www.microchip.com
• Your local Microchip sales office (see last page)
When contacting a sales office, please specify which device, revision of silicon and data sheet (include literature number) you are
using.
Customer Notification System
Register on our web site at
www.microchip.com
to receive the most current information on all of our products.
DS40001674D-page 4
2012-2014 Microchip Technology Inc.
PIC12LF1552
1.0
DEVICE OVERVIEW
The PIC12LF1552 are described within this data sheet.
They are available in 8-pin packages.
Figure 1-1
shows a
block diagram of the PIC12LF1552 devices.
Table 1-2
shows the pinout descriptions.
Reference
Table 1-1
for peripherals available per
device.
TABLE 1-1:
DEVICE PERIPHERAL
SUMMARY
PIC12LF1552
●
●
●
●
MSSP1
●
●
Timer0
Peripheral
Analog-to-Digital Converter (ADC)
Hardware Capacitor Voltage Divider (CVD)
Fixed Voltage Reference (FVR)
Temperature Indicator
Master Synchronous Serial Ports
Timers
2012-2014 Microchip Technology Inc.
DS40001674D-page 5