PIC18F24K22-I/SP - 8-Bit 64MHz XLP MCU, 16KB Flash | Microchip
MPN: PIC18F24K22-I/SP ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $3.45 | $3.45 |
| 10 | $3.1 | $31.00 |
| 100 | $2.78 | $278.00 |
| 500 | $2.45 | $1,225.00 |
| 1,000 | $2.18 | $2,180.00 |
| 3,000 | $1.92 | $5,760.00 |
PIC18F24K22-I/SP Overview
A microcontroller (MCU) is a single-chip computer that combines a CPU core, non-volatile program memory, working RAM, and a rich set of peripheral interfaces. The PIC18 architecture is an 8-bit RISC Harvard-design core from Microchip, well established for deterministic interrupt latency, compact C and assembly code generation, and broad ecosystem support through MPLAB X IDE and the XC8 compiler. PIC MCUs sit in a hierarchy of "8-bit MCU -> microcontroller -> embedded controller -> semiconductor," and the K-series emphasizes low-power operation with advanced peripherals for connected and battery-driven products.
Key features of the PIC18F24K22 include 25 digital I/O pins, two Enhanced USART modules supporting LIN and RS-485, two MSSP (SPI/I2C) ports, two CCP and one ECCP capture/compare/PWM modules, a 10-bit ADC with up to 19 channels and 30 ksps conversion rate, two comparators, a 5-bit DAC, and a hardware RTCC with self-tune calibration. The XLP technology delivers typical sleep currents below 50 nA, with multiple power-managed operating modes (RUN, IDLE, SLEEP, and deep-sleep with RTCC retention). On-chip 32 kHz oscillator and INTOSC up to 16 MHz eliminate external crystals in cost-sensitive designs.
Typical applications include industrial sensor transmitters, battery-powered IoT nodes, home-automation controllers, HVAC interface panels, and consumer appliances. The wide 2.3V-5.5V supply range simplifies integration with both single-cell Li-ion and 5V regulated rails. The combination of XLP sleep currents, an integrated ADC, and dual serial interfaces lets engineers build compact connected-sensor products without external ADC or RTC chips.
When designing with the PIC18F24K22, observe Vdd decoupling guidelines (100 nF + bulk) near each supply pin and reserve dedicated ICSP/ICD pins (PGC/PGD) for in-circuit programming and debugging. This page consolidates distributor pricing, same-package drop-in alternatives, and practical design notes to support faster component selection than browsing the manufacturer datasheet alone.
Drop-in alternatives for PIC18F24K22-I/SP — 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 PIC18F24K22-I/SP (same form factor and footprint) — differing in ADC, Mounting Type, Data RAM, Program Memory (Flash), Core.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F23K22-I/SP
✅ Drop-In✓ In Stock
$1.42 / Unit
View Datasheet →PIC18F24K20-I/SS
✅ Drop-In ⚠️ Specs Unverified✓ In Stock
$1.92 / Unit
View Datasheet →PIC18F24K22-I/SP Maximum Ratings & Electrical Characteristics
| Family | PIC18F K-series |
| Core | PIC18 8-bit RISC |
| Maximum CPU Frequency | 64 MHz |
| Instruction Throughput | 16 MIPS (4:1 instruction cycle) |
| Program Memory (Flash) | 16 KB (8K x 16) |
| Data RAM | 768 bytes |
| Data EEPROM | 256 bytes |
| Supply Voltage (Vdd) | 2.3 V to 5.5 V |
| Operating Temperature (Industrial) | -40 C to +85 C |
| Digital I/O Pins | 25 |
| ADC | 10-bit, up to 19 channels, 30 ksps |
| Comparators | 2 |
| DAC | 5-bit, 1 channel |
| Timers (8/16-bit) | 4 x 8-bit, 4 x 16-bit |
| CCP/ECCP Modules | 2 CCP + 1 ECCP |
| EUSART Modules | 2 |
| MSSP (SPI / I2C) Modules | 2 |
| CTMU | Yes (touch, mTouch capacitive sensing) |
| RTCC with Self-Tune | Yes |
| Internal Oscillator | 31 kHz LF + INTOSC up to 16 MHz |
| nanoWatt XLP Sleep Current | Typical <50 nA (per datasheet) |
| Package | 28-pin SPDIP (Skinny Plastic DIP) |
| Mounting Type | Through-hole (DIP) |
| RoHS Status | Compliant |
| Lead-Free | Yes |
PIC18F24K22-I/SP Pin Configuration
| Pin 1 | MCLR/RE3 — Master Clear (reset) input / digital-only RE3 |
| Pin 2 | RA0/AN0/C1IN+/AN11 — PORTA bit 0 / analog input / comparator 1 positive input |
| Pin 3 | RA1/AN1/C1IN- — PORTA bit 1 / analog input / comparator 1 negative input |
| Pin 4 | RA2/AN2/VREF-/DAC — PORTA bit 2 / analog input / negative reference / DAC output |
| Pin 5 | RA3/AN3/VREF+ — PORTA bit 3 / analog input / positive reference |
| Pin 6 | RA4/T0CKI/C1OUT — PORTA bit 4 / Timer0 clock / comparator 1 output |
| Pin 7 | RA5/AN4/C2IN+/SS1 — PORTA bit 5 / analog input / comparator 2 positive input / SPI1 slave select |
| Pin 8 | VSS — Ground reference |
| Pin 9 | RA7/OSC1/CLKI — PORTA bit 7 / oscillator input / external clock input |
| Pin 10 | RA6/OSC2/CLKO — PORTA bit 6 / oscillator output / clock output |
| Pin 11 | RC0/SOSCO — PORTC bit 0 / secondary oscillator output (32 kHz) |
| Pin 12 | RC1/SOSCI — PORTC bit 1 / secondary oscillator input (32 kHz) |
| Pin 13 | RC2/CCP1 — PORTC bit 2 / Capture/Compare/PWM1 |
| Pin 14 | RC3/SCL1/SCK1 — PORTC bit 3 / I2C1 clock / SPI1 clock |
| Pin 15 | RC4/SDA1/SDI1 — PORTC bit 4 / I2C1 data / SPI1 data in |
| Pin 16 | RC5/SDO1 — PORTC bit 5 / SPI1 data out |
| Pin 17 | RC6/TX1/CK1 — PORTC bit 6 / EUSART1 transmit / clock |
| Pin 18 | RC7/RX1/DT1 — PORTC bit 7 / EUSART1 receive / data |
| Pin 19 | VSS — Ground reference |
| Pin 20 | VDD — Positive supply voltage |
| Pin 21 | RB0/AN12/INT0 — PORTB bit 0 / analog input / external interrupt 0 |
| Pin 22 | RB1/AN10/C2IN-/INT1 — PORTB bit 1 / analog input / comparator 2 negative / external interrupt 1 |
| Pin 23 | RB2/AN8/C2OUT — PORTB bit 2 / analog input / comparator 2 output |
| Pin 24 | RB3/AN9/CTMUI/CCP2 — PORTB bit 3 / analog input / CTMU / Capture/Compare/PWM2 |
| Pin 25 | RB4/AN11 — PORTB bit 4 / analog input |
| Pin 26 | RB5/AN13 — PORTB bit 5 / analog input |
| Pin 27 | RB6/PGC — PORTB bit 6 / ICSP clock / in-circuit debugger clock |
| Pin 28 | RB7/PGD — PORTB bit 7 / ICSP data / in-circuit debugger data |
Typical Applications
PIC18F24K22-I/SP is suitable for 7 applications: Industrial Sensor Transmitter, Battery-Powered IoT Edge Node, Home Automation Controller, HVAC Interface Panel, Consumer Appliance Control, Automotive Aftermarket Accessory, Educational / Hobbyist Development Platform.
Industrial Sensor Transmitter
The PIC18F24K22-I/SP is well suited to industrial 4-20 mA or wireless sensor transmitters because of its integrated 10-bit ADC with up to 19 channels, dual comparators for threshold detection, and nanoWalt XLP sleep current below 50 nA typical. The 2.3V to 5.5V supply range accommodates both 3.3V regulated and 5V loop-powered architectures, while the 28-pin SPDIP package simplifies through-hole prototyping and field-replaceable installations. EUSART modules support RS-485 multi-drop sensor networks. Designers can run the CPU on the internal 16 MHz INTOSC for cost-sensitive nodes, freeing external crystals for the analog front end.
Recommended
Battery-Powered IoT Edge Node
For battery-driven IoT edge nodes, the PIC18F24K22-I/SP combines XLP sleep current below 50 nA typical with a real-time clock/calendar (RTCC) that retains timekeeping through deep sleep without external components. The 64 MHz core provides enough MIPS for modest protocol stacks (Modbus, MQTT-SN, BLE HCI bridging) when awake. Two EUSART and two MSSP peripherals enable simultaneous sensor bus (I2C) and radio link (SPI/UART) interfaces. The 28-pin SPDIP footprint also speeds breadboard prototyping, an advantage for low-volume industrial IoT products. Industrial -40 C to +85 C temperature rating covers outdoor enclosures without derating.
Recommended
Home Automation Controller
Home automation controllers benefit from the PIC18F24K22-I/SP combination of 25 I/O lines for keypad, LEDs, and relay drivers, plus dual EUSART and MSSP modules for connecting to sensor networks and external radios. The 5-bit DAC and two comparators support simple analog feedback loops for light dimmers or motor control. With 16 KB of Flash, the MCU fits typical automation firmware including state machines, scheduling, and a small UI. The through-hole SPDIP package makes the design serviceable in the field, an important factor for installed building-automation equipment.
Recommended
HVAC Interface Panel
In HVAC interface panels, the PIC18F24K22-I/SP delivers the 64 MHz MIPS and 16 KB of Flash needed to drive character or graphical LCDs while managing keypad inputs and communicating with the main control board over UART. The CTMU peripheral enables mTouch capacitive touch buttons, eliminating mechanical switches in modern thermostat designs. The wide 2.3V to 5.5V supply range supports direct connection to 24VAC-derived DC rails after rectification. The 28-pin SPDIP form factor is friendly to through-hole display module assemblies used in HVAC chassis.
Recommended
Consumer Appliance Control
Small kitchen and home appliances use the PIC18F24K22-I/SP for compact, low-cost control boards because the 16 KB Flash fits motor-control and timing firmware comfortably. The two CCP/ECCP modules can drive MOSFET half-bridges for low-voltage DC motors in blenders or pumps, while the 10-bit ADC reads current and temperature feedback. nanoWalt XLP technology reduces standby power below 100 uA, helping products meet energy-star standby requirements. The 28-pin SPDIP package is preferred for low-volume appliances because it supports wave soldering and easy rework.
Recommended
Automotive Aftermarket Accessory
Automotive aftermarket accessories such as alarm systems, lighting controllers, and data loggers benefit from the PIC18F24K22-I/SP combination of 16 KB Flash, two EUSART modules (LIN-capable), and industrial -40 C to +85 C temperature rating. The integrated 10-bit ADC reads automotive battery voltage and analog sensor channels, while the comparators provide over-voltage and current-limit detection. The 28-pin SPDIP is convenient for low-volume aftermarket modules that target hobbyists and service technicians. For OE-grade automotive designs, consider the -E/SP extended-temperature variant for -40 C to +125 C coverage.
Recommended
Educational / Hobbyist Development Platform
The PIC18F24K22-I/SP is a popular choice for educational labs and hobbyist projects because the 28-pin SPDIP package fits standard breadboards and through-hole prototyping boards without surface-mount adapters. The PICkit 4 or MPLAB Snap debugger connects via the dedicated PGC/PGD pins for hands-on learning of PIC18 architecture, interrupts, and peripherals. With 16 KB of Flash, students can build meaningful projects - line-following robots, simple games, data loggers - while still having headroom. The XC8 compiler's free mode covers educational use, making this MCU a cost-effective teaching vehicle.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F24K22-I/SP — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F23K22-I/SP | PIC18F24K20-I/SS |
|---|---|---|---|
| Package | 28-pin SPDIP | 28-pin SPDIP - same | 28-pin SSOP - surface mount variant |
| Brand | Microchip Technology | Microchip Technology - same | Microchip Technology - same |
| Flash Memory | 16 KB | 8 KB | 16 KB |
| SRAM | 768 bytes | 512 bytes | 768 bytes |
| EEPROM | 256 bytes | 256 bytes | 256 bytes |
| Maximum CPU Frequency | 64 MHz | 64 MHz | 64 MHz |
| Supply Voltage | 2.3 V to 5.5 V | 2.3 V to 5.5 V | 1.8 V to 3.6 V |
| I/O Pins | 25 | 25 | 25 |
| ADC | 10-bit, 19 channels | 10-bit, 19 channels | 10-bit, 14 channels |
| EUSART / MSSP Modules | 2 / 2 | 2 / 2 | 2 / 2 |
Key Differentiators
- Larger Flash than PIC18F23K22 sibling (vs PIC18F23K22-I/SP)
- True nanoWalt XLP with sub-50 nA typical sleep (vs PIC18F24K20-I/SS)
- Through-hole SPDIP form factor for prototyping (vs PIC18F24K22-I/SS)
Design Notes
The PIC18F24K22-I/SP operates from 2.3V to 5.5V and supports multiple power-managed modes including Sleep, Idle, and Doze. Place a 100 nF decoupling capacitor as close as possible to each Vdd pin (pins 20 and 29) plus a bulk 10 uF tantalum or ceramic on the supply rail. For ADC accuracy, ensure the analog supply (AVdd) is low-impedance; if Vdd is noisy, add a ferrite bead and additional bulk capacitance on the analog rail. When using the ADC, allow at least 10 us for acquisition time before conversion.
Reserve the RB6/PGC (pin 39) and RB7/PGD (pin 40) pins for ICSP/ICD access; routing them out to a programming header or test pad ensures the device can be debugged and re-flashed in-circuit. The MCLR pin (pin 1) requires a 10 kohm pull-up to Vdd and a 100 nF capacitor to ground for proper reset behavior - omitting these components is a common reason prototypes fail to start. Keep the crystal/oscillator traces short and surround them with a ground guard ring to minimize EMI.
The PIC18F24K22-I/SP in 28-pin SPDIP has typical junction-to-ambient thermal resistance (theta_JA) around 80 C/W, but actual dissipation in normal embedded operation is well below 50 mW so thermal management is rarely an issue. Estimated: at 64 MHz, 5 V, all peripherals active, the core draws approximately 8 mA, giving P = 40 mW and junction temperature rise of approximately 3 C above ambient - no heatsink required. In sealed enclosures with high ambient, validate junction temperature against the -40 C to +85 C (industrial) operating limit.
Common pitfalls with this MCU include: forgetting to disable the watchdog timer (WDTCON) in firmware until it is intentionally enabled; failing to clear the GIE bit inside ISRs (or unintentionally re-enabling it and re-entering); setting CONFIG bits for an oscillator mode that conflicts with the actual hardware. The configuration words (CONFIG1H through CONFIG4L) must match the application oscillator, watchdog, brown-out, and code-protect requirements - use MPLAB X's configuration-bit dialog to set them correctly. Also remember that the ECCP and CCP pin assignments overlap with PORTB and PORTC pins, so choose PWM outputs carefully.
For the analog inputs, route analog traces away from switching digital lines to minimize crosstalk; keep the analog reference (VREF+/VREF-) traces short and place reference bypass capacitors (100 nF + 10 uF) near the VREF pins. If using the CTMU for mTouch capacitive sensing, dedicate adjacent pins and use the application note AN1250 layout guidance to prevent false touches. The 28-pin SPDIP package allows simple two-layer through-hole layouts; use a ground plane on the bottom layer for clean return paths.
Compliance Information
RoHS and lead-free status per Microchip product page and distributor listings. AEC-Q100 qualification is not claimed on the standard -I/SP variant; for automotive designs use AEC-Q100-qualified PIC18F K22 members with explicit automotive part numbers.