PIC16LF1902/3 28-Pin Flash-Based, 8-Bit CMOS MCUs with LCD Driver and XLP Technology Enhanced Low-Voltage Programming (LVP) High-Performance RISC CPU Programmable Code Protection C Compiler Optimized Architecture Power-Saving Sleep mode Only 49 Instructions Operating Speed: eXtreme Low-Power (XLP) Features - DC 20 MHz clock input 3.6V (PIC16LF1902/3) - DC 16 MHz clock input 1.8V Sleep Current - DC 200 ns instruction cycle - 30 nA 1.8V, typical Interrupt Capability with Automatic Context Watchdog Timer Current: Saving - 300 nA 1.8V, typical 16-Level Deep Hardware Stack with Optional Overflow/Underflow Reset Secondary Oscillator: 500 nA 32 kHz,1.8V, typical Direct, Indirect and Relative Addressing modes: - Two full 16-bit File Select Registers (FSRs) - FSRs can read program and data memory Analog Features Analog-to-Digital Converter (ADC): Memory - 10-bit resolution, up to 11 channels Up to 7 Kbytes Self-Write/Read Flash Program - Conversion available during Sleep Memory Addressing - Dedicated ADC RC oscillator Up to 256 Bytes Data Memory Addressing - Fixed Voltage Reference (FVR) as channel High-Endurance Flash Data Memory (HEF) Integrated Temperature Indicator - 128B of nonvolatile memory Voltage Reference module: - 100K erase/write cycles - Fixed Voltage Reference (FVR) with 1.024V and 2.048V output levels Flexible Oscillator Structure Peripheral Highlights 16 MHz Internal Oscillator: - Accuracy to 3%, typical Up to 25 I/O Pins and 1 Input-only Pin: - Software selectable frequency range from - High current 25 mA sink/source 16 MHz to 31.25 kHz - Individually programmable weak pull-ups 31 kHz Low-Power Internal Oscillator - Individually programmable interrupt-on- Three External Clock modes up to 20 MHz change (IOC) pins Two-Speed Oscillator Start-up Integrated LCD Controller: Low-Power RTC Implementation via LPT1OSC - 19 segment pins and 72 total segments - Variable clock input Special Microcontroller Features - Contrast control - Internal voltage reference selections Operating Voltage Range: Timer0: 8-Bit Timer/Counter with 8-Bit -1.8V-3.6V Programmable Prescaler Self-Programmable under Software Control Enhanced Timer1: Power-on Reset (POR) - 16-bit timer/counter with prescaler Power-up Timer (PWRT) - External Gate Input mode Low-Power Brown-Out Reset (LPBOR) - Dedicated low-power 32 kHz oscillator driver Extended Watchdog Timer (WDT) In-Circuit Serial Programming (ICSP) via Two Pins 2011-2016 Microchip Technology Inc. DS40001455F-page 1PIC16LF1902/3 PIC16LF1902/3 Family Types LCD Device (3) PIC16LF1902 (1) 2048 128 128 25 11 1/1 4 19 72 HY (3) PIC16LF1903 (1) 4096 256 128 25 11 1/1 4 19 72 HY PIC16LF1904 (2) 4096 256 128 36 14 1/1 1 4 29 116 I/H Y (3) PIC16LF1906 (2) 8192 512 128 25 11 1/1 1 4 19 72 I/H Y PIC16LF1907 (2) 8192 512 128 36 14 1/1 1 4 29 116 I/H Y Note 1: I - Debugging, Integrated on Chip H - Debugging, available using Debug Header. 2: One pin is input-only. 3: COM3 and SEG15 share a pin, so the total segments are limited to 72 for 28-pin devices. Data Sheet Index: (Unshaded devices are described in this document.) 1: DS40001455 PIC16LF1902/1903 Data Sheet, 28-Pin Flash, 8-bit Microcontrollers. 2: DS40001569 PIC16LF1904/6/7 Data Sheet, 28/40/44-Pin Flash, 8-bit Microcontrollers. Pin Diagrams FIGURE 1: 28-PIN PDIP, SOIC, SSOP (1) 28 RB7 /SEG13/ICSPDAT VPP/MCLR/RE3 1 (1) RB6 /SEG14/ICSPCLK SEG12/AN0/RA0 27 2 (1) 26 RB5 /AN13/COM1 SEG7/AN1/RA1 3 (1) RB4 /AN11/COM0 COM2/AN2/RA2 4 25 (1) 5 24 RB3 /AN9/SEG26/VLCD3 SEG15/COM3/VREF+/AN3/RA3 (1) 23 RB2 /AN8/SEG25/VLCD2 SEG4/T0CKI/RA4 6 (1) 22 RB1 /AN10/SEG24/VLCD1 SEG5/AN4/RA5 7 (1) VSS 21 RB0 /AN12/INT/SEG0 8 SEG2/CLKIN/RA7 20 VDD 9 19 VSS SEG1/CLKOUT/RA6 10 18 RC7/SEG8 T1CKI/T1OSO/RC0 11 RC6/SEG9 T1OSI/RC1 12 17 RC5/SEG10 SEG3/RC2 16 13 RC4/T1G/SEG11 15 SEG6/RC3 14 Note 1: These pins have interrupt-on-change functionality. DS40001455F-page 2 2011-2016 Microchip Technology Inc. Data Sheet Index Program Memory Flash (words) Data SRAM (bytes) High-Endurance Flash (bytes) (2) I/Os PIC16LF1902/3 10-bit ADC (ch) Timers (8/16-bit) EUSART Common Pins Segment Pins Total Segments (1) Debug XLP