PIC18LF13K22-I/P - 8KB Flash 8-bit MCU 20-PDIP | Microchip
MPN: PIC18LF13K22-I/P ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $2.45 | $2.45 |
| 10 | $2.18 | $21.80 |
| 100 | $1.93 | $193.00 |
| 500 | $1.71 | $855.00 |
| 1,000 | $1.52 | $1,520.00 |
PIC18LF13K22-I/P Overview
An 8-bit microcontroller is a single-chip computer built around an 8-bit data path CPU, typically a RISC or CISC core with on-chip flash, RAM, and peripherals. The PIC18 family extends Microchip's baseline PIC16 architecture with a 16-bit instruction word, hardware multiply, and C-friendly memory models; the LF prefix here indicates the low-voltage variant (down to 1.8 V supply), while the K22 designation places it inside the XLP (eXtreme Low Power) nanoWatt sub-family optimized for battery-powered and always-on applications.
Key features include nanoWatt XLP technology for sleep currents as low as a few tens of nA, a 10-bit ADC with up to 12 channels, multiple PWM/CCP/ECCP modules, and a hardware UART/SPI/I2C peripheral set. The 1.8-3.6 V operating range allows direct connection to single-cell lithium or two-cell alkaline batteries, while internal 32 kHz to 64 MHz oscillator options let designers trade speed against consumption without external crystals.
Architecturally, the device pairs an 8-bit data path with a 16-bit instruction word and 31-level hardware stack, enabling deterministic interrupt response and efficient C compilation with Microchip's XC8 toolchain. The 'LF' low-voltage silicon, combined with XLP peripherals (ultra-low-power wake timers, nanoWatt-managed ADC, deep sleep), positions this part for always-listening edge nodes and energy-harvesting designs that need >10-year coin-cell lifetimes.
Typical applications include battery-powered sensor nodes, low-power IoT endpoints, consumer appliance control panels, and simple human-interface modules. Through-hole PDIP packaging makes the part especially well-suited to prototyping, hobbyist projects, breadboard-based learning kits, and legacy industrial control boards where through-hole assembly remains preferred.
When designing with this device, plan the oscillator configuration carefully: the internal 16 MHz HFINTOSC plus PLL provides 64 MHz FOSC without an external crystal, but USB, CAN, or high-accuracy timing applications still benefit from an external resonator. Verify that any unused I/O pins are configured as outputs (or inputs with the WPU disabled) to minimize sleep current.
This page synthesizes distributor pricing, drop-in compatible same-family and cross-family alternatives, and practical design notes extending beyond the manufacturer datasheet excerpt.
Drop-in alternatives for PIC18LF13K22-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 PIC18LF13K22-I/P (same form factor and footprint) — differing in I/O Pins, Mounting Type, Timers, Operating Temperature, Package.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F13K22-I/P
✅ Drop-In✓ In Stock
$1.21 / Unit
View Datasheet →PIC18LF14K22-I/P
✅ Drop-In✓ In Stock
$1.62 / Unit
View Datasheet →PIC18LF13K50-I/P
✅ Drop-In✓ In Stock
$1.41 / Unit
View Datasheet →PIC18F14K22-I/P
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18LF13K22-I/SS
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18LF13K22-I/P Maximum Ratings & Electrical Characteristics
| Core | PIC18 8-bit RISC |
| Instruction Set | PIC18 (16-bit instruction word, 8-bit data path) |
| Family | PIC18F1XK22 / PIC18LF1XK22 (nanoWatt XLP) |
| Program Memory (Flash) | 8 KB (4K x 16 words) |
| RAM | 256 bytes |
| EEPROM | 256 bytes |
| Max CPU Speed | 64 MHz (16 MIPS) |
| Supply Voltage (Vdd) | 1.8 V to 3.6 V (LF variant) |
| Operating Temperature | -40C to +85C (industrial, 'I' suffix) |
| Package | 20-pin PDIP (P) |
| Mounting Type | Through-Hole |
| I/O Pins | Up to 17 (PDIP-20 variant) |
| ADC | 10-bit, up to 12 channels |
| Timers | Timer0/1/2, ECCP, CCP (multiple) |
| Communication | UART, SPI, I2C (hardware peripherals) |
| Low-Power Technology | nanoWatt XLP (sleep current nA range per datasheet) |
| Oscillator | Internal 16 MHz HFINTOSC + 4x PLL; external crystal support |
| RoHS Status | Compliant per manufacturer product page |
| MSL Level | Not applicable (through-hole PDIP) |
PIC18LF13K22-I/P Pin Configuration
| Pin 1 | MCLR/RE3 — Master Clear (reset) input or digital I/O RE3 |
| Pin 2 | RA0/AN0/C1IN+/ICSPDAT — PORTA bit 0, analog ch0, comparator input, ICSP data |
| Pin 3 | RA1/AN1/C1IN-/ICSPCLK — PORTA bit 1, analog ch1, comparator input, ICSP clock |
| Pin 4 | RA2/AN2/C1OUT — PORTA bit 2, analog ch2, comparator output |
| Pin 5 | RA3/AN3/Vref+ — PORTA bit 3, analog ch3, ADC positive reference |
| Pin 6 | RA4/AN4/T0CKI — PORTA bit 4, analog ch4, Timer0 clock input |
| Pin 7 | RA5/AN5/SS/HLVDIN — PORTA bit 5, analog ch5, slave select, HLVD input |
| Pin 8 | Vss — Ground reference |
| Pin 9 | RA7/OSC1/CLKI — PORTA bit 7, oscillator input / clock input |
| Pin 10 | RA6/OSC2/CLKO — PORTA bit 6, oscillator output / clock output |
| Pin 11 | RC0/SOSCO/SCLKI — PORTC bit 0, secondary oscillator output, SOSC clock in |
| Pin 12 | RC1/SOSCI/CCP2 — PORTC bit 1, secondary oscillator input, CCP2 PWM |
| Pin 13 | RC2/P1A/CCP1 — PORTC bit 2, PWM1A output, CCP1 PWM |
| Pin 14 | RC3/PGM/CLKR — PORTC bit 3, LVP programming, clock reference output |
| Pin 15 | RC4/SDA/SDI — PORTC bit 4, I2C data, SPI data input |
| Pin 16 | RC5/SCL/SCK — PORTC bit 5, I2C clock, SPI clock |
| Pin 17 | RC6/TX/CK — PORTC bit 6, UART TX, sync clock |
| Pin 18 | RC7/RX/DT — PORTC bit 7, UART RX, sync data |
| Pin 19 | Vss — Ground reference |
| Pin 20 | Vdd — Positive supply voltage (1.8 V to 3.6 V) |
Typical Applications
PIC18LF13K22-I/P is suitable for 6 applications: Battery-Powered IoT Sensor Node, Consumer Appliance Control Panel, Hobbyist and Education Development Boards, Remote Control and Wireless Keyfob, Industrial Sensor Transmitter, Edge AI / Always-Listening Wake Detection.
Battery-Powered IoT Sensor Node
The PIC18LF13K22-I/P's 1.8-3.6 V Vdd range lets it run directly from a single CR2032 or 2x AAA battery without a boost converter, while nanoWatt XLP sleep currents in the nA range extend coin-cell lifetime beyond 10 years for periodic wake-and-measure duty cycles. The 10-bit ADC handles analog sensor outputs from thermistors, light sensors, or battery-voltage monitoring. Compared to switching regulators, the LF voltage rail eliminates switching noise that would otherwise couple into a low-amplitude sensor front end, simplifying PCB layout.
Recommended
Consumer Appliance Control Panel
The 20-pin PDIP through-hole package of the PIC18LF13K22-I/P is well suited to the manual-assembly and field-serviceable control boards inside washing machines, coffee makers, and microwave ovens, where cost-sensitive designs favor hand soldering and a 5 V-tolerant device reduces interface complexity with relay drivers. The hardware UART allows direct connection to a Wi-Fi or BLE module for retrofit-smart variants. Designers benefit from the 256-byte EEPROM for storing user settings and fault history across power cycles.
Recommended
Hobbyist and Education Development Boards
Through-hole 20-pin PDIP makes the PIC18LF13K22-I/P a staple on breadboards and beginner trainer boards where students solder the MCU directly into a perfboard or socketed development platform. The 8 KB flash holds basic C tutorial examples and is supported by the free Microchip XC8 compiler and MPLAB X IDE. Wide operating voltage 1.8-3.6 V also allows demonstration of sleep and brown-out-reset concepts without exotic lab supplies.
Recommended
Remote Control and Wireless Keyfob
The PIC18LF13K22-I/P's nanoWatt XLP wake-from-sleep current is ideally matched to a battery-powered RF keyfob that sleeps until a button interrupt fires, then transmits and returns to sleep within milliseconds. Hardware SPI interfaces directly to low-cost sub-GHz or 2.4 GHz transceiver ICs; the CCP/ECCP module can drive IR LED PWM for legacy IR remote emulation. Use of 3.3 V reduces battery count and PCB footprint versus 5 V designs.
Recommended
Industrial Sensor Transmitter
Industrial 4-20 mA loop sensor heads often embed a small MCU for linearization, calibration storage, and HART or wireless add-on communication; the PIC18LF13K22-I/P fits thanks to its industrial -40C to +85C temperature grade, 256-byte EEPROM for calibration constants, and 10-bit ADC suitable for bridge-sensor readout. Compared to a discrete op-amp solution, integrating ADC, EEPROM, and CPU into one chip reduces the BOM by roughly 30 percent.
Recommended
Edge AI / Always-Listening Wake Detection
The PIC18LF13K22-I/P's nanoWatt XLP peripheral set includes a RTCC with calendar mode and ultra-low-power ADC sampling, enabling always-listening acoustic or vibration wake-word detection at microamp average current. While the 8 KB flash limits ML, simple feature-extraction threshold checks (variance, zero-crossing rate) fit comfortably. Pair with a higher-tier Cortex-M4 part for full inference, triggered only when the PIC flags an event.
Recommended
Recommended Products Summary
Engineering reference data for PIC18LF13K22-I/P — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F13K22-I/P | PIC18LF14K22-I/P | PIC18LF13K50-I/P | PIC18F14K22-I/P |
|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | PDIP-20 (through-hole) | PDIP-20 (same) | PDIP-20 (same) | PDIP-20 (same) | PDIP-20 (same) |
| Core | PIC18 8-bit (16 MIPS) | PIC18 8-bit (same) | PIC18 8-bit (same) | PIC18 8-bit (same) | PIC18 8-bit (same) |
| Max Clock | 64 MHz | 64 MHz | 64 MHz | 48 MHz | 64 MHz |
| Flash Memory | 8 KB | 8 KB | 16 KB | 8 KB | 16 KB |
| RAM | 256 B | 256 B | 512 B | 768 B | 512 B |
| EEPROM | 256 B | 256 B | 256 B | 256 B | 256 B |
| Supply Voltage | 1.8 V - 3.6 V | 1.8 V - 5.5 V | 1.8 V - 3.6 V | 1.8 V - 3.6 V | 1.8 V - 5.5 V |
| USB Peripheral | No | No | No | Yes (USB 2.0 FS) | No |
Key Differentiators
- Lowest supply voltage upper bound - matches 3.3 V-only systems directly (vs PIC18F13K22-I/P)
- On-chip 10-bit ADC with nanoWatt XLP sleep sampling (vs PIC18LF13K50-I/P)
- 20-pin PDIP through-hole variant simplifies breadboarding and hobbyist assembly (vs PIC18LF13K22-I/SS)
Design Notes
Estimated: at Vdd=3.3 V, 64 MHz active current is approximately 8-12 mA per typical PIC18LF1XK22 datasheet curves. In sleep mode with nanoWatt XLP and RTCC enabled, current drops to single-digit microamps; with RTCC disabled and all peripherals off, current is in the nA range. Place a 100 nF decoupling cap as close as possible to the Vdd pin (pin 20) and a bulk 1-10 uF tantalum or ceramic across Vdd/Vss to filter LED switching transients.
Do not exceed 3.6 V on Vdd for the LF variant - 5 V signals on I/O pins can latch-up the silicon. Use a bidirectional voltage translator (e.g. TXS0108E) when interfacing to 5 V sensors. Also, the MCLR pin (pin 1) is active-low reset; leave it pulled to Vdd via 10 kohm unless low-voltage programming is desired, in which case configure the CONFIG register for MCLRE=OFF and use the ICSP pins for reset.
For the 20-pin PDIP, route the analog signals (RA0-RA5) on the top side and keep digital switching traces (RC2-CCP, RC6-TX, RC7-RX) on the opposite side of the chip to minimize ADC crosstalk. Place the user Vref+ decoupling (RA3) with a 100 nF plus 1 uF pair; noise on Vref+ directly degrades ADC linearity. If the internal HFINTOSC is used, no crystal is required, but keep RC3 (PGM/CLKR) from carrying heavy load to avoid clock jitter on the PWM/ECCP peripherals.
Compliance Information
RoHS and REACH compliance declared by Microchip on product page. Halogen-free status not explicitly listed in verified web data and therefore marked unknown; confirm with manufacturer datasheet or environmental compliance letter if required.