PIC16F877T-04I/PT - 8-bit 4MHz MCU 14KB Flash 44-TQFP | Microchip
MPN: PIC16F877T-04I/PT ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $12.5 | $12.50 |
| 10 | $11.4 | $114.00 |
| 100 | $10.2 | $1,020.00 |
| 500 | $9.1 | $4,550.00 |
| 1,000 | $8.25 | $8,250.00 |
PIC16F877T-04I/PT Overview
A microcontroller (MCU) is a single-chip computer containing a CPU core, program memory (FLASH/ROM), data memory (RAM), and integrated peripherals such as timers, ADC, communication interfaces, and I/O ports. Within the system hierarchy, an MCU belongs to the embedded controller category, sitting above simple logic ICs and below microprocessor-based systems in functional complexity. PIC16F-series microcontrollers specifically target cost-sensitive 8-bit applications where deterministic instruction execution and low power are valued over raw processing speed.
Key features of the PIC16F877T-04I/PT include a Harvard RISC architecture with 14-bit instructions, integrated 10-bit ADC with up to 8 channels, two 8-bit and one 16-bit timer/counter, USART for serial communication, MSSP module supporting SPI and I2C, and 256 bytes of EEPROM data memory. The wide operating voltage range of 2.0V to 5.5V supports both 3.3V and 5V designs.
Architecturally, the PIC16F877 uses a 14-bit instruction word with an 8-bit data path, providing byte-oriented operations while keeping instruction memory efficient. The 4MHz oscillator combined with the 4-instruction-cycle pipeline yields the 1 MIPS throughput characteristic of this family.
Typical applications include industrial control systems, sensor interfacing, motor control, low-cost instrumentation, and consumer electronics. The 33 I/O pins comfortably drive displays, keypads, and actuator relays without external glue logic.
When designing with this part, ensure decoupling capacitors are placed within 5mm of the VDD pins and follow Microchip's recommended PCB layout guidelines for oscillator stability. In-system programming (ICSP) requires dedicated RB6/RB7 pins, which must not be permanently tied low in the application circuit.
This page synthesizes distributor pricing, same-brand and cross-brand drop-in alternatives, and practical design notes not found in the manufacturer datasheet, giving engineers a single decision-ready reference.
Drop-in alternatives for PIC16F877T-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 PIC16F877T-04I/PT (same form factor and footprint) — differing in Operating Temperature, Package, Timers, ADC, I/O Pins.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F877-04I/PT
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F877T-04E/PT
✅ Drop-In✓ In Stock
$6.1 / Unit
View Datasheet →PIC16F877-20I/PT
✅ Drop-In✓ In Stock
$5.1 / Unit
View Datasheet →PIC16F874T-04I/PT
✅ Drop-In✓ In Stock
$6.62 / Unit
View Datasheet →PIC16F877T-04I/PT Maximum Ratings & Electrical Characteristics
| Architecture | 8-bit PIC16F RISC, Harvard |
| Instruction Set | 35 single-word instructions, 14-bit wide |
| CPU Speed | 4 MHz (4 MHz internal oscillator; 1 MIPS) |
| Program Memory (FLASH) | 14 KB (8K x 14) |
| RAM | 368 bytes |
| EEPROM | 256 bytes |
| I/O Pins | 33 |
| Package | 44-pin TQFP (10x10 mm) |
| Mounting Type | Surface Mount |
| Supply Voltage (VDD) | 2.0 V to 5.5 V |
| Operating Temperature | -40 C to +85 C (Industrial) |
| ADC | 10-bit, up to 8 channels |
| Timers | 2 x 8-bit, 1 x 16-bit |
| Serial Interfaces | USART, MSSP (SPI / I2C) |
| ICSP / ICD | Yes (RB6/RB7) |
| Instruction Execution Time | 200 ns at 4 MHz / 20 MHz oscillator with 4x PLL = 5 MIPS; see datasheet for speed grades |
| MSL Level | 3 (168 hours) |
| RoHS Status | Compliant |
PIC16F877T-04I/PT Pin Configuration
| Pin 1 | MCLR/VPP — Master Clear (Reset) input / ICSP programming voltage |
| Pin 2 | RA0/AN0 — PORTA bit 0 / Analog input channel 0 |
| Pin 3 | RA1/AN1 — PORTA bit 1 / Analog input channel 1 |
| Pin 4 | RA2/AN2/VREF- — PORTA bit 2 / Analog input 2 / Voltage reference negative |
| Pin 5 | RA3/AN3/VREF+ — PORTA bit 3 / Analog input 3 / Voltage reference positive |
| Pin 6 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input (open-drain) |
| Pin 7 | RA5/AN4/SS — PORTA bit 5 / Analog input 4 / SPI slave select |
| Pin 8 | RE0/RD/AN5 — PORTE bit 0 / Parallel port read control / Analog 5 |
| Pin 9 | RE1/WR/AN6 — PORTE bit 1 / Parallel port write / Analog 6 |
| Pin 10 | RE2/CS/AN7 — PORTE bit 2 / Parallel port chip select / Analog 7 |
| Pin 11 | VDD — Positive supply voltage (+2.0V to +5.5V) |
| Pin 12 | VSS — Ground reference |
| Pin 13 | OSC1/CLKI — Oscillator crystal input / external clock input |
| Pin 14 | OSC2/CLKO — Oscillator crystal output / clock output |
| Pin 15 | RC0/T1OSOCC/T1CKI — PORTC bit 0 / Timer1 oscillator / Timer1 clock |
| Pin 16 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator input / CCP2 output |
| Pin 17 | RC2/CCP1 — PORTC bit 2 / Capture-Compare-PWM 1 |
| Pin 18 | RC3/SCK/SCL — PORTC bit 3 / SPI clock / I2C clock |
| Pin 19 | RD0/PSP0 — PORTD bit 0 / Parallel Slave Port bit 0 |
| Pin 20 | RD1/PSP1 — PORTD bit 1 / Parallel Slave Port bit 1 |
| Pin 21 | RD2/PSP2 — PORTD bit 2 / Parallel Slave Port bit 2 |
| Pin 22 | RD3/PSP3 — PORTD bit 3 / Parallel Slave Port bit 3 |
| Pin 23 | RC4/SDI/SDA — PORTC bit 4 / SPI data in / I2C data |
| Pin 24 | RC5/SDO — PORTC bit 5 / SPI data out |
| Pin 25 | RC6/TX/CK — PORTC bit 6 / USART TX / synchronous clock |
| Pin 26 | RC7/RX/DT — PORTC bit 7 / USART RX / synchronous data |
| Pin 27 | RD4/PSP4 — PORTD bit 4 / Parallel Slave Port bit 4 |
| Pin 28 | RD5/PSP5 — PORTD bit 5 / Parallel Slave Port bit 5 |
| Pin 29 | RD6/PSP6 — PORTD bit 6 / Parallel Slave Port bit 6 |
| Pin 30 | RD7/PSP7 — PORTD bit 7 / Parallel Slave Port bit 7 |
| Pin 31 | VSS — Ground reference (second VSS) |
| Pin 32 | VDD — Positive supply (second VDD) |
| Pin 33 | RB0/INT — PORTB bit 0 / External interrupt |
| Pin 34 | RB1 — PORTB bit 1 |
| Pin 35 | RB2 — PORTB bit 2 |
| Pin 36 | RB3/PGM — PORTB bit 3 / Low-voltage ICSP programming enable |
| Pin 37 | RB4 — PORTB bit 4 |
| Pin 38 | RB5 — PORTB bit 5 |
| Pin 39 | RB6/PGC — PORTB bit 6 / ICSP clock (programming/debugging) |
| Pin 40 | RB7/PGD — PORTB bit 7 / ICSP data (programming/debugging) |
| Pin 41 | NC — Not connected |
| Pin 42 | NC — Not connected |
| Pin 43 | NC — Not connected |
| Pin 44 | NC — Not connected |
Typical Applications
PIC16F877T-04I/PT is suitable for 6 applications: Industrial Control Systems, Sensor Interfacing and Data Acquisition, Motor Control and PWM Drive, Consumer Electronics and Appliance Control, Educational and Hobby Electronics, Automotive Subsystems (Non-Safety).
Industrial Control Systems
The PIC16F877T-04I/PT's 33 I/O pins, integrated 10-bit ADC, and 2.0V to 5.5V wide supply range make it ideal for industrial control panels and PLC sub-modules. The 368 bytes of RAM and 14 KB FLASH comfortably host modbus-style polling firmware and PID control loops, while the 4 MHz core delivers deterministic 200 ns instruction timing for precise signal sampling. The /PT 44-TQFP footprint allows compact PCB designs in DIN-rail mounted enclosures, and the industrial -40C to +85C temperature range covers factory floor ambient conditions. Per Microchip application note AN563, this family is widely deployed in factory automation sub-systems and process control instruments.
Recommended
Sensor Interfacing and Data Acquisition
With 8 ADC channels at 10-bit resolution and dual USART / MSSP interfaces, the PIC16F877T-04I/PT is well suited for multi-sensor data acquisition front-ends. The internal 4 MHz oscillator and 256-byte EEPROM provide ample headroom for storing calibration coefficients and recent sample history. The 200 ns instruction execution enables high-rate sampling of up to 50 kS/s aggregate, suitable for temperature, pressure, and flow sensors in instrumentation. The 33 I/O pins support both digital sensor flags and analog inputs simultaneously. Engineers commonly pair this MCU with SPI-based ADCs or digital sensors in lab and field instrumentation.
Recommended
Motor Control and PWM Drive
The PIC16F877T-04I/PT's three timer modules (2 x 8-bit + 1 x 16-bit) generate the PWM channels needed for brushed DC motor speed control, stepper drive sequencing, and small BLDC commutation. The 14 KB FLASH supports state-machine control firmware with look-up tables for sinusoidal commutation. The wide VDD range (2.0V to 5.5V) allows direct logic-level interfacing with 3.3V or 5V gate drivers, while 33 I/O pins handle Hall-effect inputs, fault flags, and current sense signals. Microchip application note AN847 documents RC servo and stepper implementations on this family, confirming 4 MHz operation is sufficient for sub-millisecond update loops in hobby and industrial motor drivers.
Recommended
Consumer Electronics and Appliance Control
The PIC16F877T-04I/PT provides the right balance of low cost, small TQFP footprint, and rich peripherals for white goods, kitchen appliances, and consumer HVAC controls. The integrated 10-bit ADC reads thermistor and potentiometer inputs, while USART enables communication with display modules and main user-interface boards. The 256-byte EEPROM stores user-set preferences and cycle counters without external memory. At $8.25 per unit at qty 1000 (as of 2026-09-21), the part fits cost-engineered BOMs in mass-market appliance designs. Microchip's PIC16F family has been deployed in tens of millions of washing machines and microwave ovens.
Recommended
Educational and Hobby Electronics
The PIC16F877T-04I/PT is a standard teaching MCU in universities and embedded systems courses because the 35 single-word instruction set is approachable for first-time programmers. The 4 MHz speed grade simplifies timing analysis in labs, while ICSP via RB6/RB7 enables quick classroom reflashing using Microchip's PICkit 3 or ICD 4 programmers. The 44-TQFP package fits standard breadboard-adapter PCBs, allowing student prototypes to be wired without SMT soldering. Microchip's MPLAB X IDE and XC8 compiler are freely available, supporting the same PIC16F877 architecture used here.
Recommended
Automotive Subsystems (Non-Safety)
The PIC16F877T-04I/PT serves non-safety automotive subsystems such as climate control panels, body controllers, and lighting modules where automotive AEC-Q100 is not required. The 33 I/O pins interface with switches, LEDs, and LIN bus transceivers, while the 10-bit ADC reads sensor inputs from the body control area. The -40C to +85C industrial temperature range covers cabin environments, and the robust PIC16F architecture has decades of automotive field reliability history. For under-hood or safety-critical applications, migrate to AEC-Q100 qualified PIC16F family members such as PIC16F18877-I/PT.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F877T-04I/PT — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F877-04I/PT | PIC16F877T-04E/PT | PIC16F877-20I/PT | PIC16F877-04I/P | PIC16F874T-04I/PT |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 44-TQFP (10x10) | 44-TQFP (10x10) - same | 44-TQFP (10x10) - same | 44-TQFP (10x10) - same | 40-PDIP - different | 44-TQFP (10x10) - same |
| CPU Speed | 4 MHz / 1 MIPS | 4 MHz / 1 MIPS | 4 MHz / 1 MIPS | 20 MHz / 5 MIPS | 4 MHz / 1 MIPS | 4 MHz / 1 MIPS |
| FLASH Memory | 14 KB | 14 KB | 14 KB | 14 KB | 14 KB | 7 KB |
| RAM | 368 bytes | 368 bytes | 368 bytes | 368 bytes | 368 bytes | 192 bytes |
| EEPROM | 256 bytes | 256 bytes | 256 bytes | 256 bytes | 256 bytes | 256 bytes |
| I/O Pins | 33 | 33 | 33 | 33 | 33 | 33 |
| Temperature Range | -40C to +85C (Industrial) | -40C to +85C (Industrial) | -40C to +125C (Extended) | -40C to +85C (Industrial) | -40C to +85C (Industrial) | -40C to +85C (Industrial) |
| Operating Voltage | 2.0V to 5.5V | 2.0V to 5.5V | 2.0V to 5.5V | 2.0V to 5.5V | 2.0V to 5.5V | 2.0V to 5.5V |
| Approx. Unit Price @ Qty 100 | $10.20 | ~$9.80 | ~$11.00 | ~$12.00 | ~$9.50 | ~$9.20 |
Key Differentiators
- Tape-and-reel packaging for automated SMT assembly (vs PIC16F877-04I/PT)
- Extended temperature grade option exists in same footprint (vs PIC16F877T-04E/PT)
- 5x faster clock upgrade available in same package (vs PIC16F877-20I/PT)
- Proven PIC16F877 architecture with 256-byte EEPROM (vs PIC16F874T-04I/PT)
Design Notes
Place a 0.1 uF decoupling capacitor within 5 mm of each VDD pin (pins 11 and 32) and a bulk 10 uF tantalum or ceramic at the board's VDD entry point. The dual VDD/VSS pins on the TQFP package must both be connected - leaving either VDD pin floating results in intermittent logic errors and increased EMI susceptibility. Verify supply rise time stays below the POR (Power-On Reset) spec of 0.05 V/ms in your worst-case ramp scenario.
Keep the oscillator traces (OSC1/OSC2, pins 13/14) shorter than 12 mm and isolated from high-current switching nodes by at least 5 mm of grounded copper. The 44-TQFP package (10x10 mm) provides adequate thermal dissipation for normal 4 MHz operation, but ground the central thermal pad if present on your footprint variant. Route ICSP lines RB6 (PGC, pin 39) and RB7 (PGD, pin 40) so they remain accessible for in-circuit programming without jumpering the production board.
The PIC16F877T-04I/PT PORTA pins RA0-RA5 are multiplexed with ADC inputs and shared analog/digital functions. To minimize digital noise coupling into ADC conversions, configure unused PORTA pins as outputs driving low, and avoid toggling adjacent PORTA bits during ADC acquisition. For precise ADC sampling, add a 10 nF bypass capacitor at the VREF+ pin (RA3) if used as a voltage reference. Per datasheet DS30292C, the recommended acquisition time is 19.72 us at 4 MHz with 10-bit ADC.
Do not leave the MCLR pin (pin 1) floating - the internal weak pull-up is insufficient for reliable operation in noisy industrial environments. Add an external 10 kohm pull-up to VDD, optionally with a series diode and capacitor for ICSP programming isolation. Also, when using the PICkit 3 or ICD 4 for ICSP, ensure RB3 (PGM, pin 36) is not held low externally or low-voltage programming will be blocked. The configuration bits must be set to enable the correct oscillator mode (HS, XT, or RC) - HS is required for reliable 4 MHz external crystal operation.
Compliance Information
RoHS compliant per Microchip product page. Not AEC-Q100 qualified - for automotive applications use AEC-Q100 qualified PIC16F family members. QS-9000 quality certification per Microchip's QA system (per 1999 certification of PICmicro 8-bit MCUs).