Document
PIC12(L)F1571/2
8-Pin MCU with High-Precision 16-Bit PWMs
Description:
PIC12(L)F1571/2 microcontrollers combine the capabilities of 16-bit PWMs with Analog to suit a variety of applications. These devices deliver three 16-bit PWMs with independent timers for applications where high resolution is needed, such as LED lighting, stepper motors, power supplies and other general purpose applications. The core independent peripherals (16-bit PWMs, Complementary Waveform Generator), Enhanced Universal Synchronous Asynchronous Receiver Transceiver (EUSART) and Analog (ADCs, Comparator and DAC) enable closed-loop feedback and communication for use in multiple market segments. The EUSART peripheral enables the communication for applications such as LIN.
Core Features:
• C Compiler Optimized RISC Architecture • Only 49 Instructions • Operating Speed:
- DC – 32 MHz clock input - 125 ns minimum instruction cycle • Interrupt Capability • 16-Level Deep Hardware Stack • Two 8-Bit Timers • One 16-Bit Timer • Three Additional 16-Bit Timers available using the 16-Bit PWMs • Power-on Reset (POR) • Power-up Timer (PWRT) • Low-Power Brown-out Reset (LPBOR) • Programmable Watchdog Timer (WDT) up to 256s • Programmable Code Protection
Memory:
• Up to 3.5 Kbytes Flash Program Memory • Up to 256 Bytes Data SRAM Memory • Direct, Indirect and Relative Addressing modes • High-Endurance Flash Data Memory (HEF)
- 128 bytes if nonvolatile data storage - 100k erase/write cycles
Operating Characteristics:
• Operating Voltage Range: - 1.8V to 3.6V (PIC12LF1571/2) - 2.3V to 5.5V (PIC12F1571/2)
• Temperature Range: - Industrial: -40°C to +85°C - Extended: -40°C to +125°C
• Internal Voltage Reference module • In-Circuit Serial Programming™ (ICSP™) via
Two Pins
eXtreme Low-Power (XLP) Features:
• Sleep mode: 20 nA @ 1.8V, Typical • Watchdog Timer: 260 nA @ 1.8V, Typical • Operating Current:
- 30 A/MHz @ 1.8V, typical
Digital Peripherals:
• 16-Bit PWM: - Three 16-bit PWMs with independent timers - Multiple Output modes (Edge-Aligned, Center-Aligned, Set and Toggle on Register Match) - User settings for phase, duty cycle, period, offset and polarity - 16-bit timer capability - Interrupts generated based on timer matches with Offset, Duty Cycle, Period and Phase registers
• Complementary Waveform Generator (CWG): - Rising and falling edge dead-band control - Multiple signal sources
• Enhanced Universal Synchronous Asynchronous Receiver Transceiver (EUSART): - Supports LIN applications
Device I/O Port Features:
• Six I/Os • Individually Selectable Weak Pull-ups • Interrupt-On-Change Pins Option with
Edge-Selectable Option
2013-2015 Microchip Technology Inc.
DS40001723D-page 1
PIC12(L)F1571/2
Analog Peripherals:
• 10-Bit Analog-to-Digital Converter (ADC): - Up to four external channels - Conversion available during Sleep
• Comparator: - Low-Power/High-Speed modes - Fixed Voltage Reference at (non)inverting input(s) - Comparator outputs externally accessible - Synchronization with Timer1 clock source - Software hysteresis enable
• 5-Bit Digital-to-Analog Converter (DAC): - 5-bit resolution, rail-to-rail - Positive reference selection - Unbuffered I/O pin output - Internal connections to ADCs and comparators
• Voltage Reference: - Fixed voltage reference with 1.024V, 2.048V and 4.096V output levels
PIC12(L)F1571/2 FAMILY TYPES
Clocking Structure:
• Precision Internal Oscillator: - Factory calibrated ±1%, typical - Software-selectable clock speeds from 31 kHz to 32 MHz
• External Oscillator Block with: - Resonator modes up to 20 MHz - Two External Clock modes up to 32 MHz
• Fail-Safe Clock Monitor • Digital Oscillator Input Available
Device
PIC12(L)F1571 PIC12(L)F1572
A 1 128 128 6 2/4(2) 1 3 4 1 1 0 I Y A 2 256 128 6 2/4(2) 1 3 4 1 1 1 I Y
Note 1: I – Debugging integrated on chip. 2: Three additional 16-bit timers available when not using the 16-bit PWM outputs.
Data Sheet Index: (Unshaded devices are described in this document.)
A DS40001723 PIC12(L)F1571/2 Data Sheet, 8-Pin Flash, 8-Bit MCU with High-Precision 16-Bit PWM.
Data Sheet Index Program Memory Flash
(K words) Data SRAM (bytes)
High-Endurance Flash (bytes) I/O Pins
8-Bit/16-Bit Timers Comparators 16-Bit PWM
10-Bit ADC (ch) 5-Bit DAC CWG EUSART Debug(1) XLP
DS40001723D-page 2
2013-2015 Microchip Technology Inc.
PIN DIAGRAMS
Pin Diagram – 8-Pin PDIP, SOIC, DFN, MSOP, UDFN
PIC12(L)F1571/2
VDD 1 RA5 2 RA4 3 RA3/MCLR/VPP 4
PIC12(L)F1571 PIC12(L)F1572
8 VSS 7 RA0/ICSPDAT 6 RA1/ICSPCLK 5 RA2
Note: See Table 1 for location of all peripheral functions. TABLE 1: 8-PIN ALLOCATION TABLE (PIC12(L)F1571/2)
I/O 8-Pin PDIP/SOIC/MSOP/DFN/UDFN
ADC Reference Comparator
Timers PWM EUSART(2) CWG Interrupt Pull-up Basic
RA0 RA1 RA2
7 AN0 DAC1OUT C1IN+
—
6
AN1
VREF+
C1IN0-
—
5 AN2
— C1OUT T0CKI
PWM2 PWM1 PWM3
TX(2) CK(2) RX(2) DT(2)
—
RA3
4—
—
— T1G(1)
—
—
RA4
RA5
VDD Vss Note 1:
2:
3 AN3
—
C1IN1-
T1G
PWM2(1)
2—
—
—
T1CKI
PWM1(1)
TX(1,2) CK(1,2) RX(1,2) DT.