PIC18F25K20-I/SP - 8-bit 64MHz 32KB Flash MCU | Microchip
N.º de pieza: PIC18F25K20-I/SP ✓ Activo| Cant. | Precio unitario | Total |
|---|---|---|
| 1 | $3.56 | $3,56 |
| 10 | $3.12 | $31,20 |
| 100 | $2.7 | $270,00 |
| 500 | $2.32 | $1.160,00 |
| 1.000 | $2.05 | $2.050,00 |
PIC18F25K20-I/SP Descripción general
An 8-bit PIC microcontroller (MCU) is a single-chip computer built on Microchip's enhanced PIC18 RISC architecture, integrating a CPU, Flash program memory, SRAM, EEPROM, and a rich set of peripherals (ADC, comparators, PWM, timers, UART, SPI, I2C) on one piece of silicon. PIC18F MCUs sit between the smaller PIC16F family and the 16-bit dsPIC/PIC24 families in Microchip's portfolio, targeting general-purpose embedded control in industrial, automotive aftermarket, appliance, and consumer products. Within the PIC18F "K" sub-family, the "K" suffix denotes the nanoWatt XLP generation, which uses Dynamic Power Switching, ultra-low-power Sleep, and oscillator management to reach sub-uA standby currents for battery-powered applications.
Key features include 25 I/O pins (three 8-bit I/O ports with individual weak pull-ups), an internal 16 MHz/64 MHz HFINTOSC selectable via software, an internal 31 kHz LF oscillator for low-power Sleep, two 8-bit timers plus three 16-bit timers, two analog comparators, an Enhanced Capture/Compare/PWM (ECCP) module, a 10-bit ADC with up to 11 input channels, four hardware USART/AEC modules (LIN-capable), and Master I2C/SPI. Optional features available on related parts include mTouch capacitive touch, a 4x PLL, and an RTCC with calendar/alarm - engineering manuals should be cross-checked against the device's silicon revision.
Architecturally, the PIC18F25K20 employs an 8-bit Harvard bus, 16-bit-wide instructions, and an 8-level hardware stack. Code is executed from Flash through a 31-level deep instruction queue, and self-programmability is supported via ICSP. The Enhanced Universal Synchronous/Asynchronous Receiver/Transmitter (EUSART) supports RS-232, RS-485, and LIN master/slave modes; the MSSP peripheral supports both SPI and I2C (master/slave with 7-bit/10-bit addressing). Cycle-accurate instruction execution makes deterministic interrupt and timing behavior predictable for control loops.
Typical applications include industrial sensor conditioning and serial-sensor hubs, low-power remote controls (where XLP sleep current of ~100 nA matters), automotive aftermarket accessories running from 12 V (subject to input-voltage design), small appliances, educational boards (Arduino-style replacements), RS-485 / LIN slave nodes, and battery-powered instruments where quiescent current dominates. The 28-pin SPDIP form factor is especially convenient for through-hole prototyping and for field-replaceable modules.
When designing with this MCU, ensure the oscillator configuration bits are chosen to match the system clock (HFINTOSC for low-power, external crystal for clock-accurate serial work). Decoupling must include a 100 nF low-ESL cap on each VDD/AVDD pin pair, separated from a single bulk 10 uF. Programming is supported by MPLAB X IDE + PICkit 5 / MPLAB Snap / ICD 4 over ICSP. Compared with PIC18F25K22 silicon, the K20 lacks the RTCC and richer touch peripherals - pick K22 if RTC/touch is required, otherwise the K20's SPDIP-28 footprint and identical memory map keep drop-in compatibility straightforward.
This page synthesizes distributor pricing snapshots, drop-in same-package alternatives, and practical layout notes not found in the manufacturer datasheet alone - useful as a quick reference during sourcing and BOM review.
Alternativas directas para PIC18F25K20-I/SP — mismo encapsulado, compatible pin a pin. Se excluyen las piezas de otro encapsulado que requieren retrabajo de la PCB.
Variantes de esta serie
Modelos de la misma serie compatibles directamente con PIC18F25K20-I/SP (mismo factor de forma y huella) — difiere en Timers, Operating Temperature, Program Memory (Flash), Package, ADC.
Herramienta de comparación rápida — seleccione piezas alternativas para compararlas lado a lado:
PIC18F25K20-E/SP
✅ Sustitución directa✓ En stock
$2.21 / unidad
Ver hoja de datos →PIC18F25K20-I/SO
✅ Sustitución directa ⚠️ Especificaciones sin verificar✓ En stock
$2.55 / unidad
Ver hoja de datos →PIC18F25K20-I/ML
✅ Sustitución directa📋 Alternativa de referencia (no en el catálogo)
PIC18F25K22-I/SP
✅ Sustitución directa✓ En stock
$2.45 / unidad
Ver hoja de datos →PIC18F25K20-I/SP Valores máximos y características eléctricas
| Core Architecture | PIC18 (8-bit Harvard, 16-bit instructions) |
| Family | PIC18F "K" series (nanoWatt XLP) |
| Program Memory (Flash) | 32 KB (16K x 16 words) |
| RAM | 1.5 KB (1,536 bytes) |
| Data EEPROM | 256 bytes |
| Maximum CPU Speed | 64 MHz (16 MIPS) |
| Supply Voltage (VDD) | 1.8 V to 5.5 V (full-speed range from 2.0 V) |
| I/O Pins | 25 |
| ADC | 10-bit, up to 11 channels |
| Timers | 2 x 8-bit + 3 x 16-bit |
| Communication | 2 x EUSART (LIN-capable), 1 x MSSP (SPI / I2C) |
| Comparators | 2 x analog comparators |
| CCP Modules | 1 x ECCP + 1 x CCP |
| Temperatura de funcionamiento | -40 C to +85 C (industrial "-I") |
| Encapsulado | 28-pin SPDIP (SP) |
| Tipo de montaje | Through-Hole (THT) |
| Lead-Free / RoHS | Lead-free, RoHS compliant |
| Nivel MSL | 1 (unlimited floor life) |
Configuración de pines de PIC18F25K20-I/SP
| Pin 1 | RA2 — Bidirectional I/O; analog channel AN2; CVREF |
| Pin 2 | RA3 — Bidirectional I/O; analog channel AN3 / VREF+ |
| Pin 3 | RA4 — Bidirectional I/O; analog channel AN4 (open-drain option) |
| Pin 4 | RA5 — Bidirectional I/O; analog channel AN5 / SS for MSSP slave SPI |
| Pin 5 | VSS — Ground reference |
| Pin 6 | RA6 — Bidirectional I/O; OSC2 (crystal out) |
| Pin 7 | RA7 — Bidirectional I/O; OSC1 (crystal in) |
| Pin 8 | RB0 — Bidirectional I/O; external interrupt 0 (INT0) |
| Pin 9 | RB1 — Bidirectional I/O; external interrupt 1 (INT1) |
| Pin 10 | RB2 — Bidirectional I/O; external interrupt 2 (INT2) |
| Pin 11 | RB3 — Bidirectional I/O; external interrupt 3 (INT3); CCP2 I/O |
| Pin 12 | RB4 — Bidirectional I/O; interrupt-on-change |
| Pin 13 | RB5 — Bidirectional I/O; interrupt-on-change; PGEC (ICSP clock) |
| Pin 14 | RB6 — Bidirectional I/O; interrupt-on-change; PGED (ICSP data) |
| Pin 15 | RB7 — Bidirectional I/O; interrupt-on-change |
| Pin 16 | RC0 — Bidirectional I/O; SOSCO/T1CKI |
| Pin 17 | RC1 — Bidirectional I/O; SOSCI/T1OSO |
| Pin 18 | RC2 — Bidirectional I/O; CCP1 I/O |
| Pin 19 | RC3 — Bidirectional I/O; SCL (MSSP I2C clock) |
| Pin 20 | RC4 — Bidirectional I/O; SDA (MSSP I2C data) |
| Pin 21 | RC5 — Bidirectional I/O; SDO (MSSP SPI data out) |
| Pin 22 | RC6 — Bidirectional I/O; TX1/CK1 (EUSART1 async TX/clock) |
| Pin 23 | RC7 — Bidirectional I/O; RX1/DT1 (EUSART1 async RX/data) |
| Pin 24 | VSS — Ground reference (second pin) |
| Pin 25 | VDD — Positive supply voltage |
| Pin 26 | MCLR/VPP/RE3 — Master clear reset / programming high voltage / PORTE bit 3 |
| Pin 27 | RA0 — Bidirectional I/O; analog channel AN0 |
| Pin 28 | RA1 — Bidirectional I/O; analog channel AN1 |
Aplicaciones típicas
PIC18F25K20-I/SP es adecuado para 6 aplicacións: Industrial Sensor Conditioning & Serial Hubs, Low-Power Battery Remote Controls, Automotive Aftermarket Accessories (non-AEC-Q100), Educational & Maker Development Boards, Home Appliance Control (White Goods), RS-485 / Modbus Sensor Nodes.
Industrial Sensor Conditioning & Serial Hubs
The PIC18F25K20-I/SP integrates 25 digital I/O, a 10-bit ADC with up to 11 channels, two analog comparators, MSSP (SPI/I2C), and two EUSARTs in a 28-pin SPDIP - a complete signal-conditioning front end for industrial sensor hubs. Its 64 MHz clock (16 MIPS) handles UART/SPI polling loops for multi-sensor 4-20 mA or Modbus slave nodes without external logic. The nanoWatt XLP sleep currents (<100 nA typical) let battery-backed logger daughterboards preserve charge while the MCU is idle, waking only on UART activity or INT-on-change. Compared with discrete micros in PLCC packages, the PIC18F25K20 in SPDIP-28 simplifies field-replaceable spares for installed-base industrial equipment.
Recomendado
Low-Power Battery Remote Controls
nanoWatt XLP technology gives the PIC18F25K20-I/SP sub-microamp deep-sleep currents (down to ~100 nA in Sleep with RTCC disabled), making it ideal for handheld battery remote controls that sit dormant for years. The internal LF 31 kHz oscillator supports low-power Sleep with periodic wake via WDT or INT-on-change, while HFINTOSC delivers 64 MHz on demand for button-decode protocols or RF transmission. The 32 KB Flash holds modern IR/RF protocol stacks (NEC, RC5, BLE-beacon emulation), and the 1.5 KB SRAM is sufficient for command-decode state machines. Compared with bare-MCU+LDO designs, integrating PIC18F25K20 reduces part count and meets IEC 60086 coin-cell discharge curves.
Recomendado
Automotive Aftermarket Accessories (non-AEC-Q100)
The PIC18F25K20-I/SP is well suited to 12 V automotive aftermarket accessories where AEC-Q100 is not required (e.g., interior lighting, gauge faces, audio accessories, OBD-II readers). Its 5.5 V absolute-max VDD must be protected by an external TVS+low-drop LDO (e.g., MCP1825S) to survive load-dump transients. The two EUSARTs support LIN slave and K-line protocols common to car-comfort nodes, and the ECCP module drives high-current FETs for seat heaters or LED daytime-running lamps. Compared with M0+ Cortex alternatives, the PIC18F25K20's deterministic 1-cycle interrupt latency offers predictable behavior for time-critical actuator loops.
Recomendado
Educational & Maker Development Boards
The 28-pin SPDIP through-hole footprint of PIC18F25K20-I/SP makes it breadboard-friendly and a long-standing favorite for educational electronics courses and Arduino-style replacements (e.g., Pinguino or HobbyPIC boards). DIP-package parts tolerate repeated insertion cycles during labs and are easy to swap for debugging exercises. With MPLAB X + PICkit 5 / MPLAB Snap, students get free IDE access, lecture-aligned peripherals (timers, PWM, interrupts), and C-friendly XC8 compiler support. Compared with QFN-only modern parts, the SPDIP-28 keeps focus on algorithms and not solder rework.
Recomendado
Home Appliance Control (White Goods)
Inside small home appliances (coffee makers, blenders, rice cookers, fans, dehumidifiers) the PIC18F25K20-I/SP provides a robust 8-bit control core with triac-friendly timers and the ECCP module for zero-cross controlled AC switching through optocoupled MOC3021 drivers. The 25-IO count covers keypad scanning, segment LCD multiplexing, BLDC trapezoidal commutation, and temperature-probe input via the internal 10-bit ADC. The industrial temp grade handles the appliance-environment 85 C ambient near heating elements, and the nanoWatt Sleep reduces standby power to meet EU eco-design regulations. Compared with discrete logic state machines, the PIC18F25K20 reduces BOM cost and enables firmware-only SKU differentiation.
Recomendado
RS-485 / Modbus Sensor Nodes
With two EUSARTs supporting RS-485 transceiver control via the auto-direction hardware, the PIC18F25K20-I/SP is a natural fit for half-duplex RS-485 / Modbus RTU slave nodes in industrial data-acquisition systems. Its 10-bit ADC with 11 channels multiplexes up to 11 analog transducers, and the 32 KB Flash holds Modbus protocol stacks plus data-point mapping tables. Operating from 2.0 V-5.5 V it works from common 24 V industrial bus drops after regulation. Compared with discrete modbus ICs, the integrated approach lowers BOM cost and lets a single MCU replace both the SPI-based UART and a small DSP block.
Recomendado
Resumen de productos recomendados
Datos de referencia de ingeniería para PIC18F25K20-I/SP — comparación, orientación de diseño e información de cumplimiento.
Guía de selección
Comparación con alternativas
| Parámetro | Este producto | PIC18F25K20-E/SP | PIC18F25K20-I/SO | PIC18F25K20-I/ML | PIC18F25K22-I/SP |
|---|---|---|---|---|---|
| Package | 28-SPDIP (SP) | 28-SPDIP (SP) | 28-SOIC (SO) | 28-QFN (ML) | 28-SPDIP (SP) |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Operating Temperature | -40C to +85C (industrial "-I") | -40C to +125C (extended "-E") | -40C to +85C | -40C to +85C | -40C to +85C |
| Flash Memory | 32 KB | 32 KB | 32 KB | 32 KB | 32 KB |
| RAM | 1.5 KB | 1.5 KB | 1.5 KB | 1.5 KB | 1.5 KB |
| Max CPU Speed | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) | 64 MHz + 4x PLL = 256 MIPS-effective peripheral |
| RTCC (Calendar/Alarm) | No | No | No | No | Yes |
| mTouch Capacitive Touch | No | No | No | No | Yes |
| AEC-Q100 Automotive Grade | No (industrial "-I") | No (extended-industrial "-E") | No | No | No |
Diferenciadores clave
- nanoWatt XLP extreme-low-power technology on a 28-SPDIP package (frente a PIC18F25K20-I/ML (same silicon in QFN-28))
- Industrial temperature grade (-40C to +85C) with full 64 MHz performance (frente a PIC18F25K20-E/SP (extended -40C to +125C))
- Mature, widely-stocked 32 KB Flash + 1.5 KB RAM MCU (frente a PIC18F25K22-I/SP (newer 32 KB silicon with RTCC + mTouch))
Notas de diseño
Estimated: configure CONFIG bits for the right oscillator mode BEFORE first ICSP programming - accidentally selecting an external clock without a crystal attached bricks first-power-up. Always set FOSC<3:0> to an internal RC (e.g. 16 MHz HFINTOSC) for bench bring-up, then change to crystal later. The Microchip datasheet (DS40002102A) fault-protection register section is the authoritative source for CONFIG1L/1H/2L/2H/3L/3H configuration map - a copy-paste mistake silently violates POR behavior.
Decouple each VDD pin pair with a 100 nF X7R 0402 placed within 2 mm of the pin, with a single bulk 10 uF X5R shared across the 28-SPDIP footprint. For SOIC and QFN variants the same rule applies per VDD pin. Keep the ICSP PGEC/PGD trace lengths matched to avoid debug-interface signal-integrity issues, and route MCLR with a 10 kohm pull-up and 100 nF cap to VDD for clean reset. Estimated for the SOIC/ML package: total bulk decoupling of 22 uF-47 uF is sufficient given the 32 KB Flash refresh duty cycle.
When using the 10-bit ADC, avoid toggling PORTA digital outputs near active ANx channels - the analog mux's crosstalk can add ~1-2 LSBs of noise. Likewise, switching the EUSART TX line while ADC sampling reduces accuracy. For precise ADC readings, idle the EUSART, sample multiple ANx readings and average in software, and switch the I/O pin shared with ANx to tri-state (TRIS bit) between samples. The PIC18F25K20 datasheet's ADC section describes the Acquisition Delay Tad accurately; use ADC conversion at 32 TAD or longer for full 10-bit performance.
Información de cumplimiento
RoHS compliant per Microchip product declaration; lead-free lead finish with matte tin. Not AEC-Q100 qualified (industrial "-I" grade); select "-V" automotive grade for AEC-Q100 applications. Halogen-free status not explicitly specified in retrieved data - confirm with manufacturer if required for your BOM.