PIC18F25K22-E/SP - 8-bit 48MHz 32KB Flash XLP MCU | Microchip
MPN: PIC18F25K22-E/SP ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $4.32 | $4.32 |
| 10 | $3.89 | $38.90 |
| 100 | $3.21 | $321.00 |
| 500 | $2.74 | $1,370.00 |
| 1,000 | $2.38 | $2,380.00 |
PIC18F25K22-E/SP Overview
A microcontroller (MCU) is a single-chip computer that integrates a CPU core, volatile and non-volatile memory, and programmable peripherals on one silicon die. Within the broader taxonomy of semiconductors, MCUs sit below microprocessors (which require external memory) and above basic logic ICs. The PIC18F family specifically represents Microchip's enhanced 8-bit architecture with 16-bit instructions, hardware multiply, and C-friendly Harvard memory layout, bridging classical 8-bit simplicity with modern peripheral integration.
Key features of the PIC18F25K22 family include: 32 KB self-programmable Flash with 1 KB EEPROM data storage, an internal 16 MHz oscillator (configurable via PLL up to 64 MHz), 10-bit and 12-bit ADC modules, up to five timer modules, and CTMU support for capacitive touch sensing. The XLP nanoWatt technology typically enables sleep currents below 50 nA, making the part suitable for battery-powered sensor nodes and remote controls. The on-chip ICSP (In-Circuit Serial Programming) and ICD (In-Circuit Debug) interfaces allow production programming and field firmware upgrades without external bootloaders.
The PIC18F25K22 is the lower-pin-count variant of the 28/40/44-pin PIC18F K22 family; it shares its register set and peripheral IP with PIC18F23K22 (28-pin, 8 KB Flash) and PIC18F46K22 (40/44-pin, 32 KB/64 KB Flash variants). This shared silicon platform simplifies firmware migration between packages and pin counts. Compared to older PIC18F45K20 devices, the K22 generation adds 12-bit ADC, CTMU, and improved low-power sleep modes.
Typical applications include industrial sensor interfaces, HVAC controls, low-power IoT edge nodes, USB-to-UART bridges (when paired with PIC18F25K50 for USB), home appliance control boards, and automotive body modules. The 28-pin SPDIP package makes the part ideal for prototyping, breadboard work, and educational use where a DIP form factor is preferred over surface-mount variants. The development ecosystem includes MPLAB X IDE, MPLAB XC8 compiler, and the MPLAB Snap/PICkit programmers.
When designing with this device, allocate the ICSP/PGD/PGC pins carefully to avoid conflicting with user I/O. Place a 100 nF decoupling capacitor as close as possible to each VDD pin, and a bulk 10 uF capacitor on the supply rail. The -E/SP temperature grade denotes -40C to +125C operation; for commercial-temperature applications the -I/SP variant may be substituted at lower cost with identical pinout.
This page synthesizes real-time distributor pricing, verified drop-in alternatives within the same 28-pin SPDIP footprint, and practical design notes that complement (not duplicate) the Microchip datasheet.
Drop-in alternatives for PIC18F25K22-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 PIC18F25K22-E/SP (same form factor and footprint) — differing in ADC, Package, Timers, Core Architecture, Internal Oscillator.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F25K22-I/SP
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F23K22-I/SP
✅ Drop-In✓ In Stock
$1.42 / Unit
View Datasheet →PIC18F25K50-I/SP
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F25Q10-I/SP
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F25K20-E/SP
✅ Drop-In✓ In Stock
$2.21 / Unit
View Datasheet →PIC18F2520-I/SP
✅ Drop-In✓ In Stock
$3.33 / Unit
View Datasheet →PIC18F25K22-E/SP Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC18 (8-bit Harvard, 16-bit instructions) |
| Maximum CPU Clock | 48 MHz (64 MHz with PLL on internal oscillator) |
| Program Flash Memory | 32 KB (16K x 16 words) |
| SRAM | 1536 bytes |
| EEPROM Data Memory | 1 KB |
| I/O Pins | 25 |
| ADC | 12-bit, up to 19 channels |
| Timer Modules | Five (Timer0/1/2/3/4) |
| Capture/Compare/PWM | 2 CCP + 1 ECCP module |
| UART Modules | 2 Enhanced USART |
| SPI / I2C Modules | 2 MSSP (SPI + I2C) |
| Supply Voltage | 1.8 V to 5.5 V |
| Operating Temperature | -40C to +125C (E grade, extended) |
| Package | 28-pin SPDIP (Skinny Plastic DIP) |
| Low-Power Technology | nanoWatt XLP |
| Programming Interface | ICSP (In-Circuit Serial Programming) + ICD |
| Mounting Type | Through-Hole (DIP) |
| MSL Level | 1 (unlimited floor life) |
| RoHS Status | Compliant |
| CTMU (Capacitive Touch) | Yes |
PIC18F25K22-E/SP Pin Configuration
| Pin 1 | MCLR/RE3 — Master Clear (reset) input or digital input RE3 |
| Pin 2 | RA0 — PORTA bit 0 (analog AN0) |
| Pin 3 | RA1 — PORTA bit 1 (analog AN1) |
| Pin 4 | RA2 — PORTA bit 2 (analog AN2) |
| Pin 5 | RA3 — PORTA bit 3 (analog AN3) |
| Pin 6 | RA4 — PORTA bit 4 (analog AN4) |
| Pin 7 | RA5 — PORTA bit 5 (analog AN5) |
| Pin 8 | RA6 — PORTA bit 6 (analog AN6, OSC2) |
| Pin 9 | RA7 — PORTA bit 7 (analog AN7, OSC1) |
| Pin 10 | VSS — Ground reference |
| Pin 11 | VDD — Positive supply voltage (1.8 V to 5.5 V) |
| Pin 12 | VSS — Ground reference |
| Pin 13 | OSC1/CLKI/RA7 — External clock input or crystal pin 1 |
| Pin 14 | OSC2/CLKO/RA6 — Crystal pin 2 or clock output |
| Pin 15 | RC0 — PORTC bit 0 |
| Pin 16 | RC1 — PORTC bit 1 |
| Pin 17 | RC2 — PORTC bit 2 |
| Pin 18 | RC3 — PORTC bit 3 |
| Pin 19 | RD0 — PORTD bit 0 |
| Pin 20 | RD1 — PORTD bit 1 |
| Pin 21 | RD2 — PORTD bit 2 |
| Pin 22 | RD3 — PORTD bit 3 |
| Pin 23 | RC4 — PORTC bit 4 |
| Pin 24 | RC5 — PORTC bit 5 |
| Pin 25 | RC6 — PORTC bit 6 |
| Pin 26 | RC7 — PORTC bit 7 |
| Pin 27 | RB7/PGD — PORTB bit 7 / ICSP data |
| Pin 28 | RB6/PGC — PORTB bit 6 / ICSP clock |
Typical Applications
PIC18F25K22-E/SP is suitable for 7 applications: Low-Power IoT Sensor Node, Industrial HVAC Controller, Home Appliance Control Board, Automotive Body Module, Educational Microcontroller Platform, USB-to-UART Bridge, Capacitive Touch User Interface.
Low-Power IoT Sensor Node
The PIC18F25K22-E/SP is well matched to battery-powered IoT sensor nodes because its nanoWatt XLP technology delivers typical sleep currents of 20-50 nA with RTCC and WDT active, while the 12-bit ADC provides up to 19 channels for multi-sensor acquisition. The 1536 bytes of SRAM buffer local sensor data and 1 KB of EEPROM stores calibration parameters without external memory. At 48 MHz the CPU can run FFT or filtering on raw samples in real time. Power budget example: with a 3 V CR2032 (220 mAh) and average current of 10 uA including wake cycles, the node can run for over 2 years on a single cell. The 28-pin SPDIP package simplifies prototyping with through-hole sensors and breakout boards.
Recommended
Industrial HVAC Controller
The PIC18F25K22-E/SP suits HVAC control boards where the -40C to +125C extended temperature grade and 5.5 V supply tolerance handle harsh mechanical-room environments. Two Enhanced USART modules let the controller communicate simultaneously with a Modbus master (RS-485 transceiver) and an internal expansion module. Two MSSP ports connect to SPI-based LCD displays and I2C-based EEPROM or sensor arrays, while the 12-bit ADC reads thermistor/resistive temperature sensors with sufficient resolution for setpoint control. The 32 KB Flash supports full Modbus, scheduling, and PID firmware in C without needing external memory. The SPDIP-28 package simplifies field-replaceable maintenance.
Recommended
Home Appliance Control Board
The PIC18F25K22-E/SP is commonly deployed in washing machines, dishwashers, and small kitchen appliances where its 12-bit ADC reads motor current and temperature sensors accurately, and the 5 CCP/PWM channels drive triac-controlled heating elements, pumps, and solenoid valves. The 32 KB Flash holds state-machine firmware plus UI libraries for button and LED matrix handling. NanoWatt XLP sleep keeps standby power well below 0.5 W for energy-star compliance. The -E grade (-40C to +125C) handles appliance thermal stress, and the SPDIP package eases service and rework in factory and field.
Recommended
Automotive Body Module
The PIC18F25K22-E/SP -40C to +125C extended grade makes it suitable for non-safety automotive body electronics such as interior lighting controllers, seat-position memory, and climate panel sub-modules. Two Enhanced USART modules support LIN bus communication via an external LIN transceiver, while the 12-bit ADC handles potentiometer inputs for trim and switch positions. The 32 KB Flash accommodates CAN/LIN stack and feature firmware. NanoWatt XLP supports low quiescent current when the vehicle is parked, helping meet the <100 uA body-control quiescent targets that OEMs require.
Recommended
Educational Microcontroller Platform
The PIC18F25K22-E/SP is widely used in universities and maker training because the 28-pin SPDIP form factor fits breadboards and 0.1-inch perfboard, allowing students to build real circuits without soldering surface-mount parts. The 32 KB Flash accommodates full XC8-based firmware projects, while the 1536 bytes of SRAM and 1 KB EEPROM support meaningful data-acquisition labs. Native ICSP and ICD let instructors program and debug the part in-circuit without removing it from the breadboard. MPLAB X IDE and the free XC8 compiler provide a complete free toolchain, and Microchip's academic discount programs lower per-unit cost for classroom kits.
Recommended
USB-to-UART Bridge
Although the PIC18F25K22 itself lacks USB, it can serve as the protocol-conversion companion next to a PIC18F25K50, or in designs that already have a USB-UART bridge chip and need a smart processor for command interpretation. The two Enhanced USARTs allow simultaneous debug UART and application UART (e.g., RS-485), and the 12-bit ADC reads upstream supply or battery telemetry. The 32 KB Flash hosts command parsers and configuration tables. Using the SPDIP package allows through-hole construction of industrial gateway modules where field serviceability matters more than board density.
Recommended
Capacitive Touch User Interface
The PIC18F25K22-E/SP integrates the CTMU (Charge Time Measurement Unit), which enables hardware-based capacitive touch sensing on up to 25 GPIO pins without external touch controllers. The 12-bit ADC and CTMU together support sliders, wheels, and matrix keypads for white-goods and consumer-electronics front panels. 32 KB Flash stores touch libraries and the UI state machine, and nanoWatt XLP sleep keeps battery-operated remote controls below 1 uA quiescent current. The -E grade supports outdoor and appliance thermal environments where capacitive sensors are increasingly replacing mechanical buttons.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F25K22-E/SP — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F25K22-I/SP | PIC18F23K22-I/SP | PIC18F25K50-I/SP | PIC18F25Q10-I/SP | PIC18F25K20-E/SP |
|---|---|---|---|---|---|---|
| Package | SPDIP-28 | SPDIP-28 - same | SPDIP-28 - same | SPDIP-28 - same | SPDIP-28 - same | SPDIP-28 - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 32 KB | 32 KB | 8 KB | 32 KB | 32 KB | 32 KB |
| SRAM | 1536 bytes | 1536 bytes | 1024 bytes | 2048 bytes | 2048 bytes | 1536 bytes |
| Maximum CPU Clock | 48 MHz (64 MHz w/ PLL) | 48 MHz (64 MHz w/ PLL) | 48 MHz (64 MHz w/ PLL) | 48 MHz | 64 MHz | 64 MHz |
| ADC Resolution | 12-bit | 12-bit | 12-bit | 10-bit | 12-bit | 10-bit |
| USB Support | No | No | No | Yes (USB 2.0 FS) | No | No |
| Temperature Range | -40C to +125C (E grade) | -40C to +85C (I grade) | -40C to +85C (I grade) | -40C to +85C (I grade) | -40C to +85C (I grade) | -40C to +125C (E grade) |
| nanoWatt XLP Sleep Current | ~20-50 nA typical | ~20-50 nA typical | ~20-50 nA typical | ~20-50 nA typical | ~10-30 nA typical (improved) | ~50-100 nA typical |
Key Differentiators
- Higher ADC resolution (12-bit) than the older K20 family (10-bit) (vs PIC18F25K20-E/SP)
- Extended -40C to +125C temperature grade for harsh environments (vs PIC18F25K22-I/SP)
- Lower sleep current and modern peripherals vs older 2520 generation (vs PIC18F2520-I/SP)
- No USB peripheral - keep the K22 pure for sensor/control tasks (vs PIC18F25K50-I/SP)
Design Notes
Place a 100 nF ceramic decoupling capacitor as close as possible to each VDD pin (pins 11 and 32 on SPDIP-28). Add a bulk 10 uF tantalum or aluminum polymer capacitor on the main supply rail. For battery-powered designs using nanoWatt XLP sleep modes, ensure the voltage regulator's quiescent current is below 1 uA (e.g., MCP1700 with 1.6 uA Iq). Avoid switching regulators unless their Iq is comparable, otherwise the regulator Iq dominates the sleep budget of the entire node.
Reserve the ICSP pins (RB6/PGC and RB7/PGD) as no-connect or use them only with care - on the PIC18F25K22 these pins are shared with PORTB and are used by ICD. Add test points or a 2x3 ICSP header footprint for production programming even if not used in the final application. The MCLR pin (1) requires a 10 kohm pull-up to VDD; do not leave it floating, or the device will randomly reset. Use a 100 nF cap on MCLR only if in-circuit debugging is needed (MPLAB ICD adds a reset capacitor externally).
For crystal oscillator operation, keep traces from OSC1/OSC2 to the crystal short (under 10 mm), surround them with a ground pour, and place load capacitors (typically 15-33 pF depending on crystal) close to the MCU pins. When using the internal 16 MHz HFINTOSC, the device can be built without external crystal components - this reduces BOM cost and PCB area, but at the expense of absolute frequency accuracy (+/- 2% over temperature). For UART or USB timing accuracy, an external crystal is recommended.
Do not exceed 5.5 V on any pin - the PIC18F25K22 is NOT 5 V tolerant on analog/digital pins above its absolute maximum. For level translation to 3.3 V peripherals, use proper level shifters or rely on the device's 3.3 V operation. The configuration bits (FOSC, WDT, LVP, etc.) must be set correctly or the device will not start; use MPLAB X's configuration bits UI to generate valid values. Forgetting to disable the LVP (Low-Voltage Programming) bit can cause unexpected programming-mode entry during in-circuit reset events.
Compliance Information
RoHS compliant per Microchip product page. -E temperature grade is industrial-grade (-40C to +125C) but is not AEC-Q100 qualified; for AEC-Q100 automotive applications consult Microchip's automotive-grade PIC18F portfolio separately.