PIC18F25K42-E/SO - 8-bit 64MHz 32KB Flash MCU | Microchip
MPN: PIC18F25K42-E/SO ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $3.2 | $3.20 |
| 10 | $2.88 | $28.80 |
| 100 | $2.55 | $255.00 |
| 500 | $2.3 | $1,150.00 |
| 1,000 | $2.05 | $2,050.00 |
PIC18F25K42-E/SO Overview
A microcontroller (MCU) is a single-chip computer that integrates a CPU core, program and data memory, plus a configurable set of peripherals and I/O pins. PIC18 (L)FxxK42 devices are part of Microchip's enhanced mid-range 8-bit family, which sits below the dsPIC/PIC24 16-bit families in the taxonomy MCU -> 8-bit microcontroller -> PIC18 family -> enhanced mid-range core. Compared with legacy PIC16 parts, the PIC18 family adds linear program memory addressing, hardware multiply, vectored interrupts, and C-optimized architecture.
Key features of the PIC18F25K42 include 12-bit ADC2 with computation, a 5-bit DAC, two comparators, vector interrupts with hardware DMA, a peripheral pin select (PPS) matrix for flexible pin remapping, four 16-bit timers, four CCP/PWM channels, an SPI/I2C/UART complement, and XLP nanoWatt sleep modes that drop quiescent current to the sub-microamp range. Functional Safety (FuSa) features such as a memory partition, digital signal input/output mapping, and diagnostic interrupt accumulator assist IEC 61508 / ISO 26262 system designs.
Typical applications are general-purpose embedded control nodes, sensor hubs with DMA-driven acquisition, low-power battery sensor products, LED lighting controllers, and automotive body modules that benefit from the -40C to +125C grade. When designing with this MCU, ensure the PPS configuration matches the board layout and that the brown-out and watchdog timer are configured for the target application's safety class.
Drop-in alternatives for PIC18F25K42-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 PIC18F25K42-E/SO (same form factor and footprint) — differing in ADC, Package, Program Memory (Flash), Core, Communication.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F25K42-I/SO
✅ Drop-In✓ In Stock
$1.82 / Unit
View Datasheet →PIC18F25K42T-I/SO
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F24K42-I/SO
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F24K42-E/SO
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F25K22-E/SO
✅ Drop-In✓ In Stock
$2.96 / Unit
View Datasheet →PIC18F25K22-I/SO
✅ Drop-In✓ In Stock
$1.78 / Unit
View Datasheet →PIC18F25K20-I/SO
✅ Drop-In✓ In Stock
$2.55 / Unit
View Datasheet →PIC18F25K42-E/SO Maximum Ratings & Electrical Characteristics
| Product Family | PIC18 (L)FxxK42 |
| Core | PIC18 8-bit enhanced mid-range |
| Program Memory (Flash) | 32 KB (16K x 16) |
| Data RAM | 2 KB |
| EEPROM | 256 bytes |
| Maximum CPU Speed | 64 MHz |
| Operating Voltage | 2.3 V to 5.5 V |
| Operating Temperature | -40C to +125C (E grade) |
| ADC | 12-bit ADC2 with computation, up to 24 channels |
| DAC | 5-bit DAC |
| Comparators | 2 |
| Timers (16-bit) | 4 |
| CCP / PWM Channels | 4 |
| Communication | UART, SPI, I2C |
| DMA | Yes |
| Peripheral Pin Select (PPS) | Yes |
| XLP Low-Power Modes | Yes (nanoWatt) |
| Functional Safety (FuSa) | Yes (MAP, DIA) |
| Package | 28-pin SOIC (SO, 7.50 mm body) |
| Mounting Type | Surface Mount |
| RoHS Status | Compliant |
PIC18F25K42-E/SO Pin Configuration
| Pin 1 | RA0/ANA0 — PORTA bit 0 / analog input |
| Pin 2 | RA1/ANA1 — PORTA bit 1 / analog input |
| Pin 3 | RA2/ANA2 — PORTA bit 2 / analog input |
| Pin 4 | RA3/ANA3 — PORTA bit 3 / analog input / VREF+ |
| Pin 5 | RA4/ANA4 — PORTA bit 4 / analog input |
| Pin 6 | RA5/ANA5 — PORTA bit 5 / analog input |
| Pin 7 | RA6 — PORTA bit 6 |
| Pin 8 | RA7 — PORTA bit 7 |
| Pin 9 | VSS — Ground |
| Pin 10 | VDD — Positive supply voltage |
| Pin 11 | RB0 — PORTB bit 0 |
| Pin 12 | RB1 — PORTB bit 1 |
| Pin 13 | RB2 — PORTB bit 2 |
| Pin 14 | RB3 — PORTB bit 3 |
| Pin 15 | RB4 — PORTB bit 4 |
| Pin 16 | RB5 — PORTB bit 5 |
| Pin 17 | RB6 — PORTB bit 6 / ICSPCLK |
| Pin 18 | RB7 — PORTB bit 7 / ICSPDAT |
| Pin 19 | RC0 — PORTC bit 0 |
| Pin 20 | RC1 — PORTC bit 1 |
| Pin 21 | RC2 — PORTC bit 2 |
| Pin 22 | RC3 — PORTC bit 3 |
| Pin 23 | RC4 — PORTC bit 4 |
| Pin 24 | RC5 — PORTC bit 5 |
| Pin 25 | RC6 — PORTC bit 6 |
| Pin 26 | RC7 — PORTC bit 7 |
| Pin 27 | MCLR — Master clear reset (active low) |
| Pin 28 | OSC1/CLKIN — External clock input |
Typical Applications
PIC18F25K42-E/SO is suitable for 6 applications: Industrial Sensor Hubs, Battery-Powered IoT Nodes, Automotive Body Controllers, LED Lighting Controllers, Consumer Appliance Control, Functional Safety (FuSa) Subsystems.
Industrial Sensor Hubs
The PIC18F25K42-E/SO is well-suited for industrial sensor hubs thanks to its 12-bit ADC2 with computation, hardware DMA, and peripheral pin select. DMA transfers ADC samples to RAM without CPU intervention, allowing the CPU to remain in XLP sleep mode between samples. The 32 KB Flash accommodates Modbus RTU or CANopen stacks; the 64 MHz CPU clock delivers 16 MIPS, sufficient for periodic filtering and protocol framing.
Recommended
Battery-Powered IoT Nodes
For battery-powered IoT end nodes, the PIC18F25K42-E/SO's XLP nanoWatt modes reduce sleep current below 1 uA while keeping the RTCC and Wake-on-IO active. DMA + ADC2 enables sensor reading at microamp active current. 2 KB SRAM is sufficient for sensor fusion on a few channels, and 256 bytes of EEPROM stores calibration constants without external memory. The wide 2.3 V to 5.5 V supply supports single-cell Li-ion to multi-AA chemistries.
Recommended
Automotive Body Controllers
The -40C to +125C extended temperature grade and functional-safety features (memory access partition, digital I/O assignment, diagnostic interrupt accumulator) make the PIC18F25K42-E/SO suitable for automotive body controllers, RKE receivers, and lighting modules. The 5-bit DAC drives analog indicators; the four CCP/PWM channels control LED strings and small motors. PPS lets designers route signals without board rework.
Recommended
LED Lighting Controllers
The PIC18F25K42-E/SO drives LED lighting fixtures using its four 16-bit timers and four CCP/PWM channels, with DMA handling color-mixing math in the background. The 12-bit ADC2 reads ambient light sensors and potentiometer dimmers without jitter. Peripheral pin select lets designers place PWM outputs on whichever pins simplify PCB routing, and the 64 MHz core computes dithered dimming algorithms in real time.
Recommended
Consumer Appliance Control
White-goods and small appliances benefit from the PIC18F25K42-E/SO's combination of 32 KB Flash, 2 KB RAM, and integrated peripherals. UART, SPI, and I2C connect to display modules and motor pre-drivers; the 12-bit ADC2 monitors temperature and current. XLP sleep extends battery life in cordless appliances, and the -40C to +125C grade tolerates compressor-area heat. PPS reduces wiring complexity on multi-board designs.
Recommended
Functional Safety (FuSa) Subsystems
The PIC18F25K42-E/SO's functional safety peripherals - memory access partition, diagnostic interrupt accumulator, and digital I/O assignment - support safety designs targeting IEC 61508 SIL 2 or ISO 26262 ASIL B. The 12-bit ADC2 with computation monitors analog safety thresholds; windowed watchdog and CRC peripherals detect firmware faults. Designers should pair the part with a Safety Manual and follow Microchip's FuSa collateral.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F25K42-E/SO — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F25K42-I/SO | PIC18F25K42T-I/SO | PIC18F24K42-I/SO | PIC18F25K22-E/SO |
|---|---|---|---|---|---|
| Package | 28-pin SOIC (SO) | 28-pin SOIC (SO) - same | 28-pin SOIC (SO) - same | 28-pin SOIC (SO) - same | 28-pin SOIC (SO) - same |
| Brand | Microchip Technology | Microchip Technology - same | Microchip Technology - same | Microchip Technology - same | Microchip Technology - same |
| Flash Memory | 32 KB | 32 KB | 16 KB | 32 KB | 32 KB |
| RAM | 2 KB | 2 KB | 2 KB | 2 KB | 1.5 KB |
| CPU Speed | 64 MHz | 64 MHz | 64 MHz | 64 MHz | 64 MHz |
| ADC | 12-bit ADC2 with computation | 12-bit ADC2 with computation | 12-bit ADC2 with computation | 10-bit ADC (legacy) | 10-bit ADC (legacy) |
| DMA | Yes | Yes | Yes | No | No |
| Operating Temperature | -40C to +125C (E grade) | -40C to +85C (I grade) | -40C to +85C (I grade) | -40C to +125C (E grade) | -40C to +85C (I grade) |
Key Differentiators
- Extended temperature grade -40C to +125C on 28-pin SOIC (vs PIC18F25K42-I/SO)
- DMA + 12-bit ADC2 with computation (vs PIC18F25K22-E/SO)
- Peripheral pin select matrix (vs PIC18F25K20-I/SO)
Design Notes
Power the PIC18F25K42-E/SO from a clean 2.3 V to 5.5 V rail with a 100 nF decoupling capacitor within 5 mm of VDD and a 10 uF bulk capacitor on the board supply. Place the bulk cap near the IC because internal analog references are sensitive to supply noise. For battery designs, the XLP sleep modes with brown-out reset disabled drop current below 1 uA; use Sleep and Idle directives in MPLAB XC8 to invoke them.
Enable peripheral pin select (PPS) locking via the CONFIG register before firmware release, otherwise unintended pin remapping during field updates can move UART/SPI to the wrong pins. For PPS remapping of analog and digital functions, consult the I/O mapping table in the datasheet; the K42 family remaps many functions to a wider pin set than legacy PIC18F25K22. Always set the PPS unlock sequence correctly or PPS writes silently fail.
Route the 28-pin SOIC package with 0.300 inch (7.50 mm) body and 1.27 mm pitch SOIC land pattern. Keep analog traces (PORTA analog inputs) short and away from switching nodes; use a ground guard ring around sensitive analog pins. Place the MCLR pull-up resistor (typically 10 kohm) close to the IC. For high-speed SPI/I2C, add 4.7 kohm pull-ups on I2C lines and series resistors on SPI SCK if the bus exceeds 10 MHz.
Compliance Information
RoHS compliant per Microchip product page. AEC-Q100 not qualified as a standalone certification; Functional Safety (FuSa) features support customer IEC 61508 / ISO 26262 designs. Lead-free packaging standard.