PIC16F882-E/SO - 8-Bit 20MHz 3.5KB Flash MCU 28-SOIC | Microchip
MPN: PIC16F882-E/SO β Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $2.13 | $2.13 |
| 10 | $1.92 | $19.20 |
| 100 | $1.62 | $162.00 |
| 500 | $1.43 | $715.00 |
| 1,000 | $1.31 | $1,310.00 |
| 3,000 | $1.18 | $3,540.00 |
PIC16F882-E/SO Overview
A microcontroller (MCU) is a single-chip computer that integrates a CPU core, program and data memory, plus peripherals such as timers, ADCs, and communication controllers. The PIC16 family uses Microchip's enhanced mid-range 8-bit RISC architecture with only 35 single-word instructions, which keeps code density high and the learning curve gentle. Within the power-management hierarchy an MCU sits at the embedded-control layer above discrete logic, and within the broader PIC taxonomy PIC16F882 belongs to the PIC16F88x sub-family of FLASH, self-programmable devices.
Key features include 11 channels of 10-bit ADC, two 8-bit and one 16-bit timer, an enhanced USART that supports RS-232, RS-485 and LIN, an MSSP module for SPI and I2C (master/slave), an enhanced PWM with up to 3 channels, a 2-level deep hardware stack, and 25 digital I/O pins with individually programmable weak pull-ups and interrupt-on-change. NanoWatt Technology provides multiple power-managed modes including run, idle, and sleep with ultra-low power consumption, making the device suitable for line-powered and battery-backed installations.
Architecturally the PIC16F882-E/SO uses a 14-bit wide instruction word with a Harvard bus structure, providing deterministic instruction timing and a single-instruction-cycle 8x8 hardware multiplier. The on-chip in-circuit serial programming (ICSP) and self-programming allow field firmware updates via the production board, while the wide operating voltage window and on-board voltage reference simplify analog and mixed-signal designs.
Typical applications include industrial automation and control, white goods in hardware such as washing machines and dishwashers, HVAC and thermostat controllers, low-end remote sensors, automotive body and lighting subsystems, security and alarm panels, and consumer appliances. The PIC16F882 is also well suited as a low-cost LIN slave node, a general-purpose I/O expander, or a small stepper-motor driver controller.
When designing with this device, allocate a 4.7kohm pull-up on MCLR if low-voltage ICSP is desired, place a 100 nF decoupling capacitor as close as possible to each VDD pin, and ensure the 28-SOIC pad is connected to a contiguous ground plane for thermal relief. Avoid using the same I/O pin simultaneously as both an analog input and a digital output, and verify that the chosen clock source (internal 8 MHz or external crystal) is within the configuration-bit limits before committing to a final BOM.
This page synthesizes distributor pricing, drop-in alternatives, application guidance, and practical design notes for the PIC16F882-E/SO that are not found in the manufacturer datasheet alone, helping engineers shorten sourcing and qualification cycles for 28-SOIC PIC16 designs.
Drop-in alternatives for PIC16F882-E/SO β 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 PIC16F882-E/SO (same form factor and footprint) β differing in Package, Timers, I/O Pins, Serial Interfaces, Data EEPROM.
Quick Comparison Tool β Select alternative parts for side-by-side comparison:
PIC16F882-I/SO
β Drop-In β οΈ εζ°εΎ ιͺθ―β In Stock
$1.48 / Unit
View Datasheet βPIC16F883-E/SO
β Drop-In β οΈ εζ°εΎ ιͺθ―β In Stock
$2.42 / Unit
View Datasheet βPIC16F884-E/SO
β Drop-In β οΈ εζ°εΎ ιͺθ―π Reference alternative (not in catalog)
PIC16F886-E/SO
β Drop-In β οΈ εζ°εΎ ιͺθ―π Reference alternative (not in catalog)
PIC16F887-E/SO
β Drop-In β οΈ εζ°εΎ ιͺθ―π Reference alternative (not in catalog)
PIC16F877A-E/SO
β Drop-Inπ Reference alternative (not in catalog)
PIC16F882-E/SO Maximum Ratings & Electrical Characteristics
| Architecture | PIC16 enhanced mid-range 8-bit RISC |
| Instruction Set Width | 14-bit |
| Number of Instructions | 35 single-word |
| Program Memory Type | FLASH |
| Program Memory Size | 3.5 KB (2K x 14 words) |
| Data EEPROM | 128 bytes |
| Data RAM | 128 bytes |
| Max CPU Frequency | 20 MHz |
| Supply Voltage Range | 2.0 V to 5.5 V |
| Operating Temperature Range | -40 C to +125 C (Extended, -E suffix) |
| Package | 28-pin SOIC wide-body (SO) |
| I/O Pins | 25 (digital, with weak pull-ups and IOC) |
| ADC | 11 channels, 10-bit |
| Timers | Two 8-bit, one 16-bit |
| Communication | Enhanced USART (RS-232/RS-485/LIN) + SPI + I2C (MSSP) |
| PWM Channels | Enhanced PWM, up to 3 channels |
| Power-Saving Modes | NanoWatt: Run / Idle / Sleep |
| Self Programming | Yes (ICSP) |
| RoHS Status | Compliant |
| Lead-Free | Yes (Pb-free matte tin finish) |
PIC16F882-E/SO Pin Configuration
| Pin 1 | RA0/AN0/ULPWU/C12IN0- β PORTA bit 0 / Analog input 0 / Ultra-Low-Power Wake-up / Comparator 1 IN0- |
| Pin 2 | RA1/AN1/C12IN1- β PORTA bit 1 / Analog input 1 / Comparator 1 IN1- |
| Pin 3 | RA2/AN2/VREF-/CVREF/C2IN+ β PORTA bit 2 / Analog input 2 / DAC reference - / Comparator reference / Comparator 2 IN+ |
| Pin 4 | RA3/AN3/VREF+/C1IN+ β PORTA bit 3 / Analog input 3 / DAC reference + / Comparator 1 IN+ |
| Pin 5 | RA4/T0CKI/C1OUT β PORTA bit 4 / Timer0 clock input / Comparator 1 output |
| Pin 6 | RA5/AN4/SS/HLVDIN/C2OUT β PORTA bit 5 / Analog input 4 / SPI Slave Select / High-Low-Voltage Detect input / Comparator 2 output |
| Pin 7 | RA6/OSC2/CLKOUT β PORTA bit 6 / Crystal oscillator output / Fosc/4 clock output |
| Pin 8 | RA7/OSC1/CLKIN β PORTA bit 7 / Crystal oscillator input / External clock input |
| Pin 9 | RE3/MCLR/VPP β PORTE bit 3 / Master Clear (reset) input / Programming voltage |
| Pin 10 | RC0/T1OSO/T1CKI β PORTC bit 0 / Timer1 oscillator output / Timer1 clock input |
| Pin 11 | RC1/T1OSI/CCP2 β PORTC bit 1 / Timer1 oscillator input / CCP2 PWM/capture |
| Pin 12 | RC2/P1A/CCP1 β PORTC bit 2 / Enhanced PWM output 1A / CCP1 PWM/capture |
| Pin 13 | RC3/SCK/SCL β PORTC bit 3 / SPI clock / I2C clock |
| Pin 14 | VSS β Ground reference |
| Pin 15 | RC4/SDI/SDA β PORTC bit 4 / SPI data in / I2C data |
| Pin 16 | RC5/SDO β PORTC bit 5 / SPI data out |
| Pin 17 | RC6/TX/CK β PORTC bit 6 / USART asynchronous transmit / synchronous clock |
| Pin 18 | RC7/RX/DT β PORTC bit 7 / USART asynchronous receive / synchronous data |
| Pin 19 | VSS β Ground reference (second VSS) |
| Pin 20 | VDD β Positive supply voltage |
| Pin 21 | RB0/AN12/INT β PORTB bit 0 / Analog input 12 / External interrupt 0 |
| Pin 22 | RB1/AN10/P1C β PORTB bit 1 / Analog input 10 / Enhanced PWM 1C |
| Pin 23 | RB2/AN8/P1B β PORTB bit 2 / Analog input 8 / Enhanced PWM 1B |
| Pin 24 | RB3/AN9/PGM/CPP2 β PORTB bit 3 / Analog input 9 / Low-voltage ICSP programming clock / CCP2 alternate |
| Pin 25 | RB4/AN11 β PORTB bit 4 / Analog input 11 |
| Pin 26 | RB5/AN13 β PORTB bit 5 / Analog input 13 |
| Pin 27 | RB6/PGC β PORTB bit 6 / ICSP clock |
| Pin 28 | RB7/PGD β PORTB bit 7 / ICSP data |
Typical Applications
PIC16F882-E/SO is suitable for 7 applications: Industrial Automation and Control, White Goods and Home Appliances, HVAC Thermostat and Climate Controller, Automotive Body and Lighting Subsystems, Security and Alarm Panels, Battery-Powered Remote Sensor Nodes, Stepper-Motor and Small DC-Drive Controllers.
Industrial Automation and Control
The PIC16F882-E/SO is a strong fit for industrial PLC-style input modules, signal-conditioning boards and small loop controllers because it integrates 11 channels of 10-bit ADC, an enhanced USART for RS-485 and 25 digital I/Os in a single 28-SOIC wide-body package. With the -40 C to +125 C extended temperature grade and 2.0-5.5V supply, the part sits directly on a 24V-derived 5V or 3.3V rail without additional regulation. The 20 MHz enhanced mid-range core executes the PID loop and Modbus RTU frame parsing in real time, while the enhanced PWM drives optocouplers and triac interfaces on the same board. NanoWatt sleep modes drop consumption to a few microamps between scans, suiting battery-backed or solar-powered remote I/O nodes.
Recommended
White Goods and Home Appliances
Washing machines, dishwashers, microwave ovens and induction cooktops use PIC16F882-E/SO as the main user-interface controller because its 25 I/Os drive segment LCDs, keypads and triac-driver LED indicators without an external I/O expander. The 11 ADC channels read temperature sensors (NTC), water-level probes and current-sense shunts, while the enhanced PWM modulates the universal motor driver at up to 20 kHz with dead-band control. The 2.0-5.5V supply matches both 3.3V LCD logic and 5V relay drivers, and the -40 to +125 C grade survives compressor-cabinet thermal rise. ICSP and self-programming allow appliance firmware updates in the field through a service-port connector.
Recommended
HVAC Thermostat and Climate Controller
A wall-mounted thermostat or a multi-zone HVAC controller fits the PIC16F882-E/SO's resource profile: 3.5 KB of FLASH is enough for a small RTOS-style scheduler, sensor linearization tables and Modbus or BACnet lite frame parsing. The 11 ADC channels accept NTC room sensors, humidity probes (via 0-10V interface) and CT current-sense for fan-speed feedback, while the enhanced PWM drives the damper servo and PWM fan output. Operating from 2.0-5.5V the MCU shares the 24VAC-derived 5V rail with the LCD and keypad, and the -40 to +125 C grade handles plenum-cabinet heat. NanoWatt idle reduces standby power below 1 mW to meet Energy Star thermostat limits.
Recommended
Automotive Body and Lighting Subsystems
The PIC16F882-E/SO is a long-time favourite for non-safety automotive body modules such as interior lighting controllers, door-window lifters, seat-heater nodes and LIN slave peripherals, where its 20 MHz enhanced mid-range core and 11 ADC channels are sufficient. Per the Microchip datasheet, the -E grade handles under-dash thermal rise to +125 C, while the on-chip enhanced USART operates as a LIN 1.3/2.0 slave transceiver alongside an external LIN PHY. The 2.0-5.5V supply rides directly on a 12V-derived 5V rail, and 25 digital I/Os drive LED PWM channels at up to 10 kHz for smooth fading and indicator blinking. Self-programming lets dealers apply field firmware updates without removing the module.
Recommended
Security and Alarm Panels
A wired security panel or fire-alarm annunciator uses the PIC16F882-E/SO to scan zones, drive a piezo buzzer through the enhanced PWM and report events over RS-485 or an encrypted wireless link. The 25 digital I/Os handle up to 16 wired zones with EOL supervision, four relay outputs and a 4x4 keypad matrix via the MSSP I/O expander, while the 11 ADC channels monitor backup-battery voltage and supply-current consumption. Per the Microchip datasheet, the 128 bytes of EEPROM store event logs and zone-configuration data across power cycles without an external memory chip, and the BOR keeps the MCU in reset during brown-out events.
Recommended
Battery-Powered Remote Sensor Nodes
A wireless sensor or smart-meter endpoint benefits from PIC16F882-E/SO's NanoWatt Technology sleep modes and 2.0-5.5V supply window, which lets it run directly from a 3.6V primary lithium cell. The enhanced mid-range core wakes on interrupt, samples up to 11 sensors with the 10-bit ADC, transmits over a UART-attached radio, and returns to sleep drawing only a few microamps. The 3.5 KB of FLASH accommodates a simple LoRaWAN or Zigbee stack, while the 128 bytes of EEPROM keep calibration constants and network keys without an external FRAM. The -40 to +125 C grade supports outdoor enclosures, and the 28-SOIC wide-body keeps the PCB assembly line reflow-friendly.
Recommended
Stepper-Motor and Small DC-Drive Controllers
A small unipolar stepper driver for a valve, a micro-pump or a 3D-printer Z-axis fits comfortably in the PIC16F882-E/SO. The enhanced PWM and CCP module generate the required step pulses at up to 20 MHz core speed, while the 11 ADC channels read the current-sense shunt and the thermistor on the motor body. According to the Microchip datasheet, 25 digital I/Os are sufficient to drive a bipolar stepper through two H-bridges plus end-stop and encoder inputs without external logic. The 2.0-5.5V supply rides on a 24V-derived 5V rail, and the -40 to +125 C grade tolerates the close-coupled motor heatsink environment.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F882-E/SO β comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F882-I/SO | PIC16F883-E/SO | PIC16F884-E/SO | PIC16F886-E/SO | PIC16F887-E/SO | PIC16F877A-E/SO |
|---|---|---|---|---|---|---|---|
| Package | 28-SOIC (wide-body) | 28-SOIC - same | 28-SOIC - same | 28-SOIC - same | 28-SOIC - same | 28-SOIC - same | 28-SOIC - same SPDIP pinout, 40-pin die |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Program FLASH | 3.5 KB | 3.5 KB | 7.2 KB | 7.2 KB | 14 KB | 14 KB | 14 KB |
| Data RAM | 128 bytes | 128 bytes | 256 bytes | 256 bytes | 368 bytes | 368 bytes | 368 bytes |
| ADC channels | 11 | 11 | 11 | 14 | 11 | 14 | 8 |
| Operating Temperature | -40 C to +125 C (Extended) | -40 C to +85 C (Industrial) | -40 C to +125 C (Extended) | -40 C to +125 C (Extended) | -40 C to +125 C (Extended) | -40 C to +125 C (Extended) | -40 C to +125 C (Extended) |
| Max CPU Frequency | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz |
| Approx. Qty-1 Price (USD) | $2.13 | $1.95 | $2.45 | $2.55 | $2.85 | $2.95 | $3.65 |
Key Differentiators
- Extended industrial temperature range in the 28-SOIC wide-body package (vs PIC16F882-I/SO)
- Best cost-to-feature ratio for the 28-pin PIC16F88x family (vs PIC16F886-E/SO)
- Hardware-resource superset with same footprint for future firmware growth (vs PIC16F883-E/SO)
Design Notes
The PIC16F882-E/SO accepts 2.0 V to 5.5 V on VDD (pin 20 and pin 1 of PORTA shared) and is internally regulated, but the Brown-out Reset (BOR) threshold must be selected via configuration bits. According to the Microchip datasheet, choosing the wrong BOR range for a 3.3 V-only design may force the MCU to brown-out reset during inrush. Add a 100 nF ceramic decoupling capacitor as close as possible to each VDD pin and a 10 uF bulk capacitor on the same rail, with a star-ground connection to the analog VSS pin.
The 28-SOIC wide-body package dissipates about 0.5 W in free air on a 1 oz copper 4-layer PCB, which is more than sufficient for the typical 30-50 mW run-mode consumption of the PIC16F882-E/SO. At 20 MHz the device draws approximately 11 mA from a 5 V supply; in sleep mode NanoWatt Technology drops current to well under 1 uA. For enclosed appliances with limited airflow, ensure the -E (-40 to +125 C) variant is selected and that the PCB ground plane is contiguous beneath the SOIC pad.
Place the 28-SOIC wide-body on a contiguous top-layer ground pour with thermal reliefs of 8-12 mil spokes to each VDD/VSS pin, and route the crystal traces (RA6/RA7) inside a guard ring tied to VSS to suppress radiated noise. Pin 9 (RE3/MCLR/VPP) needs a 4.7 kohm pull-up to VDD for normal operation; for low-voltage ICSP, replace the resistor with a diode-resistor network or use the ICSP PGx pin only. Avoid routing PWM outputs next to analog inputs (RA0-RA5) to minimize digital-to-analog crosstalk on the 10-bit ADC.
Do not program the configuration bits for an external crystal without verifying the crystal load capacitance matches the device OSCCON setting; mis-loaded capacitors cause frequency drift at -40 C and +125 C. Always clear the PORTA analog-mode bit (ANSEL) before using PORTA as a digital output, otherwise the pin will not drive the rail. When migrating from PIC16F877A, double-check that RE3/MCLR is configured as input only and not used as a digital output on PIC16F882-E/SO, as RE3 is input-only on the PIC16F88x family.
Route the ICSP signals (RB6/PGC, RB7/PGD, MCLR/VPP) so that they are accessible from a 6-pin 0.1 inch header on the production board, and reserve an unpopulated 0 ohm jumper on the MCLR pull-up so the 13 V high-voltage programming voltage can be applied without damaging the rest of the circuit. According to the Microchip datasheet, MCLR must never be left floating even if the internal MCLR is disabled - always tie through at least 4.7 kohm. Keep the analog VREF+/VREF- traces short and shielded by ground to maintain 10-bit ADC accuracy.
Compliance Information
Pb-free matte-tin finish per Microchip packaging specification; RoHS and REACH declarations available on the Microchip compliance portal. The -E grade is industrial/extended, not AEC-Q100 qualified - choose PIC16F882T-I/SO + external CAN/LIN PHY or move to PIC18F for AEC-Q100 projects.