PIC18F47K42-E/P - 128KB Flash 8-Bit MCU 64MHz | Microchip
MPN: PIC18F47K42-E/P ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $8.26 | $8.26 |
| 10 | $7.43 | $74.30 |
| 100 | $6.61 | $661.00 |
| 500 | $5.78 | $2,890.00 |
| 1,000 | $5.2 | $5,200.00 |
PIC18F47K42-E/P Overview
A microcontroller (MCU) is a single-chip computer containing a CPU core, volatile and non-volatile memory, digital and analog peripherals, and I/O. PIC18F-series devices sit within Microchip's 8-bit PIC architecture hierarchy: PIC10/12/16/18 family -> 8-bit MCU -> microcontroller -> embedded processor -> semiconductor. The PIC18FxxK42 sub-family emphasizes XLP (eXtreme Low Power) technology, with nanoWatt XLP sleep currents below 100 nA in deep sleep, and Active mode currents around 5 mA at full CPU speed, making it well suited to battery-powered and energy-harvesting designs.
Key differentiating features include the unique combination of DMA-driven peripheral operation that offloads the core, a vectored interrupt controller for deterministic response, a 12-bit ADC2 with automated averaging and threshold comparison, and a peripheral pin-select (PPS) system that routes digital functions to nearly any I/O pin. The device offers 36 interrupt sources, a 32-bit CRC scanner, and a windowed watchdog timer (WWDT).
Typical applications include industrial sensor conditioning, low-power IoT sensor nodes, motor control with the PWM and 12-bit ADC, automotive body and interior subsystems, white goods and HVAC control, and home appliances. The wide operating voltage and temperature range (extended -40C to +125C) makes the part suitable for both commercial and industrial deployment.
When designing with this device, plan the PPS routing early to avoid conflicts, and budget for the programming/debug interface (PGC/PGD). Microchip's MPLAB X IDE with XC8 compiler and the Curiosity Nano (DM182028) evaluation board dramatically accelerate bring-up. This page synthesizes distributor pricing, drop-in PIC18F47K42 variants, and CIP design notes not found in the bare manufacturer datasheet.
Drop-in alternatives for PIC18F47K42-E/P — 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 PIC18F47K42-E/P (same form factor and footprint) — differing in Core Architecture, ADC, PWM Channels, I/O Pins, Mounting Type.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F47K42-I/P
✅ Drop-In✓ In Stock
$4.1 / Unit
View Datasheet →PIC18F47K42-E/P
✅ Drop-In✓ In Stock
$5.2 / Unit
View Datasheet →PIC18F47K42T-I/P
✅ Drop-In ⚠️ Specs Unverified📋 Reference alternative (not in catalog)
PIC18F47K42-I/PT
✅ Drop-In ⚠️ Specs Unverified✓ In Stock
$2.04 / Unit
View Datasheet →PIC18F46Q84-I/P
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F46K42-E/P
✅ Drop-In✓ In Stock
$2.41 / Unit
View Datasheet →PIC18F47K42-E/P Maximum Ratings & Electrical Characteristics
| Core Architecture | 8-bit PIC18 RISC |
| Program Memory (Flash) | 128 KB |
| RAM | 8 KB |
| EEPROM | 256 B |
| Maximum CPU Speed | 64 MHz |
| MIPS (DMIPS equivalent, 8-bit) | 16 MIPS |
| Operating Voltage Range | 2.3 V to 5.5 V |
| ADC | 12-bit ADC2 with Computation, up to 35 channels |
| DAC | 5-bit DAC, 1x module |
| Comparators | 2x with selectable reference |
| PWM Channels | Multiple CCP/ECCP/16-bit PWM |
| DMA Channels | 4x DMA |
| I/O Pins | 36 (approximately) |
| Peripheral Pin Select (PPS) | Yes |
| Vectored Interrupts | Yes |
| Windowed Watchdog Timer (WWDT) | Yes |
| CRC Scanner | 32-bit hardware |
| UART / SPI / I2C | Multiple (EUSART, SPI, I2C) |
| Package | 40-pin PDIP (R-PDIP-T40) |
| Mounting Type | Through-Hole |
| Operating Temperature Range | -40C to +125C (Extended, -E suffix) |
| RoHS Status | Compliant |
PIC18F47K42-E/P Pin Configuration
| Pin 1 | RE3/MCLR — Digital I/O / Master Clear (reset) input |
| Pin 2 | RA0 — PORTA bit 0 / analog input |
| Pin 3 | RA1 — PORTA bit 1 / analog input |
| Pin 4 | RA2 — PORTA bit 2 / analog input |
| Pin 5 | RA3 — PORTA bit 3 / analog input / reference voltage |
| Pin 6 | RA4 — PORTA bit 4 |
| Pin 7 | RA5 — PORTA bit 5 |
| Pin 8 | RA6 — PORTA bit 6 |
| Pin 9 | RA7 — PORTA bit 7 |
| Pin 10 | RE0 — PORTE bit 0 |
| Pin 11 | RE1 — PORTE bit 1 |
| Pin 12 | RE2 — PORTE bit 2 |
| Pin 13 | VDD — Positive supply voltage |
| Pin 14 | VSS — Ground reference |
| Pin 15 | RB0 — PORTB bit 0 / analog input |
| Pin 16 | RB1 — PORTB bit 1 / analog input |
| Pin 17 | RB2 — PORTB bit 2 / analog input |
| Pin 18 | RB3 — PORTB bit 3 / analog input |
| Pin 19 | RB4 — PORTB bit 4 |
| Pin 20 | RB5 — PORTB bit 5 |
| Pin 21 | RB6 — PORTB bit 6 / ICSP clock |
| Pin 22 | RB7 — PORTB bit 7 / ICSP data |
| Pin 23 | RC0 — PORTC bit 0 |
| Pin 24 | RC1 — PORTC bit 1 |
| Pin 25 | RC2 — PORTC bit 2 |
| Pin 26 | RC3 — PORTC bit 3 |
| Pin 27 | RC4 — PORTC bit 4 |
| Pin 28 | RC5 — PORTC bit 5 |
| Pin 29 | RC6 — PORTC bit 6 |
| Pin 30 | RC7 — PORTC bit 7 |
| Pin 31 | RD0 — PORTD bit 0 |
| Pin 32 | RD1 — PORTD bit 1 |
| Pin 33 | RD2 — PORTD bit 2 |
| Pin 34 | RD3 — PORTD bit 3 |
| Pin 35 | RD4 — PORTD bit 4 |
| Pin 36 | RD5 — PORTD bit 5 |
| Pin 37 | RD6 — PORTD bit 6 |
| Pin 38 | RD7 — PORTD bit 7 |
| Pin 39 | PGC/ICSPCLK — In-Circuit Serial Programming clock |
| Pin 40 | PGD/ICSPDAT — In-Circuit Serial Programming data |
Typical Applications
PIC18F47K42-E/P is suitable for 7 applications: Low-Power Wireless Sensor Node, Industrial Automation PLC, Automotive Body Control Module, Home Appliance User Interface, Smart Meter Data Concentrator, Medical Monitoring Device, HVAC Climate Control.
Low-Power Wireless Sensor Node
The PIC18F47K42-E/P's 128 KB Flash, 8 KB RAM, and 4 DMA channels make it an ideal host MCU for battery-powered wireless sensor nodes. The CIP DMA can move ADC samples to memory autonomously while the CPU sleeps, while the deep-sleep current below 100 nA extends coin-cell life into the multi-year range. Paired with the integrated 12-bit ADC2 with Computation, the node can perform oversampling and threshold detection without waking the CPU. Designers can implement a 6LoWPAN or LoRaWAN stack in 8 KB RAM with room for proprietary application logic. The 40-pin PDIP through-hole package also simplifies prototyping and rework during early field trials.
Recommended
Industrial Automation PLC
For industrial PLC I/O modules and signal-conditioning cards, the PIC18F47K42-E/P delivers 128 KB Flash for ladder-logic runtimes, the 12-bit ADC2 with Computation for sensor linearization, and the PWM peripheral for closed-loop control. The extended -40C to +125C temperature grade suits cabinet deployments, and the 40-pin PDIP makes through-hole assembly straightforward for low-volume industrial boards. The windowed watchdog timer (WWDT) and vectored interrupts provide deterministic fault response required by IEC 61131-3 systems, while the CRC scanner validates firmware integrity at every boot. The 5V-tolerant I/O directly interfaces with 24V industrial sensors via external dividers.
Recommended
Automotive Body Control Module
The PIC18F47K42-E/P suits body and interior automotive subsystems such as lighting controllers, seat modules, and HVAC blend-door actuators. Its extended temperature grade, 5V I/O tolerance for legacy 12V body networks, and CAN-ready peripherals integrate cleanly into existing vehicle architectures. The 128 KB Flash stores complex body-control algorithms, the DMA moves sensor data without CPU overhead, and the CIP peripherals implement debounced switch inputs and PWM lighting fade transitions autonomously. The part also supports firmware updates over CAN via self-programming Flash, enabling field serviceability for body controllers. Engineers should use the -E extended temp variant for under-dash or engine-bay-adjacent placements.
Recommended
Home Appliance User Interface
Washing machines, dishwashers, and microwave ovens benefit from the PIC18F47K42-E/P's combination of mTouch capacitive touch sensing, 12-bit ADC for temperature and humidity, and the 5-bit DAC for audio beeps. The 8 KB RAM supports an embedded GUI library and the 128 KB Flash holds appliance firmware plus multilingual menus. The CIP-driven peripherals implement smooth knob emulation via PWM without CPU intervention. Designers can leverage Microchip's MCC Melody code generator for rapid pin configuration and peripheral setup. Through-hole PDIP packaging suits high-vibration appliance environments and simplifies field service.
Recommended
Smart Meter Data Concentrator
Smart electricity and water meters using the PIC18F47K42-E/P benefit from its 128 KB Flash for meter firmware and secure communications stacks, plus the 12-bit ADC2 with Computation for power-quality measurements. The DMA channels enable continuous waveform sampling while the CPU handles application logic, and the deep-sleep modes keep standby consumption below the regulatory limits for utility-grade meters. The 40-pin PDIP format allows easy integration with through-hole power supply sections common in metering designs. The hardware CRC scanner provides tamper-detection capability required for revenue-grade meters.
Recommended
Medical Monitoring Device
Patient monitors and portable diagnostic devices can leverage the PIC18F47K42-E/P's 12-bit ADC2 for high-accuracy biosignal acquisition, low-power deep-sleep modes for wearable battery life, and DMA for continuous data acquisition without CPU intervention. The 128 KB Flash accommodates ECG/EEG signal processing algorithms and the 8 KB RAM buffers multiple waveform leads simultaneously. The vectored interrupt controller ensures deterministic response to alarm conditions - critical for IEC 62304 medical device compliance. Engineers should add external watchdog supervision and follow FDA design-control guidance; the part itself is not FDA-listed but is suitable for use as an embedded controller within FDA-cleared systems.
Recommended
HVAC Climate Control
The PIC18F47K42-E/P's combination of multi-channel 12-bit ADC for temperature/humidity sensing, multiple PWM channels for damper and fan motor control, and robust 5V-tolerant I/O make it an excellent HVAC controller brain. The CIP DMA offloads sensor scanning and PID loop execution from the CPU, while the 128 KB Flash stores scheduling, fault logging, and adaptive control algorithms. Extended -40C to +125C operation handles rooftop unit environments, and the 40-pin PDIP simplifies HVAC control board manufacturing. The hardware CRC scanner ensures firmware integrity in critical-life-safety installations.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F47K42-E/P — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F47K42-I/P | PIC18F46K42-E/P | PIC18F46Q84-I/P |
|---|---|---|---|---|
| Package | 40-pin PDIP | 40-pin PDIP - same | 40-pin PDIP - same | 40-pin PDIP - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash (KB) | 128 | 128 | 64 (-50%) | 64 (-50%) |
| RAM (KB) | 8 | 8 | 8 | 8 |
| EEPROM (B) | 256 | 256 | 256 | 256 |
| Max CPU Speed (MHz) | 64 | 64 | 64 | 64 |
| Operating Voltage (V) | 2.3 to 5.5 | 2.3 to 5.5 | 2.3 to 5.5 | 2.3 to 5.5 |
| Temperature Range | -40C to +125C (E) | -40C to +85C (I) | -40C to +125C (E) | -40C to +85C (I) |
| DMA Channels | 4 | 4 | 4 | 4 |
| ADC | 12-bit ADC2 with Computation | 12-bit ADC2 | 12-bit ADC2 | 12-bit ADC2 |
| Unit Price (qty 1) | $8.26 | $8.10 approx | $7.50 approx | $7.00 approx |
Key Differentiators
- Largest Flash in the 40-pin PIC18FxxK42 family (vs PIC18F46K42-E/P)
- Extended -40C to +125C temperature grade for harsh environments (vs PIC18F47K42-I/P)
- CIP peripherals with DMA reduce CPU load (vs PIC18F46K22-E/P)
Design Notes
Estimated: At VDD=5V, FOSC=64MHz, all peripherals active, the PIC18F47K42-E/P draws approximately 15-20 mA. Add a 100 nF decoupling cap as close as possible to VDD (pin 13) and VSS (pin 14). For battery applications, use the deep-sleep mode (<100 nA) and wake via RTCC interrupt. The internal LDO must be enabled via the LDOEN bit in software when VDD falls below 2.7V to maintain reliable 64 MHz operation.
Place the 100 nF VDD decoupling capacitor within 3 mm of pin 13 with a short ground return to pin 14. Add a bulk capacitor (10 uF tantalum or 22 uF ceramic) on the VDD rail if the source impedance is significant. Keep crystal traces short (under 10 mm) and surround them with a ground pour to minimize EMI. ICSP pins PGC (pin 39) and PGD (pin 40) should remain accessible for in-circuit programming during prototyping.
Critical pitfalls when designing with PIC18F47K42-E/P: (1) the PPS peripheral pin select must be unlocked via PPSLOCK before configuration or writes are silently ignored; (2) ADC readings require the ADGO bit to be polled or the ADC interrupt enabled - do not read ADRES directly; (3) MCLR (pin 1) must be tied to VDD via 10 kohm if not used, otherwise the device will hold in reset; (4) the I2C peripheral uses the MSSP module, not the legacy SSP - configure via the new MSSP register set per datasheet section 30.
For designs with external analog signals, route analog inputs (RA0-RA5, RB0-RB3) away from PWM outputs and high-current switching traces. Use a 1 kohm series resistor on the ADC input with a 100 nF capacitor to VSS for anti-aliasing if the source impedance is high. The 12-bit ADC2 needs at least 10 us acquisition time - extend TACQ for high-impedance sources per datasheet guidance in the ADC section.
Compliance Information
RoHS and REACH compliant per Microchip product page. Lead-free and halogen-free per package markings. Not AEC-Q100 qualified - the standard PIC18F47K42-E/P is not automotive qualified; AEC-Q100 qualification requires a specific -Q1 ordering code suffix which is not present in this MPN. Per Microchip environmental compliance documentation, the part is conflict-minerals compliant.