Microchip Technology

PIC18F45K22-I/P - 8-Bit 64MHz MCU 32KB Flash 40-PDIP | Microchip

MPN: PIC18F45K22-I/P ✓ Active
In Stock Ships in 1-3 business days
4.2 V to 5.5 V Vdss 40-pin PDIP (DIP-40) Package 64 MHz (16 MIPS) Speed 32 KB Flash (16K x 16) Memory
From $2.1 USD / Unit
MOQ: 1 |
Price updated: 2026-09-27
Volume Pricing
Qty Unit Price Extended
1 $3.84 $3.84
10 $3.45 $34.50
100 $2.96 $296.00
500 $2.62 $1,310.00
1,000 $2.34 $2,340.00
3,000 $2.1 $6,300.00
ℹ️ All prices are in USD

PIC18F45K22-I/P Overview

The Microchip Technology PIC18F45K22-I/P is a low-power, high-performance 8-bit PIC18 microcontroller built on the nanoWatt XLP technology platform, delivering 64 MHz of CPU performance with 32 KB (16K x 16) of Flash program memory in a 40-pin PDIP through-hole package. It features 1536 bytes of SRAM, 256 bytes of EEPROM, and 36 general-purpose I/O pins arranged across multiple analog and digital peripherals. The device operates from 4.2 V to 5.5 V supply and includes an integrated 12-bit A/D converter with up to 28 channels for mixed-signal acquisition. According to the Microchip product family datasheet, the PIC18F45K22 is one of three pin-count variants in the family (28/40/44-pin) sharing a common core, allowing code and tool reuse across the PIC18F26K22 / PIC18F46K22 / PIC18F45K22 / PIC18F44K22 / PIC18F43K22 product family.

A microcontroller (MCU) is a single-chip computer that integrates a CPU core, RAM, non-volatile program memory, and peripherals onto one piece of silicon. PIC microcontrollers use a modified Harvard architecture with separate program and data buses, executed from Flash memory and SRAM respectively. The PIC18 family sits at the top of Microchip's 8-bit portfolio, offering the highest code density and richest peripheral set within the 8-bit line, and is widely used where deterministic real-time response and low sleep current are required.

Key features of the PIC18F45K22 include eXtreme Low-Power (XLP) nanoWatt sleep modes with currents in the nanoamp range, multiple serial interfaces (UART, SPI, I2C), Enhanced Capture/Compare/PWM (ECCP) modules, comparators, and a 12-bit ADC. The 64 MHz internal oscillator eliminates an external crystal in many designs, and the 40-pin PDIP package supports breadboard and through-hole prototyping, making the part popular in industrial control, instrumentation, and educational applications.

The architecture combines an 8-bit data path with a 16-bit instruction word, providing orthogonal addressing and a hardware multiplier that accelerates arithmetic. The 12-bit ADC with acquisition timer and automatic channel scanning enables precision sensor interfacing, while the PWM modules support motor control and power-conversion loops. Internal EEPROM supports non-volatile data storage without external memory chips.

Typical applications include industrial sensor interfaces, low-power remote sensor nodes, HVAC and building-control nodes, motor-control front-ends, USB HID peripherals (paired with a USB transceiver), and educational development platforms. The wide 4.2-5.5 V supply range is well-matched to 5 V industrial buses and battery-backed systems.

When designing with this part, choose the appropriate oscillator mode for your EMI and accuracy budget; internal 16 MHz or 64 MHz operation removes a crystal but trades frequency precision. The 40-pin PDIP footprint is identical to the PIC18F452 / PIC18F4550 family, easing migration. Decouple VDD with 100 nF plus 10 uF bulk capacitors and follow Microchip's emulator/debugger pin assignments when using MPLAB tools.

This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found on the manufacturer datasheet.

Drop-in alternatives for PIC18F45K22-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 PIC18F45K22-I/P (same form factor and footprint) — differing in Package, Timers, ADC, Operating Temperature, Core Architecture.

Microchip Technology
Timers: 1 x 8-bit, 3 x 16-bit
ADC: 10-bit, 13 channels
Operating Temperature: -40C to +85C (Industrial, -I suffix)
Microchip Technology
Package: 40-pin PDIP (0.600 inch, 15.24 mm)
ADC: 10-bit, 14-channel
Operating Temperature: -40 C to +85 C (Industrial -I)
Microchip Technology
Microchip Technology
Package: 40-pin PDIP (0.600")
ADC: 10-bit, up to 28 channels
Microchip Technology
Package: PDIP-40 (DIP-40), 0.600 inch, plastic
Timers: 4 (Timer0-Timer3)
ADC: 10-bit, up to 13 channels
Microchip Technology
Package: 40-pin PDIP (DIP-40), 0.600 inch width
Timers: 1 x 8-bit + 3 x 16-bit
ADC: 8-channel, 10-bit
Microchip Technology
Package: 40-pin PDIP (P)
Timers: 1 x 8-bit, 3 x 16-bit
ADC: 10-bit, up to 13 channels
Microchip Technology
Package: TQFP-44 (10x10 mm, PT)
Timers: 1x 8-bit + 3x 16-bit
ADC: 10-bit, 13 channels
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: PDIP-40 (P)
Timers: Four 16-bit timers, one 8-bit timer
Microchip Technology
Package: 44-pin TQFP (PT) 10x10 mm
Timers: Multiple 8/16-bit timers (TMR0/1/2/3/4/5/6)
ADC: 10-bit, up to 30 channels
Microchip Technology
Package: 44-pin TQFP (10x10 mm), PT suffix, tape & reel
Timers: 8-/16-bit, RTC with RTCC
Operating Temperature: -40C to +85C (industrial, I grade)

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

PIC18F46K22-I/P

✅ Drop-In
Microchip Technology
📦 40-pin PDIP (DIP-40)
PIC18 8-bit · 64 KB (32K x 16 words) · 3,896 B · 256 B · 64 MHz (16 MIPS) · 2.3 V to 5.5 V · 36 · 12-bit, up to 30 channels

✓ In Stock

$2.61 / Unit

View Datasheet →

PIC18F44K22-I/P

✅ Drop-In
Microchip Technology
📦 40-pin PDIP (DIP-40)
PIC18F K22 · 8-bit PIC18 Harvard RISC · 16 KB Flash · 768 bytes · 256 bytes · 64 MHz (16 MIPS) · 2.3 V to 5.5 V · 36

✓ In Stock

$1.36 / Unit

View Datasheet →

PIC18F45K22-E/P

✅ Drop-In
Microchip Technology
📦 40-pin PDIP (DIP-40)
8-bit PIC18 (Harvard RISC) · 32 KB · 1536 bytes · 256 bytes · 40 MHz (64 MHz instruction) · 4.2 V to 5.5 V · 36 · 12-bit

✓ In Stock

$2.78 / Unit

View Datasheet →

PIC18F452-I/P

✅ Drop-In
Microchip Technology
📦 40-pin PDIP (DIP-40)
8-bit PIC18F enhanced Harvard · 32 KB (16K x 16 words) · 1536 bytes · 256 bytes · 40 MHz (10 MIPS) · 4.2 V to 5.5 V · 34 · 8-channel, 10-bit

✓ In Stock

$5.1 / Unit

View Datasheet →

PIC18F4520-I/P

✅ Drop-In
Microchip Technology
📦 40-pin PDIP (DIP-40)
8-bit PIC18 enhanced RISC · 40 MHz (10 MIPS) · 32 KB (16K x 16) · 1.5 KB (1536 bytes) · 256 bytes · 4.2 V to 5.5 V · 36 · 10-bit, up to 13 channels

✓ In Stock

$5.35 / Unit

View Datasheet →

PIC18F4550-I/PT

✅ Drop-In
Microchip Technology
📦 40-pin PDIP (DIP-40)
PIC18F · 8-bit PIC RISC (Harvard) · 32 KB (16K x 16) · 2048 bytes · 256 bytes · 48 MHz (12 MIPS) · 4.2 V to 5.5 V · 35

✓ In Stock

$4.95 / Unit

View Datasheet →

PIC18F458-I/P

✅ Drop-In
Microchip Technology
📦 40-pin PDIP (DIP-40)
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 →

PIC18F45K22-I/P Maximum Ratings & Electrical Characteristics

Core PIC18 (8-bit)
CPU Speed 64 MHz (16 MIPS)
Program Memory 32 KB Flash (16K x 16)
Data SRAM 1536 bytes
Data EEPROM 256 bytes
I/O Pins 36
ADC 12-bit, up to 28 channels
Supply Voltage 4.2 V to 5.5 V
Operating Temperature -40C to +85C (Industrial)
Package 40-pin PDIP (DIP-40)
Mounting Type Through-Hole
Oscillator Internal 16 MHz / 64 MHz + external crystal
Timers 4 x 8-bit / 16-bit
UART 2
SPI 2
I2C 2 (MSSP)
PWM Channels Up to 5 (ECCP + CCP)
Comparators 2
XLP nanoWatt Yes (down to nA sleep currents)
MSL Level 1 (unlimited floor life, through-hole)
RoHS Status Compliant (lead-free matte-tin pins)

PIC18F45K22-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 — Master Clear (reset) input or digital input RE3
Pin 2 RA0 — PORTA digital I/O / AN0 analog input
Pin 3 RA1 — PORTA digital I/O / AN1 analog input
Pin 4 RA2 — PORTA digital I/O / AN2 analog input / VREF-
Pin 5 RA3 — PORTA digital I/O / AN3 analog input / VREF+
Pin 6 RA4 — PORTA digital I/O / AN4 / T0CKI
Pin 7 RA5 — PORTA digital I/O / AN5 / HLVDIN
Pin 8 RE0 — PORTE digital I/O / AN6 / RD
Pin 9 RE1 — PORTE digital I/O / AN7 / WR
Pin 10 RE2 — PORTE digital I/O / AN8 / CS
Pin 11 VDD — Positive supply (4.2-5.5 V)
Pin 12 VSS — Ground reference
Pin 13 OSC1/CLKI/RA7 — Crystal input or external clock / GPIO
Pin 14 OSC2/CLKO/RA6 — Crystal output or clock output / GPIO
Pin 15 RC0 — PORTC digital I/O / AN16 / T3CKI
Pin 16 RC1 — PORTC digital I/O / AN17 / CCP2
Pin 17 RC2 — PORTC digital I/O / AN18 / CCP1
Pin 18 RC3 — PORTC digital I/O / AN19 / SCL1
Pin 19 RD0 — PORTD digital I/O / PSP0
Pin 20 RD1 — PORTD digital I/O / PSP1
Pin 21 RD2 — PORTD digital I/O / PSP2
Pin 22 RD3 — PORTD digital I/O / PSP3
Pin 23 RC4 — PORTC digital I/O / SDA1 / SDI1
Pin 24 RC5 — PORTC digital I/O / SDO1
Pin 25 RC6 — PORTC digital I/O / TX1 / CK1
Pin 26 RC7 — PORTC digital I/O / RX1 / DT1
Pin 27 RD4 — PORTD digital I/O / PSP4 / SDO2
Pin 28 RD5 — PORTD digital I/O / PSP5 / SDI2
Pin 29 RD6 — PORTD digital I/O / PSP6 / TX2 / CK2
Pin 30 RD7 — PORTD digital I/O / PSP7 / RX2 / DT2
Pin 31 VSS — Ground reference
Pin 32 VDD — Positive supply (4.2-5.5 V)
Pin 33 RB0 — PORTB digital I/O / INT0 / AN10 / CCP4
Pin 34 RB1 — PORTB digital I/O / INT1 / AN8 / CCP5
Pin 35 RB2 — PORTB digital I/O / INT2 / AN9
Pin 36 RB3 — PORTB digital I/O / INT3 / AN11 / CCP2
Pin 37 RB4 — PORTB digital I/O / AN12 / KBI0
Pin 38 RB5 — PORTB digital I/O / AN13 / KBI1 / PGM
Pin 39 RB6 — PORTB digital I/O / KBI2 / PGC (ICSP clock)
Pin 40 RB7 — PORTB digital I/O / KBI3 / PGD (ICSP data)

Typical Applications

PIC18F45K22-I/P is suitable for 7 applications: Industrial Sensor Interface Module, HVAC Building-Control Node, Low-Power Remote Sensor Node, Educational Development Platform, Motor-Control Front-End, USB HID Peripheral (with FTDI bridge), Appliance Control Board.

🏭

Industrial Sensor Interface Module

The PIC18F45K22-I/P fits industrial 4-20 mA and 0-10 V sensor-interface modules because its 12-bit ADC with up to 28 channels provides the resolution needed for precision RTD, thermocouple, and bridge-sensor conditioning. The 4.2-5.5 V supply range aligns directly with 5 V industrial rails, while the nanoWatt XLP sleep currents in the nanoamp range enable battery-backed or energy-harvested remote nodes. Designers typically route each ADC channel through an external op-amp front end and use the integrated EEPROM for calibration constants. Compared with newer PIC18F45Q10 designs, the K22 still wins where mature MPLAB X and XC8 toolchains are mandated.

🏭

HVAC Building-Control Node

In HVAC and building-automation nodes, the PIC18F45K22-I/P drives temperature, humidity, and airflow sensors while managing relays and triac outputs for damper and valve actuation. Its 64 MHz CPU handles BACnet or Modbus stack parsing with headroom, and the multiple UART channels bridge to RS-485 transceivers such as the MAX485 for fieldbus communications. The 36 I/O pins comfortably drive local keypads, LCDs, and status LEDs without external expanders. Its industrial temperature grade and proven XLP sleep modes support 24/7 operation in unconditioned equipment rooms.

📱

Low-Power Remote Sensor Node

For battery-powered remote sensor nodes, the PIC18F45K22-I/P's XLP nanoWatt technology delivers sleep currents measured in nanoamps, allowing multi-year operation from a single coin cell when periodic wake-ups are used. The 12-bit ADC reads environmental parameters, the UART serves a low-power radio module such as the XBee or LoRa transceiver, and the internal 16 MHz oscillator eliminates an external crystal to reduce BOM cost. Designers leverage the deep-sleep retention of SRAM plus EEPROM for last-known state and calibration, while the 5 V supply is post-regulated from the battery for clean ADC reference.

🔧

Educational Development Platform

The PIC18F45K22-I/P is a workhorse in university embedded-systems labs because the 40-pin PDIP form factor accepts standard 0.100 inch sockets and breadboards, and the 64 MHz CPU supports real-time OS demonstrations. Students exercise UART, SPI, I2C, ADC, and PWM peripherals in a single device without remapping pinouts between parts. MPLAB X IDE and the XC8 compiler are free, while the PICkit 4 or MPLAB Snap programmer/debugger attaches via ICSP using PGD/PGC/MCLR. The K22's mature peripheral library and abundant reference code on Microchip's site accelerate lab completion.

🏭

Motor-Control Front-End

In motor-control front-ends, the PIC18F45K22-I/P's Enhanced Capture/Compare/PWM (ECCP) modules generate complementary PWMs with programmable dead-band for driving half-bridges via gate drivers such as the IR2104. Its 64 MHz core closes PI current loops well within the PWM period at 20 kHz, and the 12-bit ADC samples phase currents through op-amp sense amplifiers. The 40-pin PDIP simplifies bench bring-up and rework during prototype tuning. Designers transition to the TQFP package or the K22 QFN variant for production volume where the smaller footprint and thermal performance matter.

🧩

USB HID Peripheral (with FTDI bridge)

Where USB connectivity is required but the K22 lacks a native port, designers pair the PIC18F45K22-I/P with an FTDI FT230XS-R USB-to-UART bridge to expose a CDC or HID interface to the host PC. The PIC's UART runs at full speed driving the FT230, while firmware implements the application protocol (HID reports, sensor streaming, or boot-loader messaging). This combination preserves the K22's nanoWatt XLP sleep behavior and the well-known 40-pin PDIP prototyping footprint, making it a common pattern in lab tools, sensor adapters, and industrial configuration dongles.

⚡

Appliance Control Board

The PIC18F45K22-I/P is widely deployed in white-goods control boards (washing machines, dishwashers, induction cookers) because its 5 V operation, 12-bit ADC for current/voltage sensing, and PWM channels for triac/IGBT drive match typical appliance topologies. Its industrial temperature rating and long-life Flash retention accommodate 10+ year service intervals. The 40-pin PDIP remains the through-hole package of choice for hand-assembled or wave-soldered production lines. The K22 family's mature peripheral library and application notes accelerate compliance with IEC 60730 safety standards.

Recommended Products Summary

MCP6022 Precision op-amp for sensor signal conditioning Used in: Industrial Sensor Interface Module MCP3201 External 12-bit ADC for redundant analog path Used in: Industrial Sensor Interface Module PIC18F46K22-I/P Microchip Technology Used in: Industrial Sensor Interface Module, Educational Development Platform, Appliance Control Board MAX485 RS-485 transceiver for BACnet/Modbus Used in: HVAC Building-Control Node MCP9808 High-accuracy temperature sensor Used in: HVAC Building-Control Node FT230XS-R National Semiconductor Used in: HVAC Building-Control Node, USB HID Peripheral (with FTDI bridge) PIC18F45K22-E/P Microchip Technology Used in: Low-Power Remote Sensor Node MCP1700 Low-Iq 3.3 V LDO for sensor power Used in: Low-Power Remote Sensor Node RN2483 LoRa transceiver for long-range uplink Used in: Low-Power Remote Sensor Node PIC18F4550-I/P USB-equipped variant for HID lab exercises Used in: Educational Development Platform, USB HID Peripheral (with FTDI bridge) PIC18F44K22-I/P Microchip Technology Used in: Educational Development Platform IR2104 Half-bridge gate driver for MOSFET bridges Used in: Motor-Control Front-End ACS712 Hall-effect current sensor for feedback Used in: Motor-Control Front-End PIC18F43K22-I/PT Microchip Technology Used in: Motor-Control Front-End MCP2200 Lower-cost USB-UART alternative to FT230X Used in: USB HID Peripheral (with FTDI bridge) MOC3021 Optotriac driver for mains load switching Used in: Appliance Control Board MCP6002 Low-cost op-amp for current sensing Used in: Appliance Control Board
What is the operating voltage of the PIC18F45K22-I/P?
The PIC18F45K22-I/P operates from 4.2 V to 5.5 V supply on the VDD pin, making it well suited to 5 V industrial rails and regulated battery systems. According to the Microchip datasheet, a stable bulk + decoupling network (10 uF plus 100 nF) is required within 4 mm of VDD for full-spec operation. The 'I' suffix denotes the -40C to +85C industrial temperature grade.
What is the flash program memory size of the PIC18F45K22-I/P?
The PIC18F45K22-I/P integrates 32 KB of self-programmable Flash program memory organized as 16K x 16 instruction words, plus 1536 bytes of SRAM and 256 bytes of EEPROM. This memory configuration matches the larger PIC18F46K22 in the same family, allowing firmware to be ported upward without code-density rework. The Flash supports ICSP and runtime self-programming.
Does PIC18F45K22-I/P support USB?
No, the PIC18F45K22-I/P does not include a USB peripheral; the PIC18F45K22 family relies on UART/SPI/I2C and external transceivers for connectivity. For native USB, Microchip recommends migrating to the PIC18F45K50 or PIC18F4550 series, which add a full-speed USB 2.0 device peripheral. Adding an FTDI FT230XS-R bridge is the typical path to USB when keeping the 40-pin PDIP footprint.
What is the maximum CPU clock of PIC18F45K22-I/P?
The PIC18F45K22-I/P executes instructions at up to 16 MIPS from a 64 MHz FOSC, with selectable 4x PLL from a 16 MHz source. According to the datasheet, the internal 16 MHz HFINTOSC can drive the system directly, eliminating an external crystal in many designs. The device supports HS, XT, EC, and LF oscillator modes plus the two-speed startup for low-power wake.
What package and pin count does PIC18F45K22-I/P ship in?
The PIC18F45K22-I/P ships in a 40-pin PDIP through-hole package with 0.600 inch row spacing and 0.100 inch pin pitch, compatible with standard IC sockets and breadboards. The 'I/P' suffix in Microchip nomenclature decodes as Industrial temperature grade (I) in PDIP package (P). The 40-pin footprint is pin-compatible with PIC18F452, PIC18F4520, and PIC18F4550 legacy devices.
Where to buy PIC18F45K22-I/P online at distributor pricing?
The PIC18F45K22-I/P is in stock at authorized distributors including DigiKey, Mouser, and Microchip Direct as of 2026-09-27, with typical 1-piece pricing around 3.84 USD and 1000-piece pricing around 2.34 USD per the verified distributor data. Lead time for standard reels/trays is typically 6-10 weeks from Microchip Direct, while distributor stock usually ships within 1-3 business days.
What is the lead time for PIC18F45K22-I/P orders?
Lead time for the PIC18F45K22-I/P through authorized distributors is typically 1-3 business days when in stock at DigiKey or Mouser, and 6-10 weeks from Microchip Direct factory orders. The 42900-piece inventory reported on May 18 2026 indicates active distributor stock; for long-production designs, Microchip Direct with PPAP documentation is recommended to avoid allocation risk.
Is PIC18F45K22-I/P still in production or is it obsolete?
The PIC18F45K22 is currently in production per the Microchip product page (status: In Production) as of 2026-09-27, although the company lists PIC18F45Q10 as the recommended newer replacement device. The original K22 family is not marked NRND and continues to receive full datasheet, MPLAB X IDE, and XC8 compiler support, so existing designs are safe for the medium term.
PIC18F45K22-I/P vs PIC18F452-I/P - which is better for upgrade?
The PIC18F45K22-I/P is the recommended upgrade from PIC18F452-I/P because it adds nanoWatt XLP sleep modes (down to nA currents), a 12-bit ADC versus the F452's 10-bit ADC, and a 64 MHz CPU versus 40 MHz, all in a pin-compatible 40-pin PDIP footprint. According to Microchip migration documents, code written for PIC18F452 ports to PIC18F45K22 with peripheral-initializer changes only. The K22 also adds up to 28 ADC channels versus 8 on the F452.
PIC18F45K22-I/P vs PIC18F4550-I/P - which one has USB?
Only the PIC18F4550-I/P includes a native full-speed USB 2.0 device peripheral; the PIC18F45K22-I/P does not. Both share the 40-pin PDIP footprint, 64 MHz CPU, and 32 KB Flash, so the F4550 is a true drop-in upgrade path when USB is added to a K22 design. If USB is not required, the K22's lower sleep current and 12-bit ADC make it the better choice.
When to choose PIC18F45K22-I/P over PIC18F46K22-I/P?
Choose PIC18F45K22-I/P when 32 KB of Flash program memory is sufficient and lower unit cost matters; choose PIC18F46K22-I/P (64 KB Flash) only when firmware exceeds 32 KB. Both share the same 40-pin PDIP footprint, peripherals, and CPU, so the K46 is a drop-in memory upgrade. Most users can save cost with the K22 unless USB stacks or large protocol libraries push code size past 32 KB.
What is the best drop-in replacement for PIC18F45K22-I/P?
The best drop-in replacement for PIC18F45K22-I/P on the same 40-pin PDIP footprint is the PIC18F45K22-E/P (Extended -40C to +125C temperature grade) or PIC18F46K22-I/P (64 KB Flash upgrade), both from Microchip and pin-compatible per the verified cross-reference data. For new designs, Microchip recommends migrating to PIC18F45Q10 for the latest peripherals and supply longevity.
Where to download PIC18F45K22-I/P datasheet PDF?
The official PIC18F45K22-I/P datasheet PDF is available from Microchip at the product page (https://www.microchip.com/en-us/product/PIC18F45K22), document 30053012H covering the 28/40/44-pin PIC18F2X/4XK22 family. Mirrors at Octopart and alldatasheet also host the PDF. The datasheet is 496 pages and contains electrical characteristics, peripheral driver examples, and migration notes.
Where to find PIC18F45K22-I/P pinout and programming pin assignments?
The PIC18F45K22-I/P 40-pin PDIP pinout is documented in chapter 1 (Pin Diagrams) and Table 1-1 (Pinout Descriptions) of the datasheet; ICSP programming uses PGD (RB7) and PGC (RB6) with MCLR/VPP for entry. For breadboard prototyping the 0.100 inch pitch accepts standard 40-pin SIP sockets. The package_svg_key 'dip-40' on this page matches the manufacturer pin numbering.

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

Selection Guide

Choose PIC18F45K22-I/P when you need a low-power 8-bit PIC18 microcontroller with 32 KB Flash, 12-bit ADC, and a 40-pin PDIP breadboard-compatible footprint for industrial, sensor-interface, or educational designs at 5 V. Choose PIC18F46K22-I/P if your firmware exceeds 32 KB (USB stacks, encrypted libraries) - the 46K22 is pin-compatible and doubles memory. Choose PIC18F44K22-I/P if 16 KB Flash is sufficient and BOM cost must be minimized. Choose PIC18F45K22-E/P for outdoor or automotive under-hood environments rated to +125C. Choose PIC18F4550-I/P when USB 2.0 full-speed device connectivity is mandatory. For new greenfield designs without 8-bit legacy constraints, evaluate the PIC18F45Q10 as the recommended newer replacement with modern peripherals and longer-term supply.

Comparison with Alternatives

Parameter This Product PIC18F46K22-I/P PIC18F44K22-I/P PIC18F45K22-E/P PIC18F452-I/P PIC18F4550-I/P
Package 40-pin PDIP (DIP-40) 40-pin PDIP (DIP-40) - same 40-pin PDIP (DIP-40) - same 40-pin PDIP (DIP-40) - same 40-pin PDIP (DIP-40) - same 40-pin PDIP (DIP-40) - same
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Flash Program Memory 32 KB 64 KB 16 KB 32 KB 32 KB 32 KB
SRAM 1536 bytes 3896 bytes 768 bytes 1536 bytes 1536 bytes 2048 bytes
CPU Speed 64 MHz / 16 MIPS 64 MHz / 16 MIPS 64 MHz / 16 MIPS 64 MHz / 16 MIPS 40 MHz / 10 MIPS 48 MHz / 12 MIPS
ADC Resolution 12-bit 12-bit 12-bit 12-bit 10-bit 12-bit
USB Peripheral No No No No No Yes (USB 2.0 FS Device)
Operating Temperature -40C to +85C (Industrial) -40C to +85C (Industrial) -40C to +85C (Industrial) -40C to +125C (Extended) -40C to +85C (Industrial) -40C to +85C (Industrial)
XLP nanoWatt Sleep Yes Yes Yes Yes No Limited

Key Differentiators

  • 12-bit ADC vs legacy 10-bit ADC on older siblings (vs PIC18F452-I/P)
  • nanoWatt XLP sleep mode not present on legacy parts (vs PIC18F452-I/P)
  • Lower memory density compared with 46K22 sibling (vs PIC18F46K22-I/P)
  • 64 MHz CPU vs 48 MHz on USB-equipped sibling (vs PIC18F4550-I/P)

Design Notes

Place a 100 nF ceramic plus a 10 uF tantalum or ceramic bulk capacitor within 4 mm of each VDD pin pair (pins 11/12 and pins 31/32). Use a low-ESR bulk cap and a small-value ceramic for high-frequency decoupling. AVDD and AVSS, if used, must be tied to the same VDD/VSS with their own 100 nF decoupling. Power-rail sequencing is not required, but the BOR should be enabled in configuration words for predictable reset behavior.

Keep the crystal or oscillator traces short and surround them with a ground guard ring to minimize EMI coupling into ADC inputs. Route analog signals (ANx) away from digital switching traces, especially PWM outputs, and provide a separate analog ground return if the PCB has split grounds. Place the ICSP test points on PGC (RB6), PGD (RB7), and MCLR (pin 1) on the board edge so a PICkit 4 or MPLAB Snap can attach without fly-wires. Reference Microchip's TB077 and AN585 app notes for additional layout guidance.

Estimated: switching from PIC18F452 code to PIC18F45K22 code requires reconfiguration of the ADC for 12-bit operation and review of the oscillator configuration bits, since the K22 adds the PLL and HFINTOSC modes not present on the F452. Always unlock the configuration registers using the CONFIG4L/PROG sequence in Flash before writing the CONFIG words, or the write will silently fail. Do not drive MCLR low without the internal weak pull-up disabled if the device is sharing the pin with a digital signal; otherwise add an external 10 kohm pull-up. Finally, the 36 I/O pins support 5 V logic, but analog inputs must remain within VSS-0.3 V to VDD+0.3 V or ADC readings will saturate.

Estimated: the 40-pin PDIP package has a theta_JA of approximately 50 C/W in still air and 35 C/W with 1 oz copper pours on the leads. At 64 MHz the K22 typically draws 12 mA from 5 V (60 mW), so self-heating is negligible (<3 C). However, when driving high-current loads through PORTB/PORTC I/O pins (sourcing 20 mA per pin up to 200 mA per port), the cumulative dissipation can rise several hundred milliwatts. Derate the I/O source current per port to 90 mA and per pin to 20 mA to stay within Microchip's published specifications.

The internal 16 MHz HFINTOSC is factory-trimmed to within +/- 2 percent across temperature, suitable for UART communication up to 9600 baud without external crystals. For higher baud rates, CAN, or USB timing, use an external crystal or resonator and configure HS or XT oscillator mode. The MSSP I2C module supports Standard, Fast, and Fast-Plus modes (up to 1 MHz) with proper pull-up resistor sizing; use 4.7 kohm pull-ups for Fast mode and 1 kohm for Fast-Plus. Always enable the SMBus input levels for robust I2C communication with industrial sensors.

Compliance Information

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Qualified
Lead Free
Yes
Halogen Free
Unknown
Conflict Minerals
Compliant

RoHS compliant per Microchip product page; lead-free matte-tin pins. Not AEC-Q100 qualified - choose AEC-Q100 equivalent from PIC18F family for automotive. Conflict-minerals statement available from Microchip.

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

Related Searches

PIC18F45K22-I/P datasheet PIC18F45K22-I/P price PIC18F45K22-I/P buy Microchip PIC18F45K22 PIC18F45K22 vs PIC18F46K22 PIC18F45K22 12-bit ADC 40-pin PDIP PIC18F45K22 nanoWatt XLP sleep PIC18F45K22 Arduino-like 8-bit MCU PIC18F45K22 drop-in replacement PIC18F45K22 USB migration to PIC18F4550 40-pin PDIP microcontroller 8-bit what is the difference between PIC18F45K22 and PIC18F452 PIC18F45K22 industrial sensor node reference design PIC18F45K22 lead time distributor stock

Related Components & Terms

Microchip Technology PIC18F45K22 PIC18F45K22-I/P PIC18F46K22 PIC18F44K22 PIC18F4550 PIC18F452 8-bit microcontroller MCU PIC18 Flash program memory SRAM EEPROM nanoWatt XLP 12-bit ADC 40-pin PDIP DIP-40 through-hole package MPLAB X IDE XC8 compiler PICkit ICSP RoHS REACH AEC-Q100 FT230XS-R MCP1700 MAX485 Industrial control
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