PIC18F25K22-E/SP - 8-bit 48MHz 32KB Flash XLP MCU | Microchip
MPN: PIC18F25K22-E/SP ✓ 啟用中PIC18F25K22-E/SP 概覽
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.
直接替換替代品,適用於 PIC18F25K22-E/SP — 相同封裝,腳位對腳位相容。需重新設計 PCB 的不同封裝零件不列入。
此系列的變體
與下列產品可直接替換的同系列型號: PIC18F25K22-E/SP (相同外形與佔位) — 差異在於 ADC, Package, Timers, Operating Temperature, Core Architecture.
PIC18F25K22-I/SP
✅ 直接替換聯絡詢價
查看資料表 →PIC18F23K22-I/SP
✅ 直接替換聯絡詢價
查看資料表 →PIC18F25K50-I/SP
✅ 直接替換📋 參考替代品(不在目錄中)
PIC18F25Q10-I/SP
✅ 直接替換聯絡詢價
查看資料表 →PIC18F25K20-E/SP
✅ 直接替換聯絡詢價
查看資料表 →PIC18F2520-I/SP
✅ 直接替換聯絡詢價
查看資料表 →PIC18F25K22-E/SP 最大額定值與電氣特性
| 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) |
| 供應電壓 | 1.8 V to 5.5 V |
| 工作溫度 | -40C to +125C (E grade, extended) |
| 封裝 | 28-pin SPDIP (Skinny Plastic DIP) |
| Low-Power Technology | nanoWatt XLP |
| Programming Interface | ICSP (In-Circuit Serial Programming) + ICD |
| 安裝類型 | Through-Hole (DIP) |
| MSL 等級 | 1 (unlimited floor life) |
| RoHS 狀態 | Compliant |
| CTMU (Capacitive Touch) | Yes |
PIC18F25K22-E/SP 腳位配置
| 腳位 1 | MCLR/RE3 — Master Clear (reset) input or digital input RE3 |
| 腳位 2 | RA0 — PORTA bit 0 (analog AN0) |
| 腳位 3 | RA1 — PORTA bit 1 (analog AN1) |
| 腳位 4 | RA2 — PORTA bit 2 (analog AN2) |
| 腳位 5 | RA3 — PORTA bit 3 (analog AN3) |
| 腳位 6 | RA4 — PORTA bit 4 (analog AN4) |
| 腳位 7 | RA5 — PORTA bit 5 (analog AN5) |
| 腳位 8 | RA6 — PORTA bit 6 (analog AN6, OSC2) |
| 腳位 9 | RA7 — PORTA bit 7 (analog AN7, OSC1) |
| 腳位 10 | VSS — Ground reference |
| 腳位 11 | VDD — Positive supply voltage (1.8 V to 5.5 V) |
| 腳位 12 | VSS — Ground reference |
| 腳位 13 | OSC1/CLKI/RA7 — External clock input or crystal pin 1 |
| 腳位 14 | OSC2/CLKO/RA6 — Crystal pin 2 or clock output |
| 腳位 15 | RC0 — PORTC bit 0 |
| 腳位 16 | RC1 — PORTC bit 1 |
| 腳位 17 | RC2 — PORTC bit 2 |
| 腳位 18 | RC3 — PORTC bit 3 |
| 腳位 19 | RD0 — PORTD bit 0 |
| 腳位 20 | RD1 — PORTD bit 1 |
| 腳位 21 | RD2 — PORTD bit 2 |
| 腳位 22 | RD3 — PORTD bit 3 |
| 腳位 23 | RC4 — PORTC bit 4 |
| 腳位 24 | RC5 — PORTC bit 5 |
| 腳位 25 | RC6 — PORTC bit 6 |
| 腳位 26 | RC7 — PORTC bit 7 |
| 腳位 27 | RB7/PGD — PORTB bit 7 / ICSP data |
| 腳位 28 | RB6/PGC — PORTB bit 6 / ICSP clock |
典型應用
PIC18F25K22-E/SP 適用於 7 應用s: 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.
推薦
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.
推薦
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.
推薦
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.
推薦
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.
推薦
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.
推薦
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.
推薦
推薦產品摘要
工程參考資料,適用於 PIC18F25K22-E/SP — 比較、設計指引及合規資訊。
選型指南
與替代品比較
| 參數 | 本產品 | 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 |
主要差異化特點
- Higher ADC resolution (12-bit) than the older K20 family (10-bit) (對比PIC18F25K20-E/SP)
- Extended -40C to +125C temperature grade for harsh environments (對比PIC18F25K22-I/SP)
- Lower sleep current and modern peripherals vs older 2520 generation (對比PIC18F2520-I/SP)
- No USB peripheral - keep the K22 pure for sensor/control tasks (對比PIC18F25K50-I/SP)
設計說明
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.
合規資訊
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.