PIC16F873-20/SO - 8-bit 20MHz 7KB Flash MCU | Microchip | 28-SOIC
Teilenummer: PIC16F873-20/SO ✗ Abgekündigt| Menge | Stückpreis | Gesamt |
|---|---|---|
| 1 | $7.5 | $7,50 |
| 10 | $6.85 | $68,50 |
| 100 | $6.2 | $620,00 |
| 500 | $5.65 | $2.825,00 |
| 1.000 | $5.1 | $5.100,00 |
PIC16F873-20/SO Übersicht
A microcontroller (MCU) is a single-chip computer containing a CPU, RAM, non-volatile program memory, and peripheral interfaces; the PIC16F873 belongs to the PIC16F mid-range 8-bit family, one tier above baseline PIC10/12/16 devices and below enhanced PIC18F parts, optimized for cost-sensitive embedded control in industrial and consumer products.
Key features include 22 general-purpose digital I/O pins, a five-channel 10-bit analog-to-digital converter (ADC), USART, SPI, and I2C (MSSP) serial peripherals, two 8-bit and one 16-bit timers, a Watchdog Timer with its own oscillator, and a 14-source interrupt controller with an eight-level hardware stack. The 28-SOIC package offers a footprint compatible with PIC16C73B/74B/76/77 and PIC16F873A/874A/876A/877A drop-in upgrades, enabling upward migration.
The architecture uses a Harvard design with separate program and data buses, a RISC instruction set of only 35 single-word instructions, and direct/indirect/relative addressing modes. Power management features include Power-on Reset (POR), Power-up Timer (PWRT), Oscillator Start-up Timer (OST), and Brown-out Reset (BOR), ensuring deterministic startup under varying supply conditions.
Typical applications include industrial control systems, sensor interface boards, motor control front-ends, automotive body electronics subsystems, and white-goods appliance controllers. The wide operating voltage range (typically 4.0-5.5V for the -20 speed grade) and industrial temperature range support harsh-environment deployments.
Designers should note that Microchip recommends migrating new designs to the pin-compatible PIC16F873A-20/SO or PIC16F873-20I/SO (industrial temperature) variant, as the PIC16F873 is marked 'Not Recommended for new designs'. The MPLAB ICD and PICkit programmers support in-circuit debugging and Flash programming without external firmware.
This page synthesizes distributor pricing, drop-in PIC16F-series alternatives, and practical design notes not consolidated in any single manufacturer datasheet, providing engineers with a one-stop reference for legacy PIC16F873 designs and modernization paths.
Drop-in-Alternativen für PIC16F873-20/SO – gleiches Gehäuse, Pin-kompatibel. Bauteile mit anderem Gehäuse, die eine PCB-Überarbeitung erfordern, sind ausgeschlossen.
Varianten dieser Serie
Modelle derselben Serie, die drop-in-kompatibel sind mit PIC16F873-20/SO (gleiche Bauform und Footprint) – abweichend in Core Architecture, Timers, Package, ADC, Mounting Type.
Schnellvergleichstool – Wählen Sie Alternativbauteile für den Direktvergleich:
PIC16F873A-20/SO
✅ Drop-In📋 Referenzalternative (nicht im Katalog)
PIC16F873-20I/SO
✅ Drop-In📋 Referenzalternative (nicht im Katalog)
PIC16F874A-20/SO
✅ Drop-In📋 Referenzalternative (nicht im Katalog)
PIC16F876-20/SO
✅ Drop-In✓ Auf Lager
$6.85 / Stück
Datenblatt ansehen →PIC16F876A-20/SO
✅ Drop-In📋 Referenzalternative (nicht im Katalog)
PIC16F873-10I/SO
✅ Drop-In📋 Referenzalternative (nicht im Katalog)
PIC16F873-04/SO
✅ Drop-In📋 Referenzalternative (nicht im Katalog)
PIC16F873-20/SO Grenzwerte & elektrische Eigenschaften
| Product Type | 8-bit Microcontroller (MCU) |
| Core Architecture | PIC16F (Harvard, RISC) |
| Instruction Set Size | 35 single-word instructions |
| Program Memory (Flash) | 7 KB (4K x 14 words) |
| Data RAM | 192 bytes |
| Data EEPROM | 128 bytes |
| Maximale Taktfrequenz | 20 MHz |
| Instruction Execution Time | 200 ns at 20 MHz |
| I/O Pins | 22 |
| ADC | 5 channels, 10-bit resolution |
| Serial Peripherals | USART, SPI, I2C (MSSP) |
| Timers | 2x 8-bit Timer, 1x 16-bit Timer, WDT |
| Interrupt Sources | Up to 14 |
| Hardware Stack | 8 levels |
| Gehäuse | 28-pin SOIC (SO) |
| Montageart | Surface Mount |
PIC16F873-20/SO Pin-Konfiguration
| Pin 1 | MCLR/VPP — Master clear (reset) input / ICSP programming voltage |
| Pin 2 | RA0/AN0 — Port A bit 0 / Analog input channel 0 |
| Pin 3 | RA1/AN1 — Port A bit 1 / Analog input channel 1 |
| Pin 4 | RA2/AN2 — Port A bit 2 / Analog input channel 2 |
| Pin 5 | RA3/AN3/VREF+ — Port A bit 3 / Analog input channel 3 / ADC positive reference |
| Pin 6 | RA4/T0CKI — Port A bit 4 (open-drain) / Timer 0 clock input |
| Pin 7 | RA5/AN4/SS — Port A bit 5 / Analog input channel 4 / SPI slave select |
| Pin 8 | OSC1/CLKIN — Oscillator crystal input / external clock input |
| Pin 9 | OSC2/CLKOUT — Oscillator crystal output / clock output |
| Pin 10 | RC0/T1OSO/T1CKI — Port C bit 0 / Timer 1 oscillator output / Timer 1 clock input |
| Pin 11 | RC1/T1OSI/CCP2 — Port C bit 1 / Timer 1 oscillator input / Capture/Compare/PWM 2 |
| Pin 12 | RC2/CCP1 — Port C bit 2 / Capture/Compare/PWM 1 |
| Pin 13 | RC3/SCK/SCL — Port C bit 3 / SPI clock / I2C clock |
| Pin 14 | RC4/SDI/SDA — Port C bit 4 / SPI data in / I2C data |
| Pin 15 | RC5/SDO — Port C bit 5 / SPI data out |
| Pin 16 | RC6/TX/CK — Port C bit 6 / USART async transmit / USART sync clock |
| Pin 17 | RC7/RX/DT — Port C bit 7 / USART async receive / USART sync data |
| Pin 18 | GND — Ground reference |
| Pin 19 | VDD — Positive supply voltage (+5V typical) |
| Pin 20 | RB0/INT — Port B bit 0 / External interrupt |
| Pin 21 | RB1 — Port B bit 1 |
| Pin 22 | RB2 — Port B bit 2 |
| Pin 23 | RB3/PGM — Port B bit 3 / Low-voltage ICSP programming enable |
| Pin 24 | RB4 — Port B bit 4 |
| Pin 25 | RB5 — Port B bit 5 |
| Pin 26 | RB6/PGC — Port B bit 6 / ICSP clock (programming/debugging) |
| Pin 27 | RB7/PGD — Port B bit 7 / ICSP data (programming/debugging) |
| Pin 28 | VSS — Ground (alternate GND pin) |
Typische Anwendungen
PIC16F873-20/SO ist geeignet für 7 Anwendungs: Industrial Sensor Interface Board, White-Goods Appliance Controller, Automotive Body Electronics Subsystem, HVAC Thermostat Control Board, Battery-Powered Data Logger, Motor Control Front-End (BLDC/PMSM), Security Alarm Panel Controller.
Industrial Sensor Interface Board
The PIC16F873-20/SO fits industrial sensor interface boards because its 5-channel 10-bit ADC simultaneously samples multiple analog sensors (temperature, pressure, humidity) while the 20 MHz core executes 200 ns instructions for real-time signal conditioning. Its 22 GPIO pins drive relay outputs and indicator LEDs without external glue logic. The USART connects to RS-485 transceivers for industrial fieldbus communication, while SPI interfaces with digital sensor ICs. The wide operating voltage and Watchdog Timer with dedicated oscillator ensure robust operation in electrically noisy factory environments where brown-outs and EMI are common. Engineers value the deterministic instruction execution for time-critical control loops.
Empfohlen
White-Goods Appliance Controller
The PIC16F873-20/SO serves washing-machine, dishwasher, and refrigerator control boards where its 7 KB Flash stores application firmware and 128-byte EEPROM retains user settings (wash cycle, temperature preset) across power cycles. The 22 I/O pins directly drive triacs for motor control and solenoid valves, while the 16-bit timer performs accurate RPM sensing for motor feedback. The PIC16F family heritage means decades of proven reliability in high-volume consumer appliances. The 28-SOIC package supports automated SMT assembly at high throughput. Power-on Reset and Brown-out Reset ensure clean startup under varying mains conditions typical in appliance environments.
Empfohlen
Automotive Body Electronics Subsystem
The PIC16F873-20/SO fits automotive body controllers for window lift, seat control, and lighting modules where its 20 MHz core handles multiple I/O tasks with deterministic timing. The industrial-temperature -20I/SO variant operates from -40C to +85C, suitable for cabin environments. Five ADC channels monitor battery voltage, current sensing, and analog switch positions. The I2C peripheral connects to automotive sensor ASICs and EEPROM for configuration storage. The 35-instruction RISC core simplifies code review for functional-safety documentation. While not AEC-Q100 qualified, the part has decades of automotive heritage in non-safety-critical body modules.
Empfohlen
HVAC Thermostat Control Board
The PIC16F873-20/SO integrates HVAC thermostat functions by reading temperature sensors via its 10-bit ADC and driving TRIAC/optocoupler outputs for furnace, A/C, and fan control. The 192-byte RAM stores scheduling data, while 128-byte EEPROM retains user preferences through power cycles. USART enables connection to Wi-Fi modules (e.g., ESP8266) for smart-thermostat connectivity. The 8-level hardware stack supports nested interrupt handling for keypad, display refresh, and communication tasks. The 28-SOIC package simplifies UL-compliant PCB layouts with adequate creepage distances.
Empfohlen
Battery-Powered Data Logger
The PIC16F873-20/SO operates in low-power data loggers for cold-chain monitoring, environmental sensing, and remote telemetry where its 7 KB Flash stores logging firmware and 128-byte EEPROM retains calibration constants. The Watchdog Timer with dedicated low-power oscillator enables periodic wake-up from sleep, dramatically reducing average current consumption for multi-year battery life. The ADC samples temperature/humidity sensors at scheduled intervals, with USART transmitting data bursts. The 28-SOIC package allows compact PCB layouts. For higher-performance needs the PIC16F873A upgrade offers more Flash and active production status.
Empfohlen
Motor Control Front-End (BLDC/PMSM)
The PIC16F873-20/SO is used in low-power BLDC and PMSM motor controllers for fans, pumps, and small appliances where its 200 ns instruction cycle computes commutation tables fast enough for sensorless back-EMF zero-cross detection at moderate RPM. The 5-channel ADC reads phase voltages and DC bus current simultaneously, while the 16-bit timer captures PWM duty cycles with microsecond resolution. The 22 GPIO pins drive half-bridge gate drivers and fault inputs. Hardware PWM modules generate complementary PWM signals with programmable dead-time insertion. The PIC16F heritage provides extensive application-note libraries for motor-control reference designs.
Empfohlen
Security Alarm Panel Controller
The PIC16F873-20/SO integrates security alarm panels where its 22 I/O pins read multiple door/window sensors and PIR motion detectors while driving sirens, LED indicators, and keypad interfaces. The 7 KB Flash stores event-logging firmware, and 128-byte EEPROM retains user codes and configuration through battery backup. The USART connects to GSM/dialer modules for off-site alarm notification, while I2C interfaces with keypad controllers and real-time clocks. The 8-level hardware stack supports nested interrupts for tamper detection, sensor polling, and communication tasks. NRND status does not impact legacy security installations in the field.
Empfohlen
Zusammenfassung der empfohlenen Produkte
Technische Referenzdaten für PIC16F873-20/SO – Vergleich, Designhinweise und Compliance-Informationen.
Auswahlhilfe
Vergleich mit Alternativen
| Parameter | Dieses Produkt | PIC16F873A-20/SO | PIC16F873-20I/SO | PIC16F874A-20/SO | PIC16F876-20/SO | PIC16F876A-20/SO |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 28-SOIC | 28-SOIC - same | 28-SOIC - same | 28-SOIC - same | 28-SOIC - same | 28-SOIC - same |
| Program Memory (Flash) | 7 KB | 8.5 KB (+21%) | 7 KB (same) | 14 KB (+100%) | 14 KB (+100%) | 14 KB (+100%) |
| Data RAM | 192 bytes | 192 bytes (same) | 192 bytes (same) | 368 bytes (+92%) | 368 bytes (+92%) | 368 bytes (+92%) |
| Data EEPROM | 128 bytes | 128 bytes (same) | 128 bytes (same) | 256 bytes (+100%) | 256 bytes (+100%) | 256 bytes (+100%) |
| Max Clock Frequency | 20 MHz | 20 MHz (same) | 20 MHz (same) | 20 MHz (same) | 20 MHz (same) | 20 MHz (same) |
| I/O Pins | 22 | 22 (same) | 22 (same) | 22 (same) | 22 (same) | 22 (same) |
| ADC | 5-ch x 10-bit | 5-ch x 10-bit (enhanced) | 5-ch x 10-bit (same) | 8-ch x 10-bit | 5-ch x 10-bit (same) | 5-ch x 10-bit (enhanced) |
| Operating Temperature | 0C to +70C (commercial) | 0C to +70C or -40C to +85C | -40C to +85C (industrial) | 0C to +70C or -40C to +85C | 0C to +70C or -40C to +85C | 0C to +70C or -40C to +85C |
| Lifecycle Status | NRND | Active | NRND | Active | NRND | Active |
Wichtigste Unterscheidungsmerkmale
- Drop-in compatible with PIC16C73B/74B/76/77 legacy designs (vs. PIC16F873A-20/SO)
- Proven long-term reliability in legacy designs (vs. PIC16F873A-20/SO)
- Industrial temperature variant available in same package (vs. PIC16F873-20I/SO)
Designhinweise
Decouple VDD (pin 20) and VSS (pin 19 and 28) with a 100 nF ceramic capacitor placed within 5 mm of the MCU pins, plus a 10 uF bulk tantalum or electrolytic capacitor at the board power entry. The PIC16F873 has separate analog (AVdd/AVss on RA ports) and digital supply domains internally; a ferrite bead between analog and digital VDD rails improves ADC noise rejection by 10-15 dB. Brown-out Reset should be enabled in the configuration bits to prevent code corruption during supply droops below 4V.
Place the 20 MHz crystal (or ceramic resonator) within 5 mm of OSC1 (pin 8) and OSC2 (pin 9) with short, symmetric traces to minimize parasitic capacitance. Guard the crystal traces with a ground pour and keep digital signal traces at least 3 mm away to avoid coupling noise into the oscillator. The MCLR pin (pin 1) requires a 10 k-pull-up to VDD and a 100 nF capacitor to ground for proper reset behavior; do not omit the capacitor or leave MCLR floating, as this can cause intermittent resets in electrically noisy environments.
Do not assume the PIC16F873 and PIC16F873A have identical configuration bits - the F873A added several new configuration options including the Fail-Safe Clock Monitor. When migrating firmware, recompile with the new configuration bit definitions. Also note that pin 6 (RA4) is an open-drain output requiring an external pull-up resistor; the datasheet shows this clearly but it is a frequent source of 'pin doesn't work' debugging sessions. Finally, in-circuit programming via ICSP requires VPP (13.4V typical) on MCLR during programming - design the MCLR pull-down transistor to sink VPP without damage.
Compliance-Informationen
RoHS and lead-free status for PIC16F873-20/SO not explicitly confirmed in verified distributor data; consult Microchip product compliance certificates for the specific date code. The PIC16F873 is not AEC-Q100 qualified (NRND legacy part) - for AEC-Q100 automotive applications, choose PIC16F1-series enhanced mid-range MCUs. The -20/SO commercial temperature grade is suitable for non-automotive, indoor applications.