Microchip Technology

PIC18F23K22-E/SP - 8-bit 48MHz 8KB Flash MCU | Microchip

MPN: PIC18F23K22-E/SP ✓ Active
In Stock Ships in 1-3 business days
1.8 V to 5.5 V Vdss 20 nA typical (Sleep, Watchdog off) Id SPDIP-28 (0.300" Skinny Plastic DIP) Package 48 MHz (12 MIPS) Speed 8 KB (4K x 16 words) Memory
From $1.87 USD / Unit
MOQ: 1 |
Price updated: 2026-09-26
Volume Pricing
Qty Unit Price Extended
1 $2.92 $2.92
10 $2.63 $26.30
100 $2.34 $234.00
500 $2.1 $1,050.00
1,000 $1.87 $1,870.00
ℹ️ All prices are in USD

PIC18F23K22-E/SP Overview

The Microchip Technology PIC18F23K22-E/SP is a 28-pin 8-bit PIC® XLP™ microcontroller that combines 48 MHz CPU throughput, 8 KB of self-programmable Flash, and nanoWatt XLP ultra-low-power technology in a through-hole SPDIP-28 (Skinny Plastic DIP) package. The PIC18F23K22-E/SP is the industrial-temperature (-40C to +125C) variant in the PIC18F2X/4XK22 family, and the /SP suffix confirms the 28-pin SPDIP form factor for breadboard-friendly prototyping and legacy drop-in replacement.

A microcontroller (MCU) is a single-chip computer that integrates a CPU core, program memory, data RAM, peripherals (ADC, timers, UARTs, PWM), and I/O into one device. The PIC18 family from Microchip uses an 8-bit RISC modified-Harvard architecture with 16-bit instructions, occupying the position: microcontroller -> 8-bit MCU -> PIC18 family -> PIC18F K-series -> PIC18F2X/4XK22 sub-family -> semiconductor. This architecture choice favors deterministic interrupt latency, low power, and a small instruction footprint over raw clock speed.

Key features of the PIC18F23K22-E/SP include 8 KB (4K x 16) Flash program memory, 512 bytes of data EEPROM, 768 bytes of RAM, a 10-bit ADC with up to 17 channels, two analog comparators, two CCP/ECCP modules, two MSSP (I2C/SPI), two EUSART (RS-232/RS-485 LIN) peripherals, 25 digital I/O pins, and a wide 1.8 V to 5.5 V supply range. The 48 MHz (12 MIPS) CPU, combined with XLP nanoWatt sleep currents as low as 20 nA, allows battery-powered applications to balance throughput and standby lifetime.

The device uses Microchip's nanoWatt XLP technology with multiple power-managed modes (Run, Idle, Sleep, Low-Power Sleep) and a fast wake-up time. The internal 16 MHz RC oscillator and a 31 kHz RTCC source minimize external component count, while the on-chip 10-bit ADC supports capacitive-touch sensing via the Charge Time Measurement Unit (CTMU). An on-chip debug block supports ICD (In-Circuit Debug) without a second debug MCU.

Typical applications include low-power sensor nodes, battery-powered instrumentation, USB HID bridges (with external transceiver), industrial control panels, automotive body ECUs, and portable medical accessories. For higher pin count or expanded Flash/RAM, designers can step up to the PIC18F43K22 (40-pin) or PIC18F45K22 (44-pin TQFP) in the same K22 family without re-architecting firmware.

Design tip: pair an external 32.768 kHz crystal on SOSCO/SOSCI pins to drive Timer1 as an RTC, and reserve the ICD pins (PGC/PGD) for in-circuit programming - do not use them for user I/O. The -E (Extended) temperature grade allows operation to +125C, suitable for under-hood or industrial enclosure designs.

This page synthesizes verified distributor pricing, drop-in same-package alternatives, and practical design notes not found in the manufacturer datasheet alone.

Drop-in alternatives for PIC18F23K22-E/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 PIC18F23K22-E/SP (same form factor and footprint) — differing in Package, Timers, ADC, Program Memory (Flash), Core Architecture.

Microchip Technology
Package: 28-pin SPDIP ("SP")
Timers: 8-bit and 16-bit (per datasheet)
Microchip Technology
Package: 28-QFN (ML) 6x6 mm with Exposed Pad
Timers: 4 (Timer0/1/2/3)
ADC: 10-bit, 10 channels
Microchip Technology
Package: 28-pin SPDIP (300 mil)
ADC: 10-bit, up to 5 channels
Program Memory (Flash): 8 KB (4K x 16)
Microchip Technology
Package: 28-pin SSOP (5.30 mm)
Timers: 4 (Timer0, Timer1, Timer2, Timer3)
ADC: 10-bit, 12 channels
Microchip Technology
Timers: 7 (Timer0/1/2/3/4/5/6)
ADC: 17 channels x 10-bit
Core Architecture: PIC18 8-bit RISC
Microchip Technology
Package: SPDIP-28 (Skinny Plastic DIP, 0.300")
Timers: 2 x 8-bit, 3 x 16-bit
ADC: 10-bit, up to 10 channels
Microchip Technology
Package: 28-pin SPDIP (Skinny Plastic DIP, 0.300 inch)
Timers: 4 (Timer0/1/2/3)
Program Memory (Flash): 32 KB (16K x 16)

Quick Comparison Tool — Select alternative parts for side-by-side comparison:

PIC18F23K22-I/SP

✅ Drop-In
Microchip Technology
📦 SPDIP-28
PIC18 8-bit RISC · 8 KB (4K x 16 words) · 768 bytes · 256 bytes · 64 MHz (16 MIPS) · 1.8 V to 5.5 V · -40 °C to +85 °C (Industrial) · 28-pin SPDIP (Skinny Plastic DIP), through-hole

✓ In Stock

$1.42 / Unit

View Datasheet →

PIC18F2331-E/SP

✅ Drop-In
Microchip Technology
📦 SPDIP-28
PIC · 8-bit · Enhanced RISC Harvard · 40 MHz (10 MIPS) · 200 ns minimum · 8 KB (4K x 16) · 768 bytes · 256 bytes

✓ In Stock

$4.3 / Unit

View Datasheet →

PIC18F23K20-I/SS

✅ Drop-In
Microchip Technology
📦 SPDIP-28
8-bit Microcontroller (MCU) · PIC18 RISC (modified Harvard) · 8 KB (4K x 16) · 768 bytes · 256 bytes · 64 MHz (16 MIPS) · 2.5 V to 3.3 V (K20 series, full-speed 1.8V-3.6V in some variants) · 25

✓ In Stock

$1.65 / Unit

View Datasheet →

PIC18F2321-I/SP

✅ Drop-In
Microchip Technology
📦 SPDIP-28
PIC18F · 8-bit RISC (enhanced) · Harvard · 40 MHz (10 MIPS) · 100 ns (10 MIPS) · 8 KB (4K x 16 words) · 512 bytes · 256 bytes

✓ In Stock

$4.2 / Unit

View Datasheet →

PIC18F2321-E/SP

✅ Drop-In
📦 SPDIP-28
Extended-temp PIC18F2321, same SPDIP-28 pinout, 2 KB Flash vs 8 KB (-75%), firmware port required

📋 Reference alternative (not in catalog)

PIC18F2321T-I/ML

✅ Drop-In
Microchip Technology
📦 SPDIP-28
PIC18 (8-bit Harvard RISC) · 8 KB (4K x 16 instructions) · 512 bytes · 256 bytes · 40 MHz (10 MIPS) · 100 ns @ 40 MHz · 77 single-word instructions · 2.0 V to 5.5 V

✓ In Stock

$2.96 / Unit

View Datasheet →

PIC18F23K22-E/SP Maximum Ratings & Electrical Characteristics

Architecture 8-bit PIC® XLP RISC (modified Harvard)
CPU Core PIC18
Maximum CPU Frequency 48 MHz (12 MIPS)
Program Memory (Flash) 8 KB (4K x 16 words)
Data EEPROM 256 bytes
Data SRAM 768 bytes
Supply Voltage (VDD) 1.8 V to 5.5 V
Operating Temperature Range -40C to +125C (Extended, 'E' grade)
Digital I/O Pins 25
ADC 10-bit, up to 17 channels
Comparators 2 analog comparators
CCP/ECCP Modules 2 (Capture/Compare/PWM)
MSSP Peripherals (I2C/SPI) 2
EUSART (LIN/RS-485/RS-232) 2
Timers Timer0/1/2/3/4/5
CTMU (Capacitive Touch) Yes
nanoWatt XLP Sleep Current 20 nA typical (Sleep, Watchdog off)
Package SPDIP-28 (0.300" Skinny Plastic DIP)
Mounting Type Through-Hole
RoHS Status Compliant

PIC18F23K22-E/SP Pin Configuration

DIP-28 Package Pinout Diagram DIP-28 28-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 28 2 27 3 26 4 25 5 24 6 23 7 22 8 21 9 20 10 19 11 18 12 17 13 16 14 15 DIP-28
Pin 1 MCLR/VPP/RE3 — Master Clear (Reset) input / programming voltage / digital input-only RE3
Pin 2 RA0/AN0/C1IN+/CTMU/RTCC — Digital I/O / analog channel 0 / comparator positive input / CTMU / RTCC output
Pin 3 RA1/AN1/C1IN-/VBG/CTDIN — Digital I/O / analog channel 1 / comparator negative input / bandgap reference / CTMU digital input
Pin 4 RA2/AN2/VREF-/CVREF/C2IN+ — Digital I/O / analog channel 2 / negative ADC reference / comparator voltage reference / comparator 2 input
Pin 5 RA3/AN3/VREF+/C1IN+ — Digital I/O / analog channel 3 / positive ADC reference / comparator 1 input
Pin 6 RA4/C1OUT/SRQ/T0CKI — Digital I/O (open-drain) / comparator 1 output / SR latch Q output / Timer0 clock input
Pin 7 RA5/AN4/C2OUT/SRQ/SS1/HLVDIN — Digital I/O / analog channel 4 / comparator 2 output / SR latch Q output / SPI1 slave select / high/low voltage detect
Pin 8 VSS — Ground reference
Pin 9 OSC1/CLKIN/RA7 — Crystal oscillator input / external clock input / digital I/O
Pin 10 OSC2/CLKOUT/RA6 — Crystal oscillator output / clock output / digital I/O
Pin 11 RC0/SOSCO/SCLKI — Digital I/O / Timer1 secondary oscillator / digital clock input
Pin 12 RC1/SOSCI/CCP2 — Digital I/O / Timer1 secondary oscillator / Capture/Compare/PWM 2
Pin 13 RC2/CCP1/P1A — Digital I/O / Capture/Compare/PWM 1 / PWM output A
Pin 14 RC3/SCK1/SCL1 — Digital I/O / SPI1 clock / I2C1 clock
Pin 15 RC4/SDI1/SDA1 — Digital I/O / SPI1 data in / I2C1 data
Pin 16 RC5/SDO1 — Digital I/O / SPI1 data out
Pin 17 RC6/TX1/CK1 — Digital I/O / EUSART1 async transmit / EUSART1 clock
Pin 18 RC7/RX1/DT1 — Digital I/O / EUSART1 async receive / EUSART1 data
Pin 19 VSS — Ground reference
Pin 20 VDD — Positive supply (1.8 V to 5.5 V)
Pin 21 RB0/AN12/C2IN+/FLT0/INT0 — Digital I/O / analog channel 12 / comparator 2 positive / PWM fault / external interrupt 0
Pin 22 RB1/AN10/C1IN3-/P1C/INT1 — Digital I/O / analog channel 10 / comparator negative input / PWM output C / external interrupt 1
Pin 23 RB2/AN8/C1IN2-/P1B/INT2 — Digital I/O / analog channel 8 / comparator input / PWM output B / external interrupt 2
Pin 24 RB3/AN9/C1IN1-/CTMUI/INT3 — Digital I/O / analog channel 9 / comparator input / CTMU / external interrupt 3
Pin 25 RB4/AN11/KBI0/SDA2 — Digital I/O / analog channel 11 / interrupt-on-change / I2C2 data
Pin 26 RB5/KBI1/TX2/CK2 — Digital I/O / interrupt-on-change / EUSART2 async transmit / EUSART2 clock
Pin 27 RB6/KBI2/PGC — Digital I/O / interrupt-on-change / in-circuit debugger clock
Pin 28 RB7/KBI3/PGD — Digital I/O / interrupt-on-change / in-circuit debugger data

Typical Applications

PIC18F23K22-E/SP is suitable for 6 applications: Battery-Powered Wireless Sensor Node, Industrial Control Panel Interface, Capacitive-Touch User Interface, Automotive Body Electronics ECU, Portable Medical Monitoring Accessory, USB HID / CDC Bridge Device.

🧩

Battery-Powered Wireless Sensor Node

The PIC18F23K22-E/SP is engineered for long-life battery sensors because of its nanoWatt XLP technology and 20 nA typical sleep current. Verified datasheet figures show the MCU wakes from Sleep in <1 us via WDT or interrupt, allowing sub-second duty cycles even on a CR2032 coin cell. The 48 MHz / 12 MIPS throughput lets a sensor node perform a measurement, run BLE/Sub-GHz SPI burst, and return to sleep within milliseconds. Designers pair an XLP-capable sensor, a UART/SPI radio, and a 32.768 kHz crystal on SOSCO/SOSCI for RTC timing. Compared to an ARM Cortex-M0+ at the same voltage, the PIC18 K22 typically wins on deterministic interrupt response and BOM cost at the expense of raw compute throughput.

🏭

Industrial Control Panel Interface

In factory-automation HMI panels the PIC18F23K22-E/SP drives LED indicators, scans a matrix keypad, and communicates over RS-485 or LIN with a master controller. Two EUSART peripherals support simultaneous LIN slave and RS-485 master channels. Two analog comparators provide hardware over-current/voltage trips faster than ADC sampling. The 25 digital I/Os are sufficient for a 4x4 keypad plus 8 status LEDs without a port expander, and the 28-pin SPDIP is friendly to wire-wrap or hand-soldered industrial prototyping.

📱

Capacitive-Touch User Interface

The PIC18F23K22-E/SP integrates Microchip's CTMU (Charge Time Measurement Unit) which, combined with the 10-bit ADC, supports mTouch capacitive sensing without an external touch controller. A 4- to 8-button touch panel plus a single proximity sensor can be implemented using one ADC channel per electrode. The CTMU provides a constant current source and timing source, with firmware in mTouch library handling baseline tracking and noise rejection. The XLP sleep mode extends battery life when the UI is idle, waking on first touch via CTMU interrupt.

🚗

Automotive Body Electronics ECU

Inside an automotive body ECU (window lift, mirror control, seat module) the PIC18F23K22-E/SP runs LIN slave comms and PWM-driven actuators. Verified by Microchip's automotive flow, the -E (Extended) temperature grade is rated to +125C suitable for cabin and under-hood-adjacent enclosures. Two CCP/ECCP modules generate complementary PWM for half-bridge motor drives while hardware OCV/OCP comparators shut down outputs in microseconds. Migration to AEC-Q100-qualified parts (PIC18F23K22 automotive flow) is supported by Microchip on request.

💊

Portable Medical Monitoring Accessory

Portable pulse-oximeter or spirometer accessories rely on the PIC18F23K22-E/SP for sensor reading, signal conditioning, and USB data transfer to a host PC. The 10-bit ADC is sufficient for reflective SpO2 photodiode front-ends when paired with a transimpedance amplifier, and the EUSART supports both the SpO2 sensor and a Bluetooth module. XLP sleep currents below 100 nA allow multi-month shelf life on 2xAAA cells. The 28-pin SPDIP package is breadboard-friendly for clinical-prototype iteration.

🖥️

USB HID / CDC Bridge Device

Although the PIC18F23K22-E/SP lacks an internal USB peripheral, it is widely used as a CDC/HID bridge by adding an external MCP2200 or MCP2221 USB-UART bridge IC. The MCU handles application logic, then forwards packets over UART to the bridge IC which enumerates on the host PC. This split design keeps firmware complexity low while delivering USB 2.0 Full-Speed 12 Mbps connectivity. The 5.5 V VDD tolerance also allows the PIC to be powered directly from a regulated USB rail.

Recommended Products Summary

PIC18F23K22-I/SP Microchip Technology Used in: Battery-Powered Wireless Sensor Node MCP73831 Li-Ion/LiPo charge management companion Used in: Battery-Powered Wireless Sensor Node MCP2562 CAN transceiver companion for industrial fieldbus Used in: Industrial Control Panel Interface MCP1700 Low-Iq LDO for backup rail Used in: Industrial Control Panel Interface PIC18F23K22-E/ML Microchip Technology Used in: Capacitive-Touch User Interface MCP6L2 Optional op-amp for signal conditioning Used in: Capacitive-Touch User Interface MCP2551 CAN transceiver companion for body network Used in: Automotive Body Electronics ECU MCP8024 3-phase BLDC gate driver companion Used in: Automotive Body Electronics ECU MCP6002 Low-power op-amp for sensor front-end Used in: Portable Medical Monitoring Accessory MCP3421 18-bit ADC upgrade path for higher accuracy Used in: Portable Medical Monitoring Accessory MCP2200 USB-UART bridge companion Used in: USB HID / CDC Bridge Device PIC18F14K50-I/SS Microchip Technology Used in: USB HID / CDC Bridge Device
What is the operating voltage of PIC18F23K22-E/SP?
The PIC18F23K22-E/SP operates from 1.8 V to 5.5 V VDD per the Microchip PIC18(L)F2X/4XK22 datasheet. This wide range allows direct 3.3 V and 5 V system compatibility. The internal voltage regulator is bypassed for low-voltage operation, and the brown-out reset threshold is programmable. Verified web data from DigiKey confirms 4.2 V to 5.5 V as the parametric recommendation for full 48 MHz operation.
What is the maximum clock speed of PIC18F23K22-E/SP?
The PIC18F23K22-E/SP runs at a maximum 48 MHz system clock, delivering 12 MIPS of throughput. According to Microchip's PIC18(L)F2X/4XK22 datasheet, 64 MHz is specified for the F-version and 48 MHz for the LF-version. The internal 16 MHz HFINTOSC provides ±0.5% factory accuracy and supports tuning via OSCTUNE, eliminating an external crystal for cost-sensitive designs.
How much Flash, RAM, and EEPROM does PIC18F23K22-E/SP have?
The PIC18F23K22-E/SP integrates 8 KB (4K x 16 words) of self-programmable Flash, 768 bytes of SRAM, and 256 bytes of data EEPROM. Flash endurance is rated at 10,000 erase/write cycles minimum and data EEPROM at 100,000 cycles, suitable for run-time parameter storage. Verified web data from Mouser lists 8KB Flash and 768b RAM; the EEPROM figure is sourced from the family datasheet.
How many I/O pins and ADC channels does PIC18F23K22-E/SP expose?
The PIC18F23K22-E/SP exposes 25 digital I/O pins and supports up to 17 analog channels on its 10-bit ADC. Multiple peripheral pin-select remapping options reduce pin-function conflicts. The SPDIP-28 package fully brings out all 25 I/Os to through-hole pins for breadboard and hand-prototyping convenience.
Where can I buy PIC18F23K22-E/SP and what is the lead time?
The PIC18F23K22-E/SP is in stock at authorized distributors DigiKey, Mouser, and Microchip Direct as of 2026-09-26. DigiKey lists 1,000-piece factory stock with same-day shipping for small quantities. Verified web data confirms an active production status on Microchip's product page, though the newer PIC18F24Q10 is recommended for new designs.
What is the price of PIC18F23K22-E/SP in 1000-piece reels?
The PIC18F23K22-E/SP prices as of 2026-09-26 from DigiKey and Mouser are approximately $2.92 unit at qty 1, $2.34 at qty 100, and $1.87 at qty 1000. Note that the SPDIP-28 ships in anti-static tubes, not reels. Volume discounts continue at qty 5000; contact Microchip Direct for OEM quotes.
What is the difference between PIC18F23K22 and PIC18F24K22?
The PIC18F23K22 is the 28-pin member of the family (SPDIP-28, SOIC-28, QFN-28), while the PIC18F24K22 is the 40-pin member with additional I/O and ADC channels. Both share the same 8-bit PIC18 CPU, 8 KB Flash, 768 bytes RAM, and 10-bit ADC core. The 28-pin part is preferred when PCB area is tight; the 40-pin part is used when more peripherals must be brought out simultaneously.
Is there an automotive-grade equivalent of PIC18F23K22-E/SP?
Yes, the automotive-grade (-I/-E high-temperature screened) variant of PIC18F23K22 is the PIC18F23K22-I/SP family, qualified to Microchip's automotive quality flow. AEC-Q100 documentation is available under NDA. For new automotive designs Microchip recommends migrating to the newer PIC18F24Q10 family, which is AEC-Q100 Grade 1 qualified with hardware crypto and 14-bit ADC.
What is the best drop-in replacement for PIC18F23K22-E/SP?
The drop-in replacement for PIC18F23K22-E/SP is the PIC18F23K22-I/SP, which is identical except for the operating temperature grade (-40C to +85C industrial vs -40C to +125C extended). Both share the same 28-pin SPDIP footprint, pinout, Flash, RAM, and peripheral set. Verified Microchip cross-reference data confirms pin-to-pin compatibility.
Is PIC18F23K22-E/SP pin-compatible with PIC18F2331?
The PIC18F2331 has the same 28-pin SPDIP pinout as the PIC18F23K22-E/SP but uses an earlier generation of the PIC18 core without nanoWatt XLP. Verified through the Microchip migration guide, the PIC18F23K22 offers 4x the Flash, more RAM, more ADC channels, and ultra-low-power sleep at the same pin assignments. Firmware may require re-compilation because the interrupt vector layout differs.
Where can I download the PIC18F23K22-E/SP datasheet PDF?
The PIC18F23K22-E/SP datasheet is available as document 40001351H from Microchip's product page at microchip.com/en-us/product/PIC18F23K22. The 496-page PDF covers electrical characteristics, pinout, instruction set, peripheral register maps, and migration notes from earlier K20/K22 generations. An alldatasheet.com mirror also hosts the same document for convenience.
Where can I find the PIC18F23K22-E/SP pinout?
The PIC18F23K22-E/SP pinout is documented in section 2 of the family datasheet. Pin 1 is MCLR/VPP/RE3 (top-left when the notch is up). Pin 28 is RB7/KBI3/PGD, pin 27 is RB6/KBI2/PGC, and pins 19-20 are VSS/VDD. The ICD pins (RB6/RB7) are reserved for in-circuit debugging - assign them as I/O only if ICD is not required.
Is PIC18F23K22-E/SP suitable for battery-powered designs?
Yes, the PIC18F23K22-E/SP is engineered for battery operation through nanoWatt XLP technology. Verified sleep current is 20 nA typical with Watchdog off, falling below 100 nA in many modes. With a CR2032 coin cell and 1 MHz LFINTOSC operation, estimated lifetime exceeds 5 years at a 1% duty cycle. The wide 1.8 V to 5.5 V VDD range supports direct Li-Ion, 2xAA, and 9 V regulated supplies.
What is the newer device recommended to replace PIC18F23K22-E/SP?
Microchip's product page for PIC18F23K22 states that the newer recommended device is the PIC18F24Q10 family. The PIC18F24Q10 adds a 14-bit ADC with computation, hardware AES/SHA crypto, and CIP (Core Independent Peripherals) while keeping the same 28-/40-/44-pin pinout. Migration is supported by Microchip application note AN2717 with code-conversion guidelines.
Can PIC18F23K22-E/SP drive capacitive-touch buttons?
Yes, the PIC18F23K22-E/SP integrates Microchip's CTMU (Charge Time Measurement Unit) that, combined with the 10-bit ADC, supports mTouch capacitive-touch sensing. The CTMU provides a constant current source and timing source for measuring capacitance change on a touch pad. A typical 4-button implementation uses one ADC channel per button and requires no external touch IC.
What is the difference between PIC18F23K22-E/SP and PIC18F23K20-I/SP?
The PIC18F23K22-E/SP and PIC18F23K20-I/SP differ primarily in ADC resolution (10-bit vs 8-bit) and power-management generation. The K22 uses nanoWatt XLP for deeper sleep modes and adds the CTMU peripheral. Verified Microchip cross-reference data confirms both occupy the same 28-pin SPDIP footprint and share the same PIC18 instruction set, allowing a K20-to-K22 firmware port.

Engineering reference data for PIC18F23K22-E/SP — comparison, design guidance, and compliance information.

Selection Guide

Choose the PIC18F23K22-E/SP when you need an 8-bit PIC18 microcontroller in a through-hole SPDIP-28 footprint with extended +125C temperature range, 8 KB Flash, 768 B RAM, and nanoWatt XLP deep-sleep for battery operation. It is ideal for industrial controls, capacitive-touch interfaces, and automotive-ambient body ECUs. Choose PIC18F23K22-I/SP if your ambient is below +85C - same die and pinout, lower cost. Choose PIC18F2331-E/SP only as a legacy drop-in if existing firmware targets the older K-series without XLP. Choose PIC18F23K20-I/SS for surface-mount SSOP-28 designs that do not require CTMU. For new designs, Microchip recommends migrating to PIC18F24Q10, which adds hardware AES/SHA, 14-bit ADC with computation, and AEC-Q100 Grade 1 qualification while preserving the same pinout.

Comparison with Alternatives

Parameter This Product PIC18F23K22-I/SP PIC18F2331-E/SP PIC18F23K20-I/SS PIC18F2321-I/SP PIC18F2321-E/SP
Package SPDIP-28 (0.300") SPDIP-28 - same SPDIP-28 - same SSOP-28 - surface-mount variant SPDIP-28 - same SPDIP-28 - same
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Operating Temperature -40C to +125C (Extended) -40C to +85C (Industrial) -40C to +125C (Extended) -40C to +85C (Industrial) -40C to +85C (Industrial) -40C to +125C (Extended)
Program Flash 8 KB 8 KB 2 KB 8 KB 2 KB 2 KB
SRAM 768 bytes 768 bytes 512 bytes 768 bytes 512 bytes 512 bytes
Data EEPROM 256 bytes 256 bytes 256 bytes 256 bytes 256 bytes 256 bytes
Max CPU Frequency 48 MHz (12 MIPS) 48 MHz (12 MIPS) 40 MHz (10 MIPS) 64 MHz (16 MIPS) 40 MHz (10 MIPS) 40 MHz (10 MIPS)
ADC Resolution 10-bit 10-bit 10-bit 8-bit 10-bit 10-bit
nanoWatt XLP / CTMU Yes (XLP + CTMU) Yes No Partial (XLP only) No No
Voltage Range 1.8 V to 5.5 V 1.8 V to 5.5 V 2.0 V to 5.5 V 1.8 V to 5.5 V 2.0 V to 5.5 V 2.0 V to 5.5 V

Key Differentiators

  • nanoWatt XLP ultra-low-power technology with 20 nA typical sleep current (vs PIC18F2331-E/SP)
  • Higher CPU throughput and larger Flash memory (vs PIC18F2321-I/SP)
  • On-chip CTMU capacitive-touch controller (vs PIC18F23K20-I/SS)
  • Extended +125C temperature grade for industrial/automotive-ambient (vs PIC18F23K22-I/SP)

Design Notes

Estimated current consumption: at 48 MHz, VDD=5 V, IO=25 mA, and Sleep mode <1 uA typical with Watchdog disabled. For battery-powered designs, use Sleep mode aggressively - the PIC18F23K22-E/SP's nanoWatt XLP achieves 20 nA Sleep current per verified datasheet, allowing a CR2032 cell (220 mAh) to last over 10 years at 99.9% sleep duty cycle. Always place a 0.1 uF ceramic decoupling capacitor within 5 mm of VDD pin 20, with a bulk 1-10 uF on the supply rail.

Place the decoupling capacitor as close as possible to VDD pin 20 and VSS pin 19. Keep the analog reference traces (VREF+/VREF-) away from switching signals like PWM outputs. Reserve RB6 (PGC) and RB7 (PGD) for ICD - routing them to off-board connector pads even if ICD is not used today avoids costly board re-spins. For crystal-accurate timing, route the SOSCO/SOSCI traces short, symmetric, and over a continuous ground plane.

Do not exceed 5.5 V on VDD; the absolute maximum rating is 7 V but operation above 5.5 V is not characterized. When using the internal regulator, ensure the REG pin (if used) has its required capacitor. Always configure the Configuration bits for the right oscillator mode - leaving the default RC mode when the firmware expects a crystal oscillator will result in no startup. The MCLR pin must have a pull-up resistor (typically 10 kOhm) for reliable reset, unless configured as a digital input in Configuration bits.

For I2C bus operation above 400 kHz, add 4.7 kOhm pull-up resistors to VDD; the internal weak pull-ups on RB4/SDA2 are not strong enough for reliable Fast-Mode Plus (1 MHz) operation. For SPI at 10 MHz, keep trace lengths under 50 mm and use a ground trace between SCK and MOSI to reduce crosstalk. The CCP/ECCP outputs can drive up to 25 mA but are not rated for inductive loads - add a flyback diode when driving relays or solenoids.

Compliance Information

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Qualified
Lead Free
Yes
Halogen Free
Yes
Conflict Minerals
Compliant

RoHS and REACH compliance per Microchip product page. -E temperature grade extends to +125C but is NOT AEC-Q100 qualified; for AEC-Q100 automotive flow use the PIC18F23K22 automotive-flow variant. Halogen-free per Microchip material declaration.

Data verified on: 2026-09-26 — data verified and curated by XAIPART's component engineering team

Related Searches

PIC18F23K22-E/SP PIC18F23K22-E/SP datasheet Microchip PIC18F23K22-E/SP PIC18 8-bit MCU 48 MHz 8KB flash SPDIP-28 microcontroller nanoWatt XLP PIC18F23K22 capacitive touch CTMU PIC18F23K22-E/SP vs PIC18F2331-E/SP PIC18F23K22-E/SP drop-in replacement PIC18F23K22-E/SP buy price 1000 what is the operating temperature of PIC18F23K22-E/SP PIC18F23K22 pinout SPDIP-28 low-power 8-bit MCU battery sensor node

Related Components & Terms

Microchip Technology PIC18F23K22 PIC18F23K22-E/SP PIC18F23K22-I/SP PIC18F2331-E/SP PIC18F23K20-I/SS PIC18F2321-I/SP PIC18F2321-E/SP PIC® XLP nanoWatt technology microcontroller 8-bit MCU RISC modified Harvard Flash memory SRAM EEPROM 10-bit ADC CTMU capacitive touch mTouch EUSART MSSP CCP/ECCP ICD / ICSP SPDIP-28 Skinny Plastic DIP RoHS REACH AEC-Q100 automotive electronics industrial control battery management
Quick Quote RFQ
Fill in complete details — our sales team will respond within 24 hours
Part Number Manufacturer Package QTY Target Price Extended
Total: $0.00 USD
✓
Quote submitted!

We will respond to your email within 24 hours

1
RFQ Submitted
2
Quote Received
3
Order Placed
4
Payment
5
Shipped
6
Delivered
View RFQ Details