PIC16F873A-E/ML - 8-Bit 20MHz MCU 7KB Flash 28-QFN | Microchip
MPN: PIC16F873A-E/ML ✓ Hoạt độngPIC16F873A-E/ML Tóm tắt
A microcontroller (MCU) is a single-chip computer that integrates a CPU core, non-volatile program memory, working RAM, and configurable peripherals such as timers, ADCs, communication interfaces, and general-purpose I/O. The PIC16F873A belongs to Microchip's mid-range PIC16 family, sitting architecturally between the baseline PIC10/PIC12/PIC16 and the high-performance PIC18/PIC24 families. The device is fully upwards-compatible with the PIC16C5X, PIC12CXXX, and PIC16C7X lines, and shares its instruction set and pinout philosophy with the PIC16F874A/876A/877A siblings, allowing easy migration to larger-pin-count variants when more I/O is needed.
Key features include 22 digital I/O pins, 5 channels of 10-bit ADC, 2 analog comparators, a synchronous serial port configurable as SPI or I2C, a USART for asynchronous serial, two 8-bit timers plus one 16-bit timer, nanoWatt power management, and In-Circuit Debug (ICD) plus self-programming capability. The PIC16F873A is a member of Microchip's "Enhanced Flash Microcontrollers" family featuring nanoWatt Technology for reduced quiescent current in sleep and idle modes.
Typical applications include automotive body electronics and HVAC controls, industrial sensor interfacing, low-cost consumer appliance control, sensor signal conditioning with on-chip ADC, and battery-powered remote nodes that benefit from nanoWatt sleep modes. The wide operating voltage range of 4.0 V to 5.5 V and robust 20 MHz throughput suit 5V-system designs.
When designing with the PIC16F873A-E/ML, ensure a solid thermal pad solder connection to a copper pour (typically 1 sq. inch minimum) for heat spreading, since the exposed pad (EP) is the primary thermal path. Decoupling: place a 100 nF ceramic capacitor within 5 mm of each VDD/VSS pair and a bulk 10 uF near the supply pin.
Bộ thay thế dễ dàng lắp đặt cho PIC16F873A-E/ML — cùng gói, chân-to-chân tương thích. Các bộ phận yêu cầu hàn PCB bị loại trừ.
Các biến thể trong loạt này
Các mẫu cùng loạt có thể lắp đặt dễ dàng tương thích với PIC16F873A-E/ML (cùng hình factor và footprint) — khác nhau ở Package, Core Architecture, Serial Interfaces, Timers, ADC.
PIC16F873A-I/ML
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC16F873AT-I/ML
✅ Drop-In📋 Tham chiếu thay thế (không có trong danh mục)
PIC16F876A-I/ML
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC16F876A-E/ML
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC16F873AT-E/ML
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC16F1824-I/ML
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC16F873A-E/ML Tỷ lệ tối đa & tính chất điện
| Series | PIC 16F |
| Core Processor | PIC |
| Core Size | 8-Bit |
| Maximum Clock Speed | 20 MHz |
| Instruction Cycle Time | 200 ns |
| Program Memory Size | 7 KB (4K x 14 words) FLASH |
| RAM Size | 192 bytes |
| EEPROM Size | 128 bytes |
| Number of I/O Pins | 22 |
| Supply Voltage Range | 4.0 V to 5.5 V |
| ADC | 10-bit, 5 channels |
| Comparators | 2 |
| Timers | 2 x 8-bit, 1 x 16-bit |
| Communication Interfaces | SPI, I2C, USART |
| Hộp | 28-QFN (6x6 mm) with Exposed Pad |
| Khoảng nhiệt độ hoạt động | -40C to +125C (Extended, "-E" grade) |
| Kiểu lắp đặt | Surface Mount |
| Kiểu lắp đặt | SMD/SMT |
| Terminal Form | No Lead |
| Package Code | VQCCN (QFN-28) |
| Trạng thái RoHS | Compliant |
| Data Flash/EEPROM | 128 bytes |
| Program Memory Type | Flash |
| Peripheral Features | Brown-out Detect, ICD, POR, PWM, WDT, nanoWatt Technology |
Cấu hình chân PIC16F873A-E/ML
| Chân 1 | MCLR/VPP — Master Clear (reset) input / programming voltage input |
| Chân 2 | RA0/AN0 — Port A bit 0 / Analog input 0 |
| Chân 3 | RA1/AN1 — Port A bit 1 / Analog input 1 |
| Chân 4 | RA2/AN2/VREF-/CVREF — Port A bit 2 / Analog input 2 / DAC negative reference / comparator voltage reference output |
| Chân 5 | RA3/AN3/VREF+ — Port A bit 3 / Analog input 3 / DAC positive reference |
| Chân 6 | RA4/T0CKI/C1OUT — Port A bit 4 / Timer 0 clock input / Comparator 1 output |
| Chân 7 | RA5/AN4/SS/C2OUT — Port A bit 5 / Analog input 4 / SPI slave select / Comparator 2 output |
| Chân 8 | VSS — Ground reference |
| Chân 9 | OSC1/CLKIN — Oscillator crystal input / external clock input |
| Chân 10 | OSC2/CLKOUT — Oscillator crystal output / clock output |
| Chân 11 | RC0/T1OSO/T1CKI — Port C bit 0 / Timer 1 oscillator output / Timer 1 clock input |
| Chân 12 | RC1/T1OSI/CCP2 — Port C bit 1 / Timer 1 oscillator input / Capture-Compare-PWM 2 |
| Chân 13 | RC2/CCP1 — Port C bit 2 / Capture-Compare-PWM 1 |
| Chân 14 | RC3/SCK/SCL — Port C bit 3 / SPI clock / I2C clock |
| Chân 15 | RC4/SDI/SDA — Port C bit 4 / SPI data in / I2C data |
| Chân 16 | RC5/SDO — Port C bit 5 / SPI data out |
| Chân 17 | RC6/TX/CK — Port C bit 6 / USART async transmit / USART sync clock |
| Chân 18 | RC7/RX/DT — Port C bit 7 / USART async receive / USART sync data |
| Chân 19 | VSS — Ground reference |
| Chân 20 | VDD — Positive supply voltage (4.0 V to 5.5 V) |
| Chân 21 | RB0/INT — Port B bit 0 / External interrupt |
| Chân 22 | RB1 — Port B bit 1 |
| Chân 23 | RB2 — Port B bit 2 |
| Chân 24 | RB3/PGM — Port B bit 3 / Low-voltage programming input |
| Chân 25 | RB4 — Port B bit 4 |
| Chân 26 | RB5/PGM — Port B bit 5 |
| Chân 27 | RB6/PGC — Port B bit 6 / In-Circuit Debugger clock |
| Chân 28 | RB7/PGD — Port B bit 7 / In-Circuit Debugger data |
Ứng dụng tiêu biểu
PIC16F873A-E/ML phù hợp cho 6 Áp dụngs: Automotive Body Electronics, Industrial Sensor Interface Modules, Low-Cost Consumer Appliance Control, Battery-Powered Remote Sensor Nodes, HVAC Damper and Valve Actuators, Educational and Prototyping Boards.
Automotive Body Electronics
The PIC16F873A-E/ML's Extended -40C to +125C temperature grade and nanoWatt Technology make it a strong fit for automotive body controllers such as seat-position modules, mirror adjusters, and HVAC flap drivers. Its 5-channel 10-bit ADC reads thermistor inputs and potentiometer wiper positions, while the 22 I/O pins drive relays, FET gates, and LED indicators. Compared with the PIC16F873A-I/ML (Industrial grade only), the -E/ML part survives under-hood thermal stress. The 7 KB Flash with self-programming supports field firmware updates via OBD-II.
Được đề xuất
Industrial Sensor Interface Modules
In 4-20 mA loop-powered sensor transmitters and bridge-amplifier signal conditioners, the PIC16F873A-E/ML digitizes analog sensor outputs through its 10-bit ADC and communicates results over USART/RS-485 to a PLC. The Extended temperature grade supports factory-floor and outdoor installations, and the nanoWatt sleep mode reduces quiescent current to a few microamps for loop-powered designs. SPI or I2C can drive an external EEPROM or DAC for calibration storage.
Được đề xuất
Low-Cost Consumer Appliance Control
The PIC16F873A-E/ML targets small appliances like coffee makers, washing machines, and microwave ovens where its 5-channel ADC reads temperature sensors and potentiometers, its PWM drives motor/relay control, and its 22 I/O pins handle keypads and seven-segment displays. The 7 KB Flash fits compact state-machine code while the Extended temperature grade tolerates the heat inside enclosures. I2C connects to EEPROM for user settings.
Được đề xuất
Battery-Powered Remote Sensor Nodes
For battery or energy-harvesting wireless sensor nodes, the PIC16F873A-E/ML's nanoWatt sleep modes drop quiescent current below typical sensing thresholds, extending coin-cell life to years. The USART or SPI drives sub-GHz radios (e.g., MRF89XA), the 10-bit ADC reads sensors on wake-up, and the 128-byte EEPROM stores calibration. The Extended temperature grade supports outdoor/unheated deployments.
Được đề xuất
HVAC Damper and Valve Actuators
In HVAC damper and zone-valve actuators, the PIC16F873A-E/ML's 16-bit timer drives accurate PWM for proportional servo control while the 2 on-chip comparators implement over-current protection without external parts. The Extended temperature grade handles plenum-chamber heat. The 7 KB Flash supports proportional-integral control loops; I2C interfaces to an external temperature/humidity sensor.
Được đề xuất
Educational and Prototyping Boards
The PIC16F873A-E/ML is widely used in university embedded-systems courses and hobbyist PIC programmer projects because its 28-QFN package is supported by Microchip's PICkit programmers, MPLAB X IDE, and XC8 compiler. The 35-instruction mid-range set is easy to teach; 7 KB Flash fits complete student projects; and the In-Circuit Debugger (ICD) interface allows real-time breakpoints without extra hardware.
Được đề xuất
Tóm tắt các sản phẩm được đề xuất
Dữ liệu tham khảo kỹ thuật cho PIC16F873A-E/ML — so sánh, hướng dẫn thiết kế và thông tin tuân thủ.
Hướng dẫn chọn lựa
So sánh với các sản phẩm thay thế
| Tham số | Sản phẩm này | PIC16F873A-I/ML | PIC16F873AT-I/ML | PIC16F876A-I/ML | PIC16F876A-E/ML | PIC16F873AT-E/ML | PIC16F1824-I/ML |
|---|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 28-QFN (6x6 mm) with EP | 28-QFN (6x6 mm) with EP - same | 28-QFN (6x6 mm) with EP - same | 28-QFN (6x6 mm) with EP - same | 28-QFN (6x6 mm) with EP - same | 28-QFN (6x6 mm) with EP - same | 28-QFN (6x6 mm) with EP - same |
| Program Memory (Flash) | 7 KB (4K x 14) | 7 KB - same | 7 KB - same | 14 KB (+100%) | 14 KB (+100%) | 7 KB - same | 8 KB (+14%) |
| RAM Size | 192 B | 192 B - same | 192 B - same | 368 B (+92%) | 368 B (+92%) | 192 B - same | 256 B (+33%) |
| EEPROM Size | 128 B | 128 B - same | 128 B - same | 256 B (+100%) | 256 B (+100%) | 128 B - same | 256 B (+100%) |
| Max Clock Speed | 20 MHz | 20 MHz - same | 20 MHz - same | 20 MHz - same | 20 MHz - same | 20 MHz - same | 32 MHz (+60% via PLL) |
| Supply Voltage | 4.0 V to 5.5 V | 4.0 V to 5.5 V - same | 4.0 V to 5.5 V - same | 4.0 V to 5.5 V - same | 4.0 V to 5.5 V - same | 4.0 V to 5.5 V - same | 1.8 V to 5.5 V (wider) |
| Temperature Grade | Extended (-40C to +125C) | Industrial (-40C to +85C) | Industrial (-40C to +85C) | Industrial (-40C to +85C) | Extended (-40C to +125C) - same | Extended (-40C to +125C) - same | Industrial (-40C to +85C) |
| Instruction Set | PIC16 mid-range (35 instructions) | PIC16 mid-range (35 instructions) - same | PIC16 mid-range (35 instructions) - same | PIC16 mid-range (35 instructions) - same | PIC16 mid-range (35 instructions) - same | PIC16 mid-range (35 instructions) - same | Enhanced mid-range (49 instructions) |
Bảo phân biệt quan trọng
- Extended -40C to +125C temperature grade for harsh environments (vsPIC16F873A-I/ML)
- Double the Flash memory with same footprint (vsPIC16F876A-E/ML)
- Enhanced mid-range core with more peripherals (vsPIC16F1824-I/ML)
Ghi chú thiết kế
The 28-QFN package relies on the exposed thermal pad (EP) as the primary thermal path. For high-temperature Extended-grade (-E) applications, the EP must be soldered to a copper pour of at least 1 sq. inch with multiple thermal vias to the inner/outer ground plane. Without proper EP soldering, junction temperature can exceed 125C at moderate ambient temperatures. Estimated: at 20 MHz with all peripherals active, IDD ~ 10 mA at 5 V, dissipating only 50 mW; thermal concerns are mainly from self-heating of nearby passives, not the MCU itself.
Place a 100 nF ceramic decoupling capacitor within 5 mm of each VDD/VSS pair (pins 20/8 and pins 27/19). Add a bulk 10 uF tantalum or ceramic near the supply entry point. Keep the oscillator traces (OSC1/OSC2) short and shielded by a ground guard ring to reduce EMI susceptibility. Route the ICSP signals PGC/PGD (RB6/RB7) on the same layer to the programming header without vias in the path.
Common pitfalls with PIC16F873A-E/ML designs include: (1) leaving MCLR floating - always tie MCLR to VDD through a 10 kohm resistor for proper reset, (2) using an analog pin as digital input without disabling the ADC via ADCON1, which can cause floating reads, (3) exceeding 5.5 V on any pin including ADC inputs, which can damage the part. The brown-out detect (BOR) and watchdog timer (WDT) should be enabled in safety-critical applications via the configuration bits.
For QFN-28 layout, use 0.4 mm pitch pads with a non-solder-mask-defined (NSMD) land pattern for best solder joint reliability. The center EP pad should have multiple thermal vias (typically 9-12, 0.3 mm diameter) connecting top copper to an inner ground layer. Per IPC-7351 nominal land dimensions, pad width 0.20 mm and length 0.40 mm for the perimeter pads. Avoid placing components within 2 mm of the EP copper pour to maintain thermal isolation.
Thông tin tuân thủ
RoHS and REACH compliance per Microchip product page. AEC-Q100 qualification status is not explicitly listed on Microchip's standard product page for PIC16F873A-E/ML; contact Microchip for automotive-grade variants such as PIC16F873A-E/MLVAO if AEC-Q100 documentation is required.