PIC18F47K42-I/P - 128KB Flash, 8-bit PIC MCU, 40-PDIP | Microchip
MPN: PIC18F47K42-I/P ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $6.82 | $6.82 |
| 10 | $6.13 | $61.30 |
| 100 | $5.32 | $532.00 |
| 500 | $4.65 | $2,325.00 |
| 1,000 | $4.1 | $4,100.00 |
PIC18F47K42-I/P Overview
An 8-bit microcontroller (MCU) is a single-chip computer that integrates a CPU, non-volatile program memory, RAM, and peripheral interfaces on one die. Within the broader taxonomy, a microcontroller belongs to the semiconductor > integrated circuit > microcontroller > 8-bit MCU > PIC18 family of devices. PIC18 MCUs use a modified Harvard RISC architecture and are widely deployed in cost-sensitive embedded control, IoT end-nodes, sensor hubs, and human-machine interface applications where deterministic real-time response and low standby power are essential.
The PIC18F47K42-I/P combines 12-bit ADC2 (up to 35 channels with automatic Capacitive Voltage Divider support), 5-bit DAC outputs, three op-amps, two comparators, DMA, vector interrupts, and a Peripheral Pin Select (PPS) mapping engine that lets designers remap digital peripherals to any I/O pin. The 128 KB Flash is partitioned for bootloader and field firmware updates, while the MAP and DIA (Device Information Area) features support unique per-chip serialization and calibration.
Operating voltage spans 1.8 V to 5.5 V with active core current below 5 mA at 64 MHz and idle currents under 1 mA. Hardware peripherals include PWM, CWG, NCO, UART, SPI, I2C, and a 32-level hardware stack. The integrated nanoWatt XLP technology enables battery-powered applications such as wireless sensor nodes, wearables, and remote controls where standby drain dominates battery life.
Typical applications include IoT sensor nodes, low-power wireless devices, automotive body and interior modules, industrial control panels, consumer appliances, and USB-to-UART bridge firmware platforms. The 40-pin PDIP form factor is especially well suited to prototyping, hobbyist projects, and educational platforms where through-hole soldering and breadboarding are preferred over surface mount.
When designing with the PIC18F47K42-I/P, leave VDD/VSS decoupling (100 nF plus 10 µF bulk) within 5 mm of every supply pin, and tie the MCLR pin through a 10 kΩ pull-up to VDD for reliable reset. The PPS configuration registers must be programmed in the user initialization code; otherwise peripherals default to fixed pin assignments.
This page consolidates real distributor pricing, verified same-family drop-in alternatives, and practical PCB/design notes not aggregated in the manufacturer datasheet, making cross-engineer comparison faster than reading the 800-page datasheet cover-to-cover.
Drop-in alternatives for PIC18F47K42-I/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-I/P (same form factor and footprint) — differing in ADC, DAC, Mounting Type, Package, Comparators.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F47K42-E/P
✅ Drop-In✓ In Stock
$5.2 / Unit
View Datasheet →PIC18F47K42-I/PT
✅ Drop-In✓ In Stock
$2.04 / Unit
View Datasheet →PIC18F47K42-I/ML
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F47K40-I/P
✅ Drop-In✓ In Stock
$2.88 / Unit
View Datasheet →PIC18F46K42-I/P
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F47K42T-I/PT
✅ Drop-In✓ In Stock
$2.62 / Unit
View Datasheet →PIC18F47K42-I/P Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC18, 8-bit RISC |
| Program Memory (Flash) | 128 KB (64K x 16) |
| RAM | 8 KB |
| EEPROM | 256 B |
| Maximum CPU Frequency | 64 MHz |
| Operating Voltage (VDD) | 1.8 V to 5.5 V |
| I/O Pins | 36 |
| ADC | 12-bit ADC2, up to 35 channels |
| DAC | 5-bit, multiple outputs |
| Comparators | 2 |
| Op-amps | 3 |
| DMA Channels | Yes |
| PPS (Peripheral Pin Select) | Yes |
| Communication Interfaces | UART, SPI, I2C |
| PWM Channels | Multiple (10-bit/16-bit) |
| Timers | Multiple 8/16-bit |
| Package | 40-pin PDIP (P) |
| Mounting Type | Through-Hole |
| Operating Temperature | -40°C to +85°C (Industrial, "I") |
| RoHS | Compliant |
| Lead-Free | Yes |
| MSL Level | Not applicable (through-hole) |
PIC18F47K42-I/P Pin Configuration
| Pin 1 | MCLR/VPP/RE3 — Master clear reset input / programming voltage / PORTE3 |
| Pin 2 | RA0 — PORTA bit 0, analog/digital I/O |
| Pin 3 | RA1 — PORTA bit 1, analog/digital I/O |
| Pin 4 | RA2 — PORTA bit 2, analog/digital I/O |
| Pin 5 | RA3 — PORTA bit 3, analog/digital I/O |
| Pin 6 | RA4 — PORTA bit 4, analog/digital I/O |
| Pin 7 | RA5 — PORTA bit 5, analog/digital I/O |
| Pin 8 | RA6 — PORTA bit 6 / OSC2, oscillator output |
| Pin 9 | RA7 — PORTA bit 7 / OSC1, oscillator input |
| Pin 10 | VDD — Positive supply voltage |
| Pin 11 | VSS — Ground reference |
| Pin 12 | RB0 — PORTB bit 0, interrupt-on-change |
| Pin 13 | RB1 — PORTB bit 1, interrupt-on-change |
| Pin 14 | RB2 — PORTB bit 2, interrupt-on-change |
| Pin 15 | RB3 — PORTB bit 3, interrupt-on-change |
| Pin 16 | RB4 — PORTB bit 4, interrupt-on-change |
| Pin 17 | RB5 — PORTB bit 5, interrupt-on-change |
| Pin 18 | RB6 — PORTB bit 6, interrupt-on-change / ICD |
| Pin 19 | RB7 — PORTB bit 7, interrupt-on-change / ICD |
| Pin 20 | VDD — Positive supply voltage |
| Pin 21 | VSS — Ground reference |
| Pin 22 | RC0 — PORTC bit 0 |
| Pin 23 | RC1 — PORTC bit 1 |
| Pin 24 | RC2 — PORTC bit 2 |
| Pin 25 | RC3 — PORTC bit 3 |
| Pin 26 | RC4 — PORTC bit 4 |
| Pin 27 | RC5 — PORTC bit 5 |
| Pin 28 | RC6 — PORTC bit 6 |
| Pin 29 | RC7 — PORTC bit 7 |
| Pin 30 | RD0 — PORTD bit 0 |
| Pin 31 | RD1 — PORTD bit 1 |
| Pin 32 | RD2 — PORTD bit 2 |
| Pin 33 | RD3 — PORTD bit 3 |
| Pin 34 | RD4 — PORTD bit 4 |
| Pin 35 | RD5 — PORTD bit 5 |
| Pin 36 | RD6 — PORTD bit 6 |
| Pin 37 | RD7 — PORTD bit 7 |
| Pin 38 | VSS — Ground reference |
| Pin 39 | VDD — Positive supply voltage |
| Pin 40 | RE0 — PORTE bit 0 |
| Pin 41 | RE1 — PORTE bit 1 |
| Pin 42 | RE2 — PORTE bit 2 |
Typical Applications
PIC18F47K42-I/P is suitable for 7 applications: IoT Sensor Node Controller, Industrial Control Panel HMI, Automotive Body and Interior Module, USB-to-UART Bridge and Protocol Converter, Consumer Appliance Main Controller, Educational Platform and Prototyping Board, Battery-Powered Medical Monitoring Device.
IoT Sensor Node Controller
The PIC18F47K42-I/P fits IoT sensor node designs because its 128 KB Flash accommodates full TCP/IP stacks or LoRaWAN device firmware with room for bootloader and OTA update images, while the 8 KB RAM buffers sensor measurements between wireless transmissions. The nanoWatt XLP technology delivers sub-µA sleep current with full RAM retention, enabling multi-year battery life on a single coin cell. The 12-bit ADC2 with 35 channels reads temperature, humidity, motion, and gas sensors simultaneously, and the PPS engine lets designers route UART, SPI, or I2C wireless module interfaces to any available pin without PCB rework.
Recommended
Industrial Control Panel HMI
The PIC18F47K42-I/P serves as the main HMI controller in industrial control panels because its 64 MHz CPU executes display refresh, button debouncing, and serial protocol handling in real time with deterministic interrupt latency. The 40-pin PDIP form factor simplifies through-hole assembly and field repair in legacy equipment, while PPS flexibility lets designers reassign peripherals across PCBs without changing the firmware. The 12-bit ADC2 reads potentiometers and analog sensors at high speed, and the integrated op-amps and comparators condition 4-20 mA loop signals without external amplifiers.
Recommended
Automotive Body and Interior Module
The PIC18F47K42-I/P is well-suited to non-safety automotive body modules like seat controllers, mirror adjusters, ambient lighting drivers, and HVAC blend door actuators. Its wide 1.8-5.5 V VDD range tolerates load-dump transients with proper external TVS protection, while the 12-bit ADC and PWM peripherals drive LED dimming curves and motor speed control. The 128 KB Flash holds CAN/LIN protocol stacks and application logic, and the DMA controller offloads repetitive peripheral transactions to reduce CPU wake time, conserving vehicle battery during key-off standby.
Recommended
USB-to-UART Bridge and Protocol Converter
The PIC18F47K42-I/P makes an effective USB-to-UART, USB-to-I2C, or USB-to-SPI bridge for legacy equipment modernization. The 64 MHz CPU handles USB 2.0 full-speed enumeration, while PPS routes the UART/I2C/SPI peripherals to any of the 36 I/O pins, accommodating varying connector pinouts on the host side. The 128 KB Flash stores USB class drivers, HID descriptors, and application-level translation logic, and the DMA engine keeps the serial buffer flowing without CPU intervention, reducing latency and jitter on the converted bus.
Recommended
Consumer Appliance Main Controller
The PIC18F47K42-I/P controls washing machines, dishwashers, microwave ovens, and coffee makers by combining capacitive touch sensing (via ADC2 with CVD hardware), 12-bit ADC for temperature sensing, and 16-bit PWM for motor speed and heater control. The 40-pin PDIP package is well suited to consumer appliances where through-hole assembly reduces manufacturing cost and supports field-replaceable controller boards. The XLP sleep modes reduce standby power below 0.1 W, helping manufacturers meet ENERGY STAR and EU Ecodesign regulations.
Recommended
Educational Platform and Prototyping Board
The PIC18F47K42-I/P is ideal for hobbyists, university courses, and rapid prototyping because its 40-pin PDIP through-hole package drops directly into breadboards and 0.1-inch prototype perfboards. The PIC18F47K42 Curiosity Nano Evaluation Kit (DM182028) provides on-board programming, debugging, and USB connectivity without external programmers, lowering the entry barrier for students. The MPLAB X IDE and free XC8 compiler enable a full development workflow at zero licensing cost, and the 128 KB Flash gives ample room for experimental projects without code-size anxiety.
Recommended
Battery-Powered Medical Monitoring Device
The PIC18F47K42-I/P drives portable medical monitoring devices like blood pressure cuffs, pulse oximeters, and glucose meters because its sub-µA XLP sleep current extends battery life to multi-year timeframes on two AA cells. The 12-bit ADC2 captures analog biosensor signals with 0.5 mV resolution, while the integrated op-amps condition photodiode currents from SpO2 sensors without external instrumentation amplifiers. The 128 KB Flash stores calibration tables, measurement algorithms, and LCD user interface logic, and the 5-bit DAC generates reference voltages for sensor excitation.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F47K42-I/P — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F47K42-E/P | PIC18F47K42-I/PT | PIC18F47K42-I/ML | PIC18F47K40-I/P | PIC18F46K42-I/P |
|---|---|---|---|---|---|---|
| Package | 40-pin PDIP (P) | 40-pin PDIP (P) - same | 40-pin PDIP (P) - same | 44-pin QFN (ML) | 40-pin PDIP (P) - same | 40-pin PDIP (P) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Program Memory | 128 KB | 128 KB | 128 KB | 128 KB | 64 KB | 64 KB |
| RAM | 8 KB | 8 KB | 8 KB | 8 KB | 4 KB | 4 KB |
| Maximum CPU Frequency | 64 MHz | 64 MHz | 64 MHz | 64 MHz | 64 MHz | 64 MHz |
| Operating Temperature | -40°C to +85°C (I) | -40°C to +125°C (E) | -40°C to +85°C (I) | -40°C to +85°C (I) | -40°C to +85°C (I) | -40°C to +85°C (I) |
| Operating Voltage (VDD) | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V |
| PPS Peripheral Pin Select | Yes | Yes | Yes | Yes | Yes | Yes |
| ADC Resolution | 12-bit ADC2 | 12-bit ADC2 | 12-bit ADC2 | 12-bit ADC2 | 12-bit ADC2 | 12-bit ADC2 |
Key Differentiators
- Largest Flash in the 40-pin PIC18 K42 family (vs PIC18F47K40-I/P)
- Extended temperature option on the same die (vs PIC18F47K42-E/P)
- Peripheral Pin Select (PPS) flexibility for layout freedom (vs PIC18F46K22-I/P)
Design Notes
Decouple each VDD/VSS pin pair (10/11, 20/21, 39/38) with a 100 nF ceramic capacitor placed within 5 mm of the pin and a shared 10 µF bulk capacitor on the main supply rail. The PIC18F47K42's nanoWatt XLP sleep currents as low as 30 nA require clean power to achieve datasheet figures; noisy supplies can increase sleep current by 10× or more. In battery applications, place a 100 kΩ pull-down on MCLR to prevent floating-reset current draw from the Li-ion cell.
Route the ICSP clock (ICSPCLK) and data (ICSPDAT) lines to pins RB6 and RB7 with short traces and avoid routing noisy signals (PWM, switching supplies) parallel to them within 10 mm to prevent programming failures and EMI coupling. The 40-pin PDIP package gives generous clearance for through-hole prototyping on 0.1-inch grid perfboards; for production, consider migrating to PIC18F47K42-I/ML (44-QFN) using the same firmware.
Always configure the PPS module in user initialization code before using any remappable digital peripheral, or peripherals default to fixed legacy pin assignments and remapping silently fails. Configuration words must be set correctly: enable the low-voltage programming (LVP) bit only if using LVP mode, otherwise leave it disabled to free up RB5 as a general-purpose I/O. Watch-dog timer, brown-out reset, and PLL configuration bits are all in CONFIG1-CONFIG4 and must match the chosen clock source and application safety requirements.
Place the 64 MHz primary oscillator crystal or resonator (if used) within 5 mm of OSC1/RA7 and OSC2/RA6 with short, symmetric traces and a grounded guard ring to minimize EMI. For the internal 64 MHz HFINTOSC, no external crystal is needed, freeing pins RA6/RA7 for GPIO. Analog signals (ADC, op-amp inputs) should be routed away from the switching node of any on-board DC-DC converter and ideally over a continuous ground plane to preserve 12-bit ADC accuracy.
Compliance Information
RoHS and REACH compliant per Microchip product page and LCSC listing. Industrial temperature grade (-40°C to +85°C); not AEC-Q100 qualified for automotive safety. Halogen-free per Microchip environmental compliance documentation.