PIC18(L)F1XK22 20-Pin Flash Microcontrollers with XLP Technology High-Performance RISC CPU Analog Features Analog-to-Digital Converter (ADC) module C Compiler Optimized Architecture: - 10-bit resolution, 12 channels - Optional extended instruction set designed to - Auto-acquisition capability optimize re-entrant code - Conversion available during Sleep 256 bytes Data EEPROM Analog Comparator module: Up to 16 Kbytes Linear Program Memory - Two rail-to-rail analog comparators Addressing - Independent input multiplexing Up to 512 bytes Linear Data Memory Addressing - Inputs and outputs externally accessible Up to 16 MIPS Operation Voltage Reference module: 16-bit Wide Instructions, 8-bit Wide Data Path - Fixed Voltage Reference (FVR) with 1.024V, Priority Levels for Interrupts 2.048V and 4.096V output levels 31-Level, Software Accessible Hardware Stack - 5-bit rail-to-rail resistive Digital-to-Analog 8 x 8 Single-Cycle Hardware Multiplier Converter (DAC) with positive and negative Flexible Oscillator Structure reference selection Precision 16 MHz Internal Oscillator Block: Peripheral Highlights - Factory calibrated to 1% 17 I/O Pins and 1 Input-only Pin: - Software selectable frequencies range of - High current sink/source 25 mA/25 mA 31 kHz to 16 MHz - Programmable weak pull-ups - 64 MHz performance available using PLL - Programmable interrupt-on- change no external components required - Three external interrupt pins Four Crystal modes up to 64 MHz Four Timer modules: Two External Clock modes up to 64 MHz - Three 16-bit timers/counters with prescaler 4X Phase Lock Loop (PLL) - One 8-bit timer/counter with 8-bit period Secondary Oscillator using Timer1 32 kHz register, prescaler and postscaler Fail-Safe Clock Monitor - Dedicated, low-power Timer1 oscillator - Allows for safe shutdown if peripheral clock Enhanced Capture/Compare/PWM (ECCP) stops module: Two-Speed Oscillator Start-up - One, two or four PWM outputs - Selectable polarity Special Microcontroller Features - Programmable dead time 2.3V - 5.5V Operation PIC18F1XK22 - Auto-shutdown and Auto-restart 1.8V-3.6V Operation PIC18LF1XK22 - PWM output steering control Self-reprogrammable under Software Control Master Synchronous Serial Port (MSSP) module Power-on Reset (POR), Power-up Timer (PWRT) - 3-wire SPI (supports all four SPI modes) and Oscillator Start-up Timer (OST) 2 -I C Master and Slave modes (Slave mode Programmable Brown-out Reset (BOR) address masking) Extended Watchdog Timer (WDT): Enhanced Universal Synchronous Asynchronous - Programmable period from 4 ms to 131s Receiver Transmitter module (EUSART) Programmable Code Protection - Supports RS-232, RS-485 and LIN 2.0 In-Circuit Serial Programming (ICSP) via - Auto-Baud Detect two pins - Auto Wake-up on Break In-Circuit Debug via Two Pins SR Latch (555 Timer) module with: Extreme Low-Power Management - Configurable inputs and outputs - Supports mTouch capacitive sensing PIC18LF1XK22 with XLP Technology applications Sleep mode: 34 nA Watchdog Timer: 460 nA Timer1 Oscillator: 650 nA 32 kHz 2009-2016 Microchip Technology Inc. DS40001365F-page 1PIC18(L)F1XK22 PIC18(L)F1XK22 Family Types Program Memory Data Memory (1) Data Device Pins I/O SRAM Bytes Words EEPROM (bytes) (bytes) PIC18(L)F13K22 (1) 8K 4K 256 256 20 18 12-ch 2 1 / 3 1 1 1 Yes PIC18(L)F14K22 (1) 16K 8K 512 256 20 18 12-ch 2 1 / 3 1 1 1 Yes Note 1: One pin is input-only. Data Sheet Index: (Unshaded devices are described in this document) 1. DS40001365 PIC18(L)F1XK22 20-Pin Flash Microcontrollers with XLP Technology Note: For other small form-factor package availability and marking information, please visit