PIC18F13K22-E/P - 8-bit 48MHz XLP MCU 8KB Flash | Microchip | DIP-20
MPN: PIC18F13K22-E/P ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $1.65 | $1.65 |
| 10 | $1.5 | $15.00 |
| 100 | $1.35 | $135.00 |
| 500 | $1.2 | $600.00 |
| 1,000 | $1.05 | $1,050.00 |
PIC18F13K22-E/P Overview
A PIC microcontroller (Programmable Interface Controller, often described as a Peripheral Interface Controller) is a family of low-cost, low-power, Harvard-architecture microcontrollers based on RISC instruction sets. Within the broader taxonomy of integrated circuits, the PIC18F1XK22 sub-family belongs to Microchip's PIC18 "High-Performance" 8-bit line, sitting above the baseline PIC10/12/16 families in computational throughput and peripheral integration. The "K22" suffix specifically marks the nanoWatt XLP variant - devices engineered for ultra-low sleep current (down to tens of nano-amps in deep sleep), making them a preferred choice for battery-powered and energy-harvesting designs.
Key features include a 10-bit ADC with up to 12 channels, two PWM modules with enhanced capture/compare, an enhanced USART, MSSP (SPI/I2C), two comparators with selectable references, a 31 kHz internal oscillator, and internal oscillator accuracy of +/-1%. The 16-bit-wide instruction word plus 8-bit data path yields 2:1 code density over baseline PIC16 parts while keeping the C-compiler-friendly architecture and interrupt model familiar to PIC developers.
Typical applications include ultra-low-power remote sensors, battery-powered wireless nodes, white-goods and small-appliance controllers, automotive body and HVAC auxiliary modules (extended grade), general-purpose logic replacement, and educational/hobbyist platforms where a through-hole DIP package simplifies breadboarding. Designers often pair the -E/P with a PICkit programmer/debugger for in-circuit serial programming.
A critical design consideration is supply voltage - the PIC18F13K22-E/P operates from 4.2V to 5.5V (the E-grade datasheet specifies 5V nominal); drop-in migration to the F-grade (3.6V max) variants must be verified against the application's rail voltage. The Extended temperature grade (-40C to +125C) makes the -E/P suitable for underhood or industrial enclosures, but datasheet AC/DC specs must be re-checked at temperature extremes for timing-critical peripherals.
Drop-in alternatives for PIC18F13K22-E/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 PIC18F13K22-E/P (same form factor and footprint) — differing in ADC, Package, Operating Temperature, Communication, Timers.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F13K22-I/P
✅ Drop-In✓ In Stock
$1.21 / Unit
View Datasheet →PIC18F13K22-E/ML
✅ Drop-In✓ In Stock
$1.34 / Unit
View Datasheet →PIC18F13K22T-I/SO
✅ Drop-In ⚠️ Specs Unverified✓ In Stock
$1.05 / Unit
View Datasheet →PIC18F1320-I/P
✅ Drop-In ⚠️ Specs Unverified📋 Reference alternative (not in catalog)
PIC18F1220-I/P
✅ Drop-In ⚠️ Specs Unverified✓ In Stock
$2.95 / Unit
View Datasheet →PIC18F13K22-E/P Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC18 (8-bit RISC, Harvard) |
| Product Family | PIC18F1XK22 nanoWatt XLP |
| Flash Program Memory | 8 KB (4K x 16) |
| RAM | 256 bytes |
| EEPROM | 256 bytes |
| Maximum CPU Frequency | 48 MHz |
| Operating Voltage | 4.2 V to 5.5 V |
| I/O Pins | 16 |
| ADC | 10-bit, up to 12 channels |
| Timers | Timer0/1/2/3 (16-bit and 8-bit) |
| Communication | EUSART, MSSP (SPI/I2C) |
| PWM | 2 modules (Enhanced Capture/Compare) |
| Comparators | 2 with selectable references |
| Temperature Grade | Extended (-40C to +125C) |
| Package | 20-pin PDIP (DIP-20, 0.300 inch) |
| Mounting Type | Through-Hole |
| MSL Level | 1 |
| RoHS Status | Compliant |
PIC18F13K22-E/P Pin Configuration
| Pin 1 | RA3/AN3/VREF+/C1IN+ — GPIO RA3 / ADC AN3 / positive voltage reference / comparator input |
| Pin 2 | RA4/AN4/T0CKI/C2OUT — GPIO RA4 / ADC AN4 / Timer0 clock / comparator 2 output |
| Pin 3 | RA5/MCLR/VPP/AN5 — Master Clear (reset) input / programming voltage / GPIO RA5 |
| Pin 4 | RA6/OSC2/CLKO — GPIO RA6 / crystal oscillator output / clock output |
| Pin 5 | RA7/OSC1/CLKI — GPIO RA7 / crystal oscillator input / clock input |
| Pin 6 | VSS — Ground reference |
| Pin 7 | VDD — Positive supply voltage (4.2V to 5.5V) |
| Pin 8 | RB0/AN10/INT0 — GPIO RB0 / ADC AN10 / external interrupt 0 |
| Pin 9 | RB1/AN8/C2INB — GPIO RB1 / ADC AN8 / comparator 2 input B |
| Pin 10 | RB2/AN9/C2INA — GPIO RB2 / ADC AN9 / comparator 2 input A |
| Pin 11 | RB3/AN7/C1INB — GPIO RB3 / ADC AN7 / comparator 1 input B |
| Pin 12 | RB4/AN11/C1INA — GPIO RB4 / ADC AN11 / comparator 1 input A |
| Pin 13 | RB5/CCP3 — GPIO RB5 / Capture Compare PWM 3 |
| Pin 14 | RB6/PGC — GPIO RB6 / ICSP clock (programming/debug) |
| Pin 15 | RB7/PGD — GPIO RB7 / ICSP data (programming/debug) |
| Pin 16 | RC0/P2A/CCP2 — GPIO RC0 / PWM 2 output A / Capture Compare PWM 2 |
| Pin 17 | RC1/P2B/CCP1 — GPIO RC1 / PWM 2 output B / Capture Compare PWM 1 |
| Pin 18 | RC2/AN6/P1A/CCP1 — GPIO RC2 / ADC AN6 / PWM 1 output A / CCP1 |
| Pin 19 | RC3/AN12/P1B — GPIO RC3 / ADC AN12 / PWM 1 output B |
| Pin 20 | RC4/SDA/SDI — GPIO RC4 / I2C data / SPI data in |
Typical Applications
PIC18F13K22-E/P is suitable for 6 applications: Ultra-Low-Power Remote Sensor Node, Automotive Body and HVAC Auxiliary Controller, White Goods and Small Appliance Control, Educational Microcontroller Trainer Board, Battery Charging and Power Management Front-End, Logic Replacement and Custom Sequence Generator.
Ultra-Low-Power Remote Sensor Node
The PIC18F13K22-E/P is purpose-built for battery-powered remote sensor nodes thanks to its nanoWatt XLP deep-sleep current in the single-digit nano-amp range with full RAM retention, the integrated low-power Timer1 with 31 kHz crystal option, and the 10-bit ADC for periodic environmental sampling. With the 5V (-E) supply range and the extended -40C to +125C temperature grade, it can survive years on a single Li-SOCl2 primary cell outdoors, harvesting only micro-amps average load between wake-ups. The 8 KB Flash comfortably holds a state-machine plus a C-coded sensor fusion loop in MPLAB XC8.
Recommended
Automotive Body and HVAC Auxiliary Controller
The -E temperature grade (Extended -40C to +125C) makes the PIC18F13K22-E/P suitable for non-safety automotive applications such as seat controller keypads, HVAC damper drivers, mirror position memories and small lighting sequencers. The 16 I/O pins can directly drive small relays, FET gates and PWM LEDs, while the EUSART links to body-domain LIN/CAN transceivers for diagnostic back-channel. Its 5V tolerance aligns with legacy automotive body controller rails (4.2-5.5V), and the DIP-20 form factor accelerates prototyping on the bench before migrating to the SO or QFN variants for production.
Recommended
White Goods and Small Appliance Control
In coffee machines, dishwashers, microwave user interfaces and similar white-goods subsystems, the PIC18F13K22-E/P provides a robust 8-bit controller with sufficient Flash for state-machine plus HMI logic, plus the 10-bit ADC to read thermistors, water-level sensors and rotary encoders. The enhanced PWM modules can directly drive small brushed DC motors, solenoid valves and triac-fired heating elements through optocouplers. The 5V supply rail tolerates rectified mains-derived power with simple linear regulation, and the Extended temperature grade ensures reliable operation in confined enclosures that may reach 70-90C internally.
Recommended
Educational Microcontroller Trainer Board
The through-hole PDIP-20 package of the PIC18F13K22-E/P is ideal for educational trainer boards and breadboard-based teaching kits, where students can swap the device in and out without soldering. The PIC18 instruction set is well-documented and supported by free MPLAB X IDE and XC8 compiler, while the 8 KB Flash and 48 MHz clock provide enough headroom for student projects ranging from blinking LEDs to PID-controlled motor loops. The ICSP (In-Circuit Serial Programming) interface uses only two pins (PGC/PGD), preserving the rest for student use.
Recommended
Battery Charging and Power Management Front-End
The PIC18F13K22-E/P can serve as a supervisory MCU in single-cell Li-ion or Ni-MH charging front-ends, reading battery voltage and current via its 10-bit ADC, controlling a small FET-based linear or switch-mode charger through PWM, and managing status LEDs. The EUSART provides a debug/logging channel for firmware development, while the comparators can implement hardware-level over-voltage and over-current protection that runs independently of the CPU. The Extended temperature grade supports under-hood automotive or outdoor solar installations where charging controllers are deployed.
Recommended
Logic Replacement and Custom Sequence Generator
When discrete 74HC logic would consume too much board area, the PIC18F13K22-E/P serves as a single-chip sequence generator, configurable state machine or timing controller. With 16 I/O, two PWM channels, two comparators and a 10-bit ADC, it replaces multiple 555 timers, latches and glue logic in a single 20-pin DIP. The 8 KB Flash stores arbitrary timing tables, while the EEPROM retains configuration across power cycles, ideal for industrial test fixtures, conveyor controllers and small machine retrofit applications.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F13K22-E/P — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F13K22-I/P | PIC18F13K22-E/ML | PIC18F13K22T-I/SO | PIC18F1320-I/P | PIC18F1220-I/P |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 20-pin PDIP (DIP-20) | 20-pin PDIP - same | 20-pin QFN | 20-pin SOIC | 20-pin PDIP - same | 20-pin PDIP - same |
| Flash Memory | 8 KB | 8 KB | 8 KB | 8 KB | 8 KB | 4 KB |
| RAM | 256 B | 256 B | 256 B | 256 B | 256 B | 256 B |
| EEPROM | 256 B | 256 B | 256 B | 256 B | 256 B | 256 B |
| Max CPU Frequency | 48 MHz | 48 MHz | 48 MHz | 48 MHz | 40 MHz | 40 MHz |
| Operating Voltage | 4.2 V to 5.5 V | 3.6 V to 5.5 V | 4.2 V to 5.5 V | 3.6 V to 5.5 V | 2.0 V to 5.5 V | 2.0 V to 5.5 V |
| Temperature Grade | Extended (-40C to +125C) | Industrial (-40C to +85C) | Extended (-40C to +125C) | Industrial (-40C to +85C) | Industrial (-40C to +85C) | Industrial (-40C to +85C) |
| ADC | 10-bit, 12 channels | 10-bit, 12 channels | 10-bit, 12 channels | 10-bit, 12 channels | 10-bit, 12 channels | 10-bit, 7 channels |
Key Differentiators
- Extended -40C to +125C temperature grade in a DIP-20 form factor (vs PIC18F13K22-I/P)
- nanoWatt XLP deep-sleep current in the single-digit nA range (vs PIC18F1320-I/P)
- 5V supply range (4.2-5.5V) targets legacy 5V industrial rails (vs PIC18F1220-I/P)
Design Notes
Place a 100 nF decoupling capacitor as close as physically possible to the VDD pin (pin 7), with a short, wide ground trace back to VSS (pin 6). Add a bulk 10 uF tantalum or aluminum electrolytic at the board's power-entry point. The PIC18F13K22-E/P nanoWatt XLP sleep current assumes a clean supply - regulator noise above 50 mVpp will raise sleep current and may corrupt ADC conversions at low sampling rates.
Never leave the MCLR/VPP pin (pin 3) floating - it must be tied to VDD through a 10 kohm resistor, otherwise spurious resets will occur in noisy environments. If in-circuit programming is required, use the standard ICSP header pinout (PGECX/PGEDX) and a 4.7 kohm pull-up on MCLR during programming. The 5V -E grade part cannot be migrated directly into 3.3V designs - verify Vmin against your rail before substitution with the -I or -F variants.
When using an external crystal on OSC1/OSC2 (pins 5 and 4), keep the crystal traces short and surrounded by a ground guard ring to minimize coupling into the high-impedance oscillator cell. Place load capacitors within 3 mm of the crystal pins, with their grounds returning directly to VSS. For low-power designs, prefer the internal 16 MHz HFINTOSC with PLL, and switch to the 31 kHz LFINTOSC during sleep to avoid the crystal startup latency penalty.
Compliance Information
RoHS compliant per Microchip product page. Not AEC-Q100 qualified; use the Q1-suffixed part numbers for automotive qualification. Lead-free (Pb-free) matte-tin finish is standard.