PIC16F874AT-E/PT - 20MHz 8-Bit MCU 7KB FLASH 44-TQFP | Microchip
MPN: PIC16F874AT-E/PT ✓ فعالPIC16F874AT-E/PT نمای کلی
An 8-bit microcontroller (MCU) is a single-chip computer that integrates a CPU, program memory, RAM, peripherals, and I/O into one package. PIC microcontrollers use a Harvard RISC architecture with 35 single-word instructions, which gives them deterministic instruction timing and very low power consumption per MIPS. The PIC16F874A family sits between the smaller PIC16F87x (28-pin) and the larger PIC16F877A (40/44-pin with more I/O) - it offers the same peripheral set as the '877A but with reduced pin count, making it the right choice when 33 I/O are sufficient and 40-pin parts are over-budget.
Key features include 33 digital I/O lines, 5 channels of 10-bit ADC (up to 8 channels on the '877A), 2 analog comparators, a USART, an MSSP (SPI / I2C master-slave), 2 capture/compare/PWM modules, 2 8-bit timers plus 1 16-bit timer, an ICD (In-Circuit Debug) port, and self-programming. The enhanced PIC16F874A core adds a hardware multiplier and 14-bit instruction word, doubling arithmetic density over the original PIC16C7X. A 200 ns instruction execution time at 20 MHz provides real-time interrupt latency suitable for motor, power-conversion, and sensor feedback loops.
Typical applications include industrial control boards, automotive body and chassis ECUs, consumer white goods (washing machines, dishwashers, microwave ovens), HVAC thermostats, sensor-conditioning front ends, and any legacy embedded design that must remain sourceable for the next 5-10 years thanks to Microchip's Enhanced Flash program memory. The wide 2.0 V to 5.5 V operating range allows direct battery or 5 V regulator supplies.
For design in, populate the ICSP/ICD pins (RB6/RB7, MCLR) on every board even if you do not plan to debug in-circuit - you can recover bricked parts in production. The 44-TQFP uses Microchip's standard pinout shared with PIC16F877A-I/PT and PIC18F452-I/PT, enabling a single PCB layout to accept multiple MCU families.
This page synthesizes distributor stock, NRND lifecycle status, drop-in alternatives, and practical design notes not found on the manufacturer datasheet, distilled for the working engineer.
جایگزینهای drop-in برای PIC16F874AT-E/PT — همان پکیج، سازگار پینبهپین. قطعات با پکیج متفاوت که نیاز به تغییر PCB دارند مستثنی هستند.
گونهها در این سری
مدلهای همسری که جایگزین مستقیم هستند برای PIC16F874AT-E/PT (همان فرمفاکتور و فوتپرینت) — متفاوت در Package, Timers, I/O Pins, Core Architecture, Serial Interfaces.
PIC16F874A-E/PT
✅ جایگزین مستقیمبرای قیمت تماس بگیرید
مشاهده دیتاشیت ←PIC16F874A-I/PT
✅ جایگزین مستقیم📋 جایگزین مرجع (خارج از کاتالوگ)
PIC16F877A-I/PT
✅ جایگزین مستقیمبرای قیمت تماس بگیرید
مشاهده دیتاشیت ←PIC16F874-10E/PT
✅ جایگزین مستقیمبرای قیمت تماس بگیرید
مشاهده دیتاشیت ←PIC18F452-I/PT
✅ جایگزین مستقیمبرای قیمت تماس بگیرید
مشاهده دیتاشیت ←PIC18F4520-I/PT
✅ جایگزین مستقیمبرای قیمت تماس بگیرید
مشاهده دیتاشیت ←PIC16F874AT-E/PT حداکثر مقادیر مجاز و مشخصات الکتریکی
| Product Family | PIC16F874A |
| Core Architecture | 8-bit PIC RISC (14-bit instruction word) |
| Instruction Set | 35 single-word instructions |
| Instruction Execution Time | 200 ns at 20 MHz |
| حداکثر فرکانس کلاک | 20 MHz |
| Program Memory (Flash) | 7 KB (4K x 14) |
| RAM | 192 bytes |
| EEPROM Data Memory | 128 bytes |
| I/O Pins | 33 |
| ADC | 10-bit, up to 8 channels |
| Comparators | 2 |
| Timers | 2 x 8-bit, 1 x 16-bit |
| Capture/Compare/PWM (CCP) | 2 modules |
| Serial Interfaces | USART + MSSP (SPI / I2C) |
| In-Circuit Debug (ICD) | Yes (2-wire on RB6/RB7) |
| Self-Programming | Yes |
| ولتاژ تغذیه | 2.0 V to 5.5 V |
| دمای کاری | -40 C to +125 C (E - Extended grade) |
| بستهبندی | 44-TQFP (PT), 10x10 mm |
| Packaging | Tape & Reel (T suffix) |
| وضعیت RoHS | Compliant |
پیکربندی پین PIC16F874AT-E/PT
| پین 1 | MCLR/VPP — Master Clear (reset) input / programming voltage |
| پین 2 | RA0/AN0 — PORTA bit 0 / analog input 0 |
| پین 3 | RA1/AN1 — PORTA bit 1 / analog input 1 |
| پین 4 | RA2/AN2/VREF- — PORTA bit 2 / analog input 2 / ADC Vref- |
| پین 5 | RA3/AN3/VREF+ — PORTA bit 3 / analog input 3 / ADC Vref+ |
| پین 6 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| پین 7 | RA5/AN4/SS — PORTA bit 5 / analog input 4 / SPI slave select |
| پین 8 | RE0/RD/AN5 — PORTE bit 0 / read control for parallel slave port / analog input 5 |
| پین 9 | RE1/WR/AN6 — PORTE bit 1 / write control / analog input 6 |
| پین 10 | RE2/CS/AN7 — PORTE bit 2 / chip select / analog input 7 |
| پین 11 | VDD — Positive supply voltage (+2.0 to +5.5 V) |
| پین 12 | VSS — Ground reference |
| پین 13 | OSC1/CLKI — Crystal oscillator input / external clock in |
| پین 14 | OSC2/CLKO — Crystal oscillator output / clock out |
| پین 15 | RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator out / Timer1 clock in |
| پین 16 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator in / CCP2 I/O |
| پین 17 | RC2/CCP1 — PORTC bit 2 / CCP1 I/O |
| پین 18 | RC3/SCK/SCL — PORTC bit 3 / SPI clock / I2C clock |
| پین 19 | RD0/PSP0 — PORTD bit 0 / parallel slave port bit 0 |
| پین 20 | RD1/PSP1 — PORTD bit 1 / parallel slave port bit 1 |
| پین 21 | RD2/PSP2 — PORTD bit 2 / parallel slave port bit 2 |
| پین 22 | RD3/PSP3 — PORTD bit 3 / parallel slave port bit 3 |
| پین 23 | RC4/SDI/SDA — PORTC bit 4 / SPI data in / I2C data |
| پین 24 | RC5/SDO — PORTC bit 5 / SPI data out |
| پین 25 | RC6/TX/CK — PORTC bit 6 / USART TX / USART clock |
| پین 26 | RC7/RX/DT — PORTC bit 7 / USART RX / USART data |
| پین 27 | RD4/PSP4 — PORTD bit 4 / parallel slave port bit 4 |
| پین 28 | RD5/PSP5 — PORTD bit 5 / parallel slave port bit 5 |
| پین 29 | RD6/PSP6 — PORTD bit 6 / parallel slave port bit 6 |
| پین 30 | RD7/PSP7 — PORTD bit 7 / parallel slave port bit 7 |
| پین 31 | VSS — Ground reference |
| پین 32 | VDD — Positive supply voltage (+2.0 to +5.5 V) |
| پین 33 | RB0/INT — PORTB bit 0 / external interrupt |
| پین 34 | RB1 — PORTB bit 1 |
| پین 35 | RB2 — PORTB bit 2 |
| پین 36 | RB3/PGM — PORTB bit 3 / low-voltage programming |
| پین 37 | RB4 — PORTB bit 4 |
| پین 38 | RB5 — PORTB bit 5 |
| پین 39 | RB6/PGC — PORTB bit 6 / ICSP clock (debug) |
| پین 40 | RB7/PGD — PORTB bit 7 / ICSP data (debug) |
| پین 41 | NC — Not connected (per datasheet) |
| پین 42 | NC — Not connected (per datasheet) |
| پین 43 | NC — Not connected (per datasheet) |
| پین 44 | NC — Not connected (per datasheet) |
کاربردهای معمول
PIC16F874AT-E/PT مناسب است برای 7 کاربردs: Industrial Control PLCs and Sensor Conditioning, Automotive Body and Chassis ECUs, Consumer White Goods Control Boards, HVAC Thermostats and Building Automation, Battery-Powered Sensor Nodes (with sleep mode), Educational and Hobbyist Microcontroller Projects, Legacy Embedded Systems Maintenance.
Industrial Control PLCs and Sensor Conditioning
The PIC16F874AT-E/PT's 20 MHz core, 10-bit ADC and 33 I/O make it a strong fit for industrial sensor-conditioning front ends and small PLCs. The 192-byte RAM supports modest PID control loops while the 7 KB Flash holds state-machine logic for multi-channel analog inputs. Operates directly from 24 V industrial rails stepped down to 5 V. The -40 C to +125 C industrial range tolerates cabinet temperatures. Place the ICSP header on every board for field firmware updates.
پیشنهادی
Automotive Body and Chassis ECUs
The PIC16F874AT-E/PT's Extended -40 C to +125 C temperature grade and 33 I/O fit body-electronics modules like seat controllers, mirror adjusters, lighting drivers and HVAC blend-door actuators. The 2 CCP modules generate PWM for servo positioning while the MSSP drives I2C sensor clusters. Note this part is industrial-grade not AEC-Q100 - for safety-critical ECUs migrate to PIC16F1938-I/PT or dsPIC33. The 5 V tolerance on every I/O simplifies integration with 12 V automotive transients.
پیشنهادی
Consumer White Goods Control Boards
Washing machines, dishwashers, microwave ovens, and refrigerators use the PIC16F874AT-E/PT for the user-interface and motor-control board. The 7 KB Flash accommodates multi-button UI state machines plus UART command parsing. The USART interfaces with the main digital board while the PWM outputs drive motor triac gates. The Harvard architecture provides deterministic interrupt latency for safety-critical door-lock and water-level interlocks.
پیشنهادی
HVAC Thermostats and Building Automation
Wall-mounted HVAC thermostats use the PIC16F874AT-E/PT to read multiple thermistor inputs via the 10-bit ADC, drive the LCD, and switch 24 VAC relays through opto-isolated outputs. The 7 KB Flash stores the weekly scheduling algorithm, while 128 bytes of EEPROM retains user settings across power cycles. The Extended temperature grade handles attic-mounted equipment housings that swing from -10 C in winter to 70 C in summer.
پیشنهادی
Battery-Powered Sensor Nodes (with sleep mode)
Although the PIC16F874A is not the lowest-power PIC, its SLEEP mode at <1 uA combined with the MSSP and ADC makes it viable for solar-powered wireless sensor nodes that wake every 30 seconds to read a sensor and transmit. The 7 KB Flash holds a simple protocol stack, while 128-byte EEPROM logs calibration constants. The 2.0 V minimum VDD allows operation directly from two AA cells down to 2.2 V.
پیشنهادی
Educational and Hobbyist Microcontroller Projects
The PIC16F874AT-E/PT is widely used in university embedded-systems courses and Arduino-competitor projects because the 44-TQFP gives more I/O than the 28-pin PIC16F876A while remaining breadboard-friendly with an adapter. MPLAB X IDE, XC8 compiler, and PICkit 3/4 programmer support this part out of the box. The PIC16 instruction set is simple enough for students to learn assembly while the C compiler keeps advanced projects productive.
پیشنهادی
Legacy Embedded Systems Maintenance
Many industrial products designed in the early 2000s used the original PIC16F874 (non-A). The PIC16F874AT-E/PT is the modern Extended-temperature Tape-and-Reel replacement that allows sustaining production of those legacy systems without PCB redesign. The 44-TQFP footprint and instruction set are forward-compatible, and MPLAB development tools continue to support this part. Contact Microchip factory for long-term supply contracts if you need 10-year support.
پیشنهادی
خلاصه محصولات پیشنهادی
دادههای مرجع مهندسی برای PIC16F874AT-E/PT — مقایسه، راهنمای طراحی و اطلاعات انطباق.
راهنمای انتخاب
مقایسه با جایگزینها
| پارامتر | این محصول | PIC16F874A-E/PT | PIC16F874A-I/PT | PIC16F877A-I/PT | PIC16F874-10E/PT | PIC18F452-I/PT | PIC18F4520-I/PT |
|---|---|---|---|---|---|---|---|
| Package | 44-TQFP (PT) 10x10 mm | 44-TQFP (PT) - same | 44-TQFP (PT) - same | 44-TQFP (PT) - same | 44-TQFP (PT) - same | 44-TQFP (PT) - same | 44-TQFP (PT) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Program Flash | 7 KB (4K x 14) | 7 KB - same | 7 KB - same | 14 KB (+100%) | 4 KB (-43%) | 16 KB (+129%) | 32 KB (+357%) |
| RAM | 192 bytes | 192 bytes - same | 192 bytes - same | 192 bytes - same | 192 bytes - same | 1536 bytes (+700%) | 1536 bytes (+700%) |
| EEPROM | 128 bytes | 128 bytes - same | 128 bytes - same | 256 bytes (+100%) | 64 bytes (-50%) | 256 bytes (+100%) | 256 bytes (+100%) |
| I/O Pins | 33 | 33 - same | 33 - same | 40 (+21%) | 33 - same | 33 - same | 36 (+9%) |
| ADC Channels | 8 channels, 10-bit | 8 ch, 10-bit - same | 8 ch, 10-bit - same | 8 ch, 10-bit - same | 8 ch, 10-bit - same | 8 ch, 10-bit - same | 13 ch, 10-bit (+62%) |
| Max Clock Frequency | 20 MHz | 20 MHz - same | 20 MHz - same | 20 MHz - same | 10 MHz (-50%) | 40 MHz (+100%) | 40 MHz (+100%) |
| Operating Temperature | -40 C to +125 C (E grade) | -40 C to +125 C - same | 0 C to +70 C (I grade) | 0 C to +70 C (I grade) | -40 C to +125 C - same | 0 C to +70 C (I grade) | 0 C to +70 C (I grade) |
| Core Architecture | PIC16 (14-bit instruction) | PIC16 (14-bit) - same | PIC16 (14-bit) - same | PIC16 (14-bit) - same | PIC16 (14-bit) - same | PIC18 (16-bit) - firmware rewrite required | PIC18 (16-bit) - firmware rewrite required |
تفاوتهای کلیدی
- Industrial Extended temperature in T&R packaging (در مقابلPIC16F874A-I/PT)
- Enhanced 14-bit core with hardware multiplier (در مقابلPIC16F874-10E/PT)
- Right-sized peripheral set with 33 I/O (در مقابلPIC16F877A-I/PT)
- Harvard RISC determinism for hard real-time (در مقابلPIC18F4520-I/PT)
یادداشتهای طراحی
The PIC16F874AT-E/PT requires a single 2.0 V to 5.5 V supply on pins 11 and 32, both of which must be bypassed with 100 nF ceramic capacitors placed within 5 mm of each VDD pin. Estimated: at 20 MHz and 5 V the active current is ~13 mA, while sleep mode drops below 1 uA. For battery applications add a 10 uF bulk capacitor on VDD and consider MCP1700 250 mA LDO for 6-12 V industrial supplies.
Always place a 5-pin ICSP header (MCLR, VDD, VSS, RB6/PGC, RB7/PGD) on every board, even for one-time-only production - this allows recovery of bricked parts and in-circuit firmware updates. The 44-TQFP has 0.8 mm pitch; use NSMD pads with 0.4 mm aperture solder paste for reliable reflow. Estimated: keep-out zone under the QFP body should be filled with thermal vias to a ground plane on layer 2.
The PIC16F874A is a 5 V tolerant MCU - do not connect 3.3 V peripherals directly to PORTB without a level shifter if the PIC runs at 5 V VDD (VIH min is 0.25*VDD+0.8V = 2.05 V so 3.3 V is recognized as HIGH, but VOL of 3.3 V device may exceed PIC VIL). MCLR must have a 10 kohm pull-up to VDD or the part will randomly reset. Configuration bits must be programmed to enable the watchdog, brown-out reset, and low-voltage programming for production firmware.
Keep the 20 MHz crystal traces short (<10 mm) and surround them with a ground pour on the same layer. Estimated: at 20 MHz the second harmonic falls at 40 MHz which can radiate from long OSC traces and couple into analog inputs. Place the ADC reference decoupling capacitor (100 nF) directly on the VREF+ pin (RA3) when using external voltage reference; otherwise tie VREF+ to VDD and accept the reduced ADC absolute accuracy.
اطلاعات انطباق
RoHS compliant per Microchip product page. Not AEC-Q100 qualified - this is industrial-grade (-40 C to +125 C), not automotive-grade. For AEC-Q100 safety-critical automotive ECUs use dsPIC33 or PIC16F1938 with PPAP documentation.