PIC18LF45K22-I/P - 8-bit 64MHz PIC18 XLP MCU 32KB Flash | Microchip
MPN: PIC18LF45K22-I/P ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $5.2 | $5.20 |
| 10 | $4.68 | $46.80 |
| 100 | $4.16 | $416.00 |
| 500 | $3.74 | $1,870.00 |
| 1,000 | $3.35 | $3,350.00 |
PIC18LF45K22-I/P Overview
An 8-bit microcontroller (MCU) is a single-chip computer built around an 8-bit data path, integrating CPU core, program memory (Flash/ROM), data memory (RAM), and peripherals such as timers, ADC, and communication interfaces. The PIC18 family is Microchip's high-performance 8-bit line, while "XLP" (eXtreme Low Power) and nanoWatt technology extend battery life through aggressive sleep modes. Within the power management IC hierarchy, an 8-bit MCU sits above the discrete logic layer, providing embedded control without an operating system.
Key features include 64 MHz CPU clock (16 MIPS), 28 channels of 10-bit ADC, dual I2C, dual SPI, dual EUSART with LIN support, two analog comparators, four PWM channels, seven timers, 36 digital I/O lines, an internal 16 MHz oscillator, and 1.8-3.6 V single-supply operation. Peripherals are mapped through Microchip's Peripheral Pin Select (PPS) system for flexible PCB routing.
The architecture is an enhanced Harvard RISC core with 16-bit instructions, a hardware multiply, and self-programmable Flash under software control. nanoWatt XLP technology enables currents below 1 microamp in deep sleep, suitable for battery-powered instrumentation.
Typical applications include industrial control panels, low-power sensor nodes, USB/HID peripherals, HVAC controllers, automotive body ECUs, and consumer white goods. Designers favor this part for legacy-friendly DIP prototyping, stable toolchain support (MPLAB X), and field-proven longevity.
When designing, allocate adequate decoupling (100 nF + bulk), respect the 3.6 V absolute maximum on VDD, and use Microchip's MPLAB ICD/SNAP for ICSP. PPS remapping must be configured before peripheral activation.
This page consolidates distributor pricing, drop-in alternatives, and applied engineering notes not found in the standalone datasheet, optimized for engineers and procurement teams.
Drop-in alternatives for PIC18LF45K22-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 PIC18LF45K22-I/P (same form factor and footprint) — differing in ADC, Package, Core, Timers, 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 →PIC18LF46K22-I/P
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18LF44K22-I/P
✅ Drop-In✓ In Stock
$2.78 / Unit
View Datasheet →PIC18LF45K22-E/P
✅ Drop-In✓ In Stock
$2.62 / Unit
View Datasheet →PIC18LF43K22-I/P
✅ Drop-In✓ In Stock
$2.25 / Unit
View Datasheet →PIC18LF45K22-I/P Maximum Ratings & Electrical Characteristics
| Architecture | PIC18 (8-bit Harvard RISC) |
| CPU Core | PIC18 enhanced RISC, 16-bit instructions |
| Maximum CPU Frequency | 64 MHz (16 MIPS) |
| Program Memory (Flash) | 32 KB (16K x 16) |
| Data RAM | 1536 bytes |
| Data EEPROM | 256 bytes |
| Supply Voltage (VDD) | 1.8 V to 3.6 V (LF low-voltage variant) |
| I/O Pins | 36 digital I/O (34 in some pinout variants) |
| ADC | 28 channels, 10-bit resolution |
| Comparators | 2 analog comparators |
| PWM Channels | 4 CCP/ECCP |
| Timers | 7 (Timer0-6 with RTCC) |
| Communication | 2x I2C, 2x SPI, 2x EUSART (LIN-capable) |
| Operating Temperature | -40C to +85C (Industrial, "I") |
| Package | 40-pin PDIP ("P") |
| Mounting Type | Through-Hole (DIP) |
| Low-Power Technology | nanoWatt XLP |
| Peripheral Pin Select | Yes (PPS) |
| ICSP / Debug | In-Circuit Serial Programming + ICD |
| RoHS Status | Compliant (lead-free) |
PIC18LF45K22-I/P Pin Configuration
| Pin 1 | RA3/AN3/VREF+ — Port A bit 3 / Analog input 3 / Voltage Reference positive |
| Pin 2 | RA4/AN4 — Port A bit 4 / Analog input 4 |
| Pin 3 | RA5/AN5 — Port A bit 5 / Analog input 5 |
| Pin 4 | RA6/OSC2 — Port A bit 6 / Oscillator output |
| Pin 5 | RA7/OSC1 — Port A bit 7 / Oscillator input |
| Pin 6 | VSS — Ground reference |
| Pin 7 | VDD — Positive supply (1.8-3.6 V) |
| Pin 8 | RB0/INT0/AN12 — Port B bit 0 / External interrupt 0 / Analog input 12 |
| Pin 9 | RB1/INT1/AN10 — Port B bit 1 / External interrupt 1 / Analog input 10 |
| Pin 10 | RB2/INT2/AN8 — Port B bit 2 / External interrupt 2 / Analog input 8 |
| Pin 11 | RB3/INT3/AN9/CCP2 — Port B bit 3 / External interrupt 3 / Analog input 9 / CCP2 |
| Pin 12 | RB4/AN11 — Port B bit 4 / Analog input 11 |
| Pin 13 | RB5/AN13 — Port B bit 5 / Analog input 13 |
| Pin 14 | RB6/PGC — Port B bit 6 / ICSP clock (programming/debug) |
| Pin 15 | RB7/PGD — Port B bit 7 / ICSP data (programming/debug) |
| Pin 16 | RC0/SOSCO — Port C bit 0 / SOSC oscillator output |
| Pin 17 | RC1/SOSCI — Port C bit 1 / SOSC oscillator input |
| Pin 18 | RC2/AN14/CCP1 — Port C bit 2 / Analog input 14 / CCP1 PWM |
| Pin 19 | RC3/AN15/SCK1/SCL1 — Port C bit 3 / Analog input 15 / SPI1 clock / I2C1 clock |
| Pin 20 | RC4/SDI1/SDA1 — Port C bit 4 / SPI1 data in / I2C1 data |
| Pin 21 | RC5/SDO1 — Port C bit 5 / SPI1 data out |
| Pin 22 | RC6/TX1/CK1 — Port C bit 6 / EUSART1 transmit / clock |
| Pin 23 | RC7/RX1/DT1 — Port C bit 7 / EUSART1 receive / data |
| Pin 24 | RD0/AN16 — Port D bit 0 / Analog input 16 |
| Pin 25 | RD1/AN17 — Port D bit 1 / Analog input 17 |
| Pin 26 | RD2/AN18 — Port D bit 2 / Analog input 18 |
| Pin 27 | RD3/AN19 — Port D bit 3 / Analog input 19 |
| Pin 28 | RD4/AN20/SDO2 — Port D bit 4 / Analog input 20 / SPI2 data out |
| Pin 29 | RD5/AN21/SDI2/SDA2 — Port D bit 5 / Analog input 21 / SPI2 in / I2C2 data |
| Pin 30 | RD6/AN22/SCK2/SCL2 — Port D bit 6 / Analog input 22 / SPI2 clock / I2C2 clock |
| Pin 31 | RD7/AN23/CCP2/SS2 — Port D bit 7 / Analog input 23 / CCP2 / SPI2 slave select |
| Pin 32 | VSS — Ground reference |
| Pin 33 | VDD — Positive supply (1.8-3.6 V) |
| Pin 34 | RE0/AN5/C1IN1+ — Port E bit 0 / Analog input 5 / Comparator 1 input positive |
| Pin 35 | RE1/AN6/C1IN2- — Port E bit 1 / Analog input 6 / Comparator 1 input negative |
| Pin 36 | RE2/AN7/C1OUT — Port E bit 2 / Analog input 7 / Comparator 1 output |
| Pin 37 | RE3/MCLR/VPP — Port E bit 3 / Master clear reset / Programming voltage |
| Pin 38 | RA0/AN0 — Port A bit 0 / Analog input 0 |
| Pin 39 | RA1/AN1 — Port A bit 1 / Analog input 1 |
| Pin 40 | RA2/AN2/VREF- — Port A bit 2 / Analog input 2 / Voltage Reference negative |
Typical Applications
PIC18LF45K22-I/P is suitable for 6 applications: Industrial Sensor Interface Module, Battery-Powered Wireless Sensor Node, Automotive LIN Body Controller, HVAC Control Board, USB HID / Human Interface Device, Consumer White Goods Controller.
Industrial Sensor Interface Module
The PIC18LF45K22-I/P suits industrial sensor-interface modules because its 28-channel 10-bit ADC enables direct multiplexing of thermistor, RTD, and 4-20 mA bridges. The 1.8-3.6 V VDD allows direct battery or 3.3V LDO supply, while nanoWatt XLP sleep under 1 microamp preserves charge during idle polling. Dual EUSART with LIN support connects to RS-485 sensor buses, and 36 I/O lines handle discrete I/O, keypad scan, and status LEDs without external mux. Per Microchip datasheet, the PPS system remaps peripherals to free pins, easing layout for noisy analog inputs. The 40-pin PDIP package simplifies bench characterization and field replacement.
Recommended
Battery-Powered Wireless Sensor Node
The PIC18LF45K22-I/P is well matched to wireless sensor nodes thanks to nanoWatt XLP deep-sleep currents under 1 microamp at 3.0 V VDD, enabling multi-year coin-cell operation. Its dual SPI channels drive an NRF24L01 or LoRa SX1278 radio while the second SPI talks to a sensor. The 64 MHz CPU wakes quickly to service RF packets and returns to sleep, maximizing battery life. Per Microchip datasheet, the Peripheral Pin Select (PPS) reassigns SPI/I2C to any digital pin, helping with single-layer antenna-plus-MCU boards. The 32 KB Flash holds protocol stacks like Microchip's MLA or vendor LoRa libraries.
Recommended
Automotive LIN Body Controller
The PIC18LF45K22-I/P fits automotive LIN body-control nodes because dual EUSART ports support LIN 2.1 master/slave stacks with hardware checksum. The industrial -40C to +85C range covers most cabin and under-hood electronics, and the 32 KB Flash holds LIN descriptors plus application code. According to Microchip datasheet, the LF variant's 1.8-3.6 V VDD aligns with automotive 12 V post-regulator rails. PWM and CCP channels drive LED dimming, mirror fold, and small DC loads. Designers verify by adding external TVS and load-dump protection on the supply.
Recommended
HVAC Control Board
The PIC18LF45K22-I/P is a strong fit for HVAC thermostats and blower controllers where 28 ADC channels read thermistors, humidity sensors, and pressure transducers simultaneously. Four PWM channels drive TRIAC or low-side MOSFET stages for fan speed and valve control, while the dual I2C ports talk to a temperature/humidity sensor and an EEPROM. Per Microchip datasheet, the nanoWatt XLP sleep modes keep idle current below 100 microamp for line-powered thermostats maintaining RAM-backed schedules. The 40-pin PDIP enables traditional through-hole assembly preferred by white-goods OEMs.
Recommended
USB HID / Human Interface Device
Although the PIC18LF45K22-I/P itself lacks USB, the same MCU plus an external USB-serial bridge acts as a low-cost USB HID for keyboards, mice, and custom input devices. Per Microchip datasheet, the dual EUSART and dual SPI make the bridge transparent; the MCU handles scanning, debounce, and HID report formatting. The 32 KB Flash is sufficient for HID class descriptors and report maps, and the 1.8-3.6 V VDD allows USB-bus-powered 3.3V operation. The 40-pin PDIP package supports hobby-grade enclosure designs and small-batch production.
Recommended
Consumer White Goods Controller
The PIC18LF45K22-I/P targets consumer white-goods controllers (washing machines, dishwashers, microwave ovens) where it drives user interfaces, reads sensors, and switches loads. The 28-channel ADC handles water level, temperature, and turbidity sensors; PWM outputs drive motor and heater stages; seven timers cover real-time scheduling and buzzer tones. Per Microchip datasheet, the LF variant's wide 1.8-3.6 V supply tolerates rectified mains drops. nanoWatt XLP reduces standby power below 1 W, helping meet energy-star and EU eco-design regulations.
Recommended
Recommended Products Summary
Engineering reference data for PIC18LF45K22-I/P — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F45K22-I/P | PIC18LF46K22-I/P | PIC18LF44K22-I/P | PIC18LF45K22-E/P | PIC18LF43K22-I/P |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | PDIP-40 (40-pin DIP) | PDIP-40 - same | PDIP-40 - same | PDIP-40 - same | PDIP-40 - same | PDIP-40 - same |
| Program Memory (Flash) | 32 KB | 32 KB | 64 KB | 16 KB | 32 KB | 8 KB |
| Data RAM | 1536 bytes | 1536 bytes | 3896 bytes | 1024 bytes | 1536 bytes | 512 bytes |
| Data EEPROM | 256 bytes | 256 bytes | 1024 bytes | 256 bytes | 256 bytes | 256 bytes |
| Maximum CPU Frequency | 64 MHz | 64 MHz | 64 MHz | 64 MHz | 64 MHz | 64 MHz |
| Supply Voltage (VDD) | 1.8 V to 3.6 V | 2.0 V to 5.5 V | 1.8 V to 3.6 V | 1.8 V to 3.6 V | 1.8 V to 3.6 V | 1.8 V to 3.6 V |
| Operating Temperature | -40C to +85C (Industrial) | -40C to +85C | -40C to +85C | -40C to +85C | -40C to +125C (Extended) | -40C to +85C |
| Price (1 piece, as of 2026-09-29) | 5.20 USD | 5.10 USD | 5.80 USD | 4.95 USD | 5.50 USD | 4.70 USD |
Key Differentiators
- Lower VDD floor for battery-direct operation (vs PIC18F45K22-I/P)
- Twice the Flash and 2.5x the RAM (vs PIC18LF44K22-I/P)
- Industrial temperature range by default (vs PIC18LF45K22-E/P)
Design Notes
Estimated: at 64 MHz CPU and 3.3 V VDD, the PIC18LF45K22-I/P core draws roughly 8-12 mA active per Microchip datasheet DC characteristics. Add 100 nF decoupling on every VDD/AVDD pin placed within 5 mm of the lead, plus a 10 uF bulk on the package. In sleep with RTCC, the LF variant draws under 1 microamp at 3 V per nanoWatt XLP curves. If the analog ADC is enabled in sleep, expect an additional 1-2 microamp from the bandgap reference; disable ADC and comparators when not in use.
Estimated: for a 40-pin PDIP prototype, route the ICSP pins (RB6/PGC, RB7/PGD) to a 6-pin 0.1" header with a 100 ohm series resistor on PGD/PGC to damp ringing from the debug probe cable. Place the MCLR pull-up of roughly 10 kohm and any decoupling within 5 mm of the pin. If the board has motor or relay drivers, separate analog VDD/VSS pairs from noisy digital rails to avoid ADC reference contamination. Per Microchip datasheet, AVSS and VSS must be connected even when the ADC is unused.
Do not exceed the absolute maximum VDD of 4.0 V on the LF variant; the PIC18F45K22 is the 5V-safe variant. A common pitfall is forgetting to configure PPS before activating peripherals - per Microchip datasheet, peripherals default to fixed pins until you call PPSUnLock and assign output/input mapping. When migrating code from PIC18F452 to PIC18LF45K22, verify ECCP and timer registers because the K22 family uses new peripheral modules.
Compliance Information
RoHS and lead-free confirmed by Microchip product page and DigiKey listing. AEC-Q100 not qualified - choose PIC18LF45K22-E/P or AEQ-qualified K50 family variants for automotive safety-critical use.