PIC16F872-E/SS - 8-Bit 20MHz 3.5KB Flash MCU | Microchip | SSOP-28
Référence : PIC16F872-E/SS ✓ Actif| Qté | Prix unitaire | Total |
|---|---|---|
| 1 | $6.05 | $6,05 |
| 10 | $5.42 | $54,20 |
| 100 | $4.79 | $479,00 |
| 500 | $4.25 | $2 125,00 |
| 1 000 | $3.78 | $3 780,00 |
PIC16F872-E/SS Présentation
A microcontroller (MCU) is a single-chip computer containing a CPU, memory, and programmable I/O peripherals. The PIC16F872 belongs to Microchip's mid-range PIC16 family, which sits in the hierarchy: microcontroller -> embedded processor -> semiconductor device. Within that family, the PIC16F872 is a peripheral-rich member offering 5 channels of 10-bit ADC, two additional timers, a Capture/Compare/PWM (CCP) module, and a Master Synchronous Serial Port (MSSP) configurable for SPI or I2C communication. The 35 single-word instruction RISC core simplifies code development while delivering deterministic real-time response.
Key features include 5 channels of 10-bit analog-to-digital conversion for sensor interfacing, an MSSP supporting both 3-wire SPI and 2-wire I2C protocols, two 8-bit timers plus one 16-bit timer for flexible event capture, and 64 bytes of EEPROM for non-volatile data storage. In-circuit serial programming (ICSP) and in-circuit debugger (ICD) support allow firmware updates and debugging without removing the device from the PCB, accelerating prototyping and field service.
Typical applications include industrial control systems, sensor signal conditioning front-ends, automotive body and chassis subsystems, low-cost motor control loops via the CCP/PWM channel, and battery-powered metering products that demand low quiescent current. The PIC16F872-E/SS is pin-compatible with several PIC16F87x siblings, enabling easy migration when additional memory or peripheral resources are required.
When designing with this device, allocate four pins for in-circuit programming/debug (ICSPDAT/ICSPCLK plus VPP and VDD/GND) even if the debugger is not used in production. Choose a 20 MHz crystal only if the instruction-cycle budget truly requires it; a 4 MHz resonator typically satisfies most loop-control tasks while reducing EMI.
This page synthesizes distributor pricing, drop-in pin-compatible alternatives, and practical design considerations not consolidated in the manufacturer datasheet - giving engineers a faster procurement and architecture decision path.
Alternatives de remplacement direct pour PIC16F872-E/SS — même boîtier, compatible broche à broche. Les références à boîtier différent nécessitant une retouche du PCB sont exclues.
Variantes de cette série
Modèles de la même série directement compatibles avec PIC16F872-E/SS (même facteur de forme et même empreinte) — différant par ADC, Package, Timers, I/O Pins, Core.
Outil de comparaison rapide — sélectionnez des références alternatives pour une comparaison côte à côte :
PIC16F872-I/SS
✅ Remplacement direct📋 Alternative de référence (hors catalogue)
PIC16F873-I/SS
✅ Remplacement direct📋 Alternative de référence (hors catalogue)
PIC16F874-I/SS
✅ Remplacement direct📋 Alternative de référence (hors catalogue)
PIC16F876-I/SS
✅ Remplacement direct📋 Alternative de référence (hors catalogue)
PIC16F870-I/SS
✅ Remplacement direct✓ En stock
$2.47 / unité
Voir la fiche technique →PIC16F871-I/PT
✅ Remplacement direct ⚠️ Spécifications non vérifiées✓ En stock
$2.82 / unité
Voir la fiche technique →PIC16F872-E/SS Valeurs maximales et caractéristiques électriques
| Core | PIC16 8-bit RISC |
| Program Memory | 3.5 KB (2K x 14) Flash |
| Data Memory (SRAM) | 128 bytes |
| EEPROM | 64 bytes |
| Fréquence d'horloge maximale | 20 MHz |
| Instruction Cycle Time | 200 ns |
| I/O Pins | 22 |
| ADC | 5 channels x 10-bit |
| Timers | 2 x 8-bit + 1 x 16-bit |
| CCP/PWM Modules | 1 |
| Serial Interface | MSSP (SPI / I2C) |
| Instruction Set Size | 35 single-word instructions |
| Température de fonctionnement | -40C to +125C (Extended, -E) |
| Boîtier | 28-pin SSOP |
| Programming/Debug | ICSP and ICD supported |
| Statut RoHS | Compliant |
Configuration des broches de PIC16F872-E/SS
| Broche 1 | MCLR/VPP — Master Clear (reset) input or programming voltage |
| Broche 2 | RA0/AN0 — PORTA bit 0 / analog input 0 |
| Broche 3 | RA1/AN1 — PORTA bit 1 / analog input 1 |
| Broche 4 | RA2/AN2 — PORTA bit 2 / analog input 2 |
| Broche 5 | RA3/AN3/VREF- — PORTA bit 3 / analog input 3 / ADC VREF- |
| Broche 6 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| Broche 7 | RA5/AN4/SS — PORTA bit 5 / analog input 4 / SPI slave select |
| Broche 8 | VSS — Ground reference |
| Broche 9 | OSC1/CLKIN — Crystal oscillator input / external clock in |
| Broche 10 | OSC2/CLKOUT — Crystal oscillator output / clock out |
| Broche 11 | RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator out / Timer1 clock in |
| Broche 12 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator in / CCP2 output |
| Broche 13 | RC2/CCP1 — PORTC bit 2 / CCP1 PWM output |
| Broche 14 | RC3/SCK/SCL — PORTC bit 3 / SPI clock / I2C clock |
| Broche 15 | RC4/SDI/SDA — PORTC bit 4 / SPI data in / I2C data |
| Broche 16 | RC5/SDO — PORTC bit 5 / SPI data out |
| Broche 17 | RC6 — PORTC bit 6 |
| Broche 18 | RC7 — PORTC bit 7 |
| Broche 19 | VSS — Ground reference |
| Broche 20 | VDD — Positive supply |
| Broche 21 | RB0/INT — PORTB bit 0 / external interrupt |
| Broche 22 | RB1 — PORTB bit 1 |
| Broche 23 | RB2 — PORTB bit 2 |
| Broche 24 | RB3/PGM — PORTB bit 3 / low-voltage programming |
| Broche 25 | RB4 — PORTB bit 4 |
| Broche 26 | RB5 — PORTB bit 5 |
| Broche 27 | RB6/PGC — PORTB bit 6 / ICSP clock |
| Broche 28 | RB7/PGD — PORTB bit 7 / ICSP data |
Applications typiques
PIC16F872-E/SS convient pour 6 applications: Industrial Process Control, Automotive Body and Chassis ECUs, Battery-Powered Sensor Nodes, Low-Cost Motor Control (PWM/H-bridge), Consumer Appliance Control Boards, Smart Metering and Energy Monitoring.
Industrial Process Control
The PIC16F872-E/SS is well matched to industrial process control loops thanks to its 5-channel 10-bit ADC for multi-sensor acquisition and 22 I/O for actuator drive. Its -40C to +125C operating range handles panel-side cabinets near motor drives, while the MSSP running I2C or SPI talks to modern sensor front-ends and HMI displays. The 200 ns instruction cycle supports deterministic PID loops at sub-millisecond update rates, and the 64-byte EEPROM retains calibration constants across power cycles without an external memory IC.
Recommandé
Automotive Body and Chassis ECUs
The PIC16F872-E/SS Extended temperature grade (-40C to +125C) and 28-SSOP footprint suit automotive body modules such as mirror controllers, seat adjusters, and lighting drivers. The CCP/PWM module generates accurate dimming and motor-drive waveforms, while the 10-bit ADC reads potentiometers for position feedback. The MSSP links to peripheral drivers over SPI, and the low-power SLEEP mode reduces quiescent draw on always-on battery rails. For under-hood deployment, migrate to PIC16F872 with the automotive-qualified PIC16F873A-I/SS sibling.
Recommandé
Battery-Powered Sensor Nodes
For IoT and remote-monitoring sensor nodes, the PIC16F872-E/SS draws less than 1 uA in SLEEP mode and wakes on interrupt to service scheduled measurements, making it ideal for multi-year battery deployments. The 5-channel ADC sequentially reads temperature, humidity, and gas sensors, while the MSSP streams results to a connected radio module over SPI. Its 22 I/O pins free up GPIOs for status LEDs and user buttons, and the on-chip EEPROM logs calibration drift that survives brownouts without external FRAM.
Recommandé
Low-Cost Motor Control (PWM/H-bridge)
The PIC16F872-E/SS CCP/PWM module drives MOSFET H-bridges for small DC motors, fans, and pumps up to several amps when paired with gate drivers. Its 16-bit timer provides precise PWM frequency control, and the 10-bit ADC closes the current or RPM feedback loop in software without external DSP hardware. The extended temperature range supports under-hood automotive and outdoor industrial environments, while the SSOP-28 footprint simplifies hand-soldered prototypes and high-density PCB layouts.
Recommandé
Consumer Appliance Control Boards
Small kitchen and home appliances (coffee makers, air purifiers, washing-machine control panels) deploy the PIC16F872-E/SS as the main user-interface controller. It scans keypads, drives 7-segment or LCD character displays, regulates heating elements via PWM, and talks to sensor boards over I2C. The 35-instruction RISC core keeps firmware small and predictable, while in-circuit serial programming (ICSP) enables end-of-line calibration and field firmware updates without desoldering.
Recommandé
Smart Metering and Energy Monitoring
The PIC16F872-E/SS supports single-phase energy meters by combining its 10-bit ADC for current/voltage sensing, MSSP for communication with companion metering ICs, and 64-byte EEPROM for tariff and tamper-log storage. The extended temperature range suits outdoor meter enclosures, and the deterministic 200 ns instruction cycle ensures accurate RMS and power-factor calculations synchronized to mains zero-crossing events. SPI to an external LoRa or PLC modem extends connectivity to AMI back-haul networks.
Recommandé
Récapitulatif des produits recommandés
Données de référence d'ingénierie pour PIC16F872-E/SS — comparaison, recommandations de conception et informations de conformité.
Guide de sélection
Comparaison avec les alternatives
| Paramètre | Ce produit | PIC16F872-I/SS | PIC16F873-I/SS | PIC16F874-I/SS | PIC16F876-I/SS | PIC16F870-I/SS |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | SSOP-28 | SSOP-28 - same | SSOP-28 - same | SSOP-28 - same | SSOP-28 - same | SSOP-28 - same |
| Program Memory | 3.5 KB Flash | 3.5 KB | 7 KB | 7 KB | 14 KB | 2 KB |
| SRAM | 128 B | 128 B | 128 B | 192 B | 368 B | 128 B |
| EEPROM | 64 B | 64 B | 128 B | 128 B | 256 B | 64 B |
| ADC Channels / Resolution | 5 x 10-bit | 5 x 10-bit | 5 x 10-bit | 8 x 10-bit | 5 x 10-bit | 5 x 10-bit |
| Operating Temperature | -40C to +125C (E) | -40C to +85C (I) | -40C to +85C (I) | -40C to +85C (I) | -40C to +85C (I) | -40C to +85C (I) |
| CCP/PWM Channels | 1 | 1 | 2 | 2 | 2 | 1 |
| Serial Interface | MSSP (SPI/I2C) | MSSP (SPI/I2C) | MSSP + USART | MSSP + USART | MSSP + USART | MSSP (SPI/I2C) |
Principaux différenciateurs
- Extended -40C to +125C temperature grade in same SSOP-28 footprint (vs PIC16F872-I/SS)
- Doubles program memory to 7 KB in pin-compatible upgrade path (vs PIC16F873-I/SS)
- Larger EEPROM and USART addition in same package (vs PIC16F876-I/SS)
Notes de conception
Reserve a 4-pin ICSP header (ICSPCLK, ICSPDAT, MCLR/VPP, GND) even when no debugger is used in production - this allows in-system firmware updates during end-of-line test. Keep the trace from MCLR/VPP to the ICSP header under 50 mm to avoid ringing during programming voltage transitions. Place a 10 kohm pull-up on MCLR and a decoupling capacitor pair (100 nF + 10 uF) within 5 mm of VDD/GND pins 20 and 19 respectively.
Do not leave the OSC1/OSC2 pins floating when using an external clock - tie unused clock input pins to VSS through 10 kohm. Configure unused I/O pins as outputs driving low rather than inputs to minimize supply current. The CONFIG word must be programmed with the correct oscillator selection and watchdog timer setting; an incorrect WDTE bit will cause spurious resets in noisy industrial environments.
Estimated: With a 20 MHz crystal and 15 pF load capacitors, total loop trace length should be kept under 10 mm to avoid exceeding the 200 ns instruction cycle timing margin. For long SPI buses (>50 mm) between the PIC16F872 and peripheral ICs, add 33 ohm series resistors at the driving pins to dampen reflections, and route SPI signals over a continuous ground plane. The MSSP in I2C mode requires external 4.7 kohm pull-ups on SDA and SCL regardless of bus length.
Estimated: Average current consumption is roughly 2 mA active at 4 MHz / 5V and below 1 uA in SLEEP mode. For battery-powered designs, duty-cycle the MCU on a 1:100 ratio (10 ms active per second) to keep average draw near 20 uA. Brown-out detection (BOR) should be enabled in the CONFIG word to prevent Flash corruption during VDD dips below 4.0V; otherwise firmware may execute erratically from a partially erased program memory cell.
Informations de conformité
RoHS and REACH compliance per Microchip product page. The PIC16F872-E/SS is not AEC-Q100 qualified - for automotive AEC-Q100 applications, choose PIC16F873A-I/SS or PIC16F876A-I/SS siblings that carry the Q-grade designation. Lead-free reflow profile per J-STD-020.