Microchip Technology

PIC16F877T-04E/PT - 8-bit 4MHz 14KB Flash MCU 44-TQFP | Microchip

MPN: PIC16F877T-04E/PT ✓ Active
In Stock Ships in 1-3 business days
5 V (4.0 V to 5.5 V range typical for F-series) Vdss 44-pin TQFP (10x10 mm), 'PT' suffix Package 4 MHz Speed 14 KB (8K x 14 words) Memory
From $6.1 USD / Unit
MOQ: 1 |
Price updated: 2026-09-21
Volume Pricing
Qty Unit Price Extended
1 $9.5 $9.50
10 $8.55 $85.50
100 $7.6 $760.00
500 $6.85 $3,425.00
1,000 $6.1 $6,100.00
ℹ️ All prices are in USD

PIC16F877T-04E/PT Overview

The Microchip Technology PIC16F877T-04E/PT is a CMOS Flash-based 8-bit PIC microcontroller from the PIC16F877 family, integrating 14KB of Flash program memory (8K x 14 words), 368 bytes of SRAM, and 256 bytes of EEPROM in a 44-pin TQFP (10x10 mm) package. It executes instructions in 200 ns at 4 MHz maximum clock and operates from a 5V supply across an extended industrial temperature range of -40 C to +125 C. The PIC16F877 series remains one of the most widely deployed mid-range 8-bit microcontrollers in industrial, consumer, and legacy automotive subsystems.

What is an 8-bit microcontroller? An 8-bit MCU (microcontroller) is a single-chip computer that integrates a CPU, non-volatile program memory (Flash/ROM), volatile working memory (RAM), EEPROM, and a fixed set of peripherals (timers, ADC, USART, I2C/SPI, GPIO) on one die. The PIC16F877 sits in the mid-range PIC taxonomy (PIC10/12/14/16/18/24/32), positioned between baseline PIC12/16 and enhanced PIC18 cores. With its Harvard RISC architecture, 35 single-word instructions, and 14-bit instruction word, the PIC16F877 family delivers deterministic timing suitable for direct register-level control loops.

Key features of the PIC16F877T-04E/PT include 8 channels of 10-bit analog-to-digital conversion (ADC), three timers (Timer0, Timer1, Timer2), a USART with synchronous/asynchronous modes, a Master Synchronous Serial Port (MSSP) supporting SPI and I2C (both Master and Slave), a capture/compare/PWM (CCP) module, and up to 33 digital I/O pins across five ports (PORTA through PORTE). The device supports in-circuit serial programming (ICSP) via two dedicated pins, enabling bootloader-free field firmware updates.

The PIC16F877 architecture uses a 14-bit instruction word with a two-stage pipeline, a hardware multiplier (8x8), and a programmable code-protection scheme. Brown-out reset (BOR), power-on reset (POR), and a watchdog timer (WDT) with its own on-chip RC oscillator protect against code runaway and brown-out events. The Flash program memory supports 100,000 erase/write cycles typical and >40-year endurance, making the part suitable for long-life industrial equipment.

Typical applications for the PIC16F877T-04E/PT include industrial automation controllers, sensor signal conditioning, motor control (low-side PWM), HVAC thermostats, smart metering, educational development boards, and legacy upgrade designs. The 'E' suffix denotes the Extended (industrial) temperature grade, and 'T' indicates Tape and Reel packaging, while the 'PT' suffix specifies the 44-pin TQFP (10x10 mm) form factor.

When designing with this part, ensure that your linker file reserves the top of Flash for the ICSP/DEBUG vector (0x1F00 area on this family) and that your in-circuit programmer is configured for mid-range PIC16F parts, not PIC18F. Designers migrating to newer alternatives should consider the PIC16F887, which Microchip lists as a newer device with enhanced peripherals.

This page synthesizes distributor pricing, drop-in alternatives within the same 44-pin TQFP footprint, and practical design notes not found in the manufacturer datasheet alone.

Drop-in alternatives for PIC16F877T-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 PIC16F877T-04E/PT (same form factor and footprint) — differing in Package, Timers, Core Architecture, Operating Temperature, ADC.

Microchip Technology
Package: 44-TQFP (10x10 mm)
Timers: 2 x 8-bit + 1 x 16-bit
Core Architecture: PIC (RISC, Harvard)
Microchip Technology
Package: 44-pin TQFP (PT), 10x10 mm
Timers: 2 x 8-bit + 1 x 16-bit
Core Architecture: PIC16 (8-bit, 14-bit instruction word)
Microchip Technology
Package: 44-pin TQFP (MQFP-44), 10 x 10 mm, 2 mm height, MS-022
Timers: Two 8-bit + One 16-bit (3 total)
Core Architecture: PIC16, 8-bit RISC, 14-bit instruction word
Microchip Technology
Package: 44-pin PLCC (J-lead, 16.59 x 16.59 mm)
Timers: 2 x 8-bit + 1 x 16-bit
Core Architecture: PIC 8-bit RISC (Harvard)
Microchip Technology
Package: 44-pin MQFP (10x10 mm)
Timers: Three 16-bit (TMR0/TMR1/TMR2) + WDT
Core Architecture: 8-bit PIC mid-range (Harvard)
Microchip Technology
Package: 44-pin TQFP (10x10 mm)
Timers: 2 x 8-bit, 1 x 16-bit
Operating Temperature: -40 C to +85 C (Industrial)

Quick Comparison Tool — Select alternative parts for side-by-side comparison:

PIC16F877-04E/PT

✅ Drop-In
Microchip Technology
📦 44-pin TQFP (10x10 mm)
PIC (RISC, Harvard) · 8 bit · 14 bit · Flash · 14 KB (8K x 14) · 368 byte · 256 byte · 4 MHz

✓ In Stock

$3.25 / Unit

View Datasheet →

PIC16F877-04I/PT

✅ Drop-In
📦 44-pin TQFP (10x10 mm)
Industrial -40 C to +85 C (not Extended -40 C to +125 C), same 44-TQFP (PT), Tray packaging, same Flash/RAM/EEPROM

📋 Reference alternative (not in catalog)

PIC16F877T-04E/PQ

✅ Drop-In
Microchip Technology
📦 44-pin MQFP (10x10 mm)
8-bit PIC mid-range (Harvard) · 14-bit · 35 single-word · 4 MHz · 200 ns · 14 KB (8K x 14) · 368 bytes · 256 bytes

✓ In Stock

$8.75 / Unit

View Datasheet →

PIC16F877T-04E/L

✅ Drop-In
Microchip Technology
📦 44-pin PLCC (L)
PIC 8-bit RISC (Harvard) · FLASH · 14 KB (8K x 14 words) · 368 bytes · 256 bytes · 4 MHz · 200 ns (at 4 MHz, 5V) · 2.0 V to 5.5 V

✓ In Stock

$7.45 / Unit

View Datasheet →

PIC16F877A-E/PT

✅ Drop-In
Microchip Technology
📦 44-pin TQFP (10x10 mm)
PIC16 (8-bit, 14-bit instruction word) · 20 MHz (200 ns instruction cycle) · 5 MIPS · 14 KB (8K x 14 words) · 368 bytes · 256 bytes · 33 · 10-bit, 8 channels

✓ In Stock

$7.8 / Unit

View Datasheet →

PIC16F877AT-I/PTG

✅ Drop-In
Microchip Technology
📦 44-pin TQFP (10x10 mm)
PIC16, 8-bit RISC, 14-bit instruction word · Flash · 14 KB (8K x 14 words) · 368 bytes · 256 bytes · 20 MHz · 4.0 V to 5.5 V (4.5 V to 5.5 V for industrial per source) · -40 C to +85 C (Industrial, "I" grade)

✓ In Stock

$6.2 / Unit

View Datasheet →

PIC16F877T-04E/PT Maximum Ratings & Electrical Characteristics

Series PIC 16F
Core Processor PIC
Core Size 8-bit
Architecture RISC, Harvard
Instruction Set 35 single-word instructions
Instruction Word Width 14-bit
Max CPU Speed 4 MHz
Instruction Cycle Time 200 ns
Program Memory (Flash) 14 KB (8K x 14 words)
EEPROM Data Memory 256 bytes
RAM Data Memory 368 bytes
Operating Voltage (VDD) 5 V (4.0 V to 5.5 V range typical for F-series)
I/O Pins 33 (PORTA-PORTE)
ADC 8 channels x 10-bit
Timers 3 (Timer0, Timer1, Timer2)
Serial Interfaces USART + MSSP (SPI/I2C)
PWM/CCP Modules 1 x CCP
Package 44-pin TQFP (10x10 mm), 'PT' suffix
Operating Temperature -40 C to +125 C (Extended, 'E' suffix)
Mounting Type Surface Mount
ICSP Programming Yes (In-Circuit Serial Programming)
Flash Endurance 100,000 erase/write cycles typical
RoHS Status Compliant

PIC16F877T-04E/PT Pin Configuration

Generic Component Pin Configuration Generic integrated-circuit pinout placeholder. Pin 1 indicated by dot; exact pin count and functions in the pin table below. 1 N 2 N-1 3 N-2 4 N-3 Pin Configuration See pin table below for pin functions Package-specific diagram not available
Pin 1 MCLR/VPP — Master Clear (reset) input / programming voltage input
Pin 2 RA0/AN0 — PORTA bit 0 / Analog input 0
Pin 3 RA1/AN1 — PORTA bit 1 / Analog input 1
Pin 4 RA2/AN2/VREF- — PORTA bit 2 / Analog input 2 / ADC negative reference
Pin 5 RA3/AN3/VREF+ — PORTA bit 3 / Analog input 3 / ADC positive reference
Pin 6 RA4/T0CKI — PORTA bit 4 / Timer0 clock input
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 input 5
Pin 9 RE1/WR/AN6 — PORTE bit 1 / Parallel port write control / Analog input 6
Pin 10 RE2/CS/AN7 — PORTE bit 2 / Parallel port chip select / Analog input 7
Pin 11 VDD — Positive supply (5V)
Pin 12 VSS — Ground reference
Pin 13 OSC1/CLKI — Oscillator input / external clock input
Pin 14 OSC2/CLKO — Oscillator output / clock output
Pin 15 RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator output / Timer1 clock input
Pin 16 RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator input / CCP2 output
Pin 17 RC2/CCP1 — PORTC bit 2 / CCP1 PWM output
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 / USART clock
Pin 26 RC7/RX/DT — PORTC bit 7 / USART RX / USART 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
Pin 32 VDD — Positive supply (5V)
Pin 33 RB0/INT — PORTB bit 0 / External interrupt input
Pin 34 RB1 — PORTB bit 1
Pin 35 RB2 — PORTB bit 2
Pin 36 RB3/PGM — PORTB bit 3 / Low-voltage ICSP programming input
Pin 37 RB4 — PORTB bit 4
Pin 38 RB5 — PORTB bit 5
Pin 39 RB6/PGC — PORTB bit 6 / ICSP clock (programming/debug)
Pin 40 RB7/PGD — PORTB bit 7 / ICSP data (programming/debug)
Pin 41 NC — Not connected (per datasheet package drawing)
Pin 42 NC — Not connected (per datasheet package drawing)
Pin 43 NC — Not connected (per datasheet package drawing)
Pin 44 NC — Not connected (per datasheet package drawing)

Typical Applications

PIC16F877T-04E/PT is suitable for 7 applications: Industrial Automation Controller, Sensor Signal Conditioning & Data Logging, Stepper and DC Motor Control (Low-Side PWM), HVAC Thermostat and Building Automation, Smart Energy Metering & Utility Monitoring, Educational Development Board & Training Platform, Consumer Appliance Control Board.

🏭

Industrial Automation Controller

The PIC16F877T-04E/PT is widely deployed as an industrial automation I/O controller, driving relays, contactors, and opto-isolated 24V inputs through its 33 GPIO across PORTA-PORTE. Its Extended -40 C to +125 C temperature rating covers factory floor and outdoor cabinet environments without derating. The on-chip 8-channel 10-bit ADC reads 4-20 mA loop transmitters or 0-10 V sensor outputs with adequate resolution for process monitoring, while the 35-instruction RISC core deterministically services a 1-2 ms control loop. Compared with discrete logic designs, the F877 collapses a board's worth of glue logic into one IC, simplifying BOM and EMI.

🧩

Sensor Signal Conditioning & Data Logging

The PIC16F877T-04E/PT is a strong fit for multi-channel sensor signal conditioning nodes because its 8-channel 10-bit ADC multiplexes thermocouple, RTD bridge, or load-cell amplifiers without an external analog MUX. The 256-byte EEPROM stores per-channel calibration coefficients that survive power cycles, while 368 bytes of SRAM buffer scan tables. A real-time clock (DS1307) on the I2C MSSP bus timestamps samples; the USART forwards them to a host PC or PLC. The Extended temperature range suits outdoor weather stations and refrigerated monitoring. For higher-resolution designs, migrate to PIC16F887 (14 ADC channels).

🔧

Stepper and DC Motor Control (Low-Side PWM)

The PIC16F877T-04E/PT drives small unipolar stepper motors and brushed DC motors through its CCP PWM module and PORTB/PORTC outputs, switching external MOSFET half-bridges at up to ~20 kHz PWM. The 200 ns instruction cycle (at 4 MHz) lets the firmware sample current-sense ADCs and adjust duty cycle within each PWM period, implementing a closed-loop torque controller. Watchdog timer and brown-out reset protect against code runaway and supply dips, which are common in motor-driver environments with inductive kickback. For multi-axis CNC or servo control, migrate to PIC18F or dsPIC33.

🏭

HVAC Thermostat and Building Automation

The PIC16F877T-04E/PT runs low-power HVAC thermostat firmware with the F877's on-chip ADC reading thermistor temperature, the USART linking to a wall-mounted network, and the MSSP I2C bus driving a 16-segment LCD or character LCD. The CCP module generates the call-for-heat PWM signal sent to a furnace relay or 24 VAC valve. Brown-out reset and watchdog timer guard against the noisy 24 VAC environment typical of HVAC control boards. PIC16F877A variants with EEPROM-backed user schedules are commonly deployed for setpoint programming.

Smart Energy Metering & Utility Monitoring

The PIC16F877T-04E/PT serves as the metering MCU in single-phase smart electricity meters, using the on-chip 10-bit ADC to sample a current-transformer-derived waveform at 1-2 kHz and compute RMS power. The MSSP SPI bus feeds results to an external ADE7753 energy-measurement IC for accuracy, while EEPROM records kWh totals. The 256-byte on-chip EEPROM plus external 24LC series EEPROM logs tamper and time-of-use data. Watchdog timer prevents meter lockup after brownouts. For revenue-grade metering, migrate to PIC18F46K22 with 12-bit ADC and higher MIPS.

🎓

Educational Development Board & Training Platform

The PIC16F877T-04E/PT is the canonical microcontroller for university embedded systems and vocational training because of its 44-pin TQFP breakout, ample Flash/RAM/EEPROM, and full peripheral set (ADC, timers, USART, SPI, I2C, PWM) that students can exercise in a single lab session. The 35-instruction RISC core fits a single lecture on assembly programming, and ICSP allows firmware updates without removing the chip from the breadboard. Textbooks such as Mazidi's 'PIC Microcontroller and Embedded Systems' use the F877 as the reference target. Universities can prototype on F877 dev boards and migrate to PIC16F887 for production.

🔧

Consumer Appliance Control Board

The PIC16F877T-04E/PT appears in washing machines, dishwashers, microwave ovens, and small kitchen appliances where its 33 GPIO can drive seven-segment LED displays, keypad matrices, buzzer, and triac-fired heater or motor relays. The 14 KB Flash stores appliance cycle profiles and fault logs, while the 256-byte EEPROM retains user preferences through power cycles. The CCP PWM drives the universal motor speed control, and the MSSP I2C bus connects to a peripheral temperature or humidity sensor. AEC-Q100 is NOT qualified on F877, so automotive-class appliances require PIC16F877A-I/PT or migration to PIC18F family.

Recommended Products Summary

PIC16F877-04E/PT Microchip Technology Used in: Industrial Automation Controller PIC16F877A-I/LG Microchip Technology Used in: Industrial Automation Controller MCP2551 CAN transceiver for industrial fieldbus extension Used in: Industrial Automation Controller DS1307 I2C RTC for sample timestamping Used in: Sensor Signal Conditioning & Data Logging MCP9700 Analog temperature sensor feeding ADC channel Used in: Sensor Signal Conditioning & Data Logging 24LC256 I2C EEPROM for long-term data logging Used in: Sensor Signal Conditioning & Data Logging, Smart Energy Metering & Utility Monitoring IRFZ44N N-channel MOSFET for low-side PWM switching Used in: Stepper and DC Motor Control (Low-Side PWM) L293D H-bridge driver for bipolar stepper motors Used in: Stepper and DC Motor Control (Low-Side PWM) PIC16F877-04I/PT Industrial temp variant for non-extreme motor enclosures Used in: Stepper and DC Motor Control (Low-Side PWM) MCP9701 Low-power analog temperature sensor Used in: HVAC Thermostat and Building Automation HD44780 LCD Character LCD via MSSP for thermostat UI Used in: HVAC Thermostat and Building Automation MCP1700 3.3V LDO for analog supply rail Used in: HVAC Thermostat and Building Automation ADE7753 Energy measurement IC over SPI Used in: Smart Energy Metering & Utility Monitoring PIC16F877T-04E/PQ Microchip Technology Used in: Smart Energy Metering & Utility Monitoring PICkit 3 Microchip ICSP programmer/debugger for student labs Used in: Educational Development Board & Training Platform MPLAB X IDE Official Microchip development toolchain Used in: Educational Development Board & Training Platform PIC16F887-I/PT Newer migration target with same package Used in: Educational Development Board & Training Platform MOC3021 Optotriac for heater/load switching Used in: Consumer Appliance Control Board ULN2003A Darlington array for relay/buzzer drivers Used in: Consumer Appliance Control Board PIC16F877AT-I/PTG Microchip Technology Used in: Consumer Appliance Control Board
What is the PIC16F877T-04E/PT?
The PIC16F877T-04E/PT is a Microchip PIC16F877 family 8-bit Flash microcontroller in a 44-pin TQFP (10x10 mm) package rated for the Extended -40 C to +125 C industrial temperature range. According to Microchip datasheet 30292C, it integrates 14 KB of Flash program memory, 368 bytes of SRAM, 256 bytes of EEPROM, an 8-channel 10-bit ADC, three timers, USART, and MSSP (SPI/I2C). The 'T' indicates Tape and Reel packaging and '04E' indicates the 4 MHz maximum clock with Extended temperature grade.
What is the operating voltage of PIC16F877T-04E/PT?
The PIC16F877T-04E/PT is rated for 5 V operation with a typical operating range of 4.0 V to 5.5 V across the Extended -40 C to +125 C temperature window. The PIC16F877 family uses a fixed 5 V VDD rail; for sub-5 V (e.g. 3.3 V) operation, the designer must migrate to the 'LF' low-voltage variant such as PIC16LF877. Operating below 4 V on the standard F part risks Flash read instability.
How much program memory does the PIC16F877T-04E/PT have?
The PIC16F877T-04E/PT has 14 KB of Flash program memory organized as 8K x 14-bit words, allowing up to 8,192 single-word instructions to be stored. Each instruction is one 14-bit word, so code density is roughly twice that of byte-oriented 8-bit MCUs. The part also carries 368 bytes of SRAM for variables and a separate 256-byte EEPROM for non-volatile data, ideal for calibration constants and user settings.
How many ADC channels does the PIC16F877T-04E/PT have?
The PIC16F877T-04E/PT integrates an 8-channel 10-bit analog-to-digital converter with input multiplexers tied to PORTA and PORTE pins (AN0-AN7). The ADC supports both single-ended and differential conversion modes, programmable acquisition time, and selectable reference voltages (VDD/VSS or external VREF+/VREF-). Sample rate at 4 MHz FOSC is approximately 15-20 ksps, sufficient for industrial sensor monitoring and slow-loop motor control.
Where can I download the PIC16F877T-04E/PT datasheet PDF?
The official PIC16F877T-04E/PT datasheet (Microchip document DS30292C) is available at https://ww1.microchip.com/downloads/en/DeviceDoc/30292C.pdf. Distributors DigiKey and Mouser host the same PDF on their product pages, and Microchip's parametric product page at https://www.microchip.com/en-us/product/PIC16F877 links to the family datasheet. Always reference the latest revision notice (Errata) from Microchip before committing to a new design.
What is the pinout of the PIC16F877T-04E/PT (44-TQFP)?
The PIC16F877T-04E/PT in the 44-pin TQFP (10x10 mm) package exposes 33 GPIO pins distributed across PORTA (5), PORTB (8), PORTC (8), PORTD (8), and PORTE (3). Pin 1 is the MCLR/reset/VPP pin, pin 11 and 32 are VDD, pin 12 and 31 are VSS, and pins 13-14 are the crystal oscillator (OSC1/OSC2) connections. The USART, MSSP, Timer0/1/2, ADC, and CCP peripherals are multiplexed onto these ports through the TRIS and ADCON1 registers; the complete pin table is in the device datasheet.
Is the PIC16F877T-04E/PT a drop-in replacement for the PIC16F877-04I/PT?
The PIC16F877T-04E/PT (Extended -40 C to +125 C, Tape and Reel) and the PIC16F877-04I/PT (Industrial -40 C to +85 C, Tray) share the same 44-pin TQFP footprint, identical Flash/RAM/EEPROM, the same 4 MHz maximum clock, and the same peripheral set, so they are pin-to-pin compatible at the silicon level. The 'I' versus 'E' temperature grade is the only meaningful difference; the 'E' part covers a wider range. Designers can substitute either part with no PCB rework, provided the temperature rating meets the application.
What is the difference between PIC16F877 and PIC16F887?
The PIC16F887 is Microchip's newer replacement for the PIC16F877 and adds 256 bytes more RAM (368 to 192 versus the F887's 368 bytes SRAM and 256 bytes EEPROM), more ADC channels (14 versus 8), enhanced PWM (two ECCP modules instead of one CCP), a CWG complementary waveform generator, and a wider 2.0 V to 5.5 V operating range. Pinout is compatible only between selected package options; for 44-TQFP drop-in migration, the pin assignments are mostly equivalent, but the ADC channel mapping and oscillator block differ.
Where to buy PIC16F877T-04E/PT online and what is the price?
As of 2026-09-21, the PIC16F877T-04E/PT is listed by DigiKey, Mouser, Microchip Direct, Octopart-aggregated distributors, and several independent brokers including Xecor and Lisleapex, with a qty-1 unit price around USD 9.50 at tier-1 distributors. Volume pricing (qty 1000) drops to approximately USD 6.10. Stock is generally available at the major franchised distributors; lead time for full reel (Tape and Reel) orders of 1000 pieces is 4-8 weeks.
What is the lead time for PIC16F877T-04E/PT?
As of 2026-09-21, the lead time for PIC16F877T-04E/PT is typically 4-6 weeks at franchised distributors (DigiKey, Mouser, Microchip Direct) for small to moderate quantities, with 1000-piece Tape and Reel orders occasionally extending to 8 weeks due to the older mid-range PIC wafer allocation. Independent brokers (Xecor, Lisleapex, ichome) often hold spot stock for immediate shipment, but at a price premium. Designers concerned about long-term availability should qualify the PIC16F887 as a second source.
What is the best cross-brand equivalent for PIC16F877T-04E/PT?
No truly drop-in cross-brand 44-pin TQFP equivalent exists for the PIC16F877T-04E/PT because Microchip's PIC architecture, instruction set, register map, and ICSP programming protocol are unique to Microchip and not replicated by other 8-bit vendors. Pin-compatible 8-bit MCUs from Atmel/Microchip (ATmega series) or NXP (LPC series) use different cores and require both schematic and firmware redesign. The only true cross-brand 'equivalent' in functional terms is to redesign around the PIC16F887 (newer Microchip) or migrate to an ARM Cortex-M0+ MCU such as ATSAMD10.
When should I choose PIC16F877T-04E/PT over PIC16F887?
Choose the PIC16F877T-04E/PT when you must maintain an existing PIC16F877 firmware baseline, use legacy assembly code, or have an installed base that is field-serviced with the older mid-range PIC toolchain (MPLAB IDE v8, PICSTART+, PRO MATE II programmers). Choose the PIC16F887-I/PT when starting a new design, because it offers 14 ADC channels, two ECCP PWM modules, a wider 2.0-5.5 V operating range, and longer remaining lifecycle support from Microchip.
Is the PIC16F877T-04E/PT suitable for industrial automation?
The PIC16F877T-04E/PT is suitable for industrial automation thanks to its Extended -40 C to +125 C temperature range, robust Brown-out Reset (BOR), Watchdog Timer with dedicated on-chip RC oscillator, and Flash endurance of 100,000 erase/write cycles. Common industrial deployments include PLC I/O expansion boards, sensor signal conditioners, and stepper motor controllers. Its 4 MHz clock and 8-channel 10-bit ADC are sufficient for slow-loop supervisory control but not for high-speed deterministic motion control.
What are the key specifications of the PIC16F877T-04E/PT that engineers should know?
The PIC16F877T-04E/PT combines 14 KB Flash (8K x 14-bit instructions), 368 bytes SRAM, 256 bytes EEPROM, an 8-channel 10-bit ADC, three timers (Timer0/1/2), USART, MSSP supporting SPI and I2C, one CCP PWM module, 33 GPIO across 5 ports, and a 4 MHz maximum clock with 200 ns instruction cycle. It runs at 5 V across -40 C to +125 C in a 44-pin TQFP (10x10 mm) package. The combination of 35-instruction RISC core, hardware multiplier, and ICSP makes it a workhorse for legacy industrial designs.

Engineering reference data for PIC16F877T-04E/PT — comparison, design guidance, and compliance information.

Selection Guide

Choose the PIC16F877T-04E/PT when your design needs a 5V mid-range PIC16 with Extended -40 C to +125 C temperature rating in a 44-pin TQFP (10x10 mm) and you have an existing PIC16F877 firmware baseline to preserve. Choose PIC16F877-04E/PT (Tray) or PIC16F877-04I/PT (Industrial -40 to +85 C) for non-extreme-temperature designs that share the same footprint. Choose PIC16F877A-E/PT when you want to upgrade to the A-revision core while keeping the 44-TQFP footprint. Choose PIC16F887-I/PT for new designs that benefit from more ADC channels, dual PWM, and wider voltage range, but plan a firmware migration. Avoid cross-brand substitutes - the PIC16F877T-04E/PT has no true pin-compatible equivalent outside the Microchip PIC16F877 family.

Comparison with Alternatives

Parameter This Product PIC16F877-04E/PT PIC16F877-04I/PT PIC16F877T-04E/PQ PIC16F877T-04E/L PIC16F877A-E/PT PIC16F877AT-I/PTG
Package 44-TQFP (10x10 mm), PT suffix 44-TQFP (10x10 mm) - same 44-TQFP (10x10 mm) - same 44-MQFP (10x10 mm) - same body, gull-wing 44-PLCC - socket-mount, different land pattern 44-TQFP (10x10 mm) - same 44-TQFP (10x10 mm) - same
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Flash Memory 14 KB (8K x 14) 14 KB 14 KB 14 KB 14 KB 14 KB 14 KB
Max Clock Speed 4 MHz 4 MHz 4 MHz 4 MHz 4 MHz 20 MHz 20 MHz
Temperature Grade Extended -40 C to +125 C Extended -40 C to +125 C Industrial -40 C to +85 C Extended -40 C to +125 C Extended -40 C to +125 C Extended -40 C to +125 C Industrial -40 C to +85 C
Packaging Form Tape & Reel Tray Tray Tape & Reel Tape & Reel Tube Tape & Reel
EEPROM 256 bytes 256 bytes 256 bytes 256 bytes 256 bytes 256 bytes 256 bytes
ADC Channels 8 x 10-bit 8 x 10-bit 8 x 10-bit 8 x 10-bit 8 x 10-bit 8 x 10-bit 8 x 10-bit
Param Match vs This Part 100% (baseline) 100% 90% 90% 80% 95% 90%

Key Differentiators

  • Extended -40 C to +125 C temperature grade over Industrial-grade siblings (vs PIC16F877-04I/PT)
  • 20 MHz-capable core in A-revision for higher-throughput firmware (vs PIC16F877A-E/PT)
  • Microchip-recommended newer substitute available (vs PIC16F887-I/PT)

Design Notes

Place a 100 nF decoupling capacitor as close as possible to each VDD pin (pins 11 and 32 on the 44-TQFP), plus a single 10 uF bulk capacitor near the device. The PIC16F877 has two VDD pins for noise immunity; both must be decoupled. For noisy industrial environments, add a ferrite bead in series with VDD and a 10 uF tantalum bulk cap. Brown-out reset (BOR) is enabled by the configuration fuses - leave it enabled to recover cleanly from supply dips in motor-control and metering circuits. VPP (pin 1) must have a 10 k pull-up to VDD if low-voltage ICSP is not used.

Keep the 4 MHz crystal or resonator within 1 cm of pins 13-14 (OSC1/OSC2) and surround it with a ground guard ring to reduce EMI. Avoid routing PORTA analog traces across digital lines; the ADC on PORTA shares the bus with the digital I/O. Use the dedicated VREF+/VREF- pins (RA3/RA2) when ADC accuracy matters, and add a 10 nF cap on each reference pin. Place a 100 nF cap on the MCLR/VPP pin and never leave it floating during normal operation. For TQFP layout, fan out the 0.8 mm pitch pins to vias in the inner power plane.

Do not configure both the ICSP PGC/PGD (RB6/RB7) and the on-chip debug module on RB6/RB7 without planning for the resulting loss of those pins for general GPIO. Configuration word _DEBUG (W3:1) = 0 disables the debugger but frees RB6/RB7; _DEBUG = 1 keeps the debugger but RB6/RB7 are not general-purpose. When using the MSSP I2C mode, remember to set the SSPEN bit, configure the SCL release rate via the SSPADD register for the desired bus speed (100 kHz or 400 kHz), and add 4.7 k to 10 k pull-ups on SDA/SCL. The ADC requires the ADCON1 register to be set for analog mode (PCFG bits) before reading channels - forgetting this leaves pins stuck in digital mode.

When driving long cables (e.g., RS-485 to sensor) from the USART pins (RC6/RC7), add a series 100 ohm resistor and a 10 k pull-down to limit ringing. For SPI bus runs above 10 cm, lower the SCK rate and add 100 ohm source terminators. The MSSP I2C bus must never exceed 400 pF total capacitance - on long buses, add a bus extender such as MCP4725 or P82B715. The CCP1 PWM frequency is set by Timer2 - for 8-bit resolution at 10 kHz with 4 MHz FOSC, set PR2=99 and the prescaler to 1.

Compliance Information

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Qualified
Lead Free
Yes
Halogen Free
Yes
Conflict Minerals
Compliant

RoHS compliant per Microchip product page and DigiKey listing. PIC16F877 family is not AEC-Q100 qualified; for automotive applications use PIC16F877A-I/PT Q1 variants or migrate to PIC18F family.

Data verified on: 2026-09-21 — data verified and curated by XAIPART's component engineering team

Related Searches

PIC16F877T-04E/PT PIC16F877T-04E/PT datasheet Microchip PIC16F877 TQFP PIC16F877 4MHz 14KB Flash microcontroller 44-pin TQFP 8-bit PIC microcontroller PIC16F877 industrial automation PIC16F877 vs PIC16F887 PIC16F877T-04E/PT drop-in replacement PIC16F877T-04E/PT buy online PIC16F877 pinout 44-TQFP PIC16F877 ADC sample rate PIC16F877 ICSP programming PIC16F877 extended temperature grade best cross-brand replacement for PIC16F877 PIC16F877T-04E/PT price per unit

Related Components & Terms

Microchip Technology PIC16F877 PIC16F877T-04E/PT PIC16F877-04E/PT PIC16F877-04I/PT PIC16F877T-04E/PQ PIC16F877T-04E/L PIC16F877A PIC16F887 8-bit microcontroller PIC16 family mid-range PIC RISC Harvard architecture Flash memory EEPROM TQFP-44 MSSP USART I2C SPI CCP ADC ICSP brown-out reset watchdog timer RoHS AEC-Q100 industrial automation sensor signal conditioning PICkit MPLAB X IDE
Quick Quote RFQ
Fill in complete details — our sales team will respond within 24 hours
Part Number Manufacturer Package QTY Target Price Extended
Total: $0.00 USD
Quote submitted!

We will respond to your email within 24 hours

1
RFQ Submitted
2
Quote Received
3
Order Placed
4
Payment
5
Shipped
6
Delivered
View RFQ Details