PIC18F25K22-E/SO - 8-bit MCU, 32KB Flash, 28-SOIC | Microchip
MPN: PIC18F25K22-E/SO ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $5.27 | $5.27 |
| 10 | $4.74 | $47.40 |
| 100 | $3.96 | $396.00 |
| 500 | $3.42 | $1,710.00 |
| 1,000 | $2.96 | $2,960.00 |
PIC18F25K22-E/SO Overview
An 8-bit microcontroller (MCU) is a single-chip computer that integrates a CPU, program memory, data memory, and peripherals on one silicon die. MCUs sit in the embedded systems hierarchy below microprocessors and are the workhorse of low-power, deterministic control applications where a full operating system is unnecessary. The PIC18F family extends the legacy PIC16 architecture with a 16-bit program word, linear memory map, hardware multiplier, and C-friendly instruction set, while staying within the 8-bit data path for cost and code-density efficiency.
Key features of the PIC18F25K22 include nanoWatt XLP extreme-low-power technology (typical sleep currents under 100 nA with retention), 25 digital I/O pins, two Enhanced USART modules, two MSSP (I2C/SPI) modules, a 12-channel 10-bit ADC with automatic acquisition, three ECCP + one CCP compare/PWM modules, and a hardware RTCC with timestamps. The integrated 16 MHz HFINTOSC is factory calibrated to +/- 2% across voltage and temperature.
The architecture uses a Harvard RISC core with 49 instructions and a hardware multiply unit, supporting a C-optimized compiler (XC8) and free MPLAB X IDE. Peripheral Pin Select (PPS) remaps digital peripherals to any I/O, simplifying PCB layout. The device includes a CTMU module for capacitive touch sensing and mTouch proximity detection.
Typical applications include low-power industrial sensor nodes, home-automation white-goods control boards, USB HID human-interface devices (with the internal USB-less variant), battery-powered metering, and automotive interior modules (with the I-grade part). The E (extended) temperature grade makes the PIC18F25K22-E/SO well suited to under-hood and outdoor industrial deployments.
When designing, prioritize the E/SO variant only when the -40C to +125C industrial range is required - the I/SO variant (PIC18F25K22-I/SO) costs less and covers -40C to +85C commercial/industrial. Also, plan the PCB layout for a 28-SOIC with the standard 1.27 mm pitch.
This page synthesizes distributor pricing, drop-in SOIC alternatives, and practical design notes that complement - but do not replace - the Microchip datasheet PDF.
Drop-in alternatives for PIC18F25K22-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 PIC18F25K22-E/SO (same form factor and footprint) — differing in Package, ADC, Communication, Program Memory (Flash), Core.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F25K22-I/SO
✅ Drop-In✓ In Stock
$1.78 / Unit
View Datasheet →PIC18F25K22T-I/SO
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F24K22-I/SO
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F26K22-I/SO
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F25K50-I/SO
✅ Drop-In✓ In Stock
$2.95 / Unit
View Datasheet →PIC18F25Q10-I/SO
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F25K22-E/SO Maximum Ratings & Electrical Characteristics
| Family | PIC18F K-series (PIC18F2x/4xK22) |
| Core | 8-bit PIC RISC, 49 instructions, hardware multiply |
| Program Memory (Flash) | 32 KB |
| Data SRAM | 1536 B |
| Data EEPROM | 256 B |
| Maximum CPU Speed | 64 MHz (16 MIPS at 64 MHz, 20 MIPS at internal osc) |
| Supply Voltage (Vdd) | 4.2 V to 5.5 V |
| I/O Pins | 25 |
| Package | 28-pin SOIC (SO), 1.27 mm pitch |
| Operating Temperature (E grade) | -40C to +125C (extended) |
| ADC | 12-channel, 10-bit, with automatic acquisition |
| Communication | 2x EUSART, 2x MSSP (I2C/SPI) |
| PWM / Capture | 3x ECCP + 1x CCP |
| Low-Power Tech | nanoWatt XLP, <100 nA typical sleep with RTCC |
| Other Peripherals | CTMU (touch), HLVD, 16-bit timers (4), 8-bit timers (4) |
| Mounting Type | Surface Mount |
| MSL Level | 1 (unlimited floor life) |
| RoHS Status | Compliant |
PIC18F25K22-E/SO Pin Configuration
| Pin 1 | RA7/MCLR/VPP/PGM — Digital I/O / Master Clear reset (active low) / Programming voltage / LVP enable |
| Pin 2 | RA0/AN0/C1INA/ULPWU — Digital I/O / Analog input 0 / Comparator 1 input A / Ultra-Low-Power Wake-up |
| Pin 3 | RA1/AN1/C1INB/SEG18 — Digital I/O / Analog input 1 / Comparator 1 input B / LCD segment |
| Pin 4 | RA2/AN2/C2INB/VREF-/CVREF — Digital I/O / Analog input 2 / Comparator 2 input B / ADC VREF- / Comparator VREF out |
| Pin 5 | RA3/AN3/C1INA/VREF+ — Digital I/O / Analog input 3 / Comparator 1 input A / ADC VREF+ |
| Pin 6 | RA4/AN4/C1OUT/SRQ/T0CKI — Digital I/O (open-drain) / Analog input 4 / Comparator 1 output / SR-latch Q / Timer0 clock |
| Pin 7 | RA5/AN5/C2OUT/SRQ/T1CKI — Digital I/O / Analog input 5 / Comparator 2 output / SR-latch Q / Timer1 clock |
| Pin 8 | VSS — Ground reference |
| Pin 9 | RA6/OSC2/CLKO/T1OSI — Digital I/O / Crystal oscillator output / Clock output / Timer1 oscillator input |
| Pin 10 | RA7/OSC1/CLKI/T1OSO — Digital I/O / Crystal oscillator input / Clock input / Timer1 oscillator output |
| Pin 11 | RC0/SOSCO/T1CKI — Digital I/O / Secondary oscillator output / Timer1 clock input |
| Pin 12 | RC1/SOSCI/CCP2 — Digital I/O / Secondary oscillator input / CCP2 PWM |
| Pin 13 | RC2/CCP1/P1A/AN6 — Digital I/O / CCP1 PWM / PWM P1A output / Analog input 6 |
| Pin 14 | RC3/SCK1/SCL1/AN7 — Digital I/O / SPI1 clock / I2C1 clock / Analog input 7 |
| Pin 15 | RC4/SDI1/SDA1/AN8 — Digital I/O / SPI1 data in / I2C1 data / Analog input 8 |
| Pin 16 | RC5/SDO1/AN9 — Digital I/O / SPI1 data out / Analog input 9 |
| Pin 17 | RC6/TX1/CK1/AN10 — Digital I/O / EUSART1 TX / EUSART1 clock / Analog input 10 |
| Pin 18 | RC7/RX1/DT1/AN11 — Digital I/O / EUSART1 RX / EUSART1 data / Analog input 11 |
| Pin 19 | VSS — Ground reference |
| Pin 20 | VDD — Positive supply voltage 4.2-5.5V |
| Pin 21 | RB0/AN12/INT0/FLT0 — Digital I/O / Analog input 12 / External interrupt 0 / PWM fault input |
| Pin 22 | RB1/AN10/INT1/C2INC — Digital I/O / Analog input 10 / External interrupt 1 / Comparator 2 input C |
| Pin 23 | RB2/AN8/INT2/CTED1 — Digital I/O / Analog input 8 / External interrupt 2 / CTMU edge 1 |
| Pin 24 | RB3/AN9/INT3/CTED2/CCP2 — Digital I/O / Analog input 9 / External interrupt 3 / CTMU edge 2 / CCP2 alt |
| Pin 25 | RB4/AN11/SDA2/KBI0 — Digital I/O / Analog input 11 / I2C2 data / KBI interrupt 0 |
| Pin 26 | RB5/AN13/SCK2/SCL2/KBI1 — Digital I/O / Analog input 13 / SPI2 clock / I2C2 clock / KBI interrupt 1 |
| Pin 27 | RB6/ICSPCLK/PGC/KBI2 — Digital I/O / ICD clock / Programming clock / KBI interrupt 2 |
| Pin 28 | RB7/ICSPDAT/PGD/KBI3 — Digital I/O / ICD data / Programming data / KBI interrupt 3 |
Typical Applications
PIC18F25K22-E/SO is suitable for 6 applications: Industrial Sensor Nodes, Home-Appliance Control Boards, Battery-Powered Metering, Automotive Interior Modules, Human Interface Devices, Industrial Display Drivers.
Industrial Sensor Nodes
The PIC18F25K22-E/SO is well suited to industrial sensor nodes because its 32 KB Flash holds calibration tables and protocol stacks, while the nanoWatt XLP technology drops sleep current below 100 nA for multi-year battery operation on a single lithium cell. The 12-channel 10-bit ADC captures analog inputs from thermocouples, strain gauges, and 4-20 mA loops with the integrated PGA option. The two EUSARTs and two MSSP modules run RS-485 Modbus and SPI sensor interfaces simultaneously. With -40C to +125C extended temperature, the device operates in unconditioned outdoor enclosures without derating. Pin-compatible upgrade to PIC18F26K22-I/SO is available if more memory is required in field retrofits.
Recommended
Home-Appliance Control Boards
In washing machines, dishwashers, and ovens, the PIC18F25K22-E/SO drives relays, triacs, and sensor feedback through its three ECCP + one CCP PWM modules, generating zero-crossing-controlled phase-cut dimmer and motor-speed signals. The CTMU module implements capacitive touch keypads without external ICs, reducing BOM cost. The 25 I/O pins directly drive LED status indicators, buzzer, and rotary encoder inputs. Extended -40C to +125C temperature operation handles under-cabinet appliance thermal stress, and the 5V supply aligns with legacy analog front-ends. Factory-calibrated 16 MHz HFINTOSC eliminates the external crystal in cost-sensitive designs.
Recommended
Battery-Powered Metering
Battery-powered water, gas, and electricity meters rely on the PIC18F25K22-E/SO for its nanoWatt XLP technology, which delivers under 100 nA standby current while the RTCC timestamps consumption events. The 1536-byte SRAM buffers interval data between low-power wakes, and the 256-byte EEPROM stores tamper flags and calibration that survives battery replacement cycles. The 10-bit ADC reads pulse-output flow sensors directly, while the integrated comparator handles low-battery detection without an external supervisor IC. Extended temperature grade ensures reliable operation in outdoor meter enclosures across cold winters and hot summers.
Recommended
Automotive Interior Modules
Although the PIC18F25K22-E/SO is the extended-temperature industrial grade rather than full AEC-Q100, it is widely used in non-safety automotive interior applications such as HVAC control panels, seat-memory modules, ambient lighting controllers, and steering-column switches. The wide 4.2V to 5.5V supply tolerates load-dump transients, and -40C to +125C operation covers cabin and under-hood-adjacent locations. The CTMU module drives capacitive touch sliders for premium trim finishes, while PWM channels control RGB LED ambient lighting. Designers building full AEC-Q100 systems should migrate to PIC18F46K22-I/P or PIC18F57Q43-I/PT instead.
Recommended
Human Interface Devices
The PIC18F25K22-E/SO implements low-cost USB HID peripherals when paired with the PIC18F25K50 variant that adds native USB 2.0 full-speed, but it can also serve as the main controller for keyboard, mouse, and game controller designs using external USB bridges. The CTMU module handles capacitive scroll wheels and gesture pads, while three ECCP channels generate RGB underglow and haptic feedback PWM. The 32 KB Flash comfortably stores USB HID report descriptors and per-key remapping macros. Extended temperature rating allows deployment in industrial HMI handhelds and outdoor barcode scanners.
Recommended
Industrial Display Drivers
Character and graphic LCD modules connect directly to the PIC18F25K22-E/SO via SPI or I2C, with the two MSSP peripherals driving a 128x64 OLED plus a capacitive touch controller simultaneously. The 32 KB Flash stores multi-language UI strings and bitmap fonts, and 1536-byte SRAM holds frame buffers for small graphics displays. The PWM outputs control backlight brightness with smooth dimming via the ECCP module's hardware fault shutdown. The 28-SOIC package is well suited to compact panel-mount HMI modules with limited PCB area behind the display cutout.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F25K22-E/SO — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F25K22-I/SO | PIC18F24K22-I/SO | PIC18F26K22-I/SO | PIC18F25K50-I/SO | PIC18F25Q10-I/SO |
|---|---|---|---|---|---|---|
| Package | 28-SOIC (SO) | 28-SOIC - same | 28-SOIC - same | 28-SOIC - same | 28-SOIC - same | 28-SOIC - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 32 KB | 32 KB | 16 KB (-50%) | 64 KB (+100%) | 32 KB | 32 KB |
| SRAM | 1536 B | 1536 B | 768 B (-50%) | 3892 B (+154%) | 2048 B (+33%) | 2048 B (+33%) |
| EEPROM | 256 B | 256 B | 256 B | 1024 B (+300%) | 256 B | 256 B |
| Operating Temperature | -40C to +125C (extended) | -40C to +85C (industrial) | -40C to +85C | -40C to +85C | -40C to +85C | -40C to +85C |
| ADC | 10-bit, 12-channel | 10-bit, 12-channel | 10-bit, 12-channel | 10-bit, 12-channel | 10-bit, 14-channel | 14-bit, 12-channel (upgrade) |
| USB Support | No | No | No | No | Yes, USB 2.0 FS | No |
| Approximate Qty-1 Price (USD) | $5.27 | $4.95 | $4.50 | $5.85 | $5.20 | $4.10 |
Key Differentiators
- NanoWatt XLP extreme-low-power technology (vs PIC18F25K20)
- Peripheral Pin Select (PPS) remapping (vs PIC18F25K20)
- CTMU capacitive touch hardware (vs PIC18F25K20)
- Newer Q10 family for future-proofing (vs PIC18F25Q10-I/SO)
Design Notes
The PIC18F25K22-E/SO operates from 4.2V to 5.5V. For 3.3V-only designs, use the PIC18LF25K22 variant (1.8-3.6V) which is pin-compatible. Place a 100nF decoupling capacitor on VDD (pin 20) within 5mm of the pin, and a bulk 10uF tantalum or ceramic on VDD near the IC. Add ferrite bead in series with VDD if analog ADC accuracy is sensitive to digital switching noise. For nanoWatt XLP sleep below 100 nA, disable unused peripherals in firmware and set all unused I/O to outputs driving low.
The 28-SOIC package is 1.27 mm pitch - ensure PCB manufacturer supports fine-pitch assembly and your assembly house has 28-SOIC land pattern verified. Use Microchip's recommended land pattern (SOIC-28 with 0.65 mm lead width, 1.0 mm pad width). Place ICSP test points for PGC (pin 27), PGD (pin 28), VPP/MCLR (pin 1), VDD, and VSS on a 2.54 mm grid for clip-on programming. For the ICSP header, add a 4.7k pull-up on MCLR if not using internal weak pull-up.
Do not use the analog pins as digital outputs while ADC is sampling - the analog multiplexer leakage can corrupt readings. Always configure ADC channel select before enabling ADC, and add 1uF + 100nF decoupling close to VREF+ if used as external reference. The CTMU module requires calibration constants stored in Flash - do not erase the last 32 bytes without preserving them. The PIC18F25K22 is 5V; connecting to 3.3V peripherals without level translation can damage either side.
Keep analog input traces (AN0-AN11) short and away from switching signals (PWM, EUSART TX). Place a ground pour on the top layer stitched to bottom ground with 0.5 mm vias every 5mm. The HFINTOSC reduces noise but for low-noise ADC applications, run from external 16 MHz crystal with PLL bypass. If using the comparator with CTMU for capacitive touch, route sense traces with consistent width and ground shielding on both sides for repeatable capacitance readings.
Compliance Information
RoHS compliant per Microchip product page. PIC18F25K22 is not AEC-Q100 qualified - choose PIC18F46K22-I/P for automotive safety applications. The E temperature grade covers -40C to +125C but does not include automotive Q100 testing.