PIC18LF25K22-E/SP - 32KB Flash 8-bit MCU 28-SPDIP | Microchip
MPN: PIC18LF25K22-E/SP ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $2.95 | $2.95 |
| 10 | $2.66 | $26.60 |
| 100 | $2.36 | $236.00 |
| 500 | $2.07 | $1,035.00 |
| 1,000 | $1.85 | $1,850.00 |
PIC18LF25K22-E/SP Overview
An 8-bit microcontroller (MCU) is a single-chip processor with an 8-bit data bus width, integrating CPU, RAM, Flash program memory, peripherals, and I/O on one die. PIC18F/K-series devices sit at the higher-performance end of Microchip's 8-bit portfolio, above baseline PIC10/PIC12/PIC16 families. nanoWatt XLP (eXtreme Low Power) is Microchip's power-management technology targeting sleep currents in the nanoampere range for battery-powered applications. This device belongs to the broader category of MCUs -> microcontrollers -> embedded processors -> semiconductors, enabling direct firmware-driven control of analog and digital peripherals.
Key features include a 10-bit ADC up to 19 channels, multiple PWM modules, Enhanced USART, MSSP (SPI/I2C), and self-programming Flash. The 'LF' wide-Voltage-Range (WVR) silicon supports 1.8V-3.6V operation, allowing direct connection to single-cell Li-Ion or two-AA battery stacks. Internal oscillator blocks and nanoWatt XLP sleep modes reduce active and idle power, supporting long-life coin-cell applications like metering, remote sensors, and wearables.
The PIC18LF25K22 architecture uses a 16-bit modified Harvard bus with an 8-bit data path and 16-bit instruction word, providing C-optimized instruction set and hardware multiply. The 28-SPDIP package is the through-hole version of the family and is ideal for prototyping, breadboarding, and legacy designs that prefer DIP footprints over surface-mount QFN/SOIC. The PIC18 K-series brought significantly improved ADC performance and richer peripherals over the older F-series, while retaining instruction-set compatibility.
Typical applications include low-power wireless sensor nodes, battery-powered instrumentation, industrial control modules, and consumer appliances with user interfaces. The wide VDD range and deep sleep modes make it attractive for IoT edge devices that sleep most of the time and burst-transmit on wake events.
When designing with the 28-SPDIP variant, allocate board area for the 0.1" pin pitch and provide adequate decoupling close to VDD/VSS pairs. For new designs targeting smallest PCB area, the same die is also available in 28-SOIC and 28-QFN packages (PIC18LF25K22-E/SO, PIC18LF25K22-E/ML) for layout flexibility.
This page synthesizes verified distributor inventory, drop-in same-package alternatives, and practical design notes not found in the manufacturer datasheet alone, helping engineers rapidly evaluate whether PIC18LF25K22-E/SP fits their 28-SPDIP socket design.
Drop-in alternatives for PIC18LF25K22-E/SP — 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 PIC18LF25K22-E/SP (same form factor and footprint) — differing in ADC, MSL Level, Package, Communication, Operating Temperature.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18LF25K22-I/SP
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F25K22-E/SP
✅ Drop-In✓ In Stock
$2.38 / Unit
View Datasheet →PIC18LF26K22-E/SP
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18LF24K22-E/SP
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18LF23K22-E/SP
✅ Drop-In✓ In Stock
$1.94 / Unit
View Datasheet →PIC18F25K22-I/SP
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18LF25K40-I/SP
✅ Drop-In✓ In Stock
$1.74 / Unit
View Datasheet →PIC18LF25K22-E/SP Maximum Ratings & Electrical Characteristics
| Product Type | 8-bit Microcontroller (MCU) |
| Family | PIC18F K-series with nanoWatt XLP Technology |
| Program Memory (Flash) | 32 KB (16K x 16) |
| RAM | 1536 B |
| Data EEPROM | 256 B (typical for K-series family) |
| CPU Clock Speed (Max) | 48 MHz (LF: 16 MIPS at 3V) |
| Operating Voltage Range (LF) | 1.8 V to 3.6 V |
| Operating Temperature Range | -40 C to +125 C (E suffix = extended industrial) |
| Package | 28-pin SPDIP (Plastic DIP) |
| Pin Count | 28 |
| Mounting Type | Through-Hole (DIP) |
| I/O Pins | 24 (approximate for 28-pin package family) |
| ADC | 10-bit, multi-channel (typical for family) |
| Communication | EUSART, MSSP (SPI/I2C I2C) |
| Low-Power Technology | nanoWatt XLP (eXtreme Low Power) |
| RoHS Status | Compliant |
| MSL Level | Not applicable (through-hole package) |
PIC18LF25K22-E/SP Pin Configuration
| Pin 1 | MCLR/RE3 — Master Clear (reset) input or digital I/O pin RE3 |
| Pin 2 | RA0/AN0 — Digital I/O RA0 or analog input AN0 |
| Pin 3 | RA1/AN1 — Digital I/O RA1 or analog input AN1 |
| Pin 4 | RA2/AN2 — Digital I/O RA2 or analog input AN2 |
| Pin 5 | RA3/AN3 — Digital I/O RA3 or analog input AN3 |
| Pin 6 | RA4 — Digital I/O RA4 |
| Pin 7 | VDD — Positive supply voltage |
| Pin 8 | VSS — Ground reference |
| Pin 9 | RA7/OSC1 — Digital I/O RA7 or oscillator input |
| Pin 10 | RA6/OSC2 — Digital I/O RA6 or oscillator output |
| Pin 11 | RC0 — Digital I/O RC0 |
| Pin 12 | RC1 — Digital I/O RC1 |
| Pin 13 | RC2 — Digital I/O RC2 |
| Pin 14 | RC3 — Digital I/O RC3 |
| Pin 15 | RC4 — Digital I/O RC4 |
| Pin 16 | RC5 — Digital I/O RC5 |
| Pin 17 | RC6 — Digital I/O RC6 |
| Pin 18 | RC7 — Digital I/O RC7 |
| Pin 19 | VSS — Ground reference |
| Pin 20 | VDD — Positive supply voltage |
| Pin 21 | RB0 — Digital I/O RB0 |
| Pin 22 | RB1 — Digital I/O RB1 |
| Pin 23 | RB2 — Digital I/O RB2 |
| Pin 24 | RB3 — Digital I/O RB3 |
| Pin 25 | RB4 — Digital I/O RB4 |
| Pin 26 | RB5 — Digital I/O RB5 |
| Pin 27 | RB6/PGC — Digital I/O RB6 or ICSP clock |
| Pin 28 | RB7/PGD — Digital I/O RB7 or ICSP data |
Typical Applications
PIC18LF25K22-E/SP is suitable for 7 applications: Battery-Powered Wireless Sensor Node, Industrial Control Module, Smart Metering End-Point, Consumer Appliance Control Board, Portable Medical Monitoring Device, Educational / Hobbyist Development Platform, Automotive Body Electronics (Non-Safety).
Battery-Powered Wireless Sensor Node
The PIC18LF25K22-E/SP is purpose-built for battery-powered wireless sensor nodes. Its nanoWatt XLP technology delivers sleep currents in the nanoampere range, while the 1.8V-3.6V LF operating range supports direct connection to single-cell Li-Ion or 2xAA batteries. The 32 KB Flash holds sensor-fusion and protocol stack code for Sub-GHz or BLE co-processor designs. Its 28-SPDIP package is friendly to prototype wireless boards where through-hole RF headers and antenna connectors are preferred. Pair with MCP9808 temperature sensor and RN2483 LoRa module.
Recommended
Industrial Control Module
The PIC18LF25K22-E/SP fits industrial control modules where 28-SPDIP is preferred for rugged through-hole assembly. Its -40C to +125C extended industrial temperature grade handles factory ambient extremes, and the 1536 B RAM supports Modbus RTU or CANOpen stack buffering. The 10-bit ADC handles 4-20 mA analog sensor inputs with proper scaling, while EUSART drives RS-485 transceivers like ISL3179 directly. Drop-in upgrades to PIC18LF26K22-E/SP exist if more memory is needed.
Recommended
Smart Metering End-Point
For electricity, water, or gas metering end-points, the PIC18LF25K22-E/SP offers the right mix of low power, precision ADC, and integrated peripherals. The 10-bit ADC with internal voltage reference captures pulse outputs from metering sensors accurately, while nanoWatt XLP sleep modes stretch battery life beyond 10 years on a typical meter's lithium primary cell. The 28-SPDIP package is favored in metering designs for its mechanical reliability through assembly and field-serviceability. Communication is via EUSART to a wireless M-Bus or LoRaWAN module.
Recommended
Consumer Appliance Control Board
The PIC18LF25K22-E/SP serves well in consumer appliance control boards (small kitchen appliances, white goods user interfaces, HVAC thermostats). Its 32 KB Flash accommodates graphical user interface state machines plus sensor processing, while 1536 B RAM is sufficient for display buffer rotation. The LF 1.8V-3.6V range simplifies power design when the appliance uses a 3.3V LDO downstream of a rectified mains supply. PWM outputs drive TRIAC or MOSFET-based load control. Recommend pairing with ULN2003A for relay driving.
Recommended
Portable Medical Monitoring Device
Portable medical devices benefit from PIC18LF25K22-E/SP's low power consumption and wide operating voltage. nanoWatt XLP technology preserves patient response times, and the 1.8V-3.6V range supports single-cell Li-Ion or rechargeable coin cells common in wearable health monitors. The 28-SPDIP package aids through-hole assembly for prototyping and low-volume clinical trial builds. 10-bit ADC handles pulse oximeter or ECG front-end signal acquisition when paired with low-noise op-amps. Pair with MCP6002 op-amp and ADXL345 accelerometer.
Recommended
Educational / Hobbyist Development Platform
The PIC18LF25K22-E/SP is an excellent microcontroller for educational and hobbyist development platforms. Its 28-SPDIP through-hole package is breadboard-compatible without soldering, making it ideal for university courses, maker workshops, and DIY prototyping. The 32 KB Flash holds substantial firmware projects from LED blinkers to sensor systems, and the nanoWatt XLP technology teaches low-power design principles. Developers can use the PICkit 4 in-circuit debugger and MPLAB X IDE for free firmware development. Recommend pairing with PICkit 4 programmer and MikroElektronika development kit.
Recommended
Automotive Body Electronics (Non-Safety)
For non-safety automotive body electronics (interior lighting, HVAC blend doors, seat controllers), the PIC18LF25K22-E/SP provides sufficient processing power while operating across -40C to +125C automotive underhood temperature range. Its LF 1.8V-3.6V range simplifies integration with 3.3V regulated rails common in body control modules. The 28-SPDIP package is preferred by some Tier-1 automotive suppliers for its vibration tolerance through assembly. Note: This part is NOT AEC-Q100 qualified - for safety-critical applications use PIC18F25K22-E/SP-Q1 variants.
Recommended
Recommended Products Summary
Engineering reference data for PIC18LF25K22-E/SP — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18LF25K22-I/SP | PIC18F25K22-E/SP | PIC18LF26K22-E/SP | PIC18LF24K22-E/SP | PIC18LF23K22-E/SP |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 28-SPDIP | 28-SPDIP (same) | 28-SPDIP (same) | 28-SPDIP (same) | 28-SPDIP (same) | 28-SPDIP (same) |
| Program Memory (Flash) | 32 KB | 32 KB | 32 KB | 64 KB | 16 KB | 8 KB |
| RAM | 1536 B | 1536 B | 1536 B | 3896 B | 768 B | 512 B |
| Operating Voltage Range | 1.8 V to 3.6 V (LF) | 1.8 V to 3.6 V (LF) | 2.3 V to 5.5 V (F) | 1.8 V to 3.6 V (LF) | 1.8 V to 3.6 V (LF) | 1.8 V to 3.6 V (LF) |
| Max CPU Clock | 48 MHz | 48 MHz | 64 MHz | 48 MHz | 48 MHz | 48 MHz |
| Temperature Grade | -40C to +125C (Extended) | -40C to +85C (Industrial) | -40C to +125C (Extended) | -40C to +125C (Extended) | -40C to +125C (Extended) | -40C to +125C (Extended) |
| Low-Power Technology | nanoWatt XLP | nanoWatt XLP | nanoWatt XLP | nanoWatt XLP | nanoWatt XLP | nanoWatt XLP |
| Architecture | 8-bit PIC18 modified Harvard | 8-bit PIC18 modified Harvard | 8-bit PIC18 modified Harvard | 8-bit PIC18 modified Harvard | 8-bit PIC18 modified Harvard | 8-bit PIC18 modified Harvard |
Key Differentiators
- Wider low-voltage operating range than F variant (vs PIC18F25K22-E/SP)
- 2x code density with drop-in footprint (vs PIC18LF24K22-E/SP)
- Pin-compatible upgrade path to 64 KB memory (vs PIC18LF26K22-E/SP)
Design Notes
Estimated: at 3.3V VDD and 48 MHz active CPU clock with all peripherals enabled, the PIC18LF25K22-E/SP typical active current is approximately 8-12 mA; at deep sleep with WDT disabled, sleep current falls below 100 nA. For battery-powered designs, minimize active duty cycle and use Sleep mode aggressively. Place a 100 nF decoupling capacitor as close as possible to each VDD pin (pins 7 and 20) and a bulk 10 uF tantalum or ceramic capacitor at the supply entry point. The wide VDD range 1.8V-3.6V eliminates the need for an LDO when using 2xAA batteries.
Place a 100 nF ceramic decoupling capacitor within 5 mm of each VDD/VSS pin pair (pins 7/8 and pins 19/20). Use a star-ground or solid ground plane to keep digital switching noise away from the analog ADC inputs (AN0-AN7). Keep crystal traces (OSC1 pin 9, OSC2 pin 10) short and symmetric to avoid stray capacitance that can shift the oscillator frequency. When using the internal HFINTOSC instead of an external resonator, leave OSC1/OSC2 as standard digital I/O and route the trace stubs short. The 28-SPDIP 0.1" pin pitch provides generous routing channels - take advantage of it.
Never leave MCLR floating - tie it to VDD through a 10 kohm resistor and add a 100 nF capacitor for debouncing, or configure it as RE3 digital I/O via the CONFIG3H register. Do not exceed 3.6V on VDD for the LF variant (4V will permanently damage the silicon). When migrating from PIC18F25K22 code, verify all configuration bits are correct for the LF voltage range - the F-version default configuration may enable peripherals not safe for 1.8V operation. Always verify the oscillator settings against datasheet Figure 4-1 before programming.
Compliance Information
RoHS and REACH compliant per Microchip product page. Lead-free and halogen-free packaging. NOT AEC-Q100 qualified; for safety-critical automotive applications use the -Q1 suffix variant (not available for this exact MPN).