PIC18F45K22T-I/ML - 32KB Flash 8-bit XLP MCU | Microchip
MPN: PIC18F45K22T-I/ML ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $3.42 | $3.42 |
| 10 | $3.05 | $30.50 |
| 100 | $2.74 | $274.00 |
| 500 | $2.48 | $1,240.00 |
| 1,000 | $2.21 | $2,210.00 |
| 3,300 | $1.95 | $6,435.00 |
PIC18F45K22T-I/ML Overview
An 8-bit PIC microcontroller (MCU) is a compact, deterministic processor built around a Harvard RISC core that executes one byte per instruction cycle, making it ideal for cost-sensitive embedded control. The PIC18F family extends the baseline PIC16 instruction set with 16-bit instructions, linear addressing, C-friendly architecture, and priority interrupts. Within the power-management hierarchy, MCUs sit alongside microprocessors, FPGAs, and DSPs, with XLP technology positioning this part for battery-powered and energy-harvesting applications where nanoamp sleep currents are required.
Key features include 32 KB Flash (16K x 16), 1536 B RAM, 256 B EEPROM, 36 digital I/O pins, 28 channels of 10-bit ADC, two analog comparators with selectable reference, four 16-bit timers plus two 8-bit timers, three Enhanced USART modules, two MSSP (SPI/I2C) modules, and an enhanced PWM module with up to 5 channels. The nanoWatt XLP technology delivers a typical sleep current under 100 nA and multiple power-managed operating modes including Idle, Sleep, Deep Sleep, and RTCC with Vbat.
From an architecture perspective, the device is based on a modified Harvard core with separate program (Flash) and data (SRAM) buses, enabling simultaneous instruction fetch and operand access. The 16-bit instruction word yields 75 instructions with single-cycle execution (except branches). Internal oscillator blocks include a 16 MHz HFINTOSC and 31 kHz LFINTOSC, selectable to support system clock switching between performance and low-power modes. The In-Circuit Serial Programming (ICSP) and In-Circuit Debugger (ICD) interfaces use two pins plus reset for programming and debugging without external hardware beyond an MPLAB Snap, PICkit, or ICD header.
Typical applications include low-power industrial sensor nodes, battery-powered IoT edge devices, home appliance control boards, USB peripherals using the PIC18 USB stack, motor control via the PWM and comparator subsystems, and human-machine interface panels with segmented LCD driving through the integrated charge pump. The wide 1.8 V to 5.5 V VDD range further simplifies designs powered from 2xAA cells, Li-Ion packs, or 5 V regulated rails.
When designing with this device, ensure decoupling capacitors of 100 nF and 10 uF are placed within 5 mm of the VDD pins, and that the ICSPDAT/ICSPCLK traces are kept short with 4.7 kohm pull-ups on PGC/PGD as recommended by the manufacturer datasheet. Programming voltage considerations must follow Microchip specification for low-voltage ICSP. The QFN-44 exposed pad must be soldered to the ground plane for thermal and electrical performance.
This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found on a single manufacturer page or distributor listing, helping engineers select, source, and design with the PIC18F45K22 family.
Drop-in alternatives for PIC18F45K22T-I/ML — 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 PIC18F45K22T-I/ML (same form factor and footprint) — differing in Core Architecture, ADC, Timers, Package, Program Memory (Flash).
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F45K22-I/ML
✅ Drop-In✓ In Stock
$2.65 / Unit
View Datasheet →PIC18F45K22-E/ML
✅ Drop-In✓ In Stock
$1.78 / Unit
View Datasheet →PIC18F46K22T-I/ML
✅ Drop-In ⚠️ Specs Unverified📋 Reference alternative (not in catalog)
PIC18F44K22T-I/ML
✅ Drop-In✓ In Stock
$2.05 / Unit
View Datasheet →PIC18F45K20-I/ML
✅ Drop-In✓ In Stock
$1.95 / Unit
View Datasheet →PIC18F45K22T-I/ML Maximum Ratings & Electrical Characteristics
| Product Family | PIC18F XLP Microcontroller |
| Core Architecture | 8-bit PIC18 RISC (modified Harvard) |
| Program Memory (Flash) | 32 KB (16K x 16) |
| Data RAM | 1536 B |
| Data EEPROM | 256 B |
| Maximum CPU Speed | 64 MHz |
| Operating Voltage (VDD) | 1.8 V to 5.5 V |
| I/O Pins | 36 |
| ADC | 28-channel, 10-bit |
| Analog Comparators | 2 with selectable reference |
| Timers | 4 x 16-bit + 2 x 8-bit |
| Communication | 2 MSSP (SPI/I2C), 3 EUSART |
| PWM Channels | Up to 5 (Enhanced CCP) |
| Package | 44-pin QFN (8x8 mm) with exposed pad |
| Operating Temperature | -40C to +85C (Industrial) |
| Low-Power Technology | nanoWatt XLP (<100 nA typical sleep) |
| Mounting Type | Surface Mount |
| MSL Level | 1 (unlimited floor life) |
| RoHS Status | Compliant |
| Programming/Debug | ICSP and ICD-3/PICkit/MPLAB Snap via PGC/PGD |
PIC18F45K22T-I/ML Pin Configuration
| Pin 1 | RA0/AN0/C1IN0- — Digital I/O / Analog input / Comparator input |
| Pin 2 | RA1/AN1/C2IN0- — Digital I/O / Analog input / Comparator input |
| Pin 3 | RA2/AN2/VREF- — Digital I/O / Analog input / VREF- |
| Pin 4 | RA3/AN3/VREF+ — Digital I/O / Analog input / VREF+ |
| Pin 5 | RA4/AN4/C1OUT — Digital I/O / Analog input / Comparator 1 output |
| Pin 6 | RA5/AN5/C2OUT — Digital I/O / Analog input / Comparator 2 output |
| Pin 7 | RA6/OSC2 — Digital I/O / Crystal oscillator output |
| Pin 8 | RA7/OSC1 — Digital I/O / Crystal oscillator input |
| Pin 9 | VSS — Ground |
| Pin 10 | VDD — Positive supply voltage |
| Pin 11 | RB0/AN12/INT0 — Digital I/O / Analog input / External interrupt 0 |
| Pin 12 | RB1/AN10/INT1 — Digital I/O / Analog input / External interrupt 1 |
| Pin 13 | RB2/AN8 — Digital I/O / Analog input |
| Pin 14 | RB3/AN9 — Digital I/O / Analog input |
| Pin 15 | RB4/AN11 — Digital I/O / Analog input |
| Pin 16 | RB5/AN13 — Digital I/O / Analog input |
| Pin 17 | RB6/PGC — Digital I/O / ICSP clock |
| Pin 18 | RB7/PGD — Digital I/O / ICSP data |
| Pin 19 | VSS — Ground |
| Pin 20 | VDD — Positive supply voltage |
| Pin 21 | RC0/SOSCO — Digital I/O / Secondary oscillator output |
| Pin 22 | RC1/SOSCI — Digital I/O / Secondary oscillator input |
| Pin 23 | RC2/AN14 — Digital I/O / Analog input |
| Pin 24 | RC3/AN15 — Digital I/O / Analog input |
| Pin 25 | RC4/AN16 — Digital I/O / Analog input |
| Pin 26 | RC5/AN17 — Digital I/O / Analog input |
| Pin 27 | RC6/TX1/CK1 — Digital I/O / EUSART1 TX |
| Pin 28 | RC7/RX1/DT1 — Digital I/O / EUSART1 RX |
| Pin 29 | VSS — Ground |
| Pin 30 | VDD — Positive supply voltage |
| Pin 31 | RD0 — Digital I/O / Parallel data |
| Pin 32 | RD1 — Digital I/O / Parallel data |
| Pin 33 | RD2 — Digital I/O / Parallel data |
| Pin 34 | RD3 — Digital I/O / Parallel data |
| Pin 35 | RD4 — Digital I/O / Parallel data |
| Pin 36 | RD5 — Digital I/O / Parallel data |
| Pin 37 | RD6 — Digital I/O / Parallel data |
| Pin 38 | RD7 — Digital I/O / Parallel data |
| Pin 39 | VSS — Ground |
| Pin 40 | VDD — Positive supply voltage |
| Pin 41 | RE0/AN5 — Digital I/O / Analog input |
| Pin 42 | RE1/AN6 — Digital I/O / Analog input |
| Pin 43 | RE2/AN7 — Digital I/O / Analog input |
| Pin 44 | MCLR/VPP — Master clear / Programming voltage |
Typical Applications
PIC18F45K22T-I/ML is suitable for 6 applications: Battery-Powered IoT Sensor Node, Industrial Control and Sensor Conditioning, USB Peripheral and HID Device, Home Appliance Control Board, Automotive Body Electronics, LCD Segment Display Driver.
Battery-Powered IoT Sensor Node
The PIC18F45K22T-I/ML suits battery-powered IoT sensor nodes because its nanoWatt XLP architecture delivers a typical sleep current below 100 nA while keeping the 64 MHz CPU ready for immediate wake on interrupt. The 28-channel 10-bit ADC multiplexes across 36 I/O pins, allowing direct connection of temperature, humidity, and analog sensor chains without external muxes. Operating from 1.8 V to 5.5 V, the device runs directly from 2xAA cells or a Li-Ion pack, eliminating boost regulators and shrinking BOM cost. UART, SPI, and I2C peripherals connect to sub-GHz radios, BLE modules, or LoRa transceivers for low-duty-cycle telemetry. Estimated battery life: with 1-second wake intervals and average load under 1 mA, two AA cells last 3-5 years depending on TX current.
Recommended
Industrial Control and Sensor Conditioning
The PIC18F45K22T-I/ML serves industrial control boards where deterministic 8-bit processing, 5 V tolerance, and noise immunity are required. Its 36 digital I/O pins drive relays, optocouplers, and triac interfaces for motor starters and solenoid banks, while the enhanced PWM with up to 5 channels delivers brushed DC motor speed control up to 20 kHz without CPU intervention. The two analog comparators with programmable voltage reference implement under-voltage, over-current, and zero-cross detection without external op-amps. Industrial -40C to +85C operating range supports factory floor deployment. The 28-channel 10-bit ADC is well matched to 4-20 mA loop transmitters when paired with a sense resistor and input protection.
Recommended
USB Peripheral and HID Device
Although the K22 does not include a native USB peripheral, the PIC18F45K22T-I/ML pairs naturally with Microchip's external USB interface ICs to implement HID, CDC, or vendor-class devices. The 64 MHz CPU and 1536 B RAM provide ample headroom for USB stack buffering, and the 32 KB Flash holds full HID report descriptors, command parsers, and bootloader code. Three EUSART modules permit simultaneous USB-to-UART bridging, GPS NMEA parsing, and debug console output on the same chip. Operating from 5 V USB VBUS, the device requires no separate power supply. ICSP programming allows field firmware updates over the USB bridge itself, eliminating external programming headers in production.
Recommended
Home Appliance Control Board
The PIC18F45K22T-I/ML is well suited to washing machines, dishwashers, refrigerators, and HVAC controllers that demand reliable 8-bit performance with cost-effective peripherals. Its 5 V-tolerant I/O directly drives triac optocouplers, seven-segment LED displays, and buzzer drivers, while the MSSP modules support I2C EEPROM for user settings and SPI for sensor expansion. The enhanced PWM with complementary outputs drives variable-frequency compressors and BLDC fans in inverter-style topologies. With 32 KB Flash, manufacturers can implement full state-machine control plus diagnostics and fault logging. The QFN-44 footprint keeps the device under 64 mm^2 on the PCB, fitting tight appliance enclosures.
Recommended
Automotive Body Electronics
For non-safety automotive body modules (mirror controllers, seat adjusters, interior lighting, and HVAC blend doors), the PIC18F45K22T-I/ML provides the right balance of cost and functionality. Although the -I/ML industrial grade suffices for cabin modules, designers often select the AEC-Q100 qualified PIC18F45K22-E/ML for the wider temperature envelope required under-dash. The 64 MHz core handles LIN-bus stack parsing via EUSART and PWM controls brushed and stepper motors for HVAC doors. 5 V VDD operation tolerates load-dump transients when paired with TVS protection. The 32 KB Flash supports OBD-compatible diagnostics for service tooling without requiring an external memory.
Recommended
LCD Segment Display Driver
The PIC18F45K22T-I/ML can drive multiplexed LCD segment displays through its integrated LCD charge pump and segment pin multiplexer, removing the need for an external LCD driver IC in low-to-medium display count applications. With up to 36 segment pins and an internal charge pump maintaining bias across 1.8 V-5.5 V VDD, the part supports TN and STN glass panels up to 4 backplanes. The 32 KB Flash accommodates custom character tables, scrolling tickers, and user-interface state machines. The 64 MHz CPU refreshes segments without CPU intervention via DMA-style data movement, leaving cycles for keypad scanning and serial communication.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F45K22T-I/ML — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F45K22-I/ML | PIC18F45K22-E/ML | PIC18F46K22T-I/ML | PIC18F44K22T-I/ML | PIC18F45K20-I/ML |
|---|---|---|---|---|---|---|
| Package | 44-QFN (8x8 mm) | 44-QFN (8x8 mm) - same | 44-QFN (8x8 mm) - same | 44-QFN (8x8 mm) - same | 44-QFN (8x8 mm) - same | 44-QFN (8x8 mm) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash | 32 KB | 32 KB | 32 KB | 64 KB | 16 KB | 32 KB |
| RAM | 1536 B | 1536 B | 1536 B | 3896 B | 768 B | 1536 B |
| CPU Speed | 64 MHz | 64 MHz | 64 MHz | 64 MHz | 64 MHz | 64 MHz |
| Operating Voltage | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 3.6 V |
| Temperature Range | -40C to +85C | -40C to +85C | -40C to +125C | -40C to +85C | -40C to +85C | -40C to +85C |
| Packaging | Tape & Reel | Tube | Tube/T&R | Tape & Reel | Tape & Reel | Tube |
Key Differentiators
- 32 KB Flash with 1536 B RAM and 64 MHz speed in 44-pin QFN (vs PIC18F44K22T-I/ML)
- nanoWatt XLP technology with sub-100 nA sleep (vs PIC18F45J11T-I/ML)
- Wide 1.8 V to 5.5 V VDD with 64 MHz at full VDD range (vs PIC18F45K20-I/ML)
- 44-pin QFN package with 28 ADC channels (vs PIC18F4520-I/P (40-pin PDIP))
Design Notes
The PIC18F45K22T-I/ML requires both a 100 nF decoupling capacitor and a 10 uF bulk capacitor placed within 5 mm of each VDD pin pair (pins 10/20/30/40 and matching VSS). Per the Microchip datasheet, low-impedance ground returns are critical because the device's nanoWatt XLP modes are sensitive to digital switching noise on VDD. Place the 100 nF caps closest to the IC and the 10 uF caps adjacent to them. For battery applications, use a low-leakage ceramic (C0G/NP0) for the bulk capacitor to avoid exceeding 1 uA quiescent current budget.
The 44-pin QFN package has an exposed thermal pad (EP) on the underside that MUST be soldered to the ground plane for both electrical performance and thermal dissipation. The QFN land pattern should use a 5x5 array of thermal vias (0.3 mm drill, 0.5 mm pitch) connecting the EP to inner ground planes. Per Microchip's QFN-44 design guide, the EP pad must not be left floating or the device may exhibit ADC reference errors and reduced thermal performance at elevated ambient temperatures. Estimate: at 64 MHz full activity the device dissipates approximately 100-150 mW which the EP efficiently removes.
Do not connect PGC (RB6) and PGD (RB7) to external pull-up resistors when using ICSP - the programmer expects to drive these pins directly. Adding 10 kohm pull-ups prevents reliable programming. Also, the MCLR pin requires a 4.7 kohm pull-up to VDD in normal operation; if left floating, the device may reset intermittently. For low-voltage ICSP mode, the MCLR pull-up must be present and the configuration bits must enable LVP. Finally, the configuration words must be set correctly for the oscillator source (HS, XT, INTOSC modes) before code execution begins, or the device will fail to start.
Keep analog and digital signal traces separated on the PCB. Route the analog inputs (AN0-AN27) away from the PWM outputs and switching power traces, and place the AVSS/AVDD pair (when present, otherwise tie to VSS/VDD) with its own 100 nF + 10 uF decoupling. The crystal oscillator pins (RA6/OSC2 and RA7/OSC1) should be surrounded by a ground guard ring, and the crystal traces must be kept under 5 mm total length. ADC accuracy degrades if the analog reference pin (RA3/VREF+) sees more than 10 mV of noise from digital switching.
Compliance Information
RoHS and REACH compliant per Microchip product page. Industrial-grade temperature (not AEC-Q100); choose -E/ML suffix variants for AEC-Q100 qualification. Lead-free and halogen-free per Microchip Material Declaration.