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