PIC18F25K22-I/ML - 8-bit 64MHz MCU 32KB Flash 28-QFN | Microchip
MPN: PIC18F25K22-I/ML ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $4.36 | $4.36 |
| 10 | $3.93 | $39.30 |
| 100 | $3.49 | $349.00 |
| 500 | $3.05 | $1,525.00 |
| 1,000 | $2.74 | $2,740.00 |
PIC18F25K22-I/ML Overview
An 8-bit microcontroller (MCU) is a single-chip computer that integrates a CPU, non-volatile program memory, volatile data memory, and peripherals around an 8-bit data path. The PIC18 family sits at the high end of Microchip's 8-bit portfolio, sharing a common RISC instruction set with later PIC18FxxQ10 and PIC18FxxK42 series. Within the broader taxonomy, the PIC18F25K22 belongs to the hierarchy: microcontroller -> embedded controller -> semiconductor IC. Its nanoWatt XLP technology makes the device a logical choice when battery life dominates the design envelope.
Key differentiating features include 32 KB self-programmable Flash with 10K endurance cycles, 256 bytes of EEPROM for non-volatile parameter storage, a 64 MHz internal oscillator eliminating external crystals in many designs, two Enhanced Capture/Compare/PWM (ECCP) modules and one standard CCP module, plus a programmable HLVD (High/Low Voltage Detect) module for brown-out protection. The integrated mTouch capacitive touch sensing peripheral supports up to 28 channels for buttons, sliders, and proximity sensors without external components.
The architecture uses a modified Harvard structure with separate program and data paths, 16-bit instructions fetched from Flash on every cycle, and an 8-bit data ALU optimized for C compiler code generation. The 31-level hardware stack and 31 interrupt vectors enable deterministic real-time response. The wide 1.8 V to 5.5 V operating range with nanoWatt XLP sleep currents below 50 nA typical makes the device a strong fit for energy harvesting and battery-backed designs.
Typical applications include consumer white goods and human-machine interfaces using the mTouch peripheral, industrial sensor hubs with low-power sleep duty cycling, battery-powered IoT edge nodes, USB HID bridges when paired with an external USB transceiver, automotive interior lighting modules, and HVAC control boards. The automotive-grade -40C to +125C variant (PIC18F25K22-E/ML) extends deployment into underhood zones.
When designing with this device, reserve the first 32 KB of Flash for the bootloader and application; map the ICSP/ICD pins (PGC/PGD) to dedicated test points on the PCB so the device remains in-circuit programmable. Note that newer PIC18FxxQ10 family members offer updated peripherals and improved ADC, so design teams building new platforms should evaluate PIC18F25Q10 before committing to the PIC18F25K22.
This page synthesizes real-time distributor pricing, verified drop-in alternatives drawn from the same Microchip PIC18 family, and practical design notes not found in the bare manufacturer datasheet.
Drop-in alternatives for PIC18F25K22-I/ML — 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/ML (same form factor and footprint) — differing in ADC, Package, Timers, Program Memory (Flash), Comparators.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F25K22-E/ML
✅ Drop-In✓ In Stock
$2.34 / Unit
View Datasheet →PIC18F25K20-I/ML
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F25K20T-I/ML
✅ Drop-In✓ In Stock
$2.6 / Unit
View Datasheet →PIC18LF25K22-I/ML
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F25K80-I/ML
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F24K22-I/ML
✅ Drop-In✓ In Stock
$2.55 / Unit
View Datasheet →PIC18F25K22-I/ML Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC18 (8-bit RISC, modified Harvard) |
| CPU Speed | 64 MHz (16 MIPS) |
| Program Memory (Flash) | 32 KB |
| Data Memory (SRAM) | 1536 bytes |
| Data EEPROM | 256 bytes |
| Operating Voltage Range | 1.8 V to 5.5 V |
| Operating Temperature Range | -40 C to +85 C (Industrial, 'I' suffix) |
| Package | 28-QFN (ML) 6x6 mm |
| Mounting Type | Surface Mount |
| ADC | 10-bit, up to 17 channels |
| Comparators | 2 rail-to-rail analog comparators |
| Timers | 3 x 8-bit, 4 x 16-bit |
| Communication | 2x EUSART, 2x SPI, 2x I2C |
| PWM Channels | Standard PWM (no dedicated PWM module) |
| CCP/ECCP Modules | 1 CCP + 2 ECCP |
| Capacitive Touch (mTouch) | Up to 28 channels |
| HLVD Module | Programmable High/Low Voltage Detect |
| MSL Level | 3 (per JEDEC J-STD-020) |
| RoHS Status | Compliant |
PIC18F25K22-I/ML Pin Configuration
| Pin 1 | RA3/AN3/VREF+ — Digital I/O / Analog input 3 / ADC voltage reference positive |
| Pin 2 | RA4/T0CKI/C1OUT — Digital I/O / Timer0 clock input / Comparator 1 output |
| Pin 3 | RA5/AN4/SS1/HLVDIN/C2OUT — Digital I/O / Analog input 4 / SPI1 slave select / HLVD input / Comparator 2 output |
| Pin 4 | RA6/OSC2/CLKR — Digital I/O / Crystal oscillator output / Clock output |
| Pin 5 | RA7/OSC1/CLKIN — Digital I/O / Crystal oscillator input / External clock input |
| Pin 6 | VSS — Ground reference |
| Pin 7 | VDD — Positive supply (1.8 V to 5.5 V) |
| Pin 8 | RB0/AN12/INT0/FLT0/SRI — Digital I/O / Analog input 12 / External interrupt 0 / PWM fault input / SR latch input |
| Pin 9 | RB1/AN10/C1IN3-/P1C — Digital I/O / Analog input 10 / Comparator 1 inverting input / PWM output |
| Pin 10 | RB2/AN8/C2IN3-/P1B — Digital I/O / Analog input 8 / Comparator 2 inverting input / PWM output |
| Pin 11 | RB3/AN9/C2IN2-/P1A/CTED1 — Digital I/O / Analog input 9 / Comparator 2 input / PWM output / CTMU edge detect |
| Pin 12 | RB4/AN11/C2IN1-/P1D/SDA2 — Digital I/O / Analog input 11 / Comparator 2 input / PWM output / I2C2 data |
| Pin 13 | RB5/AN13/C1IN2-/C2IN1+/P2B/T3CKI — Digital I/O / Analog input 13 / Comparator input / PWM output / Timer3 clock |
| Pin 14 | RB6/PGC/ICSPCLK — Digital I/O / ICD/ICSP clock for programming |
| Pin 15 | RB7/PGD/ICSPDAT — Digital I/O / ICD/ICSP data for programming |
| Pin 16 | VSS — Ground reference (second pad) |
| Pin 17 | VDD — Positive supply (second pad) |
| Pin 18 | RC0/P2A/SOSCO/T1CKI — Digital I/O / PWM output / Secondary oscillator output / Timer1 clock |
| Pin 19 | RC1/SOSCI/CCP2 — Digital I/O / Secondary oscillator input / CCP2 capture/compare |
| Pin 20 | RC2/AN14/C1IN1+/P2D/CCP1 — Digital I/O / Analog input 14 / Comparator input / PWM output / CCP1 |
| Pin 21 | RC3/AN15/C1IN0-/SCL1 — Digital I/O / Analog input 15 / Comparator input / I2C1 clock |
| Pin 22 | RC4/AN16/C2IN0-/SDA1 — Digital I/O / Analog input 16 / Comparator input / I2C1 data |
| Pin 23 | RC5/AN17/C1IN0+/CCP3 — Digital I/O / Analog input 17 / Comparator input / CCP3 |
| Pin 24 | RC6/AN18/C2IN0+/TX1/CK1 — Digital I/O / Analog input 18 / Comparator input / EUSART1 transmit |
| Pin 25 | RC7/AN19/RX1/DT1 — Digital I/O / Analog input 19 / EUSART1 receive |
| Pin 26 | RE3/MCLR/VPP — Digital input / Master clear reset (active low) / Programming voltage |
| Pin 27 | RA0/AN0/C1IN0+/HLVDIN — Digital I/O / Analog input 0 / Comparator input / HLVD input |
| Pin 28 | RA1/AN1/C2IN0+/CTDIN — Digital I/O / Analog input 1 / Comparator input / CTMU digital input |
Typical Applications
PIC18F25K22-I/ML is suitable for 6 applications: Consumer White Goods (HMI with mTouch), Battery-Powered IoT Edge Nodes, Industrial Sensor Hubs and Data Loggers, Automotive Interior Lighting Modules, USB HID Bridges and Peripherals, HVAC Control Boards and Thermostats.
Consumer White Goods (HMI with mTouch)
The PIC18F25K22-I/ML is purpose-built for capacitive touch human-machine interfaces in washing machines, dishwashers, ovens, and induction cooktops. Its mTouch peripheral supports up to 28 channels using the QFN package's exposed pins, eliminating the cost of a dedicated touch IC while keeping BOM under 25 components. The 32 KB Flash fits a state-machine UI plus a self-diagnostic bootloader. nanoWatt XLP sleep below 50 nA typical lets a button-press wake cycle run for years on two AA cells when the appliance sits idle.
Recommended
Battery-Powered IoT Edge Nodes
The PIC18F25K22-I/ML excels in low-duty-cycle IoT endpoints such as soil-moisture probes, asset trackers, and BLE beacons. Its nanoWatt XLP technology delivers sub-50 nA sleep current with real-time-clock wake from Timer1, while the integrated 64 MHz oscillator supports 16 MIPS for protocol encryption when active. The 1.8 V to 5.5 V rail tolerates lithium-thionyl-chloride cells down to 2.0 V, eliminating boost converters and saving 4 mm^2 of PCB. Two EUSART and two I2C peripherals connect sensors and radios on a single bus.
Recommended
Industrial Sensor Hubs and Data Loggers
The PIC18F25K22-I/ML serves as the central hub in industrial sensor aggregation nodes, taking 4-20 mA analog inputs through its 17-channel 10-bit ADC and forwarding readings over RS-485 via the EUSART. The 256-byte EEPROM stores calibration tables that survive power loss without external FRAM, while the programmable HLVD module triggers orderly shutdown before brown-out corrupts logs. With 1536 bytes SRAM the MCU buffers several seconds of asynchronous samples before transmitting, ideal for OPC UA over UART gateways and HVAC zone controllers.
Recommended
Automotive Interior Lighting Modules
In cabin RGB ambient lighting and door-panel indicator strips, the PIC18F25K22-I/ML drives MOSFETs through its two ECCP modules for smooth PWM dimming. The CCP/ECCP block supports hardware fault shutdown within 1 instruction cycle, isolating an LED short without software intervention. Its industrial temperature grade (-40 C to +85 C) handles cabin climate swings; for underhood or engine-bay lighting, the PIC18F25K22-E/ML (-40 C to +125 C) variant is the drop-in replacement. The small 6x6 mm QFN footprint fits behind switch bezels where SOIC-28 cannot.
Recommended
USB HID Bridges and Peripherals
The PIC18F25K22-I/ML is widely used in low-cost USB HID peripherals including custom keyboards, presenters, and HID-class data loggers when paired with an external USB3300 or simple UART-USB bridge IC. The 64 MHz CPU executes USB polling routines well within the 1 ms frame budget while leaving cycles for HID report parsing. With 32 KB Flash, developers fit CDC + HID composite stacks plus vendor-specific report handlers in a single image. The QFN package exposes all necessary I/O for direct USB D+/D- pin mapping on PCB.
Recommended
HVAC Control Boards and Thermostats
The PIC18F25K22-I/ML is a strong fit for low-cost HVAC control boards driving relays, triacs, and 7-segment displays. Its two ECCP modules generate the zero-cross timing needed for triac phase-angle control of compressor and fan loads, while the 17-channel ADC reads thermistor strings, pressure sensors, and current shunts. The integrated EEPROM stores user schedules that persist across power cycles without external memory. nanoWatt XLP sleep below 50 nA lets the board sit in standby between user interactions without draining backup supercaps.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F25K22-I/ML — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F25K22-E/ML | PIC18F25K20-I/ML | PIC18LF25K22-I/ML | PIC18F25K80-I/ML | PIC18F24K22-I/ML |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 28-QFN (ML) 6x6 mm | 28-QFN (ML) 6x6 mm - same | 28-QFN (ML) 6x6 mm - same | 28-QFN (ML) 6x6 mm - same | 28-QFN (ML) 6x6 mm - same | 28-QFN (ML) 6x6 mm - same |
| Program Memory (Flash) | 32 KB | 32 KB | 32 KB | 32 KB | 32 KB | 16 KB |
| SRAM | 1536 bytes | 1536 bytes | 1536 bytes | 1536 bytes | 1536 bytes | 1536 bytes |
| 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 Temperature | -40 C to +85 C | -40 C to +125 C | -40 C to +85 C | -40 C to +85 C | -40 C to +85 C | -40 C to +85 C |
| ADC | 10-bit, 17 ch | 10-bit, 17 ch | 10-bit, 17 ch | 10-bit, 17 ch | 10-bit, 8 ch | 10-bit, 17 ch |
| mTouch Cap Touch | Up to 28 channels | Up to 28 channels | Not supported | Up to 28 channels | Not supported | Up to 28 channels |
| CAN Peripheral | No | No | No | No | Yes (CAN 2.0B) | No |
| Lifecycle Status | Active, newer Q10 available | Active | Active, mature | Active | Active | Active |
Key Differentiators
- mTouch capacitive touch hardware integrated (vs PIC18F25K20-I/ML)
- Extended temperature grade option (vs PIC18F25K22-I/ML (this part))
- CAN peripheral for fieldbus (vs PIC18F25K80-I/ML)
- Lower-voltage optimized variant (vs PIC18LF25K22-I/ML)
Design Notes
Estimated: nanoWatt XLP sleep current on PIC18F25K22-I/ML is typically below 50 nA in Sleep mode with WDT disabled and the secondary oscillator running. For battery-budget calculations, multiply sleep current by idle duty cycle and add active current weighted by CPU usage; remember that VDD rise from 1.8 V to 5.5 V does not linearly scale leakage, so measure at your actual rail. Keep AVDD and AVSS pins tied to VDD/VSS within 10 mm to minimize ADC reference drift during sleep wake events.
The 28-QFN (ML) 6x6 mm package uses an exposed thermal pad that MUST be soldered to a copper pour of at least 1 square inch for thermal relief and electrical grounding. Place a 0.1 uF ceramic decoupling capacitor within 3 mm of every VDD pin, plus a bulk 10 uF tantalum near the ICSP/PGD header. Keep the PGC/PGD traces short (under 50 mm) and route them away from switching nodes to avoid programming glitches during in-circuit programming.
Common pitfalls: (1) Forgetting to configure the CONFIG3L register to disable the low-voltage programming fuse when the application runs below 2.0 V, causing the device to enter LVP reset state. (2) Not populating the MCLR pull-up resistor (typically 10 kOhm) - leaving MCLR floating causes spurious resets on QFN boards. (3) Using ECCP auto-shutdown without checking the dedicated fault input polarity in CCPTMRS - this silently disables PWM until next reset. Always validate HLVD trip points in hardware with a power supply sweep.
For mTouch capacitive sensing on K22, route the touch sensor traces as short and narrow as possible (under 80 mm, 0.2 mm width), keep them on the top layer only, and surround them with a hatched ground guard ring connected to analog ground. Place a 100 nF X7R bypass cap within 5 mm of every mTouch pin to filter high-frequency noise. Refer to Microchip application note AN1258 for the complete CTMU/mTouch layout checklist.
Compliance Information
RoHS and lead-free per Microchip product page. AEC-Q100 qualification is not applicable to the -I industrial grade variant; the -E extended-temperature variant is not AEC-Q100 qualified either - check Microchip's automotive-grade PIC18FxxQ10 family for true automotive-qualified alternatives. Halogen-free status not explicitly listed in the provided web data.