PIC16F874-04E/PT - 8-Bit 4MHz Flash MCU, 7KB, 44-TQFP | Microchip
MPN: PIC16F874-04E/PT ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $14.5 | $14.50 |
| 10 | $13.1 | $131.00 |
| 100 | $11.6 | $1,160.00 |
| 500 | $10.2 | $5,100.00 |
| 1,000 | $8.95 | $8,950.00 |
PIC16F874-04E/PT Overview
A microcontroller (MCU) is a single-chip computer that integrates a CPU core, program memory (Flash/ROM), data memory (RAM), and a range of peripheral interfaces. The PIC16F874 belongs to Microchip's mid-range PIC® 16F family, which uses a Harvard architecture with separate program and data buses, enabling predictable instruction timing. Within the broader taxonomy, the PIC16F874 sits as: 8-bit MCU -> RISC MCU -> PIC® 16F family -> Flash-based mid-range PIC -> automotive-grade variant (E suffix) -> TQFP-44 package. This hierarchy is what allows engineers to migrate between similar PIC16F87x parts with minimal code changes.
Key features of this device include 200 ns instruction execution time at 4 MHz oscillator, in-system programmability via ICSP, a 10-bit Analog-to-Digital Converter (ADC) with up to 8 input channels, and the nanoWatt low-power feature set that includes sleep mode, watchdog timer, and on-chip oscillator calibration. Brown-out Reset (BOR) and Power-on Reset (POR) ensure reliable startup under fluctuating supply conditions, while the In-Circuit Serial Programming (ICSP) interface allows firmware updates without removing the part from the board.
The PIC16F874 is built on a CMOS process and uses a 14-bit instruction word format. Its peripheral set is comparable to the larger PIC16F877 but in a smaller 44-pin footprint rather than 40-pin PDIP or 44-pin TQFP. Compared with the 28-pin PIC16F876, this 44-pin variant exposes additional I/O and ADC channels. The architecture supports prioritized interrupts with hardware context saving and a hardware stack eight levels deep.
Typical applications for the PIC16F874-04E/PT include automotive body controllers and instrument clusters, industrial sensor conditioning boards, low-cost motor control using PWM and CCP, battery management front-ends, and small appliances requiring a low-temperature microcontroller that can be re-flashed in the field. Its wide operating voltage tolerance (4 V to 5.5 V) makes it tolerant of the load-dump transients seen in 12 V automotive systems when paired with a 5 V regulator.
When designing with this part, reserve the MCLR pin as the reset input (do not tie directly to VDD without the recommended pull-up), and follow Microchip's recommended decoupling scheme of a 100 nF ceramic capacitor on each VDD pin and a 10 µF bulk capacitor near the IC. For automotive (-40 °C to +125 °C) deployment, pay special attention to oscillator start-up time and use the internal RC oscillator only when timing accuracy is non-critical.
This page synthesizes distributor pricing, drop-in alternatives within the same TQFP-44 footprint, and practical design notes not found on a single manufacturer datasheet page.
Drop-in alternatives for PIC16F874-04E/PT — 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 PIC16F874-04E/PT (same form factor and footprint) — differing in Package, Core Architecture, Timers, Operating Temperature, ADC.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F874-04I/PT
✅ Drop-In✓ In Stock
$5.4 / Unit
View Datasheet →PIC16F874T-04E/PT
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F877-04/PT
✅ Drop-In✓ In Stock
$5.2 / Unit
View Datasheet →PIC16F874-04/PQ
✅ Drop-In✓ In Stock
$5.9 / Unit
View Datasheet →PIC16F874-04E/PQ
✅ Drop-In✓ In Stock
$5.1 / Unit
View Datasheet →PIC16F874-04E/PT Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC 8-bit RISC (Harvard) |
| Instruction Word | 14-bit |
| Clock Speed (max) | 4 MHz |
| Instruction Cycle | 200 ns |
| Program Memory | 7 KB (4K × 14) Flash |
| RAM | 192 bytes |
| EEPROM | 128 bytes |
| I/O Pins | 33 |
| ADC | 10-bit, 8 channels |
| Timers | 2 × 8-bit, 1 × 16-bit |
| CCP Modules | 1 (Capture/Compare/PWM) |
| Communication | USART, MSSP (SPI / I²C) |
| Supply Voltage | 4 V to 5.5 V |
| Operating Temperature | -40 °C to +125 °C (automotive grade) |
| Package | 44-pin TQFP (PT), 10 × 10 mm |
| Mounting Type | Surface Mount (Gull-wing) |
| RoHS Status | Compliant |
| Programming | ICSP (In-Circuit Serial Programming) |
PIC16F874-04E/PT Pin Configuration
| Pin 1 | MCLR — Master Clear (reset) input, active low |
| Pin 2 | RA0/AN0 — Port A bit 0 / Analog input 0 |
| Pin 3 | RA1/AN1 — Port A bit 1 / Analog input 1 |
| Pin 4 | RA2/AN2/VREF- — Port A bit 2 / Analog input 2 / ADC VREF- |
| Pin 5 | RA3/AN3/VREF+ — Port A bit 3 / Analog input 3 / ADC VREF+ |
| Pin 6 | RA4/T0CKI — Port A bit 4 / Timer0 clock input |
| Pin 7 | RA5/AN4/SS — Port A bit 5 / Analog input 4 / SPI slave select |
| Pin 8 | RE0/RD/AN5 — Port E bit 0 / Parallel-port read / Analog input 5 |
| Pin 9 | RE1/WR/AN6 — Port E bit 1 / Parallel-port write / Analog input 6 |
| Pin 10 | RE2/CS/AN7 — Port E bit 2 / Parallel-port chip select / Analog input 7 |
| Pin 11 | VDD — Positive supply voltage (4 V to 5.5 V) |
| Pin 12 | VSS — Ground reference |
| Pin 13 | OSC1/CLKI — Oscillator input / external clock input |
| Pin 14 | OSC2/CLKO — Oscillator output / clock output (Fosc/4) |
| Pin 15 | RC0/T1OSO/T1CKI — Port C bit 0 / Timer1 oscillator output / Timer1 clock |
| Pin 16 | RC1/T1OSI/CCP2 — Port C bit 1 / Timer1 oscillator input / CCP2 |
| Pin 17 | RC2/CCP1 — Port C bit 2 / CCP1 (PWM output) |
| Pin 18 | RC3/SCK/SCL — Port C bit 3 / SPI clock / I2C clock |
| Pin 19 | RD0/PSP0 — Port D bit 0 / Parallel Slave Port bit 0 |
| Pin 20 | RD1/PSP1 — Port D bit 1 / Parallel Slave Port bit 1 |
| Pin 21 | RD2/PSP2 — Port D bit 2 / Parallel Slave Port bit 2 |
| Pin 22 | RD3/PSP3 — Port D bit 3 / Parallel Slave Port bit 3 |
| Pin 23 | RC4/SDI/SDA — Port C bit 4 / SPI data in / I2C data |
| Pin 24 | RC5/SDO — Port C bit 5 / SPI data out |
| Pin 25 | RC6/TX/CK — Port C bit 6 / USART TX / USART clock |
| Pin 26 | RC7/RX/DT — Port C bit 7 / USART RX / USART data |
| Pin 27 | RD4/PSP4 — Port D bit 4 / Parallel Slave Port bit 4 |
| Pin 28 | RD5/PSP5 — Port D bit 5 / Parallel Slave Port bit 5 |
| Pin 29 | RD6/PSP6 — Port D bit 6 / Parallel Slave Port bit 6 |
| Pin 30 | RD7/PSP7 — Port D bit 7 / Parallel Slave Port bit 7 |
| Pin 31 | VSS — Ground reference |
| Pin 32 | VDD — Positive supply voltage (4 V to 5.5 V) |
| Pin 33 | RB0/INT — Port B bit 0 / External interrupt input |
| Pin 34 | RB1 — Port B bit 1 |
| Pin 35 | RB2 — Port B bit 2 |
| Pin 36 | RB3/PGM — Port B bit 3 / Low-voltage programming |
| Pin 37 | RB4 — Port B bit 4 (interrupt-on-change) |
| Pin 38 | RB5 — Port B bit 5 (interrupt-on-change) |
| Pin 39 | RB6/PGC — Port B bit 6 / ICSP clock (ICD) |
| Pin 40 | RB7/PGD — Port B bit 7 / ICSP data (ICD) |
| Pin 41 | NC — Not connected (per datasheet TQFP-44 layout) |
| Pin 42 | NC — Not connected (per datasheet TQFP-44 layout) |
| Pin 43 | NC — Not connected (per datasheet TQFP-44 layout) |
| Pin 44 | NC — Not connected (per datasheet TQFP-44 layout) |
Typical Applications
PIC16F874-04E/PT is suitable for 6 applications: Automotive Body Control Modules, Industrial Sensor Conditioning, Low-Cost PWM Motor Control, Battery Management Front-Ends, Small Appliance Control Boards, HVAC and Climate Control.
Automotive Body Control Modules
The PIC16F874-04E/PT's automotive -40C to +125C temperature grade and 4 MHz operation make it well suited for body-control ECUs that switch lighting, mirrors, and seat motors. Its 33 I/O pins directly drive relay coils and MOSFET gates through the CCP/PWM modules, while the 10-bit ADC reads battery voltage and thermistor inputs without an external ADC IC. Compared with newer PIC18 parts, the PIC16F874-04E/PT offers proven long-term availability in automotive service channels. Pair with the LM7805 5V regulator and TVS diode for load-dump protection; the 4-5.5V supply range tolerates cranking transients. The 7KB Flash holds typical body-control firmware, and ICSP allows field reflash via the OBD-II connector.
Recommended
Industrial Sensor Conditioning
The PIC16F874-04E/PT's 8-channel 10-bit ADC, 33 I/O pins, and USART/SPI/I2C peripherals make it a strong fit for industrial 4-20mA sensor conditioning boards. Its 200 ns instruction cycle is fast enough for 100 Hz closed-loop control loops, and the 7 KB Flash accommodates PID + linearization firmware. Compared with dedicated ADC chips, the integrated ADC eliminates BOM cost while keeping the BOM under USD 5 in 1k volumes. The automotive temperature grade also supports factory-floor installations without de-rating. Use the MSSP module to interface to SPI-based digital sensors and the USART to drive RS-485 transceivers for Modbus RTU links.
Recommended
Low-Cost PWM Motor Control
The PIC16F874-04E/PT's CCP module generates precise PWM for brushed DC and small BLDC motor control up to 25 kHz. The 16-bit timer provides 100 ns resolution at 4 MHz oscillator, enough for hobby-grade servo and small fan speed control. The automotive temperature grade suits motor control in dashboard ventilation and seat-position actuators. Compared with dedicated motor-driver ASICs, the PIC16F874-04E/PT adds software-configurable control curves and ICSP field-tuning. Drive N-channel MOSFET half-bridges from Port C pins, with the ADC reading back current-sense shunt voltage for closed-loop torque control.
Recommended
Battery Management Front-Ends
The PIC16F874-04E/PT's 8-channel ADC multiplexes voltage and current measurements for low-cell-count battery management front-ends (4-8S Li-ion packs). Its nanoWatt sleep current keeps quiescent draw low for long-shelf-life packs. The 7KB Flash fits basic state-of-charge algorithms and SMBus communication over the MSSP I2C peripheral. The automotive -40C to +125C grade handles under-hood and outdoor installations. Pair with a balancing FET array and CHG/DCHG MOSFETs; the PIC16F874 reads cell voltages through the ADC and controls balancing via GPIO. ICSP supports firmware updates as battery chemistries evolve.
Recommended
Small Appliance Control Boards
The PIC16F874-04E/PT integrates USART, SPI, I2C, ADC, and PWM in a single TQFP-44, making it ideal for small appliance mainboards like coffee machines, induction cooktops, and air purifiers. Its 4 MHz grade keeps EMI low while still handling touch-button scanning and PID temperature control. The 33 I/O pins drive relay banks, seven-segment displays, and buzzer PWM simultaneously without external logic. Compared with newer Cortex-M0 parts, the PIC16F874-04E/PT offers simpler development (35-instruction RISC) and lower tool-chain cost. Use the 16-bit timer for precise cooking-cycle timing and the ADC for NTC thermistor temperature sensing.
Recommended
HVAC and Climate Control
The PIC16F874-04E/PT's automotive temperature grade and 4 MHz operation are well matched for HVAC damper controllers, fan-speed regulators, and thermostat mainboards. Its 10-bit ADC reads thermistor and humidity sensor inputs at 0.5C resolution, while the CCP module drives TRIAC firing pulses for AC line loads. The 7KB Flash fits PID climate-control firmware, and the USART supports Modbus or BACnet links to a building-management system. Compared with PLCs, the PIC16F874-04E/PT reduces per-node cost to under USD 10 in 1k volumes. ICSP enables field firmware updates without disassembly.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F874-04E/PT — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F874-04I/PT | PIC16F874T-04E/PT | PIC16F877-04/PT | PIC16F874-04/PQ | PIC16F874-04E/PQ |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | TQFP-44 (PT) | TQFP-44 (PT) - same | TQFP-44 (PT) - same | TQFP-44 (PT) - same | TQFP-44 (PQ) - same family, different outline | TQFP-44 (PQ) - same family, different outline |
| Program Memory | 7 KB Flash | 7 KB Flash | 7 KB Flash | 14 KB Flash (upgrade) | 7 KB Flash | 7 KB Flash |
| Clock Speed (max) | 4 MHz | 4 MHz | 4 MHz | 4 MHz | 4 MHz | 4 MHz |
| RAM | 192 bytes | 192 bytes | 192 bytes | 368 bytes | 192 bytes | 192 bytes |
| I/O Pins | 33 | 33 | 33 | 33 | 33 | 33 |
| Operating Temperature | -40C to +125C (automotive) | -40C to +85C (industrial) | -40C to +125C (automotive) | -40C to +85C (industrial, base) | 0C to +70C (commercial) | -40C to +125C (automotive) |
| ADC | 10-bit, 8 channels | 10-bit, 8 channels | 10-bit, 8 channels | 10-bit, 8 channels | 10-bit, 8 channels | 10-bit, 8 channels |
| Lifecycle Status | Active | Active | Active | Active | Active | Active |
Key Differentiators
- Automotive temperature grade in same TQFP-44 footprint (vs PIC16F874-04I/PT)
- Identical peripheral set to PIC16F877 with smaller Flash (vs PIC16F877-04/PT)
- TQFP-44 (PT) package vs MQFP-44 (PQ) variant (vs PIC16F874-04E/PQ)
Design Notes
Place a 100 nF ceramic decoupling capacitor as close as possible to each VDD pin (pins 11 and 32) and a single 10 uF bulk tantalum or aluminum electrolytic capacitor near the MCU. The PIC16F874-04E/PT draws approximately 5 mA active at 4 MHz with all peripherals enabled, so the regulator must supply at least 50 mA headroom. Brown-out Reset (BOR) is enabled by configuration bit and prevents code corruption at supply voltages below the BOR threshold (configurable 2.5 V to 4.5 V). For 12 V automotive rails, place a TVS diode and 5 V LDO before the MCU to survive load-dump transients up to 40 V.
Keep the oscillator traces (OSC1 pin 13, OSC2 pin 14) short and surround them with a ground pour to reduce EMI. The TQFP-44 (PT) package has a thermal pad area but no electrical pad; the central die flag is not connected to ground on this part. Place the ICSP connector (RB6/PGC = pin 39, RB7/PGD = pin 40) on the board edge so the production line can program the firmware without disassembling the enclosure. Add 4.7 kohm pull-ups on SDA (pin 23) and SCL (pin 18) for I2C bus integrity even if the bus is unused.
Do not leave the MCLR pin (pin 1) floating - tie it to VDD through a 10 kohm pull-up resistor or use a reset supervisor IC for noisy automotive environments. Do not exceed the 5.5 V absolute maximum on any I/O pin; clamp inductive loads (relay coils, solenoids) with flyback diodes. When using the internal RC oscillator, calibrate the OSCTUNE register to compensate for temperature drift. Configuration bits must be set explicitly - an unprogrammed configuration word enables the watchdog timer by default, which can cause unexpected resets. The CCP1 module is on RC2 (pin 17) only - do not remap it to another pin on the PIC16F874.
Compliance Information
RoHS and REACH compliant per Microchip product page. Lead-free matte-tin finish. AEC-Q100 not formally qualified but automotive temperature grade (-40C to +125C) per Microchip part numbering convention. Halogen-free status not explicitly stated in the verified data.