PIC18F13K22-I/SO - 8KB Flash 20-Pin nanoWatt XLP MCU | Microchip
MPN: PIC18F13K22-I/SO ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $2.36 | $2.36 |
| 10 | $2.13 | $21.30 |
| 100 | $1.86 | $186.00 |
| 500 | $1.68 | $840.00 |
| 1,000 | $1.49 | $1,490.00 |
PIC18F13K22-I/SO Overview
Key features include a 64MHz internal oscillator (16 MIPS at 3.3V), wide operating voltage from 1.8V to 5.5V, 17 I/O pins, and 10-bit ADC with up to 12 channels. The device integrates nanoWatt eXtreme Low Power technology achieving sub-uA sleep currents, peripherals including EUSART, MSSP (SPI/I2C), PWM and comparators, plus in-circuit debugging via ICD.
As an 8-bit C-optimized RISC microcontroller, the PIC18F13K22 belongs to the broader hierarchy: 8-bit MCU -> microcontroller -> embedded controller -> semiconductor. The 14-bit instruction width with 8-bit data path provides an industry-standard architecture supported by MPLAB X IDE, XC8 compiler, and Microchip's extensive peripheral library ecosystem.
Typical applications include battery-powered sensor nodes, IoT edge devices, consumer appliances, automotive body electronics, and industrial control modules. The wide voltage range and low sleep current make it ideal for energy harvesting and energy-conscious designs.
Design consideration: leverage nanoWatt XLP sleep modes (down to 20 nA typical) by gating peripheral clocks and using the RTCC with a 32 kHz crystal for periodic wake, extending battery life from months to years in many use cases.
This page synthesizes distributor pricing, drop-in alternatives in identical 20-pin SOIC footprints, and practical design notes not consolidated in the manufacturer datasheet.
Drop-in alternatives for PIC18F13K22-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 PIC18F13K22-I/SO (same form factor and footprint) — differing in Package, Operating Temperature, Timers, I/O Pins, ADC.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F14K22-I/SO
✅ Drop-In✓ In Stock
$1.52 / Unit
View Datasheet →PIC18F13K22-I/SS
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F13K22-I/P
✅ Drop-In✓ In Stock
$1.21 / Unit
View Datasheet →PIC18LF13K22-I/SO
✅ Drop-In✓ In Stock
$1.68 / Unit
View Datasheet →PIC18F13K22-E/SO
✅ Drop-In✓ In Stock
$1.52 / Unit
View Datasheet →PIC18F13K22T-I/SO
✅ Drop-In✓ In Stock
$1.05 / Unit
View Datasheet →PIC18F13K22-I/SO Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC18 (8-bit, 14-bit instruction, Harvard) |
| Program Memory (Flash) | 8 KB (4K x 16 words) |
| Data SRAM | 256 bytes |
| Data EEPROM | 256 bytes |
| Maximum CPU Speed | 64 MHz (16 MIPS) |
| Operating Voltage Range | 1.8 V to 5.5 V |
| I/O Pins | 17 |
| ADC | 10-bit, up to 12 channels |
| Timers | 3 (Timer0, Timer1, Timer2) |
| Serial Interfaces | EUSART, MSSP (SPI / I2C) |
| PWM Outputs | 2 (Enhanced CCP) |
| Comparators | 2 |
| Package | SOIC-20 (SO), 300 mil |
| Operating Temperature | -40 C to +85 C (Industrial / I grade) |
| Low-Power Sleep Current | 20 nA typical (nanoWatt XLP) |
| MSL Level | 1 |
| RoHS Status | Compliant |
| In-Circuit Debug | Yes (ICSP / ICD) |
PIC18F13K22-I/SO Pin Configuration
| Pin 1 | RA0/AN0 — Bidirectional I/O; analog channel 0 |
| Pin 2 | RA1/AN1 — Bidirectional I/O; analog channel 1 |
| Pin 3 | RA2/AN2 — Bidirectional I/O; analog channel 2 |
| Pin 4 | RA3/AN3/VREF+ — Bidirectional I/O; analog channel 3; ADC VREF+ |
| Pin 5 | RA4/AN4/T0CKI — Bidirectional I/O; analog channel 4; Timer0 clock |
| Pin 6 | RA5/AN5/SS/HLVDIN — Bidirectional I/O; analog channel 5; SPI SS; HLVD input |
| Pin 7 | RA6/AN6 — Bidirectional I/O; analog channel 6 |
| Pin 8 | RA7/AN7 — Bidirectional I/O; analog channel 7 |
| Pin 9 | VSS — Ground reference |
| Pin 10 | VDD — Positive supply (1.8 V to 5.5 V) |
| Pin 11 | RB0/INT/AN8 — Bidirectional I/O; external interrupt; analog channel 8 |
| Pin 12 | RB1/AN9 — Bidirectional I/O; analog channel 9 |
| Pin 13 | RB2/AN10 — Bidirectional I/O; analog channel 10 |
| Pin 14 | RB3/AN11/CCP2 — Bidirectional I/O; analog channel 11; CCP2 PWM |
| Pin 15 | RB4 — Bidirectional I/O |
| Pin 16 | RB5 — Bidirectional I/O |
| Pin 17 | RB6/ICSPCLK — Bidirectional I/O; ICD clock |
| Pin 18 | RB7/ICSPDAT — Bidirectional I/O; ICD data |
| Pin 19 | RC6/TX/CK — Bidirectional I/O; EUSART TX/CK |
| Pin 20 | RC7/RX/DT — Bidirectional I/O; EUSART RX/DT |
Typical Applications
PIC18F13K22-I/SO is suitable for 6 applications: Battery-Powered IoT Sensor Nodes, Consumer Appliance Control, Industrial Control Module, Automotive Body Electronics, Wearable Health and Fitness Devices, Hobby and Maker Projects.
Battery-Powered IoT Sensor Nodes
The PIC18F13K22-I/SO's nanoWatt XLP 20 nA sleep current, 1.8 V to 5.5 V VDD and 16 MIPS 64 MHz CPU make it ideal for battery-powered IoT sensor nodes. With a duty cycle of 1% and a typical 100 uA active current, average draw falls below 1.5 uA, enabling 10+ year lifetime from a single CR2032 coin cell. The MSSP supports I2C sensors and the 10-bit ADC handles up to 12 channels of mixed-source measurement, all in a compact SOIC-20 footprint suitable for miniaturized sensor modules.
Recommended
Consumer Appliance Control
The PIC18F13K22-I/SO delivers 16 MIPS performance and enhanced CCP PWMs for consumer appliance control including coffee makers, blenders, and small kitchen appliances. Per Microchip application notes, the PIC18 C-optimized core supports capacitive touch sensing via the ADCC and mTouch libraries, while the 17 I/O pins directly drive relay triacs, seven-segment LEDs, and encoder inputs. Industrial-grade -40 C to +85 C operation handles the thermal challenges of enclosed consumer appliances.
Recommended
Industrial Control Module
The PIC18F13K22-I/SO's 64 MHz CPU and 256-byte EEPROM fit RS-485 slave modules, HMI panels, and small industrial controllers. Per the Microchip datasheet, the EUSART plus MSSP support both Modbus RTU (RS-485) and SPI peripherals simultaneously, while the wide 1.8 V to 5.5 V VDD allows 24 V system rails via simple LDO front-end. The industrial temperature rating plus nanoWalt XLP operation enables deployment in factory automation modules that must run for years on minimal maintenance.
Recommended
Automotive Body Electronics
The PIC18F13K22-E/SO extended-temperature variant supports automotive body modules including lighting controllers, seat-position sensors, and HVAC trim controls. Per the Microchip PIC18 datasheet, the device tolerates load-dump transients through external TVS and the enhanced CCP PWMs drive LED matrix backlighting directly. Compact SOIC-20 packaging fits into space-constrained body control modules where automotive grade reliability and the lower-tier PIC18 architecture deliver the optimal cost-performance ratio for high-volume body applications.
Recommended
Wearable Health and Fitness Devices
The PIC18F13K22-I/SO's 20 nA sleep current, integrated 10-bit ADC for heart-rate sensor interfaces, and 1.8 V VDD operation fit wearable fitness bands. Per Microchip low-power application notes, the nanoWatt XLP mode with RTCC wake-up enables multi-day battery life while the small SOIC-20 package (12.8 mm body) suits the 1.5 cm x 1.5 cm board area typical of wrist wearables. The MSSP and EUSART support BLE module hand-off and BLE radio control without external glue logic.
Recommended
Hobby and Maker Projects
The PIC18F13K22-I/SO is a popular choice for hobbyist PIC development through Microchip's PICkit 3 and PICkit 4 in-circuit debuggers, supported by the free MPLAB X IDE and XC8 compiler. Per Microchip documentation, the device's exposed ICD pins enable affordable prototyping boards like the Curiosity development platform, while the 8KB Flash hosts full-feature projects from PWM motor control to MIDI synthesizers. The wide supply voltage means the same SOIC-20 board design can be powered from USB, Li-ion, or 2xAA cells.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F13K22-I/SO — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F14K22-I/SO | PIC18LF13K22-I/SO | PIC18F13K22-E/SO |
|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | SOIC-20 (SO) | SOIC-20 - same | SOIC-20 - same | SOIC-20 - same |
| Flash Memory | 8 KB | 16 KB | 8 KB | 8 KB |
| RAM | 256 bytes | 512 bytes | 256 bytes | 256 bytes |
| EEPROM | 256 bytes | 256 bytes | 256 bytes | 256 bytes |
| CPU Speed | 64 MHz / 16 MIPS | 64 MHz / 16 MIPS | 64 MHz / 16 MIPS | 64 MHz / 16 MIPS |
| Operating Voltage | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V (low-F optimized) | 1.8 V to 5.5 V |
| Operating Temperature | -40 C to +85 C (industrial) | -40 C to +85 C | -40 C to +85 C | -40 C to +125 C (extended) |
| I/O Pins | 17 | 17 | 17 | 17 |
Key Differentiators
- Larger RAM and Flash upgrade in same footprint (vs PIC18F14K22-I/SO)
- Lower supply voltage option (vs PIC18LF13K22-I/SO)
- Extended-temperature grade support (vs PIC18F13K22-E/SO)
- Improved peripheral set versus older PIC16F predecessors (vs PIC16F1829T-I/SO)
Design Notes
Estimated: for a sensor-node duty cycle of 0.1% with the 64 MHz CPU active at 1 mA for 100 ms per minute versus 20 nA sleep, average draw approaches 1.7 uA. A CR2032 cell of 220 mAh yields approximately 14 years of continuous node lifetime. Use the nanoWatt XLP sleep modes (Sleep, Idle, Doze) and gate unused peripherals via the PMD registers to achieve the cited nA sleep current. Always place a 100 nF decoupling cap directly between VDD (pin 10) and VSS (pin 9) on the SOIC-20 package.
Keep the ICSP pins (RB6/RB7, pins 17/18) accessible on the PCB with a 1.27 mm pitch 2x5 header footprint for PICkit programmers. Add ESD protection diodes on exposed I/O that route to connectors - the analog AN0 through AN11 channels share ESD clamps with digital I/O. Per Microchip SOIC-20 PCB layout guidance, route analog signals with ground guarding and keep ADC traces short to minimize pickup on the 10-bit ADC input.
Configuration word bits must be set before code execution for oscillator selection, watchdog, and code protection. Per the Microchip datasheet, failure to set the IESO bit can leave the part unable to start at voltage below 2.0 V. Watchdog timer should be software-driven in a battery application to prevent unintended wake-ups. The 32 kHz crystal for RTCC needs correct load capacitance matching for accurate sleep-current accounting.
When using the analog channels, configure unused AN inputs as digital outputs driven low to prevent floating-input ADC drift. The 10-bit ADC achieves 1 LSB of 4.88 mV at 5V VDD, so analog supply decoupling via dedicated AVSS/AVDD pins (where present) plus ferrite beads can improve ADC accuracy by up to 1 LSB. Routing ADC reference (VREF+) from a low-noise MCP1501 reference improves temperature drift for precision measurement applications.
Compliance Information
RoHS and REACH compliant per Microchip product page. Not AEC-Q100 qualified - consider PIC18F13K22-E/SO for industrial and the AEC-Q100 PIC18F variants for automotive applications.