PIC18(L)F2X/4XK22 28/40/44-Pin, Low-Power, High-Performance Microcontrollers with XLP Technology screens and capacitive switches High-Performance RISC CPU: C Compiler Optimized Architecture: eXtreme Low-Power Features (XLP) - Optional extended instruction set designed to (PIC18(L)F2X/4XK22): optimize re-entrant code Sleep mode: 20 nA, typical Up to 1024 Bytes Data EEPROM Watchdog Timer: 300 nA, typical Up to 64 Kbytes Linear Program Memory Addressing Timer1 Oscillator: 800 nA 32 kHz Up to 3896 Bytes Linear Data Memory Address- Peripheral Module Disable ing Special Microcontroller Features: Up to 16 MIPS Operation 16-bit Wide Instructions, 8-bit Wide Data Path 2.3V to 5.5V Operation PIC18FXXK22 devices Priority Levels for Interrupts 1.8V to 3.6V Operation PIC18LFXXK22 devices 31-Level, Software Accessible Hardware Stack Self-Programmable under Software Control 8 x 8 Single-Cycle Hardware Multiplier High/Low-Voltage Detection (HLVD) module: Flexible Oscillator Structure: - Programmable 16-Level - Interrupt on High/Low-Voltage Detection Precision 16 MHz Internal Oscillator Block: Programmable Brown-out Reset (BOR): - Factory-calibrated to 1% - With software enable option - Selectable frequencies, 31 kHz to 16 MHz - Configurable shutdown in Sleep - 64 MHz performance available using PLL Extended Watchdog Timer (WDT): no external components required - Programmable period from 4 ms to 131s Four Crystal modes up to 64 MHz In-Circuit Serial Programming (ICSP): Two External Clock modes up to 64 MHz - Single-Supply 3V 4x Phase Lock Loop (PLL) In-Circuit Debug (ICD) Secondary Oscillator using Timer1 32 kHz Fail-Safe Clock Monitor: Peripheral Highlights: - Allows for safe shutdown if peripheral clock stops Up to 35 I/O Pins plus One Input-Only Pin: - Two-Speed Oscillator Start-up - High-Current Sink/Source 25 mA/25 mA - Three programmable external interrupts Analog Features: - Four programmable interrupt-on-change - Nine programmable weak pull-ups Analog-to-Digital Converter (ADC) module: - Programmable slew rate - 10-bit resolution, up to 30 external channels SR Latch: - Auto-acquisition capability - Multiple Set/Reset input options - Conversion available during Sleep Two Capture/Compare/PWM (CCP) modules - Fixed Voltage Reference (FVR) channel Three Enhanced CCP (ECCP) modules: - Independent input multiplexing - One, two or four PWM outputs Analog Comparator module: - Selectable polarity - Two rail-to-rail analog comparators - Programmable dead time - Independent input multiplexing - Auto-Shutdown and Auto-Restart Digital-to-Analog Converter (DAC) module: - PWM steering - Fixed Voltage Reference (FVR) with 1.024V, Two Host Synchronous Serial Port (MSSP) mod- 2.048V and 4.096V output levels ules: - 5-bit rail-to-rail resistive DAC with positive - 3-wire SPI (supports all four modes) 2 and negative reference selection -I C Host and Client modes with address Charge Time Measurement Unit (CTMU) module: mask - Supports capacitive touch sensing for touch 2010-2021 Microchip Technology Inc. DS40001412H-page 1PIC18(L)F2X/4XK22 Two Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART) modules: - Supports RS-485, RS-232 and LIN - RS-232 operation using internal oscillator - Auto-Wake-up on Break - Auto-Baud Detect TABLE 1: PIC18(L)F2X/4XK22 FAMILY TYPES Program Data MSSP Memory Memory Device PIC18(L)F23K22 8K 4096 512 256 25 19 2 1 2 2 2 2 2 Y Y Y 3 4 PIC18(L)F24K22 16K 8192 768 256 25 19 2 1 2 2 2 2 2 34 YY Y PIC18(L)F25K22 32K 16384 1536 256 25 19 2 1 2 2 2 2 2 34 YY Y PIC18(L)F26K22 64k 32768 3896 1024 25 19 2 1 2 2 2 2 2 34 YY Y PIC18(L)F43K22 8K 4096 512 256 36 30 2 2 1 2 2 2 2 34 YY Y PIC18(L)F44K22 16K 8192 768 256 36 30 2 2 1 2 2 2 2 34 YY Y PIC18(L)F45K22 32K 16384 1536 256 36 30 2 2 1 2 2 2 2 34 YY Y PIC18(L)F46K22 64k 32768 3896 1024 36 30 2 2 1 2 2 2 2 34 YY Y Note 1: One pin is input only. 2: Channel count includes internal FVR and DAC channels. DS40001412H-page 2 2010-2021 Microchip Technology Inc. Flash (Bytes) Single-Word Instructions SRAM (Bytes) EEPROM (Bytes) (1) I/O 10-bit (2) A/D Channels CCP ECCP (Full-Bridge) ECCP (Half-Bridge) SPI 2 I C EUSART Comparator CTMU BOR/LVD SR Latch 8-bit Timer 16-bit Timer