Microchip Technology

PIC18LF45K22-E/P - 32KB Flash XLP 8-bit MCU, 40-PDIP | Microchip

MPN: PIC18LF45K22-E/P ✓ Active
In Stock Ships in 1-3 business days
1.8 V to 3.6 V Vdss 40-pin PDIP (0.600", 15.24 mm) Package 48 MHz Speed 32 KB (16K x 16 words) Memory
From $2.62 USD / Unit
MOQ: 1 |
Price updated: 2026-09-28
Volume Pricing
Qty Unit Price Extended
1 $4.4 $4.40
10 $3.85 $38.50
100 $3.32 $332.00
500 $2.95 $1,475.00
1,000 $2.62 $2,620.00
ℹ️ All prices are in USD

PIC18LF45K22-E/P Overview

The Microchip Technology PIC18LF45K22-E/P is a low-power, high-performance 8-bit PIC microcontroller in the nanoWatt XLP family, housed in a 40-pin PDIP (Plastic DIP) through-hole package. It integrates 32KB of Flash program memory (16K x 16 words), 2KB of RAM, and 256 bytes of EEPROM, and executes instructions at up to 48 MHz. The device operates from a wide 1.8 V to 3.6 V supply rail, making it ideal for battery-powered and energy-harvesting applications.

What is a microcontroller? A microcontroller (MCU) is a single-chip computer that combines a CPU core, non-volatile program memory (Flash), working memory (RAM), data EEPROM, and a rich set of on-chip peripherals (ADC, timers, communication ports, comparators, PWM). PIC18 microcontrollers belong to the 8-bit Harvard-architecture family and sit inside the broader category of embedded microcontrollers -> microcontrollers -> integrated circuits -> semiconductors, and the nanoWatt XLP line represents Microchip's ultra-low-power extension of that family.

Key features of the PIC18LF45K22-E/P include nanoWatt XLP technology for sub-µA sleep currents, two Enhanced USART modules, two MSSP (SPI/I2C) modules, a 10-bit ADC with up to 28 input channels, and up to 36 digital I/O pins. Internal oscillator options (up to 16 MHz) and on-chip voltage reference simplify BOM, while the integrated CTMU (Charge Time Measurement Unit) enables touch and capacitive sensing.

The architecture separates program and data buses (Harvard), features a 16-bit instruction word, and supports hardware multiply and 31-level priority interrupts. With XLP deep-sleep currents as low as 20 nA (typical, per datasheet), the device is engineered for long-battery-life designs and includes nanoWatt XLP sleep and idle modes.

Typical applications include low-power sensor nodes, portable instrumentation, battery-powered medical devices, industrial control panels, USB-CDC peripherals, and educational/development platforms. The 40-pin PDIP package is also preferred for prototyping and hobby applications through-hole assembly is convenient.

A critical design tip: the 'E' suffix denotes the Extended temperature range (-40C to +125C); use the '-I/' variant only for commercial 0C to +85C designs. The PIC18LF45K22-E/P (PDIP) is recommended for new designs and replaces the older PIC18F452 in most 40-pin DIP footprints, although peripheral mapping must be verified.

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

Drop-in alternatives for PIC18LF45K22-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 PIC18LF45K22-E/P (same form factor and footprint) — differing in Package, Program Memory (Flash), ADC, I/O Pins, Communication.

Microchip Technology
Package: PDIP-40 (P)
Program Memory (Flash): 32 KB
Microchip Technology
Package: 40-pin PDIP (DIP-40, 0.600 in / 15.24 mm)
Program Memory (Flash): 8 KB
I/O Pins: 36 (approximate, per datasheet)
Microchip Technology
Package: 40-pin PDIP (DIP-40)
Program Memory (Flash): 16 KB
Microchip Technology
Package: 40-pin UQFN (5x5 mm) with exposed pad (MV)
Program Memory (Flash): 32 KB (16K x 16)
I/O Pins: 36 digital I/O
Microchip Technology
Package: 40-pin PDIP ("P")
Program Memory (Flash): 32 KB (16K x 16)
ADC: 28 channels, 10-bit resolution
Microchip Technology
Package: 40-pin PDIP (DIP-40, 0.600 inch, 15.24 mm)
Program Memory (Flash): 32 KB (16K x 16)
ADC: 12-bit ADC2 (ADCC), up to 35 channels
Microchip Technology
Package: 40-pin PDIP
Program Memory (Flash): 64 KB (32K x 16)
ADC: 12-channel, 10-bit
Microchip Technology
Package: 40-pin PDIP (DIP-40, through-hole)
Program Memory (Flash): 64 KB (32K x 16)
ADC: 10-bit ADC with Computation (ADCC), up to 35 channels

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

PIC18LF46K22-E/P

✅ Drop-In
Microchip Technology
📦 PDIP-40
PIC18 XLP · PIC18 8-bit RISC · 64 KB (32K x 16) · 3,896 bytes · 1,024 bytes · 48 MHz (64 MHz family max) · 1.8 V to 3.6 V · 35

✓ In Stock

$3.5 / Unit

View Datasheet →

PIC18LF44K22-I/P

✅ Drop-In
Microchip Technology
📦 PDIP-40
PIC18 K22 · 8-bit PIC RISC (Harvard) · 64 MHz · 200 ns (16 MIPS) · 16 KB · 768 bytes · 256 bytes · 36

✓ In Stock

$2.78 / Unit

View Datasheet →

PIC18LF45K22-E/MV

✅ Drop-In
Microchip Technology
📦 UQFN-40
Microchip Technology · PIC18LF45K22 (PIC18F K22 family) · PIC18, 8-bit RISC Harvard architecture · 32 KB (16K x 16) · 1536 bytes · 256 bytes · 48 MHz (Fosc); up to 64 MHz for PIC18F45K22 variant · 1.8 V to 3.6 V

✓ In Stock

$2.55 / Unit

View Datasheet →

PIC18LF45K42-E/P

✅ Drop-In
Microchip Technology
📦 PDIP-40
PIC18F K42 (XLP) · 8-bit PIC RISC · 32 KB (16K x 16) · 2 KB (2048 bytes) · 256 bytes · 64 MHz (16 MIPS) · 1.8 V to 3.6 V · 36

✓ In Stock

$1.99 / Unit

View Datasheet →

PIC18F45K22-E/P

✅ Drop-In
Microchip Technology
📦 PDIP-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 →

PIC18LF46K22-I/P

✅ Drop-In
📦 PDIP-40
64 KB Flash vs 32 KB (+100%), industrial 0-85C temp range vs Extended -40-125C, same 40-pin PDIP footprint

📋 Reference alternative (not in catalog)

PIC18LF45K22-E/P Maximum Ratings & Electrical Characteristics

Product Type 8-bit Microcontroller (MCU)
Series PIC18LF "K22" XLP
Core PIC18 (Harvard, 8-bit data / 16-bit instruction)
Program Memory (Flash) 32 KB (16K x 16 words)
RAM 2 KB
EEPROM 256 bytes
Max CPU Frequency 48 MHz
Supply Voltage (Vdd) 1.8 V to 3.6 V
I/O Pins 36
ADC 10-bit, up to 28 channels
Communication 2x EUSART, 2x MSSP (SPI/I2C)
Timers Up to 7 (16-bit / 8-bit mix)
Package 40-pin PDIP (0.600", 15.24 mm)
Mounting Type Through-Hole (DIP)
Operating Temperature -40C to +125C (Extended, "-E" suffix)
RoHS Status Compliant (lead-free)

PIC18LF45K22-E/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 — Reset input / digital input only on port E bit 3
Pin 2 RA0/AN0/C1INA/ULPWU — PORTA bit 0 / analog input 0 / comparator 1 input / ultra-low-power wake-up
Pin 3 RA1/AN1/C2INA/CTDIN — PORTA bit 1 / analog input 1 / comparator 2 input / CTMU digital input
Pin 4 RA2/AN2/Vref-/CVref — PORTA bit 2 / analog input 2 / ADC voltage reference low / comparator voltage reference
Pin 5 RA3/AN3/Vref+ — PORTA bit 3 / analog input 3 / ADC voltage reference high
Pin 6 RA4/T0CKI/C1OUT — PORTA bit 4 / Timer0 clock input / comparator 1 output
Pin 7 RA5/AN4/C2OUT/SRNQ — PORTA bit 5 / analog input 4 / comparator 2 output / SR latch NOT-Q
Pin 8 RE0/RD/AN5 — PORTE bit 0 / LCD segment drive / analog input 5
Pin 9 RE1/WR/AN6 — PORTE bit 1 / LCD segment drive / analog input 6
Pin 10 RE2/CS/AN7 — PORTE bit 2 / LCD segment drive / analog input 7
Pin 11 VDD — Positive supply (1.8 V to 3.6 V)
Pin 12 VSS — Ground reference
Pin 13 OSC1/CLKIN/RA7 — Crystal oscillator input / external clock in / PORTA bit 7
Pin 14 OSC2/CLKOUT/RA6 — Crystal oscillator output / system clock output / PORTA bit 6
Pin 15 RC0/SOSCO — PORTC bit 0 / secondary oscillator output (32.768 kHz)
Pin 16 RC1/SOSCI — PORTC bit 1 / secondary oscillator input (32.768 kHz)
Pin 17 RC2/CCP1 — PORTC bit 2 / Capture/Compare/PWM 1
Pin 18 RC3/SCL1/SCK1 — PORTC bit 3 / MSSP1 I2C clock / MSSP1 SPI clock
Pin 19 RD0/PSP0/AN8/SEG0 — PORTD bit 0 / parallel slave port data / analog input 8 / LCD segment 0
Pin 20 RD1/PSP1/AN9/SEG1 — PORTD bit 1 / parallel slave port data / analog input 9 / LCD segment 1
Pin 21 RD2/PSP2/AN10/SEG2 — PORTD bit 2 / parallel slave port data / analog input 10 / LCD segment 2
Pin 22 RD3/PSP3/AN11/SEG3 — PORTD bit 3 / parallel slave port data / analog input 11 / LCD segment 3
Pin 23 RC4/SDI1/SDA1 — PORTC bit 4 / MSSP1 SPI data in / MSSP1 I2C data
Pin 24 RC5/SDO1 — PORTC bit 5 / MSSP1 SPI data out
Pin 25 RC6/TX1/CK1 — PORTC bit 6 / EUSART1 transmit / EUSART1 clock
Pin 26 RC7/RX1/DT1 — PORTC bit 7 / EUSART1 receive / EUSART1 data
Pin 27 RD4/PSP4/AN12/SEG4 — PORTD bit 4 / parallel slave port data / analog input 12 / LCD segment 4
Pin 28 RD5/PSP5/AN13/SEG5 — PORTD bit 5 / parallel slave port data / analog input 13 / LCD segment 5
Pin 29 RD6/PSP6/AN14/SEG6 — PORTD bit 6 / parallel slave port data / analog input 14 / LCD segment 6
Pin 30 RD7/PSP7/AN15/SEG7 — PORTD bit 7 / parallel slave port data / analog input 15 / LCD segment 7
Pin 31 VSS — Ground reference
Pin 32 VDD — Positive supply (1.8 V to 3.6 V)
Pin 33 RB0/AN12/INT0/FLT0/SEG8 — PORTB bit 0 / analog input 12 / external interrupt 0 / PWM fault 0 / LCD segment 8
Pin 34 RB1/AN10/INT1/SEG9 — PORTB bit 1 / analog input 10 / external interrupt 1 / LCD segment 9
Pin 35 RB2/AN8/INT2/SEG10 — PORTB bit 2 / analog input 8 / external interrupt 2 / LCD segment 10
Pin 36 RB3/AN9/CCP2/SEG11 — PORTB bit 3 / analog input 9 / Capture/Compare/PWM 2 / LCD segment 11
Pin 37 RB4/KBI0/AN11/SEG12 — PORTB bit 4 / interrupt-on-change / analog input 11 / LCD segment 12
Pin 38 RB5/KBI1/AN13/SEG13 — PORTB bit 5 / interrupt-on-change / analog input 13 / LCD segment 13
Pin 39 RB6/KBI2/PGC/ICSPCLK — PORTB bit 6 / interrupt-on-change / ICSP clock (programming/debug)
Pin 40 RB7/KBI3/PGD/ICSPDAT — PORTB bit 7 / interrupt-on-change / ICSP data (programming/debug)

Typical Applications

PIC18LF45K22-E/P is suitable for 7 applications: Battery-Powered Wireless Sensor Node, Handheld Medical Measurement Device, Industrial Control Panel HMI, Portable Data Logger / Instrumentation, USB-CDC Peripheral Bridge Device, Educational Microcontroller Teaching Platform, Capacitive-Touch User Interface.

🧩

Battery-Powered Wireless Sensor Node

The PIC18LF45K22-E/P's nanoWatt XLP technology enables sub-uA sleep currents around 20 nA typical with Watchdog Timer enabled, allowing multi-year operation on a 2x AA or Li-primary cell. The LF 1.8-3.6 V supply range matches directly with battery voltage, avoiding the need for a boost converter, and the integrated 10-bit ADC with up to 28 channels lets the node digitize multiple sensor inputs without external analog components. Combined with the EUSART and MSSP modules for connecting to a low-power radio transceiver, the K22 is a natural fit for duty-cycled IoT sensor endpoints that wake briefly, sample, transmit, and return to deep sleep.

💊

Handheld Medical Measurement Device

The Extended -40C to +125C temperature range of the PIC18LF45K22-E/P supports handheld medical devices that may sit in unheated rooms, ambulances, or refrigerator storage. The 32 KB Flash accommodates complex measurement algorithms, while the 2 KB RAM provides working memory for waveform buffering. Low active current at 48 MHz (about 6 mA) keeps thermal rise minimal for skin-contact thermometry, and the CTMU peripheral enables capacitive touch buttons without external components, simplifying the user interface.

🏭

Industrial Control Panel HMI

The 36 digital I/O pins of the PIC18LF45K22-E/P can drive keypads, character LCDs, status LEDs, and relay outputs directly without external bus expanders, while the 40-pin PDIP package remains ideal for hand-soldered industrial prototypes and field-serviceable designs. The PIC18 instruction set with hardware multiply accelerates deterministic control loops, and the dual EUSART simplifies RS-232 / RS-485 bridging in industrial protocols. Pan and port-mapped peripherals keep interrupt latency tight for safety-critical control loops.

📱

Portable Data Logger / Instrumentation

The 32 KB Flash and 256 bytes of EEPROM of the PIC18LF45K22-E/P enable local storage of calibration constants, user preferences, and small data buffers, while the integrated 10-bit ADC handles multi-channel temperature, voltage, or current monitoring. The LF 1.8-3.6 V supply matches portable battery packs and USB-powered instrumentation, and the nanoWatt XLP deep sleep preserves battery life during standby between logging intervals. The PIC18 core executes deterministic DSP loops for FFT or FIR filtering without external signal-processing ICs.

🖥️

USB-CDC Peripheral Bridge Device

The PIC18LF45K22-E/P's MSSP (SPI/I2C) modules and EUSART allow it to bridge legacy UART peripherals to USB via an external MCP2200 or MCP2221, while the 32 KB Flash can host custom CDC command interpreters. The LF 1.8-3.6 V supply works directly from a USB-powered 3.3 V regulator rail, eliminating the need for a separate power stage. The wide Extended temperature range supports commercial and industrial USB peripherals deployed in harsh environments.

🔧

Educational Microcontroller Teaching Platform

The 40-pin PDIP package of the PIC18LF45K22-E/P is breadboard-friendly and survives repeated insertion cycles, making it ideal for university laboratories, maker spaces, and hobby platforms. MPLAB X IDE and XC8 compiler support is free, and the PICkit 4 / MPLAB Snap programmers provide in-circuit debugging at low cost. Students can experiment with the on-chip ADC, timers, interrupts, and UART without soldering or surface-mount rework, accelerating curriculum delivery.

🎧

Capacitive-Touch User Interface

The on-chip CTMU (Charge Time Measurement Unit) of the PIC18LF45K22-E/P enables capacitive-touch buttons, sliders, and proximity sensors without external touch ICs. Combined with the integrated 10-bit ADC for analog measurements and the 32 KB Flash for gesture-recognition firmware, the K22 can replace multiple discrete components in a touch user interface. The LF 1.8-3.6 V supply range matches battery-operated touch interfaces in consumer products.

Recommended Products Summary

PIC18LF46K22-E/P Microchip Technology Used in: Battery-Powered Wireless Sensor Node MRF89XA Sub-GHz radio transceiver pairing for sensor data Used in: Battery-Powered Wireless Sensor Node MCP3421 16-bit sigma-delta ADC for precision measurement Used in: Handheld Medical Measurement Device PIC18LF45K42-E/P Microchip Technology Used in: Handheld Medical Measurement Device, Capacitive-Touch User Interface MCP2551 CAN bus transceiver pairing Used in: Industrial Control Panel HMI MCP23S17 I/O expander for larger HMIs Used in: Industrial Control Panel HMI MCP9808 High-accuracy temperature sensor for data logger Used in: Portable Data Logger / Instrumentation 25LC256 External SPI EEPROM / FRAM for log storage expansion Used in: Portable Data Logger / Instrumentation MCP2200 USB-to-UART bridge IC Used in: USB-CDC Peripheral Bridge Device MCP2221 USB-to-I2C/UART/GPIO bridge Used in: USB-CDC Peripheral Bridge Device PIC18F45K22-E/P Microchip Technology Used in: Educational Microcontroller Teaching Platform MPLAB Snap Low-cost in-circuit debugger/programmer Used in: Educational Microcontroller Teaching Platform MCP4018 Digital potentiometer for analog UI trim Used in: Capacitive-Touch User Interface
What is the program memory size of the PIC18LF45K22-E/P?
The PIC18LF45K22-E/P integrates 32 KB of Flash program memory, organized as 16K x 16 words on the PIC18 16-bit instruction bus. According to Microchip's PIC18LF4XK22 datasheet (DS39996), this is paired with 2 KB of data RAM and 256 bytes of EEPROM, providing ample headroom for C18/XC8-compiled firmware, bootloader code, and on-chip data logging in low-power designs.
What is the operating voltage range of the PIC18LF45K22-E/P?
The PIC18LF45K22-E/P operates from 1.8 V to 3.6 V, the standard supply range for the LF (low-voltage) sub-family of PIC18 K-series parts. The non-LF PIC18F45K22-E/P extends to 5.5 V. The LF variant is preferred for 2x AA / 3x AAA battery stacks and for direct operation from a Li-primary cell, where peak currents and average draw must stay below 25 mA per I/O.
What is the maximum CPU clock frequency of the PIC18LF45K22-E/P?
The PIC18LF45K22-E/P executes instructions at up to 48 MHz, equivalent to 12 MIPS on the PIC18 architecture. At full speed, the device draws approximately 6 mA (active); nanoWatt XLP sleep drops this to roughly 20 nA typical, an excellent dynamic range for duty-cycled sensor nodes where the MCU wakes briefly, samples, transmits, and returns to deep sleep.
What package and pin count does the PIC18LF45K22-E/P use?
The PIC18LF45K22-E/P ships in a 40-pin PDIP (Plastic Dual In-line Package) measuring 0.600 inch (15.24 mm) wide. Through-hole PDIP remains popular for breadboard prototyping, hobby/educational use, and hand-reworkable industrial prototypes, while surface-mount TQFP-44 and QFN variants exist in the broader PIC18F/LF45K22 family.
How does the PIC18LF45K22-E/P differ from the PIC18F45K22-E/P?
The PIC18LF45K22-E/P operates from 1.8 V to 3.6 V (low-voltage), while the PIC18F45K22-E/P runs from 1.8 V to 5.5 V. Functionally the silicon is otherwise identical - same 32 KB Flash, same peripherals, same pinout. According to the PIC18F/LF45K22 datasheet (DS39996), the LF variant is mandatory for designs that cannot tolerate 5 V rail transients.
What is the best drop-in replacement for the PIC18LF45K22-E/P?
The closest drop-in equivalents in the same 40-pin PDIP footprint are the PIC18LF44K22-I/P, PIC18LF46K22-E/P, and PIC18LF45K42-E/P, all from Microchip. The PIC18LF44K22-I/P has 16 KB Flash (half the program memory), the PIC18LF46K22-E/P has 64 KB Flash, and the PIC18LF45K42-E/P is a newer-generation K42 core with CIP (Core Independent Peripherals) but retains the 40-pin PDIP footprint.
Where can I download the PIC18LF45K22-E/P datasheet PDF?
The official datasheet for the PIC18LF45K22 family is document DS39996, available at https://ww1.microchip.com/downloads/aem/Documents/DeviceDoc/39996f.pdf. The PDF includes pinouts, electrical characteristics, instruction-set reference, and a 28/40/44-pin peripheral multiplexing map. Family reference manuals (DS39500 and DS31029A) cover individual peripheral chapters.
Where can I buy the PIC18LF45K22-E/P online and what is the price?
The PIC18LF45K22-E/P is in stock at DigiKey (https://www.digikey.com/en/products/detail/microchip-technology/PIC18LF45K22-E-P/2342313), Mouser, Hotenda, Octopart, and Lisleapex. Pricing as of 2026-09-29 starts at approximately $4.40 at qty 1, dropping to $2.62 per unit at qty 1000. MicrochipDirect also ships directly with factory pricing for production volumes.
What is the lead time for PIC18LF45K22-E/P?
As of 2026-09-29 the PIC18LF45K22-E/P shows 'In stock' at DigiKey and Mouser with same-day shipping for stock on hand, and factory lead times of approximately 8-12 weeks through MicrochipDirect for production quantities. Octopart aggregates live distributor stock and can flag allocation events if a shortage develops.
PIC18LF45K22-E/P vs PIC18LF45K42-E/P - which should I use for a new design?
For new low-power designs, the PIC18LF45K42-E/P is preferred because it adds Core Independent Peripherals (CIPs), 4 hardware DMA channels, higher ADC speed (12-bit available), and lower sleep current, while keeping the same 40-pin PDIP footprint. Choose the PIC18LF45K22-E/P when you already have a K22 codebase or need absolute compatibility with the older K22 silicon revision. Both share the LF 1.8-3.6 V operating range.
What is the operating temperature range of the PIC18LF45K22-E/P?
The '-E/' suffix designates the Extended temperature range, operating from -40C to +125C. For commercial-temperature designs (0C to +85C), Microchip offers the '-I/' parts (e.g. PIC18LF45K22-I/P). Industrial-grade '-I' parts are electrically identical to '-E' but cost less and are tested over a narrower junction-temperature window.
Is the PIC18LF45K22-E/P suitable for battery-powered sensor nodes?
Yes. The PIC18LF45K22-E/P's nanoWatt XLP technology achieves typical deep-sleep currents around 20 nA (Watchdog Timer enabled), and the LF 1.8-3.6 V supply range supports direct Li-primary or 2x AA cell operation. Combined with the integrated 10-bit ADC, two MSSP modules, and CTMU, it is well suited for duty-cycled wireless sensor nodes where the MCU spends >99 percent of its lifetime in sleep.
What compilers and IDEs support the PIC18LF45K22-E/P?
Microchip's MPLAB X IDE (free) and the XC8 compiler (free and PRO optimizations) fully support the PIC18LF45K22-E/P. Programmers include the MPLAB Snap (in-circuit debug, $33), PICkit 4, MPLAB ICD 4, and the legacy PICkit 3. Code configurator (MCC) provides graphical pin and peripheral setup. Programming is performed through the standard ICSP interface on pins RB6/RB7.
Is there a Microchip equivalent for the PIC18LF45K22-E/P that I can substitute without changing my PCB?
Yes. Microchip offers the PIC18LF46K22-E/P (64 KB Flash, same 40-pin PDIP), PIC18LF44K22-I/P (16 KB Flash, same 40-pin PDIP), and PIC18LF45K42-E/P (newer K42 core, 40-pin PDIP) as drop-in alternatives that retain the 40-pin PDIP footprint. According to Microchip's competitor cross-reference tool, these are the recommended direct substitutes for the K22 40-pin DIP.
What are the key specifications of the PIC18LF45K22-E/P that engineers should know?
The headline specifications of the PIC18LF45K22-E/P are: 32 KB Flash, 2 KB RAM, 256 B EEPROM, 48 MHz CPU (12 MIPS), 1.8-3.6 V LF supply, 36 I/O pins, 28-channel 10-bit ADC, two EUSARTs, two MSSP (SPI/I2C), nanoWatt XLP sleep current ~20 nA typical, and Extended -40C to +125C temperature grade in a 40-pin PDIP package. According to Microchip datasheet DS39996, this combination makes the part a flexible general-purpose MCU for low-power through-hole designs.

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

Selection Guide

Choose the PIC18LF45K22-E/P when you need a low-voltage (1.8-3.6 V) 8-bit MCU with 32 KB Flash in a 40-pin PDIP package, and your application targets a -40C to +125C temperature range. For new designs without legacy constraints, evaluate the PIC18LF45K42-E/P (newer K42 core, same footprint, CIP peripherals, 64 MHz CPU). Choose the PIC18F45K22-E/P instead if 5 V tolerance is mandatory. For larger firmware budgets in the same DIP-40 footprint, the PIC18LF46K22-E/P offers 64 KB Flash. For lower cost or smaller firmware, the PIC18LF44K22-I/P has 16 KB Flash. The PDIP package is recommended for prototyping, hand-reworkable designs, and educational platforms; for high-volume surface-mount designs, switch to PIC18LF45K22-E/MV (UQFN-40).

Comparison with Alternatives

Parameter This Product PIC18LF46K22-E/P PIC18LF44K22-I/P PIC18LF45K42-E/P PIC18F45K22-E/P PIC18LF46K22-I/P
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package PDIP-40 (0.600 inch / 15.24 mm) PDIP-40 - same PDIP-40 - same PDIP-40 - same PDIP-40 - same PDIP-40 - same
Program Memory (Flash) 32 KB (16K x 16) 64 KB (+100%) 16 KB (-50%) 32 KB (same) 32 KB (same) 64 KB (+100%)
RAM 2 KB 2 KB (same) 1 KB (-50%) 2 KB (same) 2 KB (same) 2 KB (same)
Supply Voltage (Vdd) 1.8 V to 3.6 V (LF) 1.8 V to 3.6 V (LF) 1.8 V to 3.6 V (LF) 1.8 V to 3.6 V (LF) 1.8 V to 5.5 V (F) 1.8 V to 3.6 V (LF)
Maximum CPU Frequency 48 MHz (12 MIPS) 48 MHz (same) 48 MHz (same) 64 MHz (faster) 48 MHz (same) 48 MHz (same)
I/O Pins 36 36 (same) 36 (same) 36 (same) 36 (same) 36 (same)
Operating Temperature -40C to +125C (Extended, '-E') -40C to +125C (Extended) 0C to +85C (Industrial, '-I') -40C to +125C (Extended) -40C to +125C (Extended) 0C to +85C (Industrial)
Core Family PIC18 XLP K22 PIC18 XLP K22 PIC18 XLP K22 PIC18 XLP K42 (newer) PIC18 XLP K22 (F variant) PIC18 XLP K22

Key Differentiators

  • Higher memory density in the same package versus smaller K22 siblings (vs PIC18LF44K22-I/P)
  • Lower supply range with identical silicon versus the F variant (vs PIC18F45K22-E/P)
  • Extended -40C to +125C temperature range versus Industrial variants (vs PIC18LF44K22-I/P / PIC18LF46K22-I/P)
  • Established nanoWatt XLP technology versus newer K42 core (vs PIC18LF45K42-E/P)

Design Notes

Use the nanoWatt XLP Sleep mode (SLEEP instruction with IDLEN=0 and Watchdog Timer configured) to achieve typical deep-sleep currents around 20 nA per Microchip datasheet DS39996. For duty-cycled sensor nodes, exit sleep via WDT timeout (1 second typical at 32 kHz secondary oscillator) or via an external interrupt on RB0-RB7. Estimated battery life: a CR2032 (~220 mAh) powering a sensor node with 99.5 percent sleep duty cycle lasts approximately 4 years before reaching 2.0 V cutoff.

Place the 1 uF bypass capacitor within 5 mm of the VDD pins (11 and 32 on the 40-pin PDIP), and a second 100 nF ceramic close to the MCU. Route the ICSP signals RB6/PGC and RB7/PGD as a short, parallel pair away from switching traces to avoid noise injection during in-circuit programming. Add a 10 kohm pull-up on MCLR (pin 1) to VDD for reliable reset behaviour; the MCLR pin is rated to 13.5 V maximum.

Do not apply voltages above 3.6 V to any I/O pin on the PIC18LF45K22-E/P (LF variant); over-voltage will trigger ESD latch-up. If a 5 V rail is present in your system, select the PIC18F45K22-E/P (F variant, 1.8-5.5 V tolerant) instead. Also verify that the LF device is configured for HFINTOSC with the PLL disabled if you are operating at 3.3 V, since some PLL configurations require minimum 3.0 V to lock reliably.

When using the ADC, isolate the analog traces (RA0-RA5, RE0-RE2, RB0-RB2) from switching nodes such as PWM outputs or the EUSART TX line. The datasheet recommends a ground plane beneath the analog area and ferrite-bead decoupling between AVDD and VDD if you supply the ADC reference from a separate rail. Use the dedicated Vref+ (RA3) and Vref- (RA2) pins instead of tying the reference to VDD for better-than-Vdd/2 noise rejection.

For crystal-oscillator operation above 4 MHz, follow Microchip's oscillator layout guidelines: keep the crystal traces short, place the load capacitors within 5 mm of OSC1 and OSC2, and surround the oscillator area with a ground pour to minimise radiated EMI. For low-power designs, prefer the internal HFINTOSC up to 16 MHz and avoid a crystal entirely; this eliminates the 1-5 mA idle current required to drive an external crystal oscillator.

Compliance Information

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

RoHS-compliant lead-free PDIP package per Microchip product page. AEC-Q100 qualification status not asserted by manufacturer for this part; for automotive-grade PIC18 parts, see the PIC18FxxKxx-Q1 family instead.

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

Related Searches

PIC18LF45K22-E/P PIC18LF45K22-E/P datasheet PDF Microchip PIC18LF45K22-E/P 40-pin PDIP PIC18 XLP K22 32KB Flash microcontroller PIC18LF45K22 vs PIC18LF45K42 PIC18LF45K22-E/P buy price stock low power 8-bit MCU 1.8V 3.3V DIP PIC18LF45K22-E/P battery powered sensor PIC18LF45K22 drop-in replacement PIC18 40-pin PDIP XLP microcontroller what is the operating voltage of PIC18LF45K22 PIC18LF45K22 pinout diagram

Related Components & Terms

Microchip Technology PIC18LF45K22-E/P PIC18LF45K22 PIC18 PIC18LF46K22-E/P PIC18LF44K22-I/P PIC18LF45K42-E/P PIC18F45K22-E/P PIC18LF46K22-I/P PIC18LF45K22-E/MV microcontroller MCU 8-bit microcontroller Harvard architecture nanoWatt XLP Flash memory EEPROM RAM PIC18 core PDIP PDIP-40 RoHS REACH ICSP MPLAB X IDE XC8 compiler EUSART MSSP SPI I2C ADC CTMU low-power MCU sensor node
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