PIC18(L)F2X/4XK22
28/40/44-Pin, Low-Power, High-Performance
Microcontrollers with XLP Technology
High-Performance RISC CPU: eXtreme Low-Power Features (XLP)
(PIC18(L)F2X/4XK22):
C Compiler Optimized Architecture:
- Optional extended instruction set designed to
Sleep mode: 20 nA, typical
optimize re-entrant code
Watchdog Timer: 300 nA, typical
Up to 1024 Bytes Data EEPROM
Timer1 Oscillator: 800 nA @ 32 kHz
Up to 64 Kbytes Linear Program Memory
Peripheral Module Disable
Addressing
Up to 3896 Bytes Linear Data Memory Address-
Special Microcontroller Features:
ing
2.3V to 5.5V Operation PIC18FXXK22 devices
Up to 16 MIPS Operation
1.8V to 3.6V Operation PIC18LFXXK22 devices
16-bit Wide Instructions, 8-bit Wide Data Path
Priority Levels for Interrupts Self-Programmable under Software Control
31-Level, Software Accessible Hardware Stack
High/Low-Voltage Detection (HLVD) module:
8 x 8 Single-Cycle Hardware Multiplier
- Programmable 16-Level
- Interrupt on High/Low-Voltage Detection
Flexible Oscillator Structure:
Programmable Brown-out Reset (BOR):
Precision 16 MHz Internal Oscillator Block:
- With software enable option
- Factory calibrated to 1%
- Configurable shutdown in Sleep
- Selectable frequencies, 31 kHz to 16 MHz
Extended Watchdog Timer (WDT):
- 64 MHz performance available using PLL
- Programmable period from 4 ms to 131s
no external components required
In-Circuit Serial Programming (ICSP):
Four Crystal modes up to 64 MHz
- Single-Supply 3V
Two External Clock modes up to 64 MHz
In-Circuit Debug (ICD)
4X Phase Lock Loop (PLL)
Secondary Oscillator using Timer1 @ 32 kHz Peripheral Highlights:
Fail-Safe Clock Monitor:
Up to 35 I/O Pins plus 1 Input-Only Pin:
- Allows for safe shutdown if peripheral clock
- High-Current Sink/Source 25 mA/25 mA
stops
- Three programmable external interrupts
- Two-Speed Oscillator Start-up
- Four programmable interrupt-on-change
- Nine programmable weak pull-ups
Analog Features:
- Programmable slew rate
SR Latch:
Analog-to-Digital Converter (ADC) module:
- Multiple Set/Reset input options
- 10-bit resolution, up to 30 external channels
Two Capture/Compare/PWM (CCP) modules
- Auto-acquisition capability
- Conversion available during Sleep Three Enhanced CCP (ECCP) modules:
- Fixed Voltage Reference (FVR) channel
- One, two or four PWM outputs
- Independent input multiplexing
- Selectable polarity
Analog Comparator module: - Programmable dead time
- Auto-Shutdown and Auto-Restart
- Two rail-to-rail analog comparators
- PWM steering
- Independent input multiplexing
Two Master Synchronous Serial Port (MSSP)
Digital-to-Analog Converter (DAC) module:
modules:
- Fixed Voltage Reference (FVR) with 1.024V,
- 3-wire SPI (supports all 4 modes)
2.048V and 4.096V output levels
2
-I C Master and Slave modes with address
- 5-bit rail-to-rail resistive DAC with positive
mask
and negative reference selection
Charge Time Measurement Unit (CTMU) module:
- Supports capacitive touch sensing for touch
screens and capacitive switches
2010-2016 Microchip Technology Inc. DS40001412G-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.
DS40001412G-page 2 2010-2016 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