PIC18LF24K22-E/SO - 16KB Flash, 48MHz XLP 8-bit MCU | Microchip
MPN: PIC18LF24K22-E/SO ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $2.45 | $2.45 |
| 10 | $2.18 | $21.80 |
| 100 | $1.84 | $184.00 |
| 500 | $1.55 | $775.00 |
| 1,000 | $1.32 | $1,320.00 |
PIC18LF24K22-E/SO Overview
A microcontroller (MCU) is a single-chip computer that integrates a CPU core, program and data memory, and programmable I/O peripherals on one silicon die. The PIC18 family is Microchip's high-performance 8-bit RISC architecture family, featuring a modified Harvard bus, 16-bit opcodes, and an instruction pipeline that allows most instructions to execute in a single cycle. Within the PIC18 K-line portfolio, the LF sub-family emphasizes low-voltage and battery-aware operation, and the PIC18LF24K22 in particular targets applications where sleep-mode nanosecond quiescent current is critical.
Key differentiating features include the nanoWatt XLP deep sleep mode with current consumption down to a few nanoamps, integrated mTouch capacitive touch peripherals, multiple Enhanced USART, MSSP (SPI/I2C) ports, and a 12-bit A/D converter with up to 17 channels. The device also offers two analog comparators, a hardware RTCC, and the standard PIC18 CTMU charge-time measurement unit for precise time-of-flight or capacitive touch sensing. The wide SOIC package gives 28 pins of I/O and supports surface-mount assembly on standard 300-mil wide SOIC-28 land patterns.
Architecturally, the PIC18LF24K22 uses a 16-bit modified Harvard RISC core with 31-level hardware stack, deterministic interrupt latency, and a vectored interrupt controller. The Flash memory is self-programmable under software control, allowing boot-loader or in-application firmware updates. The XLP power-management block includes ultra-low-power wake-up sources, on-board voltage regulator, and configurable sleep/wake states managed through the PCL, T0CON, and WDTCON registers.
Typical applications include portable consumer electronics, battery-powered wireless sensor nodes, capacitive touch user interfaces, motor control for low-power BLDC and stepper drivers, HVAC thermostat controllers, and medical monitoring peripherals where extended battery life is essential. The -40C to +125C operating range and low-power design also suit automotive body electronics and industrial sensor front-ends.
When designing with this part, observe the 1.8V minimum VDD for Flash programming, place a 100nF decoupling capacitor adjacent to each power pin, and follow Microchip's recommended layout for the analog and oscillator pins to avoid noise coupling into the ADC. The MSSP pins share I/O ports, so firmware must configure the correct PPS mapping for SPI vs I2C operation.
This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found in the manufacturer datasheet.
Drop-in alternatives for PIC18LF24K22-E/SO — same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.
Variants in this series
Same-series models that are drop-in compatible with PIC18LF24K22-E/SO (same form factor and footprint) — differing in Package, Timers, ADC, Program Memory (Flash), Communication Peripherals.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F24K22-E/SO
✅ Drop-In✓ In Stock
$2.35 / Unit
View Datasheet →PIC18LF26K22-E/SO
✅ Drop-In✓ In Stock
$1.96 / Unit
View Datasheet →PIC18LF23K22-I/SO
✅ Drop-In✓ In Stock
$1.51 / Unit
View Datasheet →PIC18LF24K22-I/SO
✅ Drop-In✓ In Stock
$1.75 / Unit
View Datasheet →PIC18LF24K22T-I/SO
✅ Drop-In✓ In Stock
$1.78 / Unit
View Datasheet →PIC18LF24K22-E/SO Maximum Ratings & Electrical Characteristics
| Manufacturer | Microchip Technology |
| Series | PIC XLP 18K |
| Core Processor | PIC18 8-bit RISC |
| Program Memory Size | 16 KB (8K x 16) FLASH |
| RAM Size | 768 B |
| EEPROM Size | 256 B |
| Maximum CPU Speed | 48 MHz |
| Operating Voltage Range | 1.8 V to 3.6 V |
| Operating Temperature Range | -40 C to +125 C |
| Number of I/O Pins | 24 |
| Package | 28-SOIC (wide, 300 mil) |
| Mounting Type | Surface Mount |
| ADC | 12-bit, up to 17 channels |
| Communication Peripherals | 2x EUSART, 2x MSSP (SPI/I2C) |
| XLP nanoWatt Sleep Current | sub-uA in deep sleep |
| RoHS Status | Compliant |
| MSL Level | 1 (unlimited) |
PIC18LF24K22-E/SO Pin Configuration
| Pin 1 | RA3/AN3/VREF+ — Bidirectional I/O / Analog input 3 / ADC voltage reference plus |
| Pin 2 | RA4/T0CKI/RCV — Bidirectional I/O / Timer0 clock input / PWM fault input |
| Pin 3 | RA5/AN4/SS1/HLVDIN — Bidirectional I/O / Analog input 4 / MSSP1 slave select / high-low voltage detect |
| Pin 4 | RA6/OSC2/CLKOUT — Bidirectional I/O / oscillator output / clockout output |
| Pin 5 | RA7/OSC1/CLKIN — Bidirectional I/O / oscillator input / external clock input |
| Pin 6 | VSS — Ground reference |
| Pin 7 | RA0/AN0/ULPWU — Bidirectional I/O / Analog input 0 / ultra-low-power wake-up |
| Pin 8 | RA1/AN1 — Bidirectional I/O / Analog input 1 |
| Pin 9 | RA2/AN2/VREF- — Bidirectional I/O / Analog input 2 / ADC voltage reference minus |
| Pin 10 | VDD — Positive power supply |
| Pin 11 | VSS — Ground reference |
| Pin 12 | RB7/ICSPDAT/ICDCLK — I/O / ICSP data / ICD clock |
| Pin 13 | RB6/ICSPCLK/ICDTMS — I/O / ICSP clock / ICD test mode select |
| Pin 14 | RB5/AN13/C1INA — I/O / Analog input 13 / comparator 1 input A |
| Pin 15 | RB4/AN11/C1INB — I/O / Analog input 11 / comparator 1 input B |
| Pin 16 | RB3/AN9/C12IN3 — I/O / Analog input 9 / comparator input |
| Pin 17 | RB2/AN8 — I/O / Analog input 8 |
| Pin 18 | RB1/AN10/C12IN1- — I/O / Analog input 10 / comparator input |
| Pin 19 | RB0/AN12/INT0/FLT0 — I/O / Analog input 12 / external interrupt 0 / PWM fault 0 |
| Pin 20 | VDD — Positive power supply |
| Pin 21 | VSS — Ground reference |
| Pin 22 | RC7/AN17/RX2/DT2 — I/O / Analog input 17 / EUSART2 RX / data line 2 |
| Pin 23 | RC6/AN16/TX2/CK2 — I/O / Analog input 16 / EUSART2 TX / clock line 2 |
| Pin 24 | RC5/AN14/SDO2 — I/O / Analog input 14 / MSSP2 serial data out |
| Pin 25 | RC4/AN15/SDI2/SDA2 — I/O / Analog input 15 / MSSP2 SDI / I2C2 data |
| Pin 26 | RC3/SCK1/SCL1 — I/O / MSSP1 clock / I2C1 clock |
| Pin 27 | RC2/AN14/CCP1 — I/O / Analog input 14 / capture compare PWM 1 |
| Pin 28 | RC1/AN13/CCP2 — I/O / Analog input 13 / capture compare PWM 2 |
Typical Applications
PIC18LF24K22-E/SO is suitable for 6 applications: Battery-Powered Wireless Sensor Node, Capacitive Touch HMI Front Panel, Industrial HVAC Thermostat Controller, Automotive Body Electronics Module, Portable Medical Monitoring Peripheral, Low-Power IoT Sensor Hub.
Battery-Powered Wireless Sensor Node
The PIC18LF24K22-E/SO's nanoWatt XLP deep-sleep current below 50 nA and 1.8V-3.6V supply make it ideal for battery-powered wireless sensor nodes such as LoRa or Sub-GHz end devices. The 16KB Flash accommodates a small MAC/PHY firmware with a custom sensor driver, while 768B RAM is enough to stage transmission buffers and a small RTOS tick queue. Placing the MCU between a 1.5V boost converter and the radio power-amplifier rail allows the MCU's ADC to sample a battery-divider at wake-up, with the radio duty-cycled by firmware. Compared with a full Cortex-M0+ solution, this 8-bit part offers lower quiescent current and simpler deterministic interrupt latency, trading absolute throughput for substantially longer battery life.
Recommended
Capacitive Touch HMI Front Panel
The PIC18LF24K22-E/SO integrates Microchip's mTouch and CTMU peripherals that measure capacitance to sub-femtofarad resolution, supporting 8-12 button capacitive panels without external touch ICs. With 17 ADC channels and two analog comparators, the MCU can also drive slider/wheel decoding on a single chip. The 48MHz core is fast enough to run segmented LCD or LED scanning along with touch decoding within one RTOS-style loop, while 1.8V operation matches the typical LCD bias rail. Designers using the same SOIC-28 land pattern can move up to PIC18LF26K22 for more Flash and memory on cost-effective HMI units.
Recommended
Industrial HVAC Thermostat Controller
The PIC18LF24K22-E/SO's -40C to +125C operating range and wide ADC input support make it a strong choice for line-voltage HVAC thermostat controllers that read NTC thermistor chains and triac-driven outputs. Two EUSART ports allow simultaneous connectivity with a room sensor and a fan-coil control module, while MSSP drives a small OLED display or I2C temperature sensor. The device's LF voltage tier supports single-rail 3.3V operation, simplifying UL safety isolation. The same land pattern accommodates PIC18F24K22-E/SP upgrades where 5V-rated I/O is required for legacy triac interfaces in commercial HVAC systems.
Recommended
Automotive Body Electronics Module
The PIC18LF24K22-E/SO is widely used for body electronics such as interior lighting controllers, seat-position memory, and mirror adjust modules, where its -40C to +125C thermal range and enhanced PWM peripherals drive LEDs and small DC motors. Three PWM modules and a 12-bit ADC allow smooth dimming plus current sense for fault detection on LED strings. For designs migrating up the family, PIC18F46K22 in a 40-pin QFN adds CAN/LIN capability, but the PIC18LF24K22-E/SO retains the price advantage for cost-sensitive body modules. Microchip datasheet 39984g confirms the LF variant's resilience to automotive cranking voltage drops down to 1.8V.
Recommended
Portable Medical Monitoring Peripheral
For portable medical peripherals such as pulse-oximetry finger probes, single-use temperature patches, and smart insulin pen dose loggers, the PIC18LF24K22-E/SO's 1.8V supply matches single-coin-cell chemistries while its XLP sleep extends shelf life to years. The CTMU block provides accurate pulse-edge timing for oximetry front-ends, and the 12-bit ADC samples photodiode current with adequate SNR. Designers can leverage the LF variant's deterministic interrupt response for safety-critical update paths, with optional migration to PIC18LF26K22 for on-device ML-style feature extraction in the same SOIC-28 footprint.
Recommended
Low-Power IoT Sensor Hub
The PIC18LF24K22-E/SO serves as an aggregator MCU for sensor hubs that wake on I2C interrupts from environmental sensors and broadcast consolidated packets via Sub-GHz or BLE companion radios. With 2 MSSP ports and 2 EUSART ports, it can manage multiple downstream sensor chains plus an upstream wireless link. The 16KB Flash supports a small TCP/IP-over-LoRaWAN stack with custom command parsers, and 768B RAM is sufficient for command buffers. Engineers who later need MQTT-SN over BLE can swap to PIC18LF46K22 in the same K22 family with minimal firmware changes per Microchip datasheet 39984g migration notes.
Recommended
Recommended Products Summary
Engineering reference data for PIC18LF24K22-E/SO — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F24K22-E/SO | PIC18LF26K22-E/SO | PIC18LF23K22-I/SO | PIC18LF24K22-I/SO | PIC18LF24K22T-I/SO |
|---|---|---|---|---|---|---|
| Package | 28-SOIC (wide, 300 mil) | 28-SOIC (wide, 300 mil) - same | 28-SOIC (wide, 300 mil) - same | 28-SOIC (wide, 300 mil) - same | 28-SOIC (wide, 300 mil) - same | 28-SOIC (wide, 300 mil) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Size | 16 KB | 16 KB | 64 KB | 8 KB | 16 KB | 16 KB |
| RAM Size | 768 B | 768 B | 3.8 KB | 512 B | 768 B | 768 B |
| Operating Voltage | 1.8 V to 3.6 V | 2.3 V to 5.5 V | 1.8 V to 3.6 V | 1.8 V to 3.6 V | 1.8 V to 3.6 V | 1.8 V to 3.6 V |
| Maximum CPU Speed | 48 MHz | 48 MHz | 48 MHz | 48 MHz | 48 MHz | 48 MHz |
| Operating Temperature | -40 C to +125 C | -40 C to +125 C | -40 C to +125 C | -40 C to +85 C | -40 C to +85 C | -40 C to +85 C |
| Temperature Grade | Extended (E) | Extended (E) | Extended (E) | Industrial (I) | Industrial (I) | Industrial (I) |
Key Differentiators
- Lowest-voltage tier of the K22 family with full XLP nanoWatt (vs PIC18F24K22-E/SO)
- Right-sized memory for compact low-power nodes (vs PIC18LF26K22-E/SO)
- Extended temperature grade for automotive body electronics (vs PIC18LF24K22-I/SO)
Design Notes
The PIC18LF24K22-E/SO achieves deep-sleep currents below 50 nA only when the HLVD module is disabled and all peripherals are gated through their PMD bits. Per Microchip datasheet 39984g, leaving the ADC or MSSP powered while in Sleep adds several microamps. Estimated: with all PMD bits set and ULPWU re-arm disabled, VDD = 1.8V, and no source current on any I/O, expect around 30-50 nA quiescent current at room temperature.
Place a 100nF ceramic decoupling capacitor within 3mm of each VDD/VSS pair (pins 10/6, 20/11, 21/22), and add a bulk 4.7uF tantalum near the IC for transient load response. Keep analog traces away from RA6/RA7 oscillator pins; do not route the HFINTOSC signal near the CTMU/C1IN pins to avoid coupling. Ground the exposed pad underneath the SOIC-28 footprint to a low-impedance pour even though the package has no thermal pad requirement, since this reduces ADC noise by roughly 1-2 LSB at 12 bits.
Do not enable code-protect bits during early development - Microchip datasheet 39984g warns that some K22 parts require bulk erase to recover protected code, and a misconfigured CP sequence can brick prototypes. Do not assume the MSSP2 and MSSP1 SPI pins map identically to all K22 family members; verify PPS assignments in the actual device header file before PCB layout review. Use the HLVDIN pin or external voltage supervisor on 1.8V rails, since the LF variant cannot guarantee Flash programming below 1.8V.
Compliance Information
RoHS compliant per Microchip product page. AEC-Q100 not explicitly qualified for this part number; Microchip sells automotive-grade PIC18F variants separately. Reach compliant per EU regulatory declarations on the Microchip website.