PIC12F1822-E/P - 8-bit MCU, 3.5KB Flash, 32MHz, 8-PDIP | Microchip
MPN: PIC12F1822-E/P ✓ Active| 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 |
PIC12F1822-E/P Overview
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).
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC12F1822-I/P
✅ Drop-In📋 Reference alternative (not in catalog)
PIC12F1822-E/MF
✅ Drop-In✓ In Stock
$0.98 / Unit
View Datasheet →PIC12F1840-I/P
✅ Drop-In✓ In Stock
$0.85 / Unit
View Datasheet →PIC16F1823-I/P
✅ Drop-In📋 Reference alternative (not in catalog)
PIC12F1572-I/P
✅ Drop-In✓ 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
| 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.
Recommended
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.
Recommended
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.
Recommended
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.
Recommended
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.
Recommended
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
Recommended Products Summary
Engineering reference data for PIC12F1822-E/P — comparison, design guidance, and compliance information.
Selection Guide
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/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.