PIC18(L)F1XK50 20-Pin USB Flash Microcontrollers with XLP Technology Universal Serial Bus Features Extreme Low-Power Management PIC18LF1XK50 with XLP Technology USB V2.0 Compliant SIE Full Speed (12 Mb/s) and Low Speed (1.5 Mb/s) Sleep mode: 24 nA Supports Control, Interrupt, Isochronous and Watchdog Timer: 450 nA Bulk Transfers Timer1 Oscillator: 790 nA 32 kHz Supports up to 16 Endpoints (8 bidirectional) Analog Features 256-byte Dual Access RAM for USB Input-Change Interrupt on D+/D- for Detecting Analog-to-Digital Converter (ADC) module: Physical Connection to USB Host - 10-bit resolution, nine external channels - Auto acquisition capability High-Performance RISC CPU - Conversion available during Sleep C Compiler Optimized Architecture: - Internal 1.024V Fixed Voltage Reference - Optional extended instruction set designed to (FVR) channel optimize re-entrant code - Independent input multiplexing - 256 bytes, data EEPROM Dual Analog Comparators: - Up to 16 Kbytes linear program memory - Rail-to-rail operation addressing - Independent input multiplexing - Up to 768 bytes linear data memory Voltage Reference module: addressing - Programmable (% of VDD), 16 steps Priority Levels for Interrupts - Two 16-level voltage ranges using VREF pins 8 x 8 Single-Cycle Hardware Multiplier - Programmable Fixed Voltage Reference Flexible Oscillator Structure (FVR), 3 levels On-Chip 3.2V LDO Regulator PIC18F1XK50 CPU Divider to Run the Core Slower than the USB Peripheral Peripheral Highlights 16 MHz Internal Oscillator Block: 14 I/O Pins plus 1 Input-Only Pin: - Software selectable frequencies, 31 kHz to - High-current sink/source 25 mA/25 mA 16 MHz - Seven programmable weak pull-ups - Provides a complete range of clock speeds - Seven programmable interrupt-on-change from 31 kHz to 32 MHz when used with PLL pins - User tunable to compensate for frequency - Three programmable external interrupts drift - Programmable slew rate Four Crystal modes, up to 48 MHz Enhanced Capture/Compare/PWM (ECCP) External Clock modes, up to 48 MHz module: 4X Phase Lock Loop (PLL) - One, two, three, or four PWM outputs Secondary Oscillator using Timer1 at 32 kHz - Selectable polarity Fail-Safe Clock Monitor: - Programmable dead time - Allows for safe shutdown if primary or - Auto-shutdown and Auto-restart secondary oscillator stops Master Synchronous Serial Port (MSSP) module: Two-Speed Oscillator Start-Up - 3-wire SPI (supports all four modes) 2 -I C Master and Slave modes (Slave mode Special Microcontroller Features address masking) Enhanced Universal Synchronous Asynchronous Full 5.5V Operation PIC18F1XK50 Receiver Transmitter (EUSART) module: 1.8V-3.6V Operation PIC18LF1XK50 - Supports RS-485, RS-232 and LIN 2.0 Self-Programmable under Software Control - RS-232 operation using internal oscillator Programmable Brown-out Reset (BOR): - Auto-Baud Detect - With software enable option - Auto-Wake-up on Break Extended Watchdog Timer (WDT): SR Latch mode - Programmable period from 4ms to 131s Single-Supply 3V In-Circuit Serial Programming (ICSP) via Two Pins 2008-2015 Microchip Technology Inc. DS40001350F-page 1PIC18(L)F1XK50 PIC18(L)F1XK50 Family Types Program Data Memory MSSP Memory Device (3) PIC18F13K50/ (A) 8K 4096 512 256 15 11 1 Y Y 1 2 1/3 Y PIC18LF13K50 (3) PIC18F14K50/ (A) 16K 8192 768 256 15 11 1 Y Y 1 2 1/3 Y PIC18LF14K50 Note 1: One pin is input only. 2: Channel count includes internal Fixed Voltage Reference (FVR) and Programmable Voltage Reference (CVREF) channels. 3: Includes the dual port RAM used by the USB module which is shared with the data memory. Data Sheet Index: (Unshaded devices are described in this document) A. DS40001350 PIC18(L)F1XK50 Data Sheet, 20-Pin USB Flash Microcontrollers with XLP Technology. Note: For other small form-factor package availability and marking information, please visit