PIC18F25K40-E/MV - 32KB Flash 8-bit MCU, 64MHz, 28-UQFN | Microchip
MPN: PIC18F25K40-E/MV ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $2.62 | $2.62 |
| 10 | $2.36 | $23.60 |
| 100 | $2.1 | $210.00 |
| 500 | $1.84 | $920.00 |
| 1,000 | $1.65 | $1,650.00 |
PIC18F25K40-E/MV Overview
An 8-bit microcontroller (MCU) is a self-contained computing element that integrates a CPU, non-volatile program memory, volatile data memory, and peripheral interfaces on a single silicon die. The PIC18F25K40 sits within the product hierarchy: PIC18F25K40 -> PIC18 K-series -> PIC18 family -> PIC microcontroller -> 8-bit MCU -> microcontroller -> embedded processor. XLP (eXtreme Low Power) technology is Microchip's branded low-power architecture that enables sub-microamp sleep currents, suitable for battery-powered designs.
Key features include 17 analogue/digital channels of 10-bit ADC, one 5-bit DAC, two comparators, two PWM modules, CWG (Complementary Waveform Generator), HLVD (High/Low Voltage Detect), windowed watchdog timer, CRC/SCAN memory checker, zero-cross detect, Peripheral Pin Select, plus EUSART, SPI and I2C. The device operates from 2.3 V to 5.5 V and supports 5V-tolerant I/O, enabling direct interfacing with legacy 5V peripherals without level shifters.
Core Independent Peripherals (CIPs) such as CWG, WWDT and CRC operate without CPU intervention, offloading deterministic tasks from the core. This frees CPU bandwidth for application logic, reduces firmware complexity, and improves real-time response - critical for motor control, power conversion and sensor front-end designs.
Typical applications include consumer white goods, low-cost motor control, IoT sensor nodes, battery-powered instrumentation, and 5V industrial control. The combination of XLP sleep currents below 50 nA and instant wake-up timers suits energy-harvesting and wireless remote nodes where average current is the limiting factor.
When designing with this device, allocate the Peripheral Pin Select (PPS) map early in the schematic phase because remapping peripherals after layout is costly. Always validate the watchdog window timing against the slowest task to avoid unintended resets, and never exceed 5.5 V on any I/O pin.
This page synthesizes current distributor pricing, drop-in alternative part numbers, and engineering design notes not found in the manufacturer datasheet, enabling faster design-in decisions for embedded engineers.
Drop-in alternatives for PIC18F25K40-E/MV — 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 PIC18F25K40-E/MV (same form factor and footprint) — differing in ADC, DAC, Package, Communication, Core.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F24K40-E/MV
✅ Drop-In✓ In Stock
$1.85 / Unit
View Datasheet →PIC18F25K40-E/ML
✅ Drop-In✓ In Stock
$1.42 / Unit
View Datasheet →PIC18F25K40-E/SSVAO
✅ Drop-In✓ In Stock
$1.92 / Unit
View Datasheet →PIC18F25Q10-E/MV
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F25K22-E/MV
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F25K40-E/MV Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC18 enhanced mid-range 8-bit |
| CPU Speed | 64 MHz (16 MIPS) |
| Program Memory (Flash) | 32 KB (16K x 16) |
| Data RAM | 2 KB |
| EEPROM | 256 bytes |
| ADC | 10-bit, up to 17 channels |
| DAC | 5-bit, 1 channel |
| Comparators | 2 |
| PWM Modules | 2 (10-bit) |
| Complementary Waveform Generator (CWG) | Yes |
| Communication | 1x EUSART, 1x SPI, 1x I2C |
| Operating Voltage | 2.3 V to 5.5 V |
| I/O Pins | 25 |
| Operating Temperature | -40C to +125C (E suffix) |
| Package | 28-UQFN (4x4 mm) |
| RoHS Status | Compliant |
| MSL Level | 1 |
| Peripheral Pin Select (PPS) | Yes |
| Windowed Watchdog Timer (WWDT) | Yes |
| CRC/SCAN | Yes |
| Zero-Cross Detect (ZCD) | Yes |
| XLP Technology | Yes |
PIC18F25K40-E/MV Pin Configuration
| Pin 1 | RA2 — Bidirectional I/O / analog input |
| Pin 2 | RA3 — Bidirectional I/O / analog input |
| Pin 3 | RA4 — Bidirectional I/O / analog input |
| Pin 4 | RA5 — Bidirectional I/O / analog input |
| Pin 5 | VDD — Positive supply voltage |
| Pin 6 | VSS — Ground reference |
| Pin 7 | RA1 — Bidirectional I/O / analog input |
| Pin 8 | RA0 — Bidirectional I/O / analog input |
| Pin 9 | RA7 — Bidirectional I/O / analog input |
| Pin 10 | RA6 — Bidirectional I/O / analog input |
| Pin 11 | RC0 — Bidirectional I/O / analog input |
| Pin 12 | RC1 — Bidirectional I/O / analog input |
| Pin 13 | RC2 — Bidirectional I/O / analog input |
| Pin 14 | RC3 — Bidirectional I/O / analog input |
| Pin 15 | RC4 — Bidirectional I/O / analog input |
| Pin 16 | RC5 — Bidirectional I/O / analog input |
| Pin 17 | RC6 — Bidirectional I/O / analog input |
| Pin 18 | RC7 — Bidirectional I/O / analog input |
| Pin 19 | VSS — Ground reference |
| Pin 20 | VDD — Positive supply voltage |
| Pin 21 | RB0 — Bidirectional I/O / analog input |
| Pin 22 | RB1 — Bidirectional I/O / analog input |
| Pin 23 | RB2 — Bidirectional I/O / analog input |
| Pin 24 | RB3 — Bidirectional I/O / analog input |
| Pin 25 | RB4 — Bidirectional I/O / analog input |
| Pin 26 | RB5 — Bidirectional I/O / analog input |
| Pin 27 | RB6 — Bidirectional I/O / ICSPCLK |
| Pin 28 | RB7 — Bidirectional I/O / ICSPDAT |
Typical Applications
PIC18F25K40-E/MV is suitable for 6 applications: Industrial 5V Sensor Hub, Low-Cost BLDC / PMSM Motor Control, Battery-Powered IoT Sensor Node, Consumer White Goods Control Board, Automotive Body and Lighting Module, 5V Industrial PLC I/O Module.
Industrial 5V Sensor Hub
The PIC18F25K40-E/MV is well suited for 5 V industrial sensor hubs that aggregate multiple analog and digital inputs into a single Modbus or LIN node. Its 17-channel 10-bit ADC and 5V-tolerant I/O allow direct connection to 4-20 mA loop sensors, thermistors and 24 V opto-isolated digital inputs without level shifters. With 32 KB Flash and 2 KB RAM, the device can host a full Modbus RTU slave stack plus custom calibration logic. The CRC/SCAN peripheral adds background memory integrity checks, valuable in safety-conscious industrial installations. Power dissipation is modest - the MCU draws < 15 mA at full CPU speed, so no heatsink is required on a 4x4 mm UQFN footprint.
Recommended
Low-Cost BLDC / PMSM Motor Control
The PIC18F25K40-E/MV drives small brushless DC and permanent magnet synchronous motors through its Complementary Waveform Generator (CWG) and two 10-bit PWM modules. The CWG produces complementary PWMs with dead-band insertion directly in hardware, offloading the CPU from sub-microsecond switching tasks and enabling deterministic FET drive at up to 64 MHz peripheral clock. Combined with the fast comparator and 10-bit ADC for back-EMF sensing, the device delivers closed-loop torque or speed control for fans, pumps and small appliances in a single IC. The extended -40C to +125C temperature range supports under-hood automotive and outdoor industrial installations.
Recommended
Battery-Powered IoT Sensor Node
The PIC18F25K40-E/MV delivers sub-100 nA sleep current thanks to its XLP technology, making it a strong fit for battery-powered wireless sensor nodes such as environmental monitors and asset trackers. The Windowed Watchdog Timer (WWDT) and CRC/SCAN peripheral provide safety and memory integrity without waking the CPU. With 64 MHz CPU and 32 KB Flash, the device can host a lightweight proprietary radio stack or LoRaWAN device driver alongside sensor processing logic. Brown-out detection and wide 2.3-5.5 V supply enable direct operation from 3.6 V Li-SOCl2 cells or 5 V USB sources, simplifying power tree design.
Recommended
Consumer White Goods Control Board
The PIC18F25K40-E/MV is well matched to consumer white goods such as washing machines, dishwashers and microwave ovens where cost, reliability and 5 V noise immunity are essential. The device integrates 2 KB RAM, 256 bytes EEPROM for user settings, and Core Independent Peripherals that handle H-bridge timing and buzzer drive without CPU intervention. The -E temperature grade (-40C to +125C) covers appliance under-hood environments. UART, SPI and I2C enable connection to user-interface boards, sensor packs and inverter modules, while the 25 I/O pins support keypads, LED indicators and seven-segment displays on the same PCB.
Recommended
Automotive Body and Lighting Module
The PIC18F25K40-E/MV operates across -40C to +125C and tolerates 5 V supply noise typical of 12 V automotive body controllers, making it suitable for lighting modules, seat controllers and HVAC flaps. PWM outputs drive LED strings directly, while the comparators handle current sensing for fault detection. The EUSART supports LIN slave communication for body-domain networks. For non-safety-critical body applications, the K40 family is widely used. Note: For ASIL-rated safety functions such as airbags or braking, designers must select AEC-Q100 qualified automotive-grade parts from the same family.
Recommended
5V Industrial PLC I/O Module
The PIC18F25K40-E/MV suits 5 V industrial PLC I/O modules that must interface with 24 V field signals and 4-20 mA loops. With Peripheral Pin Select, designers can route EUSART, SPI and I2C peripherals to any digital I/O pin, simplifying PCB routing of densely packed optocoupler inputs and relay drivers. The 17 ADC channels process 0-10 V analog inputs when paired with input dividers, and the 5-bit DAC drives analog setpoints for valve and dimmer control. Flash self-programmability supports field firmware updates over Modbus, critical for installed-base equipment.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F25K40-E/MV — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F24K40-E/MV | PIC18F25K40-E/ML | PIC18F25Q10-E/MV | PIC18F25K22-E/MV |
|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 28-UQFN (4x4 mm) | 28-UQFN (4x4 mm) - same | 28-QFN (6x6 mm) - same pin count | 28-UQFN (4x4 mm) - same | 28-UQFN (4x4 mm) - same |
| Flash Memory | 32 KB | 16 KB (-50%) | 32 KB (same) | 32 KB (same) | 32 KB (same) |
| RAM | 2 KB | 2 KB (same) | 2 KB (same) | 2 KB (same) | 2 KB (same) |
| CPU Speed | 64 MHz | 64 MHz (same) | 64 MHz (same) | 64 MHz (same) | 64 MHz (same) |
| CWG (Complementary Waveform Generator) | Yes | Yes | Yes | Yes | No |
| CRC/SCAN | Yes | Yes | Yes | Yes | No |
| Operating Voltage | 2.3 V to 5.5 V | 2.3 V to 5.5 V | 2.3 V to 5.5 V | 1.8 V to 5.5 V (wider) | 2.3 V to 5.5 V |
| Unit Price (1 pc) | $2.62 (as of 2026-09-27) | $2.20 (estimated lower Flash tier) | $2.65 (QFN variant) | $2.80 (newer gen) | $2.10 (legacy) |
Key Differentiators
- Richer Core Independent Peripheral set than predecessor K22 (vs PIC18F25K22-E/MV)
- Higher Flash density than 24K40 sibling (vs PIC18F24K40-E/MV)
- Mature 5V industrial support over newer Q10 (vs PIC18F25Q10-E/MV)
Design Notes
The PIC18F25K40-E/MV draws under 15 mA active at 64 MHz and below 100 nA in XLP sleep. For battery designs, gate the analog supply to sensors with a digital I/O pin to eliminate standby current. Place a 100 nF decoupling capacitor within 3 mm of each VDD/VSS pair on the UQFN, and a 10 uF bulk capacitor near the device for transient handling. Estimated: at 5 V VDD, total quiescent draw is dominated by leakage; avoid powering from a noisy LDO if analog accuracy matters.
The 28-UQFN 4x4 mm package has a small thermal pad that must be soldered to a 2x2 mm copper pour on the top layer to achieve rated thermal performance. Route all PPS remappable signals to dedicated through-hole test points so firmware engineers can verify peripheral pin assignments in-circuit. Keep ADC traces short and away from PWM switching nodes to avoid coupling digital noise into analog readings.
Do not exceed 5.5 V on any I/O pin even though the absolute maximum extends to 6.5 V - the 5V-tolerant specification guarantees ADC accuracy only within 2.3-5.5 V. When migrating from PIC18F25K22 to PIC18F25K40, recompile with the latest XC8 compiler; PPS register addresses changed between generations. The ICD3 / ICD4 programmer requires a 4.7 kohm pull-up on MCLR; omitting it produces intermittent programming failures.
Compliance Information
RoHS compliant per Microchip product page and distributor listings. Standard E-grade is not AEC-Q100 qualified; for AEC-Q100 automotive body modules, contact Microchip for the -VAO or -E/SSVAO automotive-screened variants. Halogen-free status not explicitly stated in provided data.