Microchip Technology

PIC18F46K22-I/P - 8-bit 64MHz 64KB Flash MCU 40-PDIP | Microchip

MPN: PIC18F46K22-I/P ✓ Active
In Stock Ships in 1-3 business days
2.3 V to 5.5 V Vdss 40-pin PDIP (P) Package 64 MHz (16 MIPS) Speed 64 KB (32K x 16 words) Memory
From $2.61 USD / Unit
MOQ: 1 |
Price updated: 2026-09-27
Volume Pricing
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
ℹ️ All prices are in USD

PIC18F46K22-I/P Overview

The Microchip Technology PIC18F46K22-I/P is an 8-bit PIC18 microcontroller running up to 64 MHz (with 16 MIPS instruction throughput) and integrating 64 KB of Flash program memory, 3 KB of SRAM, and 256 B of EEPROM, all housed in a 40-pin PDIP through-hole package. It is part of the PIC18F "K22" family and supports the nanoWatt XLP ultra-low-power feature set for battery-friendly designs.

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.

Microchip Technology
Package: 40-pin PDIP (0.600", 15.24 mm)
Timers: 3 (Timer0, Timer1, Timer2)
Core Architecture: PIC16C 8-bit RISC
Microchip Technology
Package: 40-pin PDIP
Timers: Multiple 8/16-bit
ADC: 10-bit, 14 channels
Microchip Technology
Package: 40-pin PDIP (DIP-40, 600 mil)
Timers: Two 8-bit + one 16-bit
ADC: 8-bit, 14 channels
Microchip Technology
Package: 40-PDIP (0.600", 15.24 mm)
ADC: 10-bit
Core Architecture: PIC18 (8-bit Harvard)
Microchip Technology
Package: 40-pin PDIP (0.600 in / 15.24 mm)
Timers: 4 (Timer0/1/2/3)
Operating Temperature: -40 C to +85 C (Industrial, I suffix)
Microchip Technology
Package: 40-pin PDIP (DIP-40)
Timers: 2 x 8-bit, 3 x 16-bit
Operating Temperature: -40C to +85C (Industrial)
Microchip Technology
Package: 40-pin PDIP (0.600 inch / 15.24 mm body width)
ADC: 10-bit, up to 13 channels
Core Architecture: 8-bit PIC18F RISC, modified Harvard
Microchip Technology
Package: PDIP-40 (through-hole, 600 mil)
Timers: Two 8-bit + three 16-bit
ADC: 10-bit, up to 8 channels
Microchip Technology
Package: 40-pin PDIP (DIP-40)
Timers: 4 x 8-bit / 16-bit
ADC: 12-bit, up to 28 channels
Microchip Technology
Package: 40-pin PDIP (0.600 in / 15.24 mm)
Timers: 8-/16-bit, multiple CCP/ECCP
ADC: 10-bit, up to 35 channels with ADCC
Microchip Technology
Package: 44-pin TQFP (10 x 10 mm)
Timers: 4 (Timer0/1/2/3)
ADC: 10-bit, up to 13 channels
Microchip Technology
Package: 44-pin TQFP (PT), 10x10 mm
Timers: 7 (Timer0/1/2/3/4/5/6)
Core Architecture: PIC 8-bit (PIC18F enhanced Harvard)

Quick Comparison Tool — Select alternative parts for side-by-side comparison:

PIC18F45K22-I/P

✅ Drop-In
Microchip Technology
📦 40-pin PDIP (P)
PIC18 (8-bit) · 64 MHz (16 MIPS) · 32 KB Flash (16K x 16) · 1536 bytes · 256 bytes · 36 · 12-bit, up to 28 channels · 4.2 V to 5.5 V

✓ In Stock

$2.1 / Unit

View Datasheet →

PIC18F4620-I/PT

✅ Drop-In
Microchip Technology
📦 40-pin PDIP (P)
PIC18F46xx · PIC18 (8-bit Harvard, enhanced RISC) · 40 MHz · 64 KB (32K x 16 words) · 3968 bytes · 1024 bytes · 36 · 10-bit, up to 13 channels

✓ In Stock

$5.45 / Unit

View Datasheet →

PIC18F458-I/P

✅ Drop-In
Microchip Technology
📦 40-pin PDIP (P)
PIC18 (8-bit Harvard RISC) · 32 KB (16K x 16 words) · 1.5 KB (1536 bytes) · 256 bytes · 40 MHz (10 MIPS) · 2.0 V to 5.5 V · -40 C to +85 C (industrial) · 34

✓ In Stock

$7.45 / Unit

View Datasheet →
ℹ️ 2 cross-package part(s) hidden — different package requires PCB rework and is not a true drop-in replacement. Contact us if you need cross-package suggestions.

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

DIP-40 Package Pinout Diagram DIP-40 40-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 40 2 39 3 38 4 37 5 36 6 35 7 34 8 33 9 32 10 31 11 30 12 29 13 28 14 27 15 26 16 25 17 24 18 23 19 22 20 21 DIP-40
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).

🧩

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).

🔧

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).

📱

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.

⚡

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.

📺

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 Products Summary

MCP1501T-18E/CHY Buffered voltage reference for 12-bit ADC accuracy Used in: Industrial Sensor Interface & PLC Front-End TC427EPA Dual MOSFET driver to buffer I/O pins to industrial loads Used in: Industrial Sensor Interface & PLC Front-End MAX3485ESA+T RS-485 transceiver paired with EUSART for Modbus RTU Used in: Industrial Sensor Interface & PLC Front-End MCP1700T-3302E/MB Quiescent-current LDO for sleep-friendly power regulation Used in: Battery-Powered Remote Sensor / IoT Node MCP9808T-E/MS High-accuracy digital temperature sensor over I2C Used in: Battery-Powered Remote Sensor / IoT Node MCP1640T-I/CHY Boost converter for cell-powered 3.3 V systems Used in: Battery-Powered Remote Sensor / IoT Node TC4427EOA Dual MOSFET gate driver for TRIAC/MOSFET loads Used in: Consumer Appliance Control (Washing / Coffee / HVAC), Human-Machine Interface (Keypad + LCD + Buzzer) MCP14E11EP High-side driver for solenoid and heater switching Used in: Consumer Appliance Control (Washing / Coffee / HVAC) MCP9700T-E/LT Analog temperature sensor for thermal cutoff logic Used in: Consumer Appliance Control (Washing / Coffee / HVAC), Educational & Hobby Embedded Development Board PG164140 MPLAB PICkit 5 in-circuit debugger for ICSP programming Used in: Educational & Hobby Embedded Development Board 24LC256-I/SN I2C EEPROM learning peripheral for MSSP lab exercises Used in: Educational & Hobby Embedded Development Board, Human-Machine Interface (Keypad + LCD + Buzzer) TC427COA Dual MOSFET gate driver for inverter bridge Used in: BLDC / PMSM Motor Drive (Low-Power) MCP6L01T-E/OT Low-offset op-amp for shunt current sensing Used in: BLDC / PMSM Motor Drive (Low-Power) MCP14C040HT-E/VAO Gate driver for N-channel inverter stages Used in: BLDC / PMSM Motor Drive (Low-Power) MCP79410T-I/SN External RTCC with battery backup for timestamped events Used in: Human-Machine Interface (Keypad + LCD + Buzzer)
What is the program memory size of the PIC18F46K22-I/P?
The PIC18F46K22-I/P integrates 64 KB of Flash program memory organized as 32K x 16-bit words, paired with 3,896 bytes of SRAM and 256 bytes of EEPROM. Per the Microchip PIC18F46K22 datasheet (DS40001412), the Flash is self-reprogrammable in-circuit and supports the standard PIC18 read-while-write block operations, which is sufficient for typical embedded C firmware with bootloader support.
Where can I download the PIC18F46K22-I/P datasheet PDF?
The official PIC18F46K22-I/P datasheet PDF is hosted at https://ww1.microchip.com/downloads/en/devicedoc/40001412g.pdf, with the device page also available at https://www.microchip.com/en-us/product/PIC18F46K22. Third-party PDF mirrors appear on alldatasheet.com and datasheets.com; for production design work always prefer the Microchip-issued revision as it carries the latest silicon errata and electrical characteristics.
What is the price of the PIC18F46K22-I/P at quantity 1?
As of 2026-09-28, the unit (qty-1) price for the PIC18F46K22-I/P is approximately $4.10 USD at LCSC, with tape-and-reel industrial pricing trending toward $2.61 USD at 1,000-piece quantities on DigiKey and Mouser. XAIPART publishes fresh tier pricing; for volume quotes above 5,000 pieces, request a direct quote because distributor breaks are non-linear.
What is the pinout of the PIC18F46K22-I/P in the 40-pin PDIP package?
The PIC18F46K22-I/P pinout in 40-pin PDIP places VDD on pins 11 and 32, VSS on pins 12 and 31, MCLR/RA3 on pin 1, and the ICSP clock/data on pins 39 and 40. Per the Microchip datasheet pinout diagram, RA0-RA7 occupy pins 2-7 and 33-37, RB0-RB7 occupy pins 8, 9, 18, 19, 20, 21, 22, 27, and RC0-RC7 sit along pins 15-17, 23-26, and 40; PORTD and PORTE share the remaining pins 28-30 and 40.
Is there a drop-in replacement for the PIC18F46K22-I/P?
Yes, the closest drop-in is the PIC18F45K22-I/P: same PIC18 K22 die family, same 40-pin PDIP package, slightly less Flash (32 KB vs 64 KB) so it fits if your firmware is below 32 KB. Other same-package, pin-compatible PIC18F options listed in the alternatives array include the PIC18F46K22-I/PT (44-pin TQFP variant of the same silicon) and PIC18F4620-I/P (legacy 64 KB MCU). True cross-brand AVR/STM8 drop-ins require PCB-level review since peripheral mapping differs.
What is the operating voltage of the PIC18F46K22-I/P?
The PIC18F46K22-I/P "F" (Flash) variant operates from 2.3 V to 5.5 V across the industrial -40 C to +85 C range, allowing direct battery (2x AA NiMH, single Li-ion) and 5 V system designs. According to the Microchip datasheet, the LF (low-voltage Flash) sibling PIC18LF46K22-I/P supports 1.8 V to 3.6 V operation for deeper low-voltage applications and is the preferred choice when paired with 1.8 V sensors.
What is the difference between PIC18F46K22-I/P and PIC18F45K22-I/P?
Both parts share the same PIC18F K22 die architecture, peripherals, ADC, and 40-pin PDIP package, but differ in program memory: PIC18F46K22 has 64 KB Flash while PIC18F45K22 has 32 KB Flash. Per Microchip datasheet DS40001412, the SRAM/EEPROM, ADC channel count, I/O count, and pinout are identical, so the PIC18F45K22-I/P is a true footprint-compatible substitute for designs whose firmware fits below 32 KB Flash.
Can PIC18F46K22-I/P run at 5 V with a 4 MHz external crystal?
Yes, the PIC18F46K22-I/P works at 5 V with a 4 MHz external crystal driving the internal PLL to scale up to 64 MHz (16 MIPS). Per Microchip datasheet, the oscillator block supports HS, XT, XTPLL, EC and ECPLL modes; a 4 MHz crystal in HSPLL mode delivers 16 MIPS instruction throughput, suitable for most control loops, sensor reads, and UART communications at industry-standard baud rates.
Does the PIC18F46K22-I/P support USB?
No, the PIC18F46K22-I/P does not include a hardware USB peripheral; it provides EUSART and MSSP (SPI/I2C) for external connectivity. According to the datasheet, USB-capable members of the same generation are the PIC18F46J53 and PIC18F47J53, which integrate Full-Speed USB 2.0 on-die at the cost of a different package family. For the PIC18F46K22-I/P, an external USB-serial bridge such as MCP2200 or MCP2221 is the typical host-tethering approach.
How many ADC channels does PIC18F46K22-I/P expose on the 40-pin package?
On the 40-pin PDIP package the PIC18F46K22 exposes up to 28 usable analog input channels from the on-chip 12-bit ADC. The silicon supports 30 analog channels total per the datasheet, but the PDIP pinout dedicates certain shared pins to digital or VDD functions, leaving 28 accessible ANx inputs in real PCB designs. Per Microchip, the ADC supports 100K samples per second at 12-bit resolution with acquisition time configurable via TACQ.
Is PIC18F46K22-I/P still in production in 2026?
Yes, the PIC18F46K22 family is in active production per Microchip's product page (https://www.microchip.com/en-us/product/PIC18F46K22), although Microchip has flagged the newer PIC18F46Q10 as the recommended successor for new designs. The "I/P" variant (industrial temperature, PDIP package) is currently in stock at DigiKey, Mouser, and LCSC, with lead times of approximately 8-12 weeks for factory-direct orders as of 2026-09-28.
What is the deep-sleep current of PIC18F46K22-I/P?
Per Microchip's nanoWatt XLP specification, the PIC18F46K22-I/P draws approximately 20 nA typical in deep-sleep mode (Watchdog Timer disabled, RTCC disabled, no peripherals running). With the WDT enabled the figure rises to about 300 nA. According to the PIC18F46K22 datasheet, watchdog-period-based sleep with periodic ADC wake-ups can keep average system current in the single-digit microamp range for battery-powered sensor nodes.
Can I program PIC18F46K22-I/P with PICkit 5?
Yes, the PIC18F46K22-I/P is fully supported by the MPLAB PICkit 5 in-circuit debugger/programmer via the ICSP interface on pins 1 (MCLR), 39 (ICSPDAT), and 40 (ICSPCLK). Per Microchip, MPLAB X IDE, MPLAB IPE, and XC8 C compiler are the standard toolchain. Bare-board programming without ICSP header requires high-voltage programmer mode through the PGM pin.
What is the maximum I/O source/sink current per pin on PIC18F46K22-I/P?
Each I/O pin on PIC18F46K22-I/P can source or sink up to 25 mA per the absolute maximum ratings, with a per-port limit and a per-package total of 200 mA across all pins. According to Microchip datasheet DS40001412, exceeding these limits even briefly can trigger latch-up; high-current loads (relays, LEDs, power FET gates) should be driven through external buffers such as the TC4427 or a discrete transistor pair.
How many PWM channels does PIC18F46K22-I/P provide?
The PIC18F46K22-I/P provides five CCP (Capture/Compare/PWM) modules and up to six ECCP (Enhanced CCP) modules supporting complementary outputs with programmable dead-band for motor control. Per the PIC18F46K22 datasheet, two of these ECCP modules expose PWM channels with auto-shutdown on fault events, making the part well suited to BLDC, half-bridge, and full-bridge motor drive topologies at low switching frequencies.

Engineering reference data for PIC18F46K22-I/P — comparison, design guidance, and compliance information.

Selection Guide

Choose PIC18F46K22-I/P when you need a 40-pin through-hole PIC18F MCU with 64 KB Flash, 12-bit ADC, and modern nanoWatt XLP low-power in 2026. Pick PIC18F45K22-I/P if your firmware fits below 32 KB and you want lower per-unit cost without changing PCB layout. Pick PIC18F46K22-I/PT (44-TQFP) when you are transitioning to SMD production and want the same silicon on a smaller footprint, accepting a PCB layout change. Choose PIC18F4620-I/P only for legacy inventory or maintenance projects where you cannot update the firmware - the K22 peripherals are a strict superset. Choose PIC18F46K20-I/PT for designs needing 64 KB Flash plus slightly lower 1.8 V operation. Cross-brand ATMega or STM32 drop-ins are not recommended without PCB review because pinout, peripherals, and toolchain all differ.

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
Compliant
REACH
Compliant
AEC-Q100
Not Applicable
Lead Free
Yes
Halogen Free
Yes
Conflict Minerals
Compliant

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).

Data verified on: 2026-09-28 — data verified and curated by XAIPART's component engineering team

Related Searches

PIC18F46K22-I/P PIC18F46K22-I/P datasheet PDF Microchip PIC18F46K22-I/P PIC18F46K22-I/P 40-pin PDIP pinout PIC18F46K22-I/P price 1pc 100pc 1000pc PIC18F46K22-I/P vs PIC18F45K22-I/P PIC18F46K22-I/P Arduino compatible PIC18F46K22-I/P PICkit 5 ICSP program PIC18F46K22-I/P XC8 example code PIC18F46K22-I/P nanoWatt XLP sleep current PIC18F46K22-I/P BLDC motor control PIC18F46K22-I/P replacement obsolete buy PIC18F46K22-I/P in stock PIC18F46K22-I/P ADC 12-bit usage PIC18F46K22-I/P SPI I2C EUSART code

Related Components & Terms

Microchip Technology PIC18F46K22 PIC18F46K22-I/P PIC18F45K22-I/P PIC18F46K22-I/PT PIC18F4620 PIC18F458 PIC18F46K20 PIC18 PIC18F K22 family 8-bit microcontroller MCU nanoWatt XLP FLASH memory SRAM EEPROM 12-bit ADC CCP ECCP EUSART MSSP I2C SPI UART PDIP-40 TQFP-44 RoHS REACH AEC-Q100 ICSP PICkit 5 MPLAB X IDE XC8 compiler 40-pin PDIP watchdog timer comparator RTCC
Quick Quote RFQ
Fill in complete details — our sales team will respond within 24 hours
Part Number Manufacturer Package QTY Target Price Extended
Total: $0.00 USD
✓
Quote submitted!

We will respond to your email within 24 hours

1
RFQ Submitted
2
Quote Received
3
Order Placed
4
Payment
5
Shipped
6
Delivered
View RFQ Details