PIC18LF13K22T-I/SO - 8KB Flash XLP MCU, 64MHz, 20-SOIC
MPN: PIC18LF13K22T-I/SO ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $2.55 | $2.55 |
| 10 | $2.3 | $23.00 |
| 100 | $1.98 | $198.00 |
| 500 | $1.74 | $870.00 |
| 1,000 | $1.55 | $1,550.00 |
PIC18LF13K22T-I/SO Overview
A microcontroller (MCU) is a single-chip computer that integrates a CPU, non-volatile program memory, volatile data RAM, and on-chip peripherals such as timers, communication interfaces, and analog blocks. MCUs sit below microprocessors in the embedded hierarchy and are widely used in products that need deterministic, low-cost, real-time control. The PIC18 family is Microchip's 8-bit high-performance tier with a C-optimized RISC architecture and 16-bit instructions, bridging hobby-grade baseline PIC and the more powerful dsPIC/PIC32 lines.
The device features self-programmability, an ICD-friendly in-circuit debugging interface, and a wide operating temperature range of -40 °C to +85 °C (I-grade), making it suitable for industrial, consumer, and IoT end products. The 10-bit ADC, comparator, and PWMs simplify sensor-conditioning and motor/lighting-control tasks. Internal oscillators and an on-chip voltage reference reduce the external BOM.
Typical applications include battery-powered IoT sensor nodes, low-power remote controls, consumer white goods, small appliances, industrial sensor transmitters, and USB-to-UART bridges. Combined with Microchip's MPLAB X IDE and XC8 toolchain, the PIC18LF13K22 provides an easy on-ramp for both new designs and legacy PIC upgrades. The 'T' suffix denotes tape-and-reel packaging for high-volume SMT lines.
When designing, choose this part when your node is battery or energy-harvest powered, requires >2 KB of code space, and benefits from a 20-pin SOIC for hand-solder-friendly prototypes. Place decoupling close to VDD/VSS and follow Microchip's PCB layout guidelines for low-pin-count XLP devices.
Drop-in alternatives for PIC18LF13K22T-I/SO — 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 PIC18LF13K22T-I/SO (same form factor and footprint) — differing in Operating Temperature, Package, Timers, I/O Pins, Core Architecture.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18LF13K22-I/SO
✅ Drop-In✓ In Stock
$1.68 / Unit
View Datasheet →PIC18LF13K22-I/P
✅ Drop-In✓ In Stock
$1.52 / Unit
View Datasheet →PIC18F13K22T-I/SO
✅ Drop-In✓ In Stock
$1.05 / Unit
View Datasheet →PIC18LF14K22T-I/SO
✅ Drop-In✓ In Stock
$0.98 / Unit
View Datasheet →PIC18F14K22T-I/SO
✅ Drop-In✓ In Stock
$1.48 / Unit
View Datasheet →PIC18LF13K22T-I/SO Maximum Ratings & Electrical Characteristics
| Architecture | 8-bit PIC18 RISC, 16-bit instructions |
| Core | PIC18 (enhanced mid-range) |
| CPU Speed | Up to 64 MHz (16 MIPS) |
| Program Memory (Flash) | 8 KB (4K x 16) |
| Data SRAM | 256 bytes |
| Data EEPROM | 256 bytes |
| Operating Voltage (LF) | 1.8 V to 3.6 V |
| I/O Pins | 17 |
| ADC | 10-bit, up to 12 channels |
| Timers | Multiple 8/16-bit timers |
| PWM Modules | Yes (CCP/ECCP) |
| Communication | EUSART, MSSP (I2C/SPI) |
| Comparators | Yes (on-chip) |
| Package | 20-pin SOIC (SO), 7.50 mm body |
| Operating Temperature | -40 °C to +85 °C (I grade) |
| Mounting Type | Surface Mount (Tape & Reel) |
| RoHS Status | Compliant |
| Low-Power Technology | nanoWatt XLP |
PIC18LF13K22T-I/SO Pin Configuration
| Pin 1 | RA7/ICSPDAT — Bidirectional I/O; ICSP data; oscillator |
| Pin 2 | RA6/ICSPCLK — Bidirectional I/O; ICSP clock; oscillator |
| Pin 3 | RA5/MCLR/RE3 — Input; Master Clear (Reset) input |
| Pin 4 | RA4/AN3/C1OUT — Bidirectional I/O; analog input; comparator output |
| Pin 5 | RA3/AN2/C1INA-/VREF- — Bidirectional I/O; analog input; VREF- |
| Pin 6 | RA2/AN1/C2INA-/VREF+ — Bidirectional I/O; analog input; VREF+ |
| Pin 7 | RA1/AN0/C2INB-/P1B/INT1 — Bidirectional I/O; analog input; PWM; INT1 |
| Pin 8 | RA0/AN0/INTO/P1A — Bidirectional I/O; analog input; INT0; PWM |
| Pin 9 | VSS — Ground reference |
| Pin 10 | VDD — Positive supply voltage |
| Pin 11 | RB7/KBI3/P1D/AN11 — Bidirectional I/O; analog input; PWM |
| Pin 12 | RB6/KBI2/P1C/CCP2/AN10 — Bidirectional I/O; analog input; CCP2 |
| Pin 13 | RB5/KBI1/P2A/AN9 — Bidirectional I/O; analog input; PWM |
| Pin 14 | RB4/KBI0/P2B/AN8 — Bidirectional I/O; analog input; PWM |
| Pin 15 | RB3/CCP2/SDO/SDA/AN7 — Bidirectional I/O; SPI/I2C data |
| Pin 16 | RB2/SRX/SDI/SDA/AN6 — Bidirectional I/O; UART RX; SPI/I2C data |
| Pin 17 | RB1/STX/SCK/SCL/AN5/C2INA — Bidirectional I/O; UART TX; SPI/I2C clock |
| Pin 18 | RB0/INT0/AN4/C2OUT/FLT0 — Bidirectional I/O; INT0; analog input; PWM fault |
| Pin 19 | VSS — Ground reference (second pin) |
| Pin 20 | VDD — Positive supply voltage (second pin) |
Typical Applications
PIC18LF13K22T-I/SO is suitable for 7 applications: Battery-Powered IoT Sensor Node, Low-Power Remote Control, Consumer White Goods and Small Appliances, Industrial Sensor Transmitter, USB-to-UART Bridge Dongle, Battery Charger and Power Bank Controller, LED Lighting and Signage Controller.
Battery-Powered IoT Sensor Node
The PIC18LF13K22T-I/SO is well-suited to battery-powered IoT sensor nodes thanks to its 1.8 V minimum supply and nanoWatt XLP Sleep currents in the nanoamp range. With 8 KB Flash and 256 bytes SRAM, the part has headroom for stack-based sensor drivers and a simple UART-based or I2C-based protocol, while the 10-bit ADC with up to 12 channels interfaces directly to temperature, light, and battery-voltage sensing without an external ADC. The 64 MHz core wakes from Sleep fast enough to take periodic measurements and return to Sleep, preserving battery life. Designers typically pair this MCU with an SPI-attached radio module and a low-dropout regulator, allowing the LF variant to run directly from a single 1.5 V alkaline cell after a small boost converter.
Recommended
Low-Power Remote Control
For handheld remote controls the PIC18LF13K22T-I/SO delivers 16 MIPS of CPU performance, which is plenty to scan a keyboard matrix, drive an IR LED via the PWM module, and handle debouncing in firmware. The LF supply range of 1.8 V to 3.6 V lets the design run directly from two AAA cells without a boost regulator, reducing BOM and quiescent loss. nanoWatt XLP technology holds Sleep current below 100 nA, so the dominant consumption is the IR burst during button-press events. The 17 GPIOs and EUSART give flexibility for status LEDs, multi-zone pairing, and bootloader firmware updates over UART.
Recommended
Consumer White Goods and Small Appliances
The PIC18LF13K22T-I/SO is widely adopted in entry-level consumer appliances such as coffee makers, electric kettles, and air purifiers where the 8 KB Flash comfortably holds user-interface state machines and timer logic. Its industrial -40 °C to +85 °C temperature grade handles kitchen environments with humidity and ambient heat. The on-chip comparators and 10-bit ADC read thermistors or level sensors directly, while ECCP PWM modules drive triac gates or LED indicators without external drivers. The 20-pin SOIC is friendly to hand rework and breadboard prototypes, accelerating time-to-market for cost-sensitive appliance SKUs.
Recommended
Industrial Sensor Transmitter
Industrial 4-20 mA loop sensors and small MODBUS RTU transmitters use the PIC18LF13K22T-I/SO as a low-cost core that reads a sensor, performs linearization, and drives an isolated UART. The 1.8 V minimum supply supports running from a 24 V loop-derived linear regulator. The EUSART and MSSP (I2C/SPI) expose industry-standard buses, and the 10-bit ADC is sufficient for transducer signal conditioning at moderate accuracy. The industrial temperature grade, on-chip EEPROM for calibration constants, and self-programmability for field firmware upgrades make it a strong fit for low-power plant instrumentation.
Recommended
USB-to-UART Bridge Dongle
The PIC18LF13K22T-I/SO can act as the MCU in a simple USB-to-UART bridge when paired with a USB-UART IC such as MCP2221A, exposing CDC-style virtual COM ports to legacy equipment. The EUSART and 8 KB Flash easily handle class glue logic, line-coding registers, and bootloader recovery modes. nanoWatt XLP sleep helps when the dongle is plugged but idle, drawing less from the host USB rail. The 20-pin SOIC package keeps the dongle board small and inexpensive.
Recommended
Battery Charger and Power Bank Controller
The PIC18LF13K22T-I/SO serves as a low-cost charger controller in single-cell Li-ion power banks when paired with an external fuel gauge. The 10-bit ADC monitors battery voltage and current via a sense resistor, and the EUSART exposes status to an LED driver or optional BLE module. The LF 1.8 V minimum supports direct sensing of a depleted cell, while PWM modules drive charge-FET gate timing. The 256 bytes of EEPROM store capacity-calibration data across the product life.
Recommended
LED Lighting and Signage Controller
The PIC18LF13K22T-I/SO controls entry-level decorative LED strips and signage using its ECCP PWM modules and 16 MIPS throughput, sufficient for simple chase or color-mixing patterns. The 10-bit ADC accepts an ambient-light sensor for automatic brightness adjustment, while the EUSART connects to an optional DMX-style or SPI LED driver chain. The 1.8 V minimum lets a battery-powered sign run for extended periods, and the 20-pin SOIC keeps the controller PCB small enough to fit inside standard J-box mounts.
Recommended
Recommended Products Summary
Engineering reference data for PIC18LF13K22T-I/SO — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18LF13K22-I/SO | PIC18LF13K22-I/P | PIC18F13K22T-I/SO | PIC18LF14K22T-I/SO | PIC18F14K22T-I/SO |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 20-SOIC (SO) | 20-SOIC (SO) - same | 20-SOIC (SO) - same | 20-SOIC (SO) - same | 20-SOIC (SO) - same | 20-SOIC (SO) - same |
| Flash Memory | 8 KB | 8 KB | 8 KB | 8 KB | 16 KB | 16 KB |
| RAM | 256 bytes | 256 bytes | 256 bytes | 256 bytes | 512 bytes | 512 bytes |
| Operating Voltage | 1.8 V to 3.6 V (LF) | 1.8 V to 3.6 V (LF) | 1.8 V to 3.6 V (LF) | 2.3 V to 5.5 V (F) | 1.8 V to 3.6 V (LF) | 2.3 V to 5.5 V (F) |
| Maximum CPU Speed | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) |
| Temperature Grade | -40 °C to +85 °C (I) | -40 °C to +85 °C (I) | -40 °C to +85 °C (I) | -40 °C to +85 °C (I) | -40 °C to +85 °C (I) | -40 °C to +85 °C (I) |
| Packaging Format | Tape & Reel (T) | Tube | Tube | Tape & Reel (T) | Tape & Reel (T) | Tape & Reel (T) |
| Approx Unit Price (USD) | 2.55 | 2.50 | 2.45 | 2.60 | 2.75 | 2.80 |
Key Differentiators
- Industry-leading nanoWatt XLP Sleep current (vs PIC18LF13K22-I/SO)
- 1.8 V minimum supply for battery / energy-harvest operation (vs PIC18F13K22T-I/SO)
- Firmware-compatible upgrade path to 16 KB Flash (vs PIC18LF14K22T-I/SO)
Design Notes
Estimated: At 64 MHz and 3.3 V VDD, the PIC18LF13K22T-I/SO draws approximately 7-10 mA active. Sleep current with WDT disabled is sub-100 nA, so duty-cycling the CPU is essential for battery-operated nodes. Always place a 100 nF decoupling capacitor as close as possible to each VDD/VSS pair (pins 9/10 and 19/20) to keep the nanoWatt XLP Sleep current stable.
Route ICSPCLK (RA6) and ICSPDAT (RA7) on pins 1 and 2 to a 6-pin ICSP header with no series resistors; Microchip programmers (MPLAB ICD 3, PICkit 4) drive these directly. Keep the trace under 100 mm and avoid sharing these pins with heavy-load outputs. Use a pull-up on MCLR (pin 3) of approximately 10 kOhm to VDD as recommended in the datasheet.
Do not assume the LF variant is 5 V tolerant. Driving any I/O above 3.6 V can inject current through the ESD clamp and corrupt ADC readings or damage the part. Use a level translator or choose the PIC18F13K22T-I/SO instead when 5 V interfacing is required. Also, configure the CONFIG registers for the proper oscillator mode - the default internal oscillator is 16 MHz HFINTOSC, not 64 MHz.
Estimated: For the MSSP I2C bus at 400 kHz, place 2.2 kOhm pull-ups on SDA/SCL (RB1/RB3) and keep total bus capacitance under 200 pF. The ADC inputs are multiplexed onto PORTA/PORTB; if your design uses RB4-RB7 as digital outputs, leave AN8-AN11 deselected in ADCON1 to avoid crosstalk into the analog channels.
Compliance Information
RoHS and REACH compliance per Microchip product page. Industrial temperature grade (-40C to +85C). Not AEC-Q100 qualified - use PIC18F versions with Q-grade marking for automotive designs.