PIC18F46K22-I/P - 8-bit 64MHz 64KB Flash MCU 40-PDIP | Microchip
MPN: PIC18F46K22-I/P ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $4.1 | $4.10 |
| 10 | $3.69 | $36.90 |
| 100 | $3.28 | $328.00 |
| 500 | $2.91 | $1,455.00 |
| 1,000 | $2.61 | $2,610.00 |
PIC18F46K22-I/P Overview
What is an 8-bit microcontroller? An 8-bit MCU is a single-chip computer that processes data 8 bits at a time and integrates CPU, RAM, non-volatile program memory (Flash), peripherals, and I/O on one die. Microcontrollers occupy a position in the embedded hierarchy beneath microprocessors (MPU) and above discrete logic; PIC18 sits within Microchip's 8-bit PIC portfolio and is widely used for cost-sensitive, deterministic, low-to-medium-complexity embedded control.
Key features include 36 digital I/O pins, a 12-bit ADC with up to 30 input channels, multiple PWM/capture/compare modules, EUSART, MSSP (SPI/I2C), comparators, and a hardware RTCC. The device operates from 1.8 V to 5.5 V across the family, with this "F" (Flash) variant rated for 2.3 V to 5.5 V and the deep-sleep current as low as 20 nA (typical) per the XLP nanoWatt specification.
Architecturally, the PIC18F46K22 uses an enhanced Harvard bus with a 16-bit instruction word and 8-bit data path, supports hardware multiply, and offers self-reprogrammable Flash under software control. The "-I/P" suffix indicates the industrial temperature grade (-40 °C to +85 °C) and the 40-pin PDIP package, which remains popular for breadboard prototype and educational use.
Typical applications include consumer appliance controls, sensor signal conditioning, low-power battery nodes, USB-less Human Interface Devices, motor-control BLDC/FOC peripherals, and industrial instrumentation front-ends. The combination of wide I/O count, generous ADC channel count, and XLP low-power makes the part flexible across many embedded roles.
When designing with this MCU, budget I/O current: per-pin source/sink is rated 25 mA, with a total package budget of 200 mA. A 0.1 µF decoupling capacitor within a few millimeters of VDD is essential, and an external 4 MHz to 48 MHz crystal (or internal oscillator) drives the system clock.
This page synthesizes XAIPART distributor pricing, verified drop-in alternatives, design notes, and pinout diagrams not found in any single datasheet, supporting faster board bring-up and procurement decisions.
Drop-in alternatives for PIC18F46K22-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 PIC18F46K22-I/P (same form factor and footprint) — differing in Package, Timers, ADC, Core Architecture, Operating Temperature.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F45K22-I/P
✅ Drop-In✓ In Stock
$2.1 / Unit
View Datasheet →PIC18F4620-I/PT
✅ Drop-In✓ In Stock
$5.45 / Unit
View Datasheet →PIC18F458-I/P
✅ Drop-In✓ In Stock
$7.45 / Unit
View Datasheet →PIC18F46K22-I/P Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC18 8-bit |
| Program Memory (Flash) | 64 KB (32K x 16 words) |
| SRAM | 3,896 B |
| EEPROM | 256 B |
| Maximum CPU Frequency | 64 MHz (16 MIPS) |
| Supply Voltage (F variant) | 2.3 V to 5.5 V |
| I/O Pins | 36 |
| ADC | 12-bit, up to 30 channels |
| Timers | 7 (TMR0-TMR6) |
| PWM Modules | 5 CCP / 6 ECCP (capture/compare/PWM) |
| Communication | 2x EUSART, 2x MSSP (SPI / I2C) |
| Comparators | 2 (with CVREF) |
| Operating Temperature | -40 C to +85 C (Industrial) |
| Package | 40-pin PDIP (P) |
| Low-Power Feature | nanoWatt XLP (deep sleep ~20 nA) |
PIC18F46K22-I/P Pin Configuration
| Pin 1 | MCLR/RE3/AN15 — Master Clear (reset) input or digital I/O; can also be AN15 analog input on this package |
| Pin 2 | RA0/AN0 — PORTA bit 0 / analog input AN0 |
| Pin 3 | RA1/AN1 — PORTA bit 1 / analog input AN1 |
| Pin 4 | RA2/AN2/VREF- — PORTA bit 2 / analog input AN2 / negative ADC reference |
| Pin 5 | RA3/AN3/VREF+ — PORTA bit 3 / analog input AN3 / positive ADC reference |
| Pin 6 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input (open-drain on this device) |
| Pin 7 | RA5/AN4 — PORTA bit 5 / analog input AN4 |
| Pin 8 | RB0/INT0 — PORTB bit 0 / external interrupt 0 |
| Pin 9 | RB1/INT1 — PORTB bit 1 / external interrupt 1 |
| Pin 10 | RB2/INT2 — PORTB bit 2 / external interrupt 2 |
| Pin 11 | VDD — Positive supply (2.3 V to 5.5 V for this variant) |
| Pin 12 | VSS — Ground reference |
| Pin 13 | RB3/CCP2 — PORTB bit 3 / CCP2 input/output |
| Pin 14 | RB4 — PORTB bit 4 (interrupt-on-change capable) |
| Pin 15 | RC0 — PORTC bit 0 |
| Pin 16 | RC1 — PORTC bit 1 |
| Pin 17 | RC2 — PORTC bit 2 |
| Pin 18 | RB5 — PORTB bit 5 (interrupt-on-change capable) |
| Pin 19 | RB6/PGC — PORTB bit 6 / ICSP clock (and interrupt-on-change) |
| Pin 20 | RB7/PGD — PORTB bit 7 / ICSP data (and interrupt-on-change) |
| Pin 21 | RC3/SCL — PORTC bit 3 / I2C clock (MSSP) |
| Pin 22 | RC4/SDA — PORTC bit 4 / I2C data (MSSP) |
| Pin 23 | RC5/SDO — PORTC bit 5 / SPI data out (MSSP) |
| Pin 24 | RC6/TX/CK — PORTC bit 6 / EUSART async TX or sync clock |
| Pin 25 | RC7/RX/DT — PORTC bit 7 / EUSART async RX or sync data |
| Pin 26 | RC8/CCP6 — PORTC bit 8 (only on 40/44 pin parts) / CCP6 |
| Pin 27 | RB0 (alternate numbering noted in datasheet) — Note: PORTB fully used; refer to datasheet Table 1-4 for exact pin mapping in DIP |
| Pin 28 | RD0 — PORTD bit 0 |
| Pin 29 | RD1 — PORTD bit 1 |
| Pin 30 | RD2 — PORTD bit 2 |
| Pin 31 | VSS — Ground reference (second VSS pin) |
| Pin 32 | VDD — Positive supply (second VDD pin) |
| Pin 33 | RD3 — PORTD bit 3 |
| Pin 34 | RC9/CCP7 — PORTC bit 9 / CCP7 |
| Pin 35 | RE0/RD — PORTE bit 0 (read control for PSP) |
| Pin 36 | RE1/WR — PORTE bit 1 (write control for PSP) |
| Pin 37 | RE2/CS — PORTE bit 2 (chip-select control for PSP) |
| Pin 38 | RD4 — PORTD bit 4 |
| Pin 39 | RD5 — PORTD bit 5 / alternate ICSP data |
| Pin 40 | RD6/TX2 — PORTD bit 6 / EUSART2 TX |
Typical Applications
PIC18F46K22-I/P is suitable for 6 applications: Industrial Sensor Interface & PLC Front-End, Battery-Powered Remote Sensor / IoT Node, Consumer Appliance Control (Washing / Coffee / HVAC), Educational & Hobby Embedded Development Board, BLDC / PMSM Motor Drive (Low-Power), Human-Machine Interface (Keypad + LCD + Buzzer).
Industrial Sensor Interface & PLC Front-End
The PIC18F46K22-I/P is well-suited to industrial sensor front-ends and small PLC input modules, where its 12-bit ADC with up to 28 usable analog channels (per the 40-PDIP pinout) and dual EUSART (RS-232/RS-485 via external transceiver) handle 4-20 mA loops, thermocouples, and bridge sensors. The 64 KB Flash and 3.9 KB SRAM are enough for PID loop firmware plus Modbus RTU stacks, while the wide 2.3 V to 5.5 V supply tolerates 24 V industrial rails after LDO regulation. Estimated power draw at 5 V/16 MIPS is roughly 12 mA active and 20 nA in deep-sleep, enabling low-heat fanless enclosures typical of factory automation. Companion parts: MCP2551 (CAN transceiver, if migrating to PIC18F458), MCP1501 (precision voltage reference for ADC), TC427 (buffer to drive industrial loads).
Recommended
Battery-Powered Remote Sensor / IoT Node
The PIC18F46K22-I/P's nanoWatt XLP feature set is the key enabler for battery-powered IoT nodes: deep-sleep current of approximately 20 nA (typical, with WDT disabled) lets a node sleep most of its life, while periodic RTCC wake-ups trigger an ADC read and EUSART packet in single-digit microamp averages. The 2.3 V minimum supply aligns directly with 2x AA alkaline or NiMH packs, eliminating boost converter losses. Estimated battery life with a 10-minute sleep cycle and 2500 mAh alkaline pack exceeds 5 years. The wide ADC channel count (up to 28 analog inputs via the 40-PDIP pinout) supports multi-sensor boards (temperature, humidity, light). Companion parts: MCP1700 (LDO for stable 3.3 V), MCP9808 (digital temp sensor for calibration), MCP1640 (boost if 3V logic needed on remote end).
Recommended
Consumer Appliance Control (Washing / Coffee / HVAC)
The PIC18F46K22-I/P suits consumer white-goods main controls where cost per board is decisive: 64 KB Flash hosts UI state machines, 5 CCP / 6 ECCP modules drive triac-controlled heaters, pumps, and BLDC motors, and the 36 I/O pins are sufficient for keypads, 7-segment or TFT panels, and rotary encoders. nanoWalt XLP keeps standby power below 0.5 W to meet modern energy regulations (EU 1275/2008, ENERGY STAR). The industrial -40 C to +85 C temperature grade tolerates the warm inside of dishwashers, microwaves, or motor enclosures. Estimated BOM-related controller cost drops materially versus Cortex-M0 alternatives because development does not require external crystals and the internal 16 MHz RC is accurate enough. Companion parts: MCP14E11E (dual high-side driver), TC4427 (gate buffer for TRIAC), MCP9700 (onboard temp sensor for thermal foldback).
Recommended
Educational & Hobby Embedded Development Board
The PIC18F46K22-I/P is one of the most common PIC18F DIP-package choices on the market for breadboard-friendly development and university microcontroller courses, alongside the smaller-pin PIC18F14K22. The 40-PDIP package drops into standard 40-pin ZIF sockets and breakout boards without surface-mount rework. MPLAB X + XC8 + PICkit 5 form the canonical development triangle; a student can prototype, debug, and re-flash without designing a custom PCB. Pin-to-pin compatibility with PIC18F45K22-I/P and PIC18F4620-I/P gives instructors a roadmap to teach memory-tier trade-offs. Companion parts: PICkit 5 (PG164140) for ICSP, MCP9700 or MCP9808 for an analog or I2C sensor learning module, 24LC256 EEPROM for the I2C lab sequence. Estimated student-friendly setup cost is well under $100 fully assembled.
Recommended
BLDC / PMSM Motor Drive (Low-Power)
The PIC18F46K22-I/P hosts a BLDC or PMSM low-power FOC firmware when paired with external gate drivers and shunt resistors, thanks to 6 ECCP channels with programmable dead-time and hardware fault shutdown. 64 KB Flash fits sensorless / sensored 6-step BLDC plus FOC libraries for pumps, fans, e-bike auxiliary motors, or small appliances. The 5 CCP / 6 ECCP peripheral set exposes complementary PWM pairs with center-aligned modes favored for FOC; the integrated 12-bit ADC captures BEMF zero-cross and current-sense signals synchronously with PWM edges. At 16 MIPS instruction throughput, FOC current loops settle within ~30 µs. Companion parts: MCP14C040 (gate driver), TC427 (inverter buffer), MCP6L01 op-amp for current-sense conditioning, MCP9700 for winding temp monitoring. Estimated BOM-friendly controller cost makes it competitive in sub-100 W motor drives.
Recommended
Human-Machine Interface (Keypad + LCD + Buzzer)
The PIC18F46K22-I/P is a natural choice for non-USB Human-Machine Interfaces because its 36 digital I/O pins cover matrix keypads up to 4x5, character-LCD interfaces in 4-bit mode, encoder inputs, status LEDs, and a buzzer driver all from one MCU. MSSP in SPI mode talks to TFT or OLED displays that lack parallel interfaces, while the dual EUSART supports a debug console plus an external Bluetooth module (HC-05-class via UART). The 64 KB Flash is sufficient for full menu/UI firmware with multiple language tables; the 3.9 KB SRAM handles input buffering without external memory. Companion parts: MCP79410 (RTCC for time-stamped UI events), TC4427 (LED/buzzer buffer), 24LC256 (settings store in non-volatile EEPROM). Estimated as a one-chip HMI controller with minimal external glue.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F46K22-I/P — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F45K22-I/P | PIC18F46K22-I/PT | PIC18F4620-I/P | PIC18F458-I/P | PIC18F46K20-I/PT |
|---|---|---|---|---|---|---|
| Package | 40-pin PDIP (P) | 40-pin PDIP (P) - same | 44-pin TQFP (PT) - different | 40-pin PDIP (P) - same | 40-pin PDIP (P) - same | 44-pin TQFP (PT) - different |
| Brand | Microchip Technology | Microchip Technology - same | Microchip Technology - same | Microchip Technology - same | Microchip Technology - same | Microchip Technology - same |
| Flash Memory | 64 KB | 32 KB (-50%) | 64 KB (same) | 64 KB (same) | 32 KB (-50%) | 64 KB (same) |
| SRAM | 3,896 B | 3,896 B (same) | 3,896 B (same) | 3,968 B (~same) | 1,536 B (-61%) | 3,896 B (same) |
| Max CPU Frequency | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) - same | 64 MHz (16 MIPS) - same | 40 MHz (10 MIPS) | 40 MHz (10 MIPS) | 64 MHz (16 MIPS) - same |
| ADC Resolution / Channels | 12-bit / up to 28 ANx (40-PDIP) | 12-bit / up to 28 ANx (40-PDIP) | 12-bit / up to 30 ANx (44-TQFP) | 10-bit / up to 8 ANx | 10-bit / 8 ANx | 12-bit / up to 30 ANx |
| Operating Voltage | 2.3 V to 5.5 V | 2.3 V to 5.5 V - same | 2.3 V to 5.5 V - same | 2.0 V to 5.5 V | 2.0 V to 5.5 V | 1.8 V to 5.5 V |
| nanoWatt XLP Low-Power | Yes (deep-sleep ~20 nA) | Yes - same | Yes - same | No (legacy) | No (legacy) | Yes - same |
| Hardware Peripherals | 5 CCP / 6 ECCP, 7 timers, 2 EUSART, 2 MSSP, 2 comparators | Same as target | Same as target | 1 CCP/2 ECCP, 4 timers, 1 EUSART, 1 MSSP | 1 CCP, 3 timers, 1 EUSART, 1 CAN, no ECCP | 5 CCP / 6 ECCP, 7 timers, 2 EUSART, 2 MSSP |
| Industrial Temp Grade | -40 C to +85 C (I grade) | -40 C to +85 C - same | -40 C to +85 C - same | -40 C to +85 C - same | -40 C to +85 C - same | -40 C to +85 C - same |
Key Differentiators
- Highest Flash density in the 40-PDIP PIC18F K22 family (vs PIC18F45K22-I/P)
- Modern peripherals (5 CCP / 6 ECCP, dual EUSART, dual MSSP, nanoWatt XLP) (vs PIC18F4620-I/P)
- Through-hole package availability for breadboard and educational use (vs PIC18F46K22-I/PT (44-TQFP))
- Higher 16 MIPS instruction throughput vs 10 MIPS legacy PIC18F (vs PIC18F458-I/P)
Design Notes
Decouple each VDD pin with a 100 nF X7R ceramic placed within 5 mm of the package lead; add a 10 µF bulk capacitor on the supply rail to handle in-rush when ECCP modules switch external MOSFETs. For nanoWatt designs, gate unused peripherals in software rather than relying on disconnected pins because many PIC18F modules leak even in sleep. Brown-Out Reset (BOR) is recommended enabled for the 2.3 V minimum variant to prevent flash corruption on slow power ramps.
Estimated power dissipation at 5 V / 16 MIPS active mode is approximately 12 mA and approximately 20 nA in deep-sleep; thermal rise is negligible in PDIP-40 because die power is low, but board-level thermal coupling in enclosed appliances can still move ambient above 85 C - keep the MCU away from heatsinks, TRIAC loads, and transformers. For motor-drive applications, route PWM signals (CCP1-CCP6) as length-matched traces from the MCU to the gate-driver inputs to avoid shoot-through from mismatched propagation delay.
Keep ICSP pins PGC/PGD (RB6/RB7) accessible at the board edge and unbypassed by 1k-ohm resistor networks that block programming - the ICSP interface requires direct CMOS-level drive. For 40-PDIP prototype boards, use a 40-pin ZIF socket so PIC18F45K22, PIC18F4620, and PIC18F458 can be interchanged without rework. Place the oscillator crystal and load capacitors within 5 mm of OSC1/OSC2 with a ground guard ring to reduce EMI susceptibility in noisy industrial environments.
The 12-bit ADC achieves rated 100K SPS only with acquisition time tuned to source impedance (TACQ ≈ 2 µs for 10 kΩ source per the datasheet). Use a unity-gain op-amp buffer (e.g., MCP6L01) on high-impedance sensors or thermocouples; if bypassing is not possible, average multiple ADC samples. Keep digital switching traces (PWM, EUSART) more than 5 cm from analog traces around the ANx pins, or place a ground guard trace between them to reduce digital crosstalk into the SAR ADC.
Do not mistake the LF suffix - PIC18LF46K22-I/P runs from 1.8 V to 3.6 V only, while the F variant (this part) runs from 2.3 V to 5.5 V. Confusing the two destroys LF parts at 5 V. Also note that on this 40-PDIP pinout, ADC channels AN8-AN15 are shared with PORTB and PORTE digital pins; configure them as analog inputs via ANSEL before ADC reads or readings will be railed. The MCLR pin is sampled on every reset and must not be left floating - tie to VDD through a 10 kΩ resistor with a 100 nF cap for noise immunity.
Compliance Information
RoHS and lead-free confirmed per Microchip product family PCN history; industrial I-grade operating range -40 C to +85 C. AEC-Q100 automotive variants exist in the same family under different suffixes (e.g., PIC18F46K22-I/PTVAO).