PIC18F25K22-I/SP - 8-Bit 64MHz 32KB Flash MCU | Microchip
MPN: PIC18F25K22-I/SP ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $4.1 | $4.10 |
| 10 | $3.65 | $36.50 |
| 100 | $3.05 | $305.00 |
| 500 | $2.74 | $1,370.00 |
| 1,000 | $2.45 | $2,450.00 |
PIC18F25K22-I/SP Overview
A microcontroller (MCU) is a single-chip computer containing a CPU core, program and data memory, and integrated peripherals such as ADCs, timers, and communication interfaces. The PIC18 family is Microchip's 8-bit RISC architecture optimized for C compiler efficiency and deterministic interrupt response, sitting within the broader 8-bit MCU hierarchy alongside AVR and 8051 derivatives. The "K22" sub-family introduces nanoWatt XLP technology for battery-powered designs and adds 12-bit ADC accuracy, more PWM channels, and richer connectivity compared to legacy PIC18F devices.
Key features include 25 I/O pins with individual pull-up control, CTMU for capacitive touch, mTouch sensing, 4 hardware timers, and an on-chip 32 kHz RTCC. The 64 MHz internal oscillator (HFINTOSC) eliminates external crystals in many applications, while nanoWatt XLP delivers typical sleep currents under 100 nA with RTC retention, suiting coin-cell and energy-harvesting systems.
The PIC18F25K22 is fabricated on Microchip's high-performance CMOS process with a 16-bit instruction word and 8-bit data path, supporting linear addressing to 64 KB program space and 4 KB data space. Hardware multiply, multi-rail interrupt vectoring, and a configurable instruction cache accelerate C-compiled firmware compared to legacy PIC16 designs.
Typical applications include low-power remote sensors, handheld instrumentation, automotive body controllers (non-AEC-Q100 segments), HVAC fan controls, and small appliances with touch-button user interfaces. The 28-SPDIP footprint is well-suited to hobbyist, prototype, and through-hole assembly workflows where hand-soldering and socketed programming are preferred over SMD reflow.
When designing with this MCU, allocate at least one UART for debug logging (e.g., 115200 baud over PPS-mapped pins), and reserve the C1/4 (CCP4) channel for backlight or motor PWM to free the ECCP channels for primary motor/LED control. The 28-SPDIP package forces all signals into 25 usable I/O, so de-muxing logic to external shift registers may be required when more pins are needed.
This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found in the manufacturer datasheet. XAIPART does not have access to the full 492-page datasheet text via the query above, so several parameters are explicitly flagged as to preserve data integrity.
Drop-in alternatives for PIC18F25K22-I/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-I/SP (same form factor and footprint) — differing in ADC, Package, Timers, Program Memory (Flash), Data EEPROM.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F26K22-I/SP
✅ Drop-In✓ In Stock
$2.55 / Unit
View Datasheet →PIC18F24K22-I/SP
✅ Drop-In✓ In Stock
$1.92 / Unit
View Datasheet →PIC18F45K22-I/SP
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F25Q10-I/SP
✅ Drop-In✓ In Stock
$2.71 / Unit
View Datasheet →PIC18LF25K22-I/SP
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F25K22-I/SP Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC 8-bit RISC |
| Family | PIC18F K-series (PIC18F2XK22) |
| Program Memory (Flash) | 32 KB (16K x 16) |
| SRAM | 1536 bytes |
| EEPROM | 256 bytes |
| Maximum CPU Speed | 64 MHz (16 MIPS) |
| Operating Voltage | 1.8 V to 5.5 V |
| Package | 28-pin SPDIP (SP) |
| Pin Count | 28 |
| I/O Pins | 25 |
| ADC | 12-bit, up to 19 channels (per datasheet family) |
| Timers | 4 (Timer0/1/2/3) + 2 ECCP |
| Communication Interfaces | 2x EUSART, 2x MSSP (SPI/I2C) |
| Low-Power Technology | nanoWatt XLP |
| Operating Temperature | -40 C to +85 C (Industrial, "-I") |
| Mounting Type | Through-Hole (DIP) |
| RoHS Status | Compliant (per DigiKey listing) |
PIC18F25K22-I/SP Pin Configuration
| Pin 1 | MCLR/VPP/RE3 — Master Clear (reset) input / Programming voltage / Port E bit 3 |
| Pin 2 | RA0/AN0 — Port A bit 0 / Analog input 0 |
| Pin 3 | RA1/AN1 — Port A bit 1 / Analog input 1 |
| Pin 4 | RA2/AN2 — Port A bit 2 / Analog input 2 |
| Pin 5 | RA3/AN3 — Port A bit 3 / Analog input 3 / Vref+ |
| Pin 6 | RA4/T0CKI — Port A bit 4 / Timer0 clock input |
| Pin 7 | RA5/AN4 — Port A bit 5 / Analog input 4 |
| Pin 8 | VSS — Ground reference |
| Pin 9 | RA7/OSC1 — Port A bit 7 / Oscillator input |
| Pin 10 | RA6/OSC2 — Port A bit 6 / Oscillator output |
| Pin 11 | RC0/SOSCO — Port C bit 0 / SOSC oscillator output |
| Pin 12 | RC1/SOSCI — Port C bit 1 / SOSC oscillator input |
| Pin 13 | RC2/CCP1 — Port C bit 2 / CCP1 PWM output |
| Pin 14 | RC3/SCL — Port C bit 3 / I2C clock (MSSP) |
| Pin 15 | RC4/SDA — Port C bit 4 / I2C data (MSSP) |
| Pin 16 | RC5/SDO — Port C bit 5 / SPI data out |
| Pin 17 | RC6/TX/CK — Port C bit 6 / EUSART TX / clock |
| Pin 18 | RC7/RX/DT — Port C bit 7 / EUSART RX / data |
| Pin 19 | VSS — Ground reference |
| Pin 20 | VDD — Positive supply voltage |
| Pin 21 | RB0/AN12/INT0 — Port B bit 0 / Analog 12 / External interrupt 0 |
| Pin 22 | RB1/AN10/INT1 — Port B bit 1 / Analog 10 / External interrupt 1 |
| Pin 23 | RB2/AN8 — Port B bit 2 / Analog 8 |
| Pin 24 | RB3/AN9/CCP2 — Port B bit 3 / Analog 9 / CCP2 |
| Pin 25 | RB4/AN11 — Port B bit 4 / Analog 11 |
| Pin 26 | RB5/AN13 — Port B bit 5 / Analog 13 |
| Pin 27 | RB6/PGC — Port B bit 6 / ICSP clock |
| Pin 28 | RB7/PGD — Port B bit 7 / ICSP data |
Typical Applications
PIC18F25K22-I/SP is suitable for 6 applications: Battery-Powered Sensor Node, Handheld Test & Measurement Instrument, HVAC Fan Speed Controller, Touch-Button User Interface Panel, Industrial Sensor Transmitter (4-20 mA Loop-Powered), Automotive Body Controller (Non-Safety Segment).
Battery-Powered Sensor Node
The PIC18F25K22-I/SP is well-suited to battery-powered wireless sensor nodes thanks to its nanoWatt XLP technology with sub-100 nA sleep current and on-board RTCC. Operating from a 3 V coin cell, the device can wake periodically via WDT or external trigger, sample a sensor via its 12-bit ADC, transmit over one of the two EUSART modules to a sub-GHz radio, and return to sleep - extending battery life to multi-year horizons. With 32 KB Flash, the device can host a Zigbee/LoRaWAN-style stack or simple Modbus RTU handler without external memory. The 28-SPDIP footprint makes prototype replacement trivial on the bench without hot-air rework.
Recommended
Handheld Test & Measurement Instrument
For portable multimeters, insulation testers, and clamp meters, the PIC18F25K22-I/SP delivers 16 MIPS throughput to drive a graphical LCD via SPI, scan a 4-wire resistive touch panel through the CTMU, and log to external EEPROM over I2C. The 12-bit ADC with computation automates averaging and oversampling to suppress mains-frequency noise. Two EUSARTs enable simultaneous USB-to-UART bridge and isolated RS-485 probe comms. The industrial -40 C to +85 C temperature range covers outdoor and automotive workshop environments.
Recommended
HVAC Fan Speed Controller
The PIC18F25K22-I/SP integrates two ECCP modules with complementary PWM outputs and dead-band control - ideal for 3-phase or single-phase brushless DC fan drives. The 32 KB Flash accommodates sensorless back-EMF commutation tables and PID control loops, while the 1536-byte SRAM is sufficient for runtime state buffers. Hardware-based input capture measures tachometer pulses for closed-loop RPM control. The industrial temperature range handles attic installations. 25 I/O pins support keypad input, multi-relay outputs, and a triac-fired AC line interface with zero-cross detection.
Recommended
Touch-Button User Interface Panel
The PIC18F25K22-I/SP integrates the CTMU (Charge Time Measurement Unit) and mTouch firmware library for capacitive touch sensing on up to 16 electrodes via the ADC channels, eliminating mechanical buttons and overlays. The 64 MHz FOSC supports rapid scanning of all touch channels within a sub-10 ms response window while remaining free for UI state machine and LED PWM animation. Hardware EEPROM stores calibration and backlight preferences. The 28-SPDIP through-hole package simplifies bench rework during UI panel prototyping with the touchscreen-driven piezo buzzer.
Recommended
Industrial Sensor Transmitter (4-20 mA Loop-Powered)
The PIC18F25K22-I/SP serves as the digital heart of a 4-20 mA loop-powered sensor transmitter, reading a bridge or RTD through the 12-bit ADC, computing linearization in firmware, and modulating loop current via a PWM-driven analog output stage. The nanoWatt XLP sleep currents under 100 nA and 1.8 V minimum VDD enable operation from the 4 mA loop budget without exceeding the transmitter's compliance voltage. 256-byte EEPROM stores calibration coefficients and HART-style tag data. Industrial temperature range matches IEC 60068 requirements for process-plant deployment.
Recommended
Automotive Body Controller (Non-Safety Segment)
While not AEC-Q100 qualified, the PIC18F25K22-I/SP is widely used in non-safety automotive body applications like interior lighting, mirror adjust, accessory power timers, and aftermarket alarm systems. Two EUSARTs support LIN bus via software or K-line diagnostics for legacy vehicle platforms. The 32 KB Flash hosts LIN 1.3/L4I slave stacks, headlight delay, and accessory power-down sequencing. PWM channels drive LED fade and motor speed for seat/window subsystems. The 28-SPDIP package suits low-volume specialty-vehicle and aftermarket assembly lines with hand-soldering workflows.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F25K22-I/SP — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F26K22-I/SP | PIC18F24K22-I/SP | PIC18F45K22-I/SP | PIC18F25Q10-I/SP | PIC18LF25K22-I/SP |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 28-SPDIP (SP) | 28-SPDIP (SP) - same | 28-SPDIP (SP) - same | 40-PDIP (P) - not pin-compatible on 28-pin footprint | 28-SPDIP (SP) - same | 28-SPDIP (SP) - same |
| Maximum CPU Speed | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) |
| Operating Voltage | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 3.6 V (low-voltage) |
| I/O Pins | 25 | 25 | 25 | 36 (40-pin package) | 25 | 25 |
| ADC Resolution | 12-bit | 12-bit | 12-bit | 12-bit | 14-bit (improved) | 12-bit |
| Low-Power Technology | nanoWatt XLP | nanoWatt XLP | nanoWatt XLP | nanoWatt XLP | nanoWatt XLP | nanoWatt XLP |
Key Differentiators
- 32 KB Flash on the same 28-SPDIP footprint as the 8 KB variant (vs PIC18F24K22-I/SP)
- Lower cost at scale vs PIC18F26K22 for memory-light designs (vs PIC18F26K22-I/SP)
- Established PIC18 K22 ecosystem vs newer Q10 CIP migration (vs PIC18F25Q10-I/SP)
Design Notes
Estimated: At VDD=3.3 V, the PIC18F25K22-I/SP draws approximately 7-15 mA active at 64 MHz (per datasheet typical curves, exact figure [DATA_NEEDED]). In Sleep mode with RTCC running from SOSC, the device drops below 1 uA - enabling coin-cell designs. Decouple VDD with a 100 nF ceramic as close to pins 19/20 as practical, plus a bulk 10 uF if the analog section is active. nanoWatt XLP modes (RCPRI among typical powers) let Idle gate the CPU while keeping peripherals running - useful for low-duty-cycle sensor sampling.
For the 28-SPDIP package, route ICSP signals (MCLR/PGD/PGC = pins 1/27/28) directly to a 6-pin ICSP header with no series resistors on PGD/PGC; add a 10 kohm pull-up on MCLR to VDD. Keep the crystal traces (pins 9-10) short and guard them with a VSS guard trace when used. Place 100 nF decoupling within 5 mm of VDD/VSS pins. For analog pins, isolate the analog ground return from noisy digital ground with a star connection at the VSS pin.
Do not forget the configuration bits (CONFIG1H/CONFIG2L etc.): the default unprogrammed configuration leaves the oscillator in EXTRC mode and MCLR disabled, which can brick the device on first power-up. Always set FOSC=INTIO67 (x86) for internal oscillator, MCLR=ENABLED for hardware reset, and WDT=OFF unless used. Also note that PIC18F25K22 and PIC18LF25K22 differ only in voltage range - swapping them in a 5 V design can damage the LF variant.
Compliance Information
RoHS compliance confirmed via DigiKey listing. Not AEC-Q100 qualified - this part is suitable for non-automotive safety segments only. Industrial temperature range -40C to +85C. Lead-free finish standard.