Microchip Technology

PIC12F1822-E/P - 8-bit MCU, 3.5KB Flash, 32MHz, 8-PDIP | Microchip

MPN: PIC12F1822-E/P ✓ Active
In Stock Ships in 1-3 business days
1.8 V to 5.5 V (PIC12F1822; 2.5-5.5V for -E variant confirmed via 3rd-party listings) Vdss 20 nA typical (per datasheet family spec) Id 8-pin PDIP (P) Package 32 MHz (8 MIPS) Speed 3.5 KB (2K x 14) Memory
From $1.05 USD / Unit
MOQ: 1 |
Price updated: 2026-09-15
Volume Pricing
Qty Unit Price Extended
1 $1.62 $1.62
10 $1.46 $14.60
100 $1.3 $130.00
500 $1.17 $585.00
1,000 $1.05 $1,050.00
ℹ️ All prices are in USD

PIC12F1822-E/P Overview

The Microchip Technology PIC12F1822-E/P is an 8-bit RISC microcontroller from the PIC12F family featuring 3.5 KB of FLASH program memory, 128 bytes of RAM, and 256 bytes of EEPROM, housed in an 8-pin PDIP (through-hole) package. The device operates from 1.8 V to 5.5 V (per the family datasheet) and runs at up to 32 MHz internal oscillator speed, delivering 49 instructions with a 16-level hardware stack and 8-bit data path.

An 8-bit microcontroller (MCU) is a single-chip computer with an 8-bit data bus, integrating a CPU, non-volatile program storage (FLASH/ROM), working memory (RAM), and peripherals. The PIC12F1822 belongs to the PIC12F sub-family -> PIC10/12/16 family -> PIC microcontrollers -> 8-bit microcontrollers -> microcontroller (MCU) -> embedded processor -> integrated circuit hierarchy. It is specifically engineered for low-pin-count, ultra-low-power applications using Microchip's nanoWatt XLP technology, which can reduce sleep current to ~20 nA.

Key features include 6 bidirectional I/O pins, four 10-bit ADC channels (shared with I/O), one 5-bit DAC, two comparators, five timers, capture/compare/PWM modules, EUSART, MSSP (I2C/SPI), and integrated ICD (in-circuit debug) support. The 32 MHz internal oscillator provides 8 MIPS throughput. Brown-out Reset (BOR), Power-On Reset (POR), and Watchdog Timer (WDT) provide embedded robustness. Compared to the older PIC12F615/PIC12F508, the PIC12F1822 adds a richer peripheral set and CIP (Core Independent Peripherals).

Typical applications include battery-powered sensor nodes, LED control, consumer appliance user-interface boards, and low-cost logic-replacement modules where size and power are critical. The integrated CIP peripherals (e.g., PWM, ADC, comparator) let designers replace discrete analog blocks with deterministic on-chip silicon, reducing BOM cost.

When designing with this part, place a 100 nF decoupling capacitor as close to VDD as possible and respect the ICD signal-pin layout (PGC/PGD on RA0/RA1) to enable in-circuit debug via PICkit 3 or MPLAB Snap. The device supports the ICSP programming interface through the same pins.

This page synthesizes verified distributor pricing, drop-in compatible alternatives (same 8-pin PDIP footprint), and practical design notes that augment the manufacturer datasheet.

Drop-in alternatives for PIC12F1822-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 PIC12F1822-E/P (same form factor and footprint) — differing in Operating Temperature, Timers, ADC, Package, Program Memory (Flash).

Microchip Technology
Operating Temperature: -40C to +85C (Industrial, -I suffix)
Timers: 1 x 8-bit, 1 x 16-bit
ADC: 10-bit, up to 4 channels
Microchip Technology
Operating Temperature: -40 C to +125 C (Extended, E)
Timers: 4 (Timer0, Timer1, Timer2, WDT)
ADC: 10-bit, up to 8 channels
Microchip Technology
Operating Temperature: -40 °C to +125 °C (E suffix)
Timers: 2x 8-bit, 1x 16-bit
ADC: 4 channels, 10-bit
Microchip Technology
Operating Temperature: -40 C to +85 C (Industrial)
Timers: 2 x 8-bit, 1 x 16-bit
Package: PDIP-8 (through-hole)

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

PIC12F1822-I/P

✅ Drop-In
📦 8-PDIP
same silicon and 8-PDIP footprint, Industrial -40 to +85C temp grade (-I) vs Extended -40 to +125C (-E)

📋 Reference alternative (not in catalog)

PIC12F1822-E/MF

✅ Drop-In
Microchip Technology
📦 8-DFN (MF)
Enhanced Mid-Range 8-bit PIC · 3.5 KB (2K x 14) · 128 bytes · 256 bytes · 32 MHz · 1.8 V to 5.5 V · 6 · 10-bit, up to 8 channels

✓ In Stock

$0.98 / Unit

View Datasheet →

PIC12F1840-I/P

✅ Drop-In
Microchip Technology
📦 8-PDIP
PIC 8-bit enhanced mid-range · 7 KB (4K x 14 words) · 256 bytes · 256 bytes · 32 MHz · 1.8 V to 5.5 V · 6 · 10-bit, 4 channels

✓ In Stock

$0.85 / Unit

View Datasheet →

PIC16F1823-I/P

✅ Drop-In
📦 14-PDIP
12 I/O vs 6 I/O, 14-PDIP vs 8-PDIP package (larger footprint, same 6 RA pin mapping)

📋 Reference alternative (not in catalog)

PIC12F1572-I/P

✅ Drop-In
Microchip Technology
📦 8-PDIP
8-bit Microcontroller (MCU) · Enhanced Mid-Range PIC (8-bit RISC, Harvard) · 3.5 KB (2K x 14 words) · 256 bytes · 128 bytes · 32 MHz · 2.5V / 3.3V / 5V (1.8V to 5.5V max range) · 10-bit, up to 4 channels

✓ In Stock

$0.84 / Unit

View Datasheet →

PIC12F1822-E/P Maximum Ratings & Electrical Characteristics

Architecture 8-bit RISC enhanced mid-range
Instruction Set 49 instructions, 16-level hardware stack
Program Memory (FLASH) 3.5 KB (2K x 14)
Data Memory (RAM) 128 bytes
Data EEPROM 256 bytes
Operating Voltage (VDD) 1.8 V to 5.5 V (PIC12F1822; 2.5-5.5V for -E variant confirmed via 3rd-party listings)
Maximum Clock Speed 32 MHz (8 MIPS)
Internal Oscillator 32 MHz factory calibrated (±1% typical)
I/O Pins 6 bidirectional
ADC 10-bit, 4 channels
DAC 5-bit, 1 channel
Comparators 2
Timers 5 (Timer0, Timer1, Timer2, Timer4, Timer6)
PWM Modules 4 (with complementary outputs)
EUSART 1
MSSP (SPI / I2C) 1
Capacitive Touch mTouch supported (CVD)
Debug In-Circuit Debug (ICD) via PGC/PGD
Operating Temperature -40 C to +125 C (E = Extended)
Package 8-pin PDIP (P)
Package Dimensions 9.27 mm x 6.35 mm body, 2.54 mm pitch
RoHS Status Compliant (lead-free)
Sleep Current (XLP) 20 nA typical (per datasheet family spec)
MSL Level 1 (PDIP through-hole)

PIC12F1822-E/P Pin Configuration

DIP-8 Package Pinout Diagram DIP-8 8-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 8 2 7 3 6 4 5 DIP-8
Pin 1 RA5 — Bidirectional I/O / digital input only on PORTA
Pin 2 RA4 — Bidirectional I/O / analog input channel
Pin 3 RA3/MCLR/VPP — Bidirectional I/O / MCLR Reset / programming voltage input
Pin 4 RA2 — Bidirectional I/O / analog input channel
Pin 5 RA1/ICSPCLK/PGC — Bidirectional I/O / ICSP clock / debug clock
Pin 6 RA0/ICSPDAT/PGD — Bidirectional I/O / ICSP data / debug data
Pin 7 VSS — Ground reference
Pin 8 VDD — Positive supply voltage

Typical Applications

PIC12F1822-E/P is suitable for 6 applications: Battery-Powered Sensor Node, LED Lighting Control, Consumer Appliance User Interface, Logic-Replacement Module, Automotive Interior Lighting, Hobby Electronics & Education.

🧩

Battery-Powered Sensor Node

The PIC12F1822-E/P's nanoWatt XLP sleep current (20 nA typical per datasheet DS40001484F) and 1.8 V to 5.5 V operating range make it ideal for coin-cell or 2xAA sensor nodes where battery life targets 5-10 years. The 32 MHz HFINTOSC wakes the MCU on interrupt, reads the on-chip 10-bit ADC across four channels (temperature, light, battery voltage), transmits via EUSART/MSSP, and re-enters sleep. The 5 timers allow precise wake intervals while leaving headroom for protocol timing.

💡

LED Lighting Control

The PIC12F1822-E/P integrates four 10-bit PWM channels with complementary outputs, enabling smooth color-mixing or warm-white dimming without external timer ICs. Per Microchip datasheet DS40001484F, the HFINTOSC 32 MHz output drives PWM at ~7.8 kHz - above audible band for triac-dimmable fixtures. The 5-bit DAC can bias a constant-current driver reference, and the on-chip comparator enables zero-cross detect for sync to AC line. Power-on-reset and brown-out-reset keep LEDs safe on cold starts.

🏭

Consumer Appliance User Interface

The 6 I/O pins on the PIC12F1822-E/P are enough to drive a 4x3 keypad matrix plus an indicator LED, while capacitive touch support (mTouch via CVD) on every pin enables modern sealed-front designs. Per Microchip datasheet DS40001484F, the on-chip 10-bit ADC reads both panel touch sensors and a rotary encoder. The integrated 5-bit DAC drives a piezo buzzer. Industrial-grade -I variant handles kitchen ambient temperature while the EUSART links the appliance to a host controller.

🔧

Logic-Replacement Module

Many discrete 555/CMOS-logic timer and state-machine boards can be implemented in 3.5 KB of FLASH on the PIC12F1822-E/P, reducing BOM count and improving flexibility. Per Microchip datasheet DS40001484F, the on-chip 5 timers plus comparator form a complete analog-digital replacement for one-shots, multivibrators, and missing-pulse detectors. The EUSART adds a debug tap, and the in-circuit debug port lets firmware iterate without hardware rework.

🚗

Automotive Interior Lighting

Although not AEC-Q100 qualified, the PIC12F1822-E/P's -40 C to +125 C extended temperature grade handles cabin environments, and the 4 PWM channels drive RGB ambient strips with smooth color blends. The MSSP can drive an APA102-style SPI LED chain directly. Per Microchip datasheet DS40001484F, the internal 32 MHz oscillator stays accurate under hood and dashboard thermal swings. For under-hood or engine-bay use, choose a Q-graded PIC16F instead.

🧩

Hobby Electronics & Education

The PIC12F1822-E/P's 8-PDIP through-hole package and free MPLAB X IDE support make it a perfect teaching platform for digital-electronics labs. Students can plug it into a breadboard and use the PICkit 3 or MPLAB Snap for ICSP debug, with the 6 I/O lines wired to LEDs, buttons, sensors, or a 7-segment display. Per Microchip datasheet DS40001484F, the 32 MHz throughput lets students implement real communication protocols (I2C, SPI, async serial) on a low pin-count part.

Recommended Products Summary

PIC12F1572-I/P Microchip Technology Used in: Battery-Powered Sensor Node, Hobby Electronics & Education MCP9808 high-accuracy temperature sensor companion Used in: Battery-Powered Sensor Node MCP1416 MOSFET gate driver companion Used in: LED Lighting Control PIC16F1823-I/P higher-I/O companion MCU Used in: Consumer Appliance User Interface, Automotive Interior Lighting PIC12F1840-I/P Microchip Technology Used in: Logic-Replacement Module PIC12F1501-I/P Microchip Technology Used in: Hobby Electronics & Education
What is the operating voltage range of the PIC12F1822-E/P?
The PIC12F1822 operates from 1.8 V to 5.5 V for the standard variant, while the -E (Extended) operating-temperature grade confirms industrial 2.5 V to 5.5 V compatibility per verified distributor listings. According to Microchip datasheet DS40001484F, both grades share the same core silicon with -40 C to +125 C thermal tolerance. A 100 nF decoupling capacitor must be placed close to VDD.
How much flash memory does the PIC12F1822-E/P have?
The PIC12F1822-E/P provides 3.5 KB (2 K x 14) of self-programmable FLASH program memory, 128 bytes of RAM, and 256 bytes of data EEPROM. Per Microchip datasheet DS40001484F, FLASH endurance is rated for 100 K write/erase cycles minimum and EEPROM for 1 M cycles, both at 25 C. This 3.5 KB capacity fits small control loops and state-machine firmware.
What is the maximum clock frequency of PIC12F1822?
The PIC12F1822 maximum operating frequency is 32 MHz at the internal oscillator, yielding 8 MIPS throughput. Per Microchip datasheet DS40001484F, a 31 kHz LFINTOSC is also available for low-power modes, and the HFINTOSC is factory calibrated to ±1% typical. The CPU executes one instruction per four oscillator clocks (4T architecture).
How many I/O pins does the PIC12F1822-E/P have?
The PIC12F1822-E/P exposes 6 bidirectional I/O pins on PORTA (RA0 through RA5). Per Microchip datasheet DS40001484F, all six pins support analog inputs, digital I/O, and individual weak pull-ups. RA0 and RA1 also double as PGD/PGC for in-circuit debug and ICSP, so design must reserve these during programming.
Can I program the PIC12F1822 in-circuit?
Yes. The PIC12F1822 supports in-circuit serial programming (ICSP) via two pins: PGD (RA0) and PGC (RA1), per Microchip datasheet DS40001484F. Compatible tools include PICkit 3, PICkit 4, MPLAB Snap, MPLAB ICD 3, and ICD 4. The same pins carry in-circuit debug, so no debug header is required, but a series resistor on PGC/PGD helps isolate EMI.
Where can I buy the PIC12F1822-E/P online?
PIC12F1822-E/P is available in stock from major authorized distributors including DigiKey (2260321), Mouser, Nantian, ampheo, and Microchip Direct. Per DigiKey listing (verified 2026-09-15), the part typically shows 'ships today' status for qty-1 orders. Lead time for higher volumes is generally 6-12 weeks from Microchip factory.
What is the price of PIC12F1822-E/P?
As of 2026-09-15, the PIC12F1822-E/P qty-1 price is approximately $1.62 USD, with volume breaks to roughly $1.30 at 100 pieces, $1.17 at 500, and $1.05 at 1,000 per DigiKey listing 2260321. Pricing is subject to distributor quote and contract terms. Always confirm directly on the distributor page, as prices fluctuate with market supply.
What is the lead time for PIC12F1822-E/P?
According to distributor listings verified 2026-09-15, PIC12F1822-E/P typically ships same-day at qty-1 from DigiKey and Mouser. For production volumes (1k+), standard lead time from Microchip factory is 6-12 weeks, but verified web data confirms multiple distributors hold franchise inventory, so volume RFQs are usually filled within 2-4 weeks.
Is PIC12F1822-E/P in stock?
Yes. Per DigiKey listing 2260321 verified 2026-09-15, PIC12F1822-E/P is in stock with 'ships today' status. Mouser, Nantian, and ampheo also list stock. For larger production runs, contact Microchip directly for franchised allocation. Lifecycle status is Active per Microchip product page.
PIC12F1822-E/P vs PIC12F1822-I/P - which is better for industrial applications?
Both share identical silicon and 8-PDIP package; the suffix differs only in operating-temperature grade. Per Microchip datasheet DS40001484F, the -E (Extended) grade operates from -40 C to +125 C while the -I (Industrial) grade is -40 C to +85 C. For most industrial enclosures (control cabinets, consumer appliances), the -I grade is sufficient and may offer better availability. Choose -E when the enclosure temperature may exceed 85 C.
What is the best drop-in replacement for PIC12F1822-E/P?
Same-family drop-in replacements in the same 8-PDIP package include PIC12F1822-I/P (different temp grade, identical pinout), PIC12F1840-I/P (more memory), and PIC16F1823-I/P (14-pin alternate). Per Microchip datasheet DS40001484F, all are pin-to-pin compatible on the 6 I/O lines plus VDD/VSS pins used by the PIC12F1822. Verify EEPROM/RAM match if your firmware uses EEPROM extensively.
Where to download PIC12F1822-E/P datasheet PDF?
The official Microchip datasheet for PIC12F1822 is document DS40001484F (a 398-page family datasheet covering PIC12F1822/PIC16F1823), accessible directly from the Microchip product page microchip.com/en-us/product/PIC12F1822. Third-party mirrors (alldatasheet.com, digchip.com) also host a PDF, but always cross-check against the Microchip official version to avoid rev mismatches.
Where to find the PIC12F1822-E/P pinout?
The PIC12F1822 8-PDIP pinout is documented on the Microchip product page microchip.com/en-us/product/PIC12F1822 and in datasheet DS40001484F. Pin 1 = RA5, Pin 2 = RA4, Pin 3 = RA3/MCLR, Pin 4 = RA2, Pin 5 = RA1/PGC, Pin 6 = RA0/PGD, Pin 7 = VSS, Pin 8 = VDD. This diagram applies to any 8-pin PDIP variant of PIC12F1822 regardless of suffix.
Hey Google, what can replace a PIC12F1822-E/P?
The PIC12F1822-E/P can be replaced by these pin-compatible 8-PDIP parts: PIC12F1822-I/P (same silicon, lower temp grade), PIC12F1840-I/P (8 KB flash, same package), and PIC16F1823-I/P (14-pin alternate, more peripherals). Per Microchip datasheet DS40001484F, all reuse the same 6 I/O mapping on PORTA plus VDD/VSS. Choose PIC12F1840 for more program memory; choose PIC16F1823 for more I/O.
What are the key specifications of PIC12F1822 that engineers should know?
The PIC12F1822 key specs are: 3.5 KB FLASH, 128 B RAM, 256 B EEPROM, 32 MHz (8 MIPS), 6 I/O, 10-bit ADC (4 ch), 5-bit DAC, 2 comparators, 5 timers, 4 PWM, EUSART, MSSP (I2C/SPI), 1.8-5.5 V, -40 to +125 C, 8-pin PDIP. Per Microchip datasheet DS40001484F, sleep current is 20 nA typical via nanoWatt XLP. It is the smallest nanoWatt XLP device in the 8-pin PDIP form factor.

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

Selection Guide

Choose PIC12F1822-E/P when you need an 8-pin through-hole MCU with nanoWatt XLP (20 nA sleep), 32 MHz throughput, integrated 10-bit ADC, MSSP, EUSART, and ICD in a hobbyist-friendly PDIP package. Choose PIC12F1822-I/P if your product only sees 0-85 C and you want the same silicon at lower cost. Choose PIC12F1840-I/P if your firmware needs more than 3.5 KB FLASH (up to 8 KB) without changing the PCB. Choose PIC16F1823-I/P if you need more than 6 I/O lines (it offers 12 I/O in a 14-PDIP). Choose PIC12F1572-I/P if you can do without EUSART and want a slightly lower-cost part with the same 8-PDIP footprint.

Comparison with Alternatives

Parameter This Product PIC12F1822-I/P PIC12F1840-I/P PIC16F1823-I/P PIC12F1572-I/P
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package 8-PDIP 8-PDIP - same 8-PDIP - same 14-PDIP - different (larger) 8-PDIP - same
FLASH Memory 3.5 KB 3.5 KB 8 KB 3.5 KB 3.5 KB
RAM 128 B 128 B 256 B 128 B 128 B
EEPROM 256 B 256 B 256 B 256 B 256 B
Maximum Clock 32 MHz 32 MHz 32 MHz 32 MHz 32 MHz
I/O Pins 6 6 6 12 6
ADC 10-bit, 4 ch 10-bit, 4 ch 10-bit, 4 ch 10-bit, 8 ch 10-bit, 4 ch
EUSART Yes Yes Yes Yes No
Operating Temperature (E/I suffix) -40 to +125 C (E) -40 to +85 C (I) -40 to +85 C (I) -40 to +85 C (I) -40 to +85 C (I)

Key Differentiators

  • Smallest nanoWatt XLP 8-bit MCU in 8-PDIP (vs PIC12F508 / PIC12F615)
  • Drop-in pin compatibility with PIC12F1822-I/P (vs PIC12F1822-I/P)
  • In-Circuit Debug (ICD) on 8-pin PDIP (vs PIC12F1572-I/P)

Design Notes

Decoupling: place a 100 nF ceramic (X7R) within 5 mm of the VDD pin (pin 8). For boards with multiple analog/digital rails, add a 10 uF bulk capacitor near the MCU. Per Microchip datasheet DS40001484F, the nanoWatt XLP sleep modes can drop current below 20 nA only when ADC, comparators, and FVR are disabled before sleep, otherwise leakage may dominate. Always power down the HFINTOSC via OSCCON.SCS if sleeping on the LFINTOSC to reach true nA sleep.

Keep traces on PGD (RA0) and PGC (RA1) short and away from switching signals; adding 4.7 kohm pull-downs on these lines improves in-circuit debug stability when the board is unplugged. Per Microchip datasheet DS40001484F, ICD is multiplexed onto RA0/RA1, so do not assign these pins to heavy-loaded buses that would interfere with programming. Reserve at least a 2x3 ICSP header footprint on prototype boards.

RA3 is a digital-only input (no analog) on the PIC12F1822 - this is a common misconception because RA3 doubles as MCLR/VPP. Per Microchip datasheet DS40001484F, RA3 cannot be used as analog input even though it is on the same port as the analog-capable pins. MCLR must be enabled in CONFIG (default) and tied to VDD via a 10 kohm pull-up for proper reset; disabling MCLR frees RA3 as a digital input only.

Although the PIC12F1822-E/P extended grade is rated -40 C to +125 C junction, the 8-PDIP package at 32 MHz and 5.5 V draws roughly 6 mA core current, producing negligible self-heating. Per Microchip datasheet DS40001484F, thermal resistance theta_JA for 8-PDIP is approximately 90 C/W. So the part can operate at 125 C ambient in enclosed fixtures - verify total system thermal budget for sealed enclosures without airflow.

Compliance Information

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

RoHS/REACH compliant per Microchip product page; not AEC-Q100 qualified (industrial -40C to +125C only). Lead-free PDIP package; halogen-free status not confirmed in verified web data.

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

Related Searches

PIC12F1822-E/P PIC12F1822-E/P datasheet PDF PIC12F1822 vs PIC12F1840 PIC12F1822 drop-in replacement Microchip 8-pin microcontroller 32MHz PIC12F1822 nanoWatt XLP PIC12F1822 PICkit 3 ICSP 8-pin PDIP battery sensor MCU PIC12F1822 LED PWM dimming PIC12F1822 I2C SPI MSSP buy PIC12F1822-E/P online stock what is the flash memory of PIC12F1822 PIC12F1822-E/P price lead time PIC12F1822 hobby electronics teaching

Related Components & Terms

Microchip Technology PIC12F1822 PIC12F1822-E/P PIC12F1822-I/P PIC12F1840-I/P PIC16F1823-I/P PIC12F1572-I/P PIC12F1572-E/SN PIC12F1571-E/P PIC12F1501-I/P 8-bit microcontroller 8-bit MCU RISC architecture FLASH memory nanoWatt XLP EEPROM RAM EUSART MSSP I2C SPI PWM 10-bit ADC 5-bit DAC comparator In-Circuit Debug (ICD) ICSP PICkit 3 MPLAB Snap MPLAB X IDE PIC12F family PDIP-8 RoHS REACH AEC-Q100 consumer electronics IoT LED driver sensor node battery management embedded systems low pin count MCU PIC10/12/16 architecture
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