PIC16F874T-04I/PT - 4MHz 8-bit Flash MCU, 7KB | Microchip
MPN: PIC16F874T-04I/PT β Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $9.85 | $9.85 |
| 10 | $8.95 | $89.50 |
| 100 | $7.98 | $798.00 |
| 500 | $7.25 | $3,625.00 |
| 1,000 | $6.62 | $6,620.00 |
PIC16F874T-04I/PT Overview
A PIC microcontroller (Programmable Intelligent Computer peripheral controller) is a family of 8-bit, 16-bit, and 32-bit RISC-based microcontrollers manufactured by Microchip Technology. PIC MCUs integrate CPU core, Flash program memory, SRAM data memory, EEPROM, timers, capture/compare/PWM, ADC, and serial peripherals (UART, SPI, I2C) on a single CMOS die. PIC MCUs sit within the broader taxonomy of microcontroller -> embedded processor -> semiconductor device, and remain widely adopted in industrial control, automotive body electronics, white goods, and consumer applications due to their deterministic instruction execution, low power consumption, and free MPLAB X IDE toolchain.
The PIC16F874T-04I/PT executes instructions in a 200ns single-cycle instruction time and supports only 35 single-word instructions, simplifying firmware development. It provides 33 digital I/O pins, a 10-bit ADC with up to 8 channels, two 8-bit timers plus one 16-bit timer, a Watchdog Timer with its own on-chip RC oscillator for reliable operation, and synchronous/asynchronous serial ports (USART) plus an SPI/I2C-compatible MSSP peripheral. nanoWatt Technology adds power-managed sleep modes that drop quiescent current below typical operating values for battery-powered applications.
Architecturally, the PIC16F874 family uses a Harvard RISC core with separate program and data buses, a hardware multiplier (8x8 single-cycle), and 14-bit wide instruction words. The 4MHz clock yields a 1MIPS throughput at 5V operation, and Flash in-circuit serial programming (ICSP) is supported via two pins, enabling in-field firmware updates without removing the part from the board.
Typical applications include industrial process control, sensor signal conditioning, HVAC fan/blower controllers, motor-drive supervisory boards, security keypads, and remote sensor nodes. The 33 I/O count and 10-bit ADC make it well-suited for mixed analog/digital front-ends.
Designers should note that Microchip recommends the newer PIC16F884 as a successor in production designs. Existing firmware typically ports with minimal effort, but verify peripheral mapping and interrupt vector assignments when migrating. Operate VDD between 4.0V and 5.5V for full 4MHz performance.
This page synthesizes distributor pricing, drop-in PIC16F87x alternatives, and practical design notes not found in the manufacturer datasheet alone, supporting both new designs and legacy board rework.
Drop-in alternatives for PIC16F874T-04I/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 PIC16F874T-04I/PT (same form factor and footprint) β differing in Operating Temperature, Timers, ADC, Package, Instruction Cycle.
Quick Comparison Tool β Select alternative parts for side-by-side comparison:
PIC16F874-04I/PT
β Drop-Inβ In Stock
$5.4 / Unit
View Datasheet βPIC16F874AT-I/PT
β Drop-Inβ In Stock
$6.95 / Unit
View Datasheet βPIC16F874A-I/PT
β Drop-Inπ Reference alternative (not in catalog)
PIC16F874T-04E/PT
β Drop-Inπ Reference alternative (not in catalog)
PIC16F871-I/PT
β Drop-Inβ In Stock
$2.82 / Unit
View Datasheet βPIC16F874-04/PT
β Drop-Inπ Reference alternative (not in catalog)
PIC16F874T-04I/PT Maximum Ratings & Electrical Characteristics
| Core | 8-bit PIC16 RISC |
| Clock Speed (max) | 4 MHz |
| Program Memory | 7 KB Flash (4K x 14) |
| RAM | 192 bytes |
| EEPROM | 128 bytes |
| I/O Pins | 33 |
| ADC | 10-bit, up to 8 channels |
| Timers | 2 x 8-bit + 1 x 16-bit |
| Serial Interfaces | USART, SPI, I2C (MSSP) |
| Instruction Set | 35 single-word instructions |
| Instruction Cycle | 200 ns @ 4 MHz |
| Supply Voltage (VDD) | 4.0 V to 5.5 V |
| Operating Temperature | -40 C to +85 C (Industrial, 'I') |
| Package | 44-pin TQFP (10 x 10 mm) |
| Mounting Type | Surface Mount |
| ICSP (In-Circuit Serial Programming) | Yes |
| Watchdog Timer | Yes with on-chip RC oscillator |
| RoHS Status | Compliant |
PIC16F874T-04I/PT 44-pin tqfp (10 x 10 mm) Pin Configuration Guide
Pin configuration for PIC16F874T-04I/PT (44-pin tqfp (10 x 10 mm) package). This digital IC includes GPIO, communication interfaces (UART, SPI, I2C), and power pins. Refer to the manufacturer datasheet for alternate pin functions and configuration options. Essential for embedded system design and PCB layout.
No detailed pinout data available for PIC16F874T-04I/PT.
Refer to the datasheet for full pin configuration.
Typical Applications
PIC16F874T-04I/PT is suitable for 7 applications: Industrial Process Control, HVAC Fan and Blower Controllers, Security Keypads and Access Control, Sensor Signal Conditioning Front-Ends, Automotive Body Electronics (Non-Safety), Consumer White Goods Controllers, Remote Sensor Nodes with nanoWatt Sleep.
Industrial Process Control
The PIC16F874T-04I/PT fits industrial process control due to its -40 C to +85 C industrial temperature range, 33 digital I/O, 10-bit ADC with up to 8 channels, and USART plus MSSP (SPI/I2C) peripherals. The 7 KB Flash hosts typical PID-loop, sensor-fusion, and alarm state-machine firmware, while the 192-byte RAM buffers sample streams. The hardware Watchdog Timer with its dedicated internal RC oscillator improves fault recovery in unattended installations where supervisory firmware must reset cleanly after EMI or sensor glitches. Operating at 5 V with 4 MHz clock yields 1 MIPS, sufficient for control loops sampled at 100 Hz. For new designs Microchip recommends the pin-compatible PIC16F884, but the legacy PIC16F874 family remains active in production.
Recommended
HVAC Fan and Blower Controllers
The PIC16F874T-04I/PT is widely used in HVAC blower motor controllers because its PWM module plus 10-bit ADC simplify closed-loop RPM control via triac or MOSFET driver stages. With 33 I/O the device can read temperature sensors (NTC or 4-20 mA), keypad inputs, and drive LED status indicators simultaneously. The nanoWatt sleep modes drop current below operating levels during idle periods, supporting Energy Star standby requirements. The 44-pin TQFP exposes ample I/O for multi-stage fan control with tachometer feedback, and the ICSP pins enable field firmware updates via service-port connector. Compliance with the industrial -40 C to +85 C window allows under-hood or plenum-mounted designs.
Recommended
Security Keypads and Access Control
Security keypads and access-control panels benefit from the PIC16F874T-04I/PT's 33 I/O count for matrix-scanned 4x4 or larger keypads plus multiple relay-driver outputs for door strikes, sirens, and status LEDs. The on-chip 128-byte EEPROM stores user credentials and event logs with 1M erase/write cycles per Microchip specifications, eliminating an external EEPROM in many designs. Hardware USART supports Wiegand or RS-485 communication to central controllers. The 4 MHz clock and 35-instruction RISC core provide fast key-debounce handling while nanoWatt sleep extends battery-backed standby life. Watchdog Timer protection ensures the panel resets cleanly after power-line disturbances common in access-control installations.
Recommended
Sensor Signal Conditioning Front-Ends
The PIC16F874T-04I/PT serves well as a smart-sensor front-end: its 10-bit ADC quantizes up to 8 analog channels at rates up to approximately 50 ksps, while the MSSP peripheral streams data over SPI or I2C to a host controller. The 192-byte RAM holds local calibration tables, and 7 KB Flash accommodates linearization routines for thermocouples, RTDs, or bridge-type pressure sensors. Operating at 5 V matches legacy industrial analog signal chains. Industrial temperature grade and 5 V tolerance ensure field reliability in factory automation. Use the ICSP interface for in-line calibration during sensor-module production, simplifying factory programming workflows.
Recommended
Automotive Body Electronics (Non-Safety)
For non-safety body-electronics modules (interior lighting, seat controllers, mirror adjusters), the PIC16F874T-04I/PT industrial variant covers the cabin environment, while the '-04E' extended-temperature sibling supports under-hood or door-module installations up to +125 C. The 33 I/O drive LED arrays, H-bridge direction logic, and switch-matrix inputs without external glue logic. Hardware PWM modules control motor speed or LED dimming with deterministic timing. The 7 KB Flash holds application firmware and small lookup tables for lamp-failure diagnostics. Microchip recommends migrating to newer dsPIC33 or PIC18 families for new automotive designs, but legacy platforms continue shipping the PIC16F874 family.
Recommended
Consumer White Goods Controllers
Washing machines, dishwashers, and microwave ovens use the PIC16F874T-04I/PT for user-interface and motor-control sequencing. Its 33 I/O drive 7-segment displays via multiplexing, accept membrane-switch keypads, and switch TRIAC or relay outputs for pumps, valves, and heaters. The 10-bit ADC reads water level, temperature, and humidity sensors. Flash endurance of 100,000 cycles supports periodic firmware revisions over the product lifetime. The 5 V supply aligns with mains-rectified appliance power rails. Industrial temperature tolerance accommodates under-cabinet thermal rise during long wash cycles, and the Watchdog Timer with internal RC oscillator guards against motor-induced EMI upsets.
Recommended
Remote Sensor Nodes with nanoWatt Sleep
Battery-powered remote sensor nodes leverage the PIC16F874T-04I/PT's nanoWatt Technology sleep modes, dropping quiescent current below operating levels between sensor reads. The 10-bit ADC digitizes periodic measurements, and the MSSP wakes the host link over SPI or I2C only when transmitting, conserving battery capacity. The 128-byte EEPROM stores calibration constants and node ID without external memory. Industrial temperature range supports outdoor or attic deployments. The Watchdog Timer with internal RC oscillator continues running during sleep, waking the device on overflow. For new designs with stricter energy budgets, evaluate PIC16F1847 or PIC18 variants with deeper sleep current specifications.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F874T-04I/PT β comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F874-04I/PT | PIC16F874AT-I/PT | PIC16F874A-I/PT | PIC16F874T-04E/PT | PIC16F871-I/PT |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 44-pin TQFP (PT) 10x10 mm | 44-pin TQFP (PT) - same | 44-pin TQFP (PT) - same | 44-pin TQFP (PT) - same | 44-pin TQFP (PT) - same | 44-pin TQFP (PT) - same |
| Core / Architecture | 8-bit PIC16 RISC | 8-bit PIC16 RISC | 8-bit PIC16 RISC (A rev) | 8-bit PIC16 RISC (A rev) | 8-bit PIC16 RISC | 8-bit PIC16 RISC |
| Max Clock Speed | 4 MHz | 4 MHz | 20 MHz | 20 MHz | 4 MHz | 20 MHz |
| Program Memory (Flash) | 7 KB (4K x 14) | 7 KB | 7 KB | 7 KB | 7 KB | 4 KB (smaller) |
| RAM | 192 bytes | 192 bytes | 192 bytes | 192 bytes | 192 bytes | 192 bytes |
| EEPROM | 128 bytes | 128 bytes | 128 bytes | 128 bytes | 128 bytes | 64 bytes |
| I/O Pins | 33 | 33 | 33 | 33 | 33 | 33 |
| Operating Temperature | -40 C to +85 C (Industrial) | -40 C to +85 C | -40 C to +85 C | -40 C to +85 C | -40 C to +125 C (Extended) | -40 C to +85 C |
| Supply Voltage (VDD) | 4.0 V to 5.5 V | 4.0 V to 5.5 V | 2.0 V to 5.5 V (wider) | 2.0 V to 5.5 V (wider) | 4.0 V to 5.5 V | 2.0 V to 5.5 V (wider) |
Key Differentiators
- Active production status with industrial temperature grade (vs PIC16F874T-04E/PT)
- Compact 44-pin TQFP with 33 I/O for mixed analog/digital designs (vs PIC16F871-I/PT)
- Tape and Reel packaging for high-volume SMT assembly (vs PIC16F874-04I/PT)
Design Notes
The PIC16F874T-04I/PT requires a stable 4.0 V to 5.5 V supply on VDD with a decoupling capacitor network: place a 100 nF ceramic as close as possible to each VDD/AVDD pin pair, and add a bulk 10 uF tantalum or aluminum polymer near the IC for transient suppression. The MCLR reset pin needs a 10 kohm pull-up to VDD and a 100 nF cap to ground for noise immunity; omitting the cap causes intermittent resets in motor-drive environments. The AVDD and AVSS pins must be tied to the same rails with their own 100 nF + 10 uF decoupling when the ADC is active. Operating below 4.0 V is not guaranteed at full 4 MHz clock per the Microchip datasheet.
Route the 4 MHz crystal traces (OSC1/OSC2) as short as possible, surrounded by a ground guard ring to minimize EMI pickup. Keep digital switching traces (PORTD outputs, PWM lines) at least 3 mm away from analog ADC inputs to avoid crosstalk into the 10-bit conversion result. The 44-pin TQFP (10x10 mm) has an exposed thermal pad in some TQFP variants - check the specific land pattern. Maintain continuous ground plane under the IC; do not split the ground plane between analog and digital sections under the MCU. Place ICSP header (5-pin: MCLR, VDD, VSS, ICSPCLK/RB6, ICSPDAT/RB7) at board edge for programming access.
Common pitfalls when designing with the PIC16F874T-04I/PT: (1) configuring RB3 as an I/O when it is needed for Low-Voltage Programming (LVP) - the LVP bit in CONFIG must be cleared to free RB3 for general I/O. (2) Forgetting to disable the Watchdog Timer in low-latency interrupt routines, causing unintended resets. (3) Reading PORT registers instead of LAT registers for output state, producing read-modify-write glitches on PORTB interrupt-on-change events. (4) Exceeding the 5.5 V absolute maximum on any pin, which can latch up the CMOS I/O ring - add TVS protection on externally exposed pins. (5) Using the '-04' part at 20 MHz oscillator - the -04 suffix limits operation to 4 MHz; choose -20 for 20 MHz.
Compliance Information
RoHS compliant per Microchip product page. Industrial temperature grade (I suffix) only - not AEC-Q100 qualified; for AEC-Q100 automotive use, consider PIC16F1847 or dsPIC33 families. Halogen-free status not stated in verified web data.