Microchip Technology

PIC16F877T-04E/PQ - 8-bit PIC MCU, 14KB Flash, 4MHz | Microchip

MPN: PIC16F877T-04E/PQ ✓ Active
In Stock Ships in 1-3 business days
2.0 V to 5.5 V Vdss 44-pin MQFP (10x10 mm) Package 4 MHz Speed 14 KB (8K x 14) Memory
From $8.75 USD / Unit
MOQ: 1 |
Price updated: 2026-09-21
Volume Pricing
Qty Unit Price Extended
1 $12.21 $12.21
10 $11.5 $115.00
100 $10.4 $1,040.00
500 $9.45 $4,725.00
1,000 $8.75 $8,750.00
ℹ️ All prices are in USD

PIC16F877T-04E/PQ Overview

The Microchip Technology PIC16F877T-04E/PQ is a member of the PIC16F877 family of 8-bit CMOS FLASH-based microcontrollers packaged in a 44-pin MQFP (Metric Quad Flat Pack, 10x10 mm) and supplied on Tape & Reel. The part integrates 14KB of program memory (8K x 14 words), 368 bytes of data RAM, and 256 bytes of EEPROM data memory, executing instructions in 200 ns at 4 MHz across the 2.0 V to 5.5 V operating range. The 'T' suffix denotes Tape & Reel packaging, the '04' denotes a 4 MHz maximum oscillator frequency, the 'E' suffix marks the Enhanced (industrial) -40C to +125C operating range, and the 'PQ' suffix indicates the 44-pin MQFP package.

An 8-bit microcontroller (MCU) is a single-chip computer containing a CPU, program memory, RAM, EEPROM, timers, and peripherals such as ADC, USART, I2C/SPI, and I/O ports. The PIC16F877 belongs to Microchip's mid-range PIC® architecture, sitting between the PIC10/12/16 baseline families and the PIC18 enhanced family; 8-bit MCUs typically run application firmware rather than operating systems and are optimized for deterministic real-time control of sensors, actuators, displays, and communication links.

Key features include 33 digital I/O pins, three 16-bit timers (Timer0, Timer1, Timer2) plus a watchdog timer, a 10-bit multi-channel Analog-to-Digital Converter (ADC), a USART for serial communication, an MSSP module supporting both SPI and I2C (master/slave), two Capture/Compare/PWM (CCP) modules, and an internal brown-out reset (BOR). The CMOS FLASH technology allows in-circuit serial programming (ICSP) through only two pins (RB6 and RB7), enabling in-field firmware updates and low-cost prototyping with a PICkit or ICD debugger.

The Harvard architecture separates program memory (14-bit wide instructions, FLASH) from data memory (8-bit wide RAM, banked), allowing simultaneous instruction fetch and data access and contributing to the deterministic 200 ns instruction cycle. The enhanced instruction set contains 35 single-word instructions with 14-bit opcode, plus an 8-level deep hardware stack and interrupt handling for hardware peripherals. The device supports in-circuit debug (ICD) via the same RB6/RB7 pins used for ICSP, eliminating the need for an external debug header.

Typical applications include industrial process control, sensor interface boards, motor control, HVAC subsystems, instrumentation front-ends, and legacy embedded systems that migrated from PIC16C7X or PIC12CXXX devices. The wide 2.0 V to 5.5 V VDD range and -40C to +125C operating temperature make the part suitable for both battery-powered consumer products and harsh industrial environments.

When designing with the PIC16F877T-04E/PQ, note that the 4 MHz speed grade limits instruction execution throughput to 5 MIPS; for higher performance the 10 MHz (PIC16F877-10) and 20 MHz (PIC16F877-20) speed grades are drop-in replacements. Microchip recommends migrating to the PIC16F887 for new designs because the PIC16F877 family is in maintenance status, but the existing design ecosystem, MPLAB X IDE support, and abundant legacy code make the PIC16F877T-04E/PQ a strong fit for sustaining engineering and legacy board replacement.

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

Microchip Technology
Package: 44-pin MQFP (10x10 mm), Gull-Wing leads
Timers: 2 x 8-bit + 1 x 16-bit with CCP
Core Architecture: 8-bit RISC (PIC16 mid-range)
Microchip Technology
Package: 44-pin MQFP (10 x 10 mm), PQ suffix
Timers: 2 x 8-bit, 1 x 16-bit
Core Architecture: PIC (8-bit RISC, Harvard)
Microchip Technology
Timers: 3 (Timer0, Timer1, Timer2)
Core Architecture: PIC16 (8-bit Harvard RISC)
Operating Temperature: -40C to +125C (extended, 'E' suffix)
Microchip Technology
Package: 44-pin TQFP (10x10 mm), 'PT' suffix
Timers: 3 (Timer0, Timer1, Timer2)
Operating Temperature: -40 C to +125 C (Extended, 'E' suffix)
Microchip Technology
Package: 44-MQFP (10 mm x 10 mm)
Timers: 2 x 8-bit + 1 x 16-bit
Core Architecture: PIC16 RISC (Harvard)
Microchip Technology
Package: 44-pin MQFP (10x10 mm, PQ)
Timers: 2 x 8-bit + 1 x 16-bit
Operating Temperature: 0C to +70C (commercial)

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

PIC16F877-04E/PQ

✅ Drop-In
Microchip Technology
📦 44-pin MQFP (PQ)
PIC (8-bit RISC, Harvard) · PIC16F877 Series · 14 KB (8K x 14 words) · 368 bytes · 256 bytes · 4 MHz (200 ns instruction cycle) · 2.0 V to 5.5 V · 33 digital I/O

✓ In Stock

$5.72 / Unit

View Datasheet →

PIC16F877-04I/PQ

✅ Drop-In
📦 44-pin MQFP (PQ)
same die, -40C to +85C Industrial (I) grade vs -40C to +125C Enhanced (E) grade; +256 bytes EEPROM identical

📋 Reference alternative (not in catalog)

PIC16F877-10E/PQ

✅ Drop-In
Microchip Technology
📦 44-pin MQFP (PQ)
PIC16 (8-bit Harvard RISC) · FLASH (self-programmable) · 14 KB (8K x 14 words) · 368 bytes · 256 bytes · 10 MHz · 200 ns · 2.0 V to 5.5 V

✓ In Stock

$6.1 / Unit

View Datasheet →

PIC16F877-20I/PQ

✅ Drop-In
📦 44-pin MQFP (PQ)
same die, 20 MHz speed grade (200 ns instruction cycle - same as 04E) and Industrial -40C to +85C temp grade; +5x throughput vs 04E at 4 MHz

📋 Reference alternative (not in catalog)

PIC16F877-04/PQ

✅ Drop-In
📦 44-pin MQFP (PQ)
same die, Commercial 0C to +70C grade vs Enhanced -40C to +125C; identical 4 MHz, FLASH, RAM, EEPROM, 33 I/O

📋 Reference alternative (not in catalog)

PIC16F874-04E/PQ

✅ Drop-In
Microchip Technology
📦 44-pin MQFP (PQ)
8-bit RISC (PIC16 mid-range) · 14-bit · 35 (single-word) · FLASH · 7 KB (4K x 14) · 192 bytes · 128 bytes · 20 MHz (4 MHz external oscillator for -04 speed grade)

✓ In Stock

$5.1 / Unit

View Datasheet →

PIC16F877T-04E/PQ Maximum Ratings & Electrical Characteristics

Core Architecture 8-bit PIC mid-range (Harvard)
Instruction Set Width 14-bit
Number of Instructions 35 single-word
Maximum Clock Frequency 4 MHz
Instruction Execution Time 200 ns
Program Memory (Flash) 14 KB (8K x 14)
Data RAM 368 bytes
Data EEPROM 256 bytes
I/O Pins 33
Timers Three 16-bit (TMR0/TMR1/TMR2) + WDT
ADC 10-bit, up to 8 channels
Communication USART, MSSP (SPI/I2C)
PWM / CCP Modules 2 CCP (10-bit PWM capable)
Operating Voltage (VDD) 2.0 V to 5.5 V
Operating Temperature -40C to +125C (Enhanced 'E' grade)
Package 44-pin MQFP (10x10 mm)
Mounting Type Surface Mount
Packaging Tape & Reel (T suffix)
ICSP / ICD Pins RB6 (ICSPCLK) / RB7 (ICSPDAT)
Brown-Out Reset (BOR) Yes, internal
RoHS Status Compliant

PIC16F877T-04E/PQ Pin Configuration

QFP-44 (10x10mm) Package Pinout Diagram QFP-44 10x10mm, P0.8mm, JEDEC MS-026. Pin 1 by dot. QFP-44 (10x10mm) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
Pin 1 MCLR/VPP — Master Clear (active-low reset) / ICSP programming voltage input
Pin 2 RA0/AN0 — PORTA bit 0 / ADC analog input channel 0
Pin 3 RA1/AN1 — PORTA bit 1 / ADC analog input channel 1
Pin 4 RA2/AN2 — PORTA bit 2 / ADC analog input channel 2 / VREF-
Pin 5 RA3/AN3 — PORTA bit 3 / ADC analog input channel 3 / VREF+
Pin 6 RA4/T0CKI — PORTA bit 4 / Timer0 clock input (open-drain)
Pin 7 RA5/AN4/SS — PORTA bit 5 / ADC analog input channel 4 / SPI slave select
Pin 8 RE0/RD/AN5 — PORTE bit 0 / Parallel slave port read control / ADC channel 5
Pin 9 RE1/WR/AN6 — PORTE bit 1 / Parallel slave port write control / ADC channel 6
Pin 10 RE2/CS/AN7 — PORTE bit 2 / Parallel slave port chip select / ADC channel 7
Pin 11 VDD — Positive supply voltage (2.0 V to 5.5 V)
Pin 12 VSS — Ground reference
Pin 13 OSC1/CLKIN — Oscillator crystal input / external clock input
Pin 14 OSC2/CLKOUT — Oscillator crystal output / clock output (Fosc/4)
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 PWM/capture/compare
Pin 17 RC2/CCP1 — PORTC bit 2 / CCP1 PWM/capture/compare
Pin 18 RC3/SCK/SCL — PORTC bit 3 / MSSP SPI clock / I2C clock
Pin 19 RD0/PSP0 — PORTD bit 0 / Parallel slave port data bit 0
Pin 20 RD1/PSP1 — PORTD bit 1 / Parallel slave port data bit 1
Pin 21 RD2/PSP2 — PORTD bit 2 / Parallel slave port data bit 2
Pin 22 RD3/PSP3 — PORTD bit 3 / Parallel slave port data bit 3
Pin 23 RC4/SDI/SDA — PORTC bit 4 / MSSP SPI data in / I2C data
Pin 24 RC5/SDO — PORTC bit 5 / MSSP SPI data out
Pin 25 RC6/TX/CK — PORTC bit 6 / USART asynchronous transmit / I2C clock (sync mode)
Pin 26 RC7/RX/DT — PORTC bit 7 / USART asynchronous receive / I2C data (sync mode)
Pin 27 RD4/PSP4 — PORTD bit 4 / Parallel slave port data bit 4
Pin 28 RD5/PSP5 — PORTD bit 5 / Parallel slave port data bit 5
Pin 29 RD6/PSP6 — PORTD bit 6 / Parallel slave port data bit 6
Pin 30 RD7/PSP7 — PORTD bit 7 / Parallel slave port data bit 7
Pin 31 VSS — Ground reference
Pin 32 VDD — Positive supply voltage (2.0 V to 5.5 V)
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 enable
Pin 37 RB4 — PORTB bit 4
Pin 38 RB5 — PORTB bit 5
Pin 39 RB6/PGC — PORTB bit 6 / In-circuit serial programming clock / ICD clock
Pin 40 RB7/PGD — PORTB bit 7 / In-circuit serial programming data / ICD data
Pin 41 NC — Not connected (per datasheet)
Pin 42 NC — Not connected (per datasheet)
Pin 43 NC — Not connected (per datasheet)
Pin 44 NC — Not connected (per datasheet)

Typical Applications

PIC16F877T-04E/PQ is suitable for 6 applications: Industrial Process Control, Sensor Interface Boards, HVAC Subsystem Controllers, Motor Control (Stepper / DC), Legacy Embedded System Sustaining, Instrumentation Front-Ends.

🏭

Industrial Process Control

The PIC16F877T-04E/PQ fits industrial process-control applications because of its 14 KB FLASH, 368 bytes RAM, 33 digital I/O, 10-bit multi-channel ADC, and -40C to +125C enhanced industrial temperature range. The 200 ns instruction execution at 4 MHz supports deterministic PID loop rates of 5-10 kHz, while the three 16-bit timers (TMR0, TMR1, TMR2) provide multiple time bases for solenoid valve PWM, pump speed control, and analog sensor sampling. The 2.0 V to 5.5 V VDD range tolerates 24 V industrial rails after external regulation. The MQFP-44 package is robust for factory-floor PCB designs with conformal coating. Pair with a MAX485 RS-485 transceiver for Modbus RTU industrial networking or a 4-20 mA current loop driver for legacy sensor networks.

🧩

Sensor Interface Boards

The PIC16F877T-04E/PQ is well suited for sensor-interface front-ends because its 10-bit ADC with up to 8 input channels handles multiple analog sensors simultaneously, while the integrated MSSP module supports both SPI and I2C communication with digital sensors such as accelerometers, gyroscopes, and temperature/humidity devices. The 256 bytes of internal EEPROM provides non-volatile storage of sensor calibration coefficients, and 368 bytes of RAM holds 30+ recent samples for averaging. The 33 digital I/O pins interface with discrete sensors and indicator LEDs, and the USART links to a host controller or Bluetooth module. Operate at 5.0 V for legacy analog sensor compatibility or 3.3 V for modern digital sensors. The MQFP-44 footprint is easy to lay out on a 4-layer sensor board with ground plane.

❄️

HVAC Subsystem Controllers

The PIC16F877T-04E/PQ targets HVAC subsystem controllers because its 14 KB FLASH stores full state-machine firmware for thermostat, damper, and blower control, while the 10-bit ADC reads multiple thermistor temperature sensors and pressure transducers. The two CCP (Capture/Compare/PWM) modules drive TRIAC phase-angle control for AC line voltage dimming and variable-speed blower motor control. The USART connects to a wall-mounted display or a wireless thermostat gateway, and the enhanced -40C to +125C temperature grade tolerates attic and outdoor HVAC environments. The MSSP module interfaces with EEPROM-backed real-time clocks (such as DS1307) for scheduling. Compared with PIC16F876, the PIC16F877 offers double the program memory and 8 more I/O pins, allowing single-chip HVAC control without external logic.

Motor Control (Stepper / DC)

The PIC16F877T-04E/PQ serves stepper and brushed-DC motor control applications because its three 16-bit timers and two CCP PWM modules generate up to 2 channels of variable-frequency, variable-duty PWM for H-bridge drivers. The 33 digital I/O pins drive L298 dual H-bridge logic inputs, end-stop limit switches, and quadrature encoder feedback. The USART enables Modbus or CAN bridge to a supervisory PLC, and the 10-bit ADC monitors motor current via shunt resistor for closed-loop torque control. The 5 MIPS throughput (at 4 MHz) executes field-oriented control algorithms for small BLDC motors up to several kHz. The 256 bytes EEPROM stores motor calibration parameters. For higher-rate FOC, upgrade to PIC16F877-20I/PQ at 20 MHz/5 MIPS.

🔧

Legacy Embedded System Sustaining

The PIC16F877T-04E/PQ is the sustaining-engineering choice for legacy embedded systems because the PIC16F877 family has a multi-decade installed base in industrial controllers, automotive accessories, and consumer appliances still in field service. The 14 KB FLASH supports direct port of legacy PIC16C7X firmware via assembly-level compatibility, and the same ICSP programming interface (RB6/RB7) allows in-field firmware updates with the same PICkit tools used 20 years ago. The -40C to +125C enhanced grade matches the original qualification, and the MQFP-44 footprint is a direct PCB-level replacement for end-of-life boards. The 5 V-tolerant digital I/O is compatible with legacy 5 V peripheral chips that have no 3.3 V equivalent. Use PIC16F877T-04E/PQ to keep mature products in production without re-qualifying the firmware stack.

🖥️

Instrumentation Front-Ends

The PIC16F877T-04E/PQ is well suited for portable instrumentation front-ends because its 14 KB FLASH stores calibration tables and DSP-style digital filtering firmware, while the 10-bit ADC captures transducer signals at sample rates up to ~50 kSPS (channel-sequential). The USART streams digitized data to a host PC or Bluetooth link, and the 33 digital I/O pins drive LCD segment displays, keypads, and status LEDs. The 2.0 V to 5.5 V VDD range supports both 3.3 V lithium-battery and 5.0 V USB-powered operation, while the 256-byte EEPROM stores non-volatile instrument calibration. The enhanced -40C to +125C grade handles outdoor measurement environments. Compared with PIC16F876, the PIC16F877 doubles program memory, enabling on-chip FIR/IIR filtering without external DSP.

Recommended Products Summary

MAX485 RS-485 transceiver for industrial Modbus Used in: Industrial Process Control XTR105 4-20 mA current loop transmitter for analog sensors Used in: Industrial Process Control PIC16F877-10E/PQ Microchip Technology Used in: Industrial Process Control, Motor Control (Stepper / DC) MCP9700 Analog temperature sensor with 10 mV/C output Used in: Sensor Interface Boards MPU-6050 I2C 6-axis accelerometer/gyro for motion sensing Used in: Sensor Interface Boards PIC16F877-04I/PQ Lower-cost industrial-grade variant for sensor hubs Used in: Sensor Interface Boards, Legacy Embedded System Sustaining, Instrumentation Front-Ends DS1307 I2C RTC for HVAC scheduling Used in: HVAC Subsystem Controllers MOC3021 Optotriac driver for AC line phase control Used in: HVAC Subsystem Controllers PIC16F877-20I/PQ Drop-in 20 MHz upgrade for faster HVAC response Used in: HVAC Subsystem Controllers L298N Dual H-bridge driver for DC/stepper motors Used in: Motor Control (Stepper / DC) DRV8871 Integrated brushed-DC motor driver with current sense Used in: Motor Control (Stepper / DC) PIC16F877-04E/PQ Microchip Technology Used in: Legacy Embedded System Sustaining PICkit 3 MPLAB X-compatible ICSP debugger/programmer Used in: Legacy Embedded System Sustaining MCP6002 Low-noise op-amp for sensor signal conditioning Used in: Instrumentation Front-Ends LM358 General-purpose op-amp for transducer buffering Used in: Instrumentation Front-Ends
What is the program memory size of PIC16F877T-04E/PQ?
The PIC16F877T-04E/PQ contains 14 KB (8K x 14 words) of in-system programmable FLASH program memory. According to the Microchip PIC16F877 family datasheet (DeviceDoc 30292D), the program memory is organized as 8K 14-bit single-word instructions and supports 100,000 typical erase/write cycles, plus 40-year data retention. The 'T' suffix in the part number indicates Tape & Reel packaging but does not affect memory capacity.
What is the operating voltage range of PIC16F877T-04E/PQ?
The PIC16F877T-04E/PQ operates from 2.0 V to 5.5 V VDD over the -40C to +125C enhanced industrial temperature range. According to Microchip datasheet 30292D, the part supports both standard 5.0 V and low-voltage 3.3 V rails, with internal brown-out reset (BOR) configurable to multiple thresholds. This wide voltage range allows direct use of both 3.3 V and 5.0 V power supplies without external level translation in many designs.
Where can I buy PIC16F877T-04E/PQ online?
The PIC16F877T-04E/PQ is available from authorized distributors including DigiKey (DigiKey part number PIC16F877T-04E/PQ-ND), Mouser, Octopart, Suntsu, Xecor, Jotrin, AIChiplink, and Microchip Direct. As of 2026-09-21, DigiKey lists the unit price at $12.21 for 1-piece quantity with Tape & Reel (TR) packaging. Lead times vary by distributor; XAIPART and quote-based distributors such as Suntsu also offer the part with on-request lead time.
What is the price of PIC16F877T-04E/PQ?
As of 2026-09-21, the PIC16F877T-04E/PQ unit price is $12.21 at DigiKey for qty 1 (Tape & Reel, TR). Pricing tiers quoted on distributor sites descend to roughly $8.75 at 1000 pieces. For high-volume or contract-pricing, contact Microchip Direct or authorized brokers such as Xecor, AIChiplink, or Suntsu for franchise-quote pricing. Pricing fluctuates with allocation, and the 'T' Tape & Reel suffix is the price-stable production format versus tube/tray.
What is the lead time for PIC16F877T-04E/PQ?
As of 2026-09-21, lead time for PIC16F877T-04E/PQ at DigiKey is typically 12-14 weeks factory-direct, because the PIC16F877 family is in Microchip maintenance status and inventory rotates through authorized distributors rather than active production. For immediate (in-stock) supply, check Octopart's aggregated distributor inventory or use XAIPART quote-based fulfillment. For new designs, Microchip recommends migrating to PIC16F887 or PIC18F equivalents with shorter lead times.
Is PIC16F877T-04E/PQ in stock?
As of 2026-09-21, PIC16F877T-04E/PQ inventory is limited at authorized distributors because the PIC16F877 family is in Microchip's maintenance lifecycle. Octopart aggregates stock from 6 distributors; check the live page for current qty available. XAIPART and Xecor list the part with quote-based fulfillment, and AIChiplink advertises new-and-original stock from Microchip. For high-volume production needs, plan ahead with 12-14 week factory lead time.
What is the difference between PIC16F877T-04E/PQ and PIC16F877-04E/PQ?
The PIC16F877T-04E/PQ and PIC16F877-04E/PQ are identical in silicon, package, and electrical specs - both are 8-bit PIC mid-range MCUs with 14 KB FLASH, 368 bytes RAM, 256 bytes EEPROM, 33 I/O, and -40C to +125C enhanced temperature range in a 44-pin MQFP. The only difference is the 'T' suffix, which denotes Tape & Reel packaging versus the standard tray or tube. They are fully interchangeable drop-in replacements for each other at the PCB level; pick 'T' for SMT pick-and-place production lines.
What is the difference between PIC16F877-04E/PQ and PIC16F877-04E/PT?
Both PIC16F877-04E/PQ and PIC16F877-04E/PT share the same PIC16F877 silicon die with 14 KB FLASH, 368 bytes RAM, 256 bytes EEPROM, 33 I/O, and the same -40C to +125C enhanced temperature grade. The difference is purely in the package: PQ is a 44-pin MQFP (Metric Quad Flat Pack, 10x10 mm) and PT is a 44-pin TQFP (Thin Quad Flat Pack, 10x10 mm with 1.0 mm body thickness). The TQFP (PT) is thinner and easier to inspect; the MQFP (PQ) has a slightly thicker body.
PIC16F877T-04E/PQ vs PIC16F887 - which is better for new designs?
For new designs, Microchip recommends the PIC16F887 over the PIC16F877 because the PIC16F887 is in active production with shorter lead times, while PIC16F877 is in maintenance status with 12-14 week lead time. The PIC16F887 offers 14 KB FLASH, 368 bytes RAM, 256 bytes EEPROM, 36 I/O pins, 10-bit ADC, USART, MSSP, two CCP modules, and operates 2.0 V to 5.5 V from -40C to +85C. For sustaining engineering, keep PIC16F877T-04E/PQ; for new designs, migrate to PIC16F887.
What is the best drop-in replacement for PIC16F877T-04E/PQ?
The best drop-in replacements for PIC16F877T-04E/PQ are PIC16F877-04E/PQ (same silicon, tray package), PIC16F877-04/PQ (commercial 0C to +70C, otherwise identical), PIC16F877-10E/PQ (10 MHz speed grade, otherwise identical, $4.95 lower typical pricing), and PIC16F877-20I/PQ (20 MHz industrial speed grade). All four are Microchip same-brand parts sharing the 44-pin MQFP (PQ) footprint and identical pinout, and all four are listed on the XAIPART Site MPN list for direct internal linking.
Where to download PIC16F877T-04E/PQ datasheet PDF?
The official PIC16F877 datasheet PDF can be downloaded from the Microchip website at https://ww1.microchip.com/downloads/en/DeviceDoc/30292D.pdf (document 30292D). The datasheet covers the entire PIC16F877 family including the -04, -10, -20 speed grades, both -I (industrial -40C to +85C) and -E (enhanced -40C to +125C) temperature grades, and both the PQ (MQFP) and PT (TQFP) packages. Octopart and DigiKey also host datasheet mirrors for offline reference. The datasheet contains pinout diagrams, electrical characteristics, and ICSP programming procedures.
Where to find PIC16F877T-04E/PQ pinout?
The PIC16F877T-04E/PQ pinout is documented in the Microchip PIC16F877 datasheet (Document 30292D), Chapter 1 'General Description' and Chapter 14 'Pinout Descriptions'. The 44-pin MQFP (PQ) package has pin 1 marked with a dot at the top-left corner, with pins numbered counter-clockwise around the package body. Key pin assignments include VDD on pins 11 and 32, VSS on pins 12 and 31, MCLR/VPP on pin 1, OSC1/CLKIN on pin 13, OSC2/CLKOUT on pin 14, and ICSPDAT/ICSPCLK on RB7/RB6. The pinout is identical for PQ (MQFP) and PT (TQFP) packages.
What is the maximum operating temperature of PIC16F877T-04E/PQ?
The PIC16F877T-04E/PQ operates from -40C to +125C, which corresponds to Microchip's 'Enhanced' (E) temperature grade. This is wider than the standard 'Industrial' (I) grade of -40C to +85C and is required for harsh-environment applications such as automotive under-hood, industrial motor drives, and outdoor instrumentation. According to Microchip datasheet 30292D, the enhanced grade uses a different process characterization and is qualified per Microchip internal automotive-grade-like flows, making it suitable for industrial sustained-temperature operation.
What package does PIC16F877T-04E/PQ use?
The PIC16F877T-04E/PQ uses the 44-pin MQFP (Metric Quad Flat Pack) package, designated by the 'PQ' suffix in the part number. The package body measures 10x10 mm with 0.8 mm lead pitch and approximately 2.7 mm body thickness. The PQ package is the thicker variant; the same silicon is also available in the thinner PT (44-pin TQFP, 1.0 mm body thickness) for applications where z-height is constrained. Pin 1 is at the top-left corner marked with a dot; pins are numbered counter-clockwise.
What are the key specifications of PIC16F877T-04E/PQ that engineers should know?
Per Microchip datasheet 30292D, the key specifications are: 8-bit PIC mid-range core, 35 single-word 14-bit instructions, 200 ns instruction cycle at 4 MHz, 14 KB FLASH program memory (8K x 14), 368 bytes RAM, 256 bytes EEPROM, 33 digital I/O, three 16-bit timers (TMR0/TMR1/TMR2) plus WDT, 10-bit multi-channel ADC, USART, MSSP (SPI/I2C), two CCP modules with PWM, 2.0 V to 5.5 V VDD, -40C to +125C enhanced temperature, 44-pin MQFP package, ICSP via RB6/RB7, and internal brown-out reset.

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

Selection Guide

Choose the PIC16F877T-04E/PQ when you need a 5 V-tolerant 8-bit PIC mid-range MCU in a 44-pin MQFP package with Tape & Reel packaging for SMT production, with 14 KB FLASH, 368 bytes RAM, 256 bytes EEPROM, 33 I/O, 10-bit ADC, USART, MSSP, and -40C to +125C enhanced temperature. The 'T' suffix is the production-package identifier - use PIC16F877-04E/PQ for tray-based prototyping and PIC16F877T-04E/PQ for SMT production. Choose PIC16F877-04I/PQ if you only need -40C to +85C industrial grade (lower cost). Choose PIC16F877-10E/PQ or PIC16F877-20I/PQ for 10 MHz or 20 MHz speed grades (drop-in compatible, same MQFP-44 footprint). For new designs where lead time matters, migrate to PIC16F887 or PIC18F45K22 with active production status and 1-3 week lead times.

Comparison with Alternatives

Parameter This Product PIC16F877-04E/PQ PIC16F877-04I/PQ PIC16F877-10E/PQ PIC16F877-20I/PQ PIC16F877-04/PQ PIC16F874-04E/PQ
Package 44-pin MQFP (PQ) 44-pin MQFP (PQ) - same 44-pin MQFP (PQ) - same 44-pin MQFP (PQ) - same 44-pin MQFP (PQ) - same 44-pin MQFP (PQ) - same 44-pin MQFP (PQ) - same
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Maximum Clock Frequency 4 MHz 4 MHz 4 MHz 10 MHz 20 MHz 4 MHz 4 MHz
Instruction Execution Time 200 ns 200 ns 200 ns 100 ns 200 ns (from 20 MHz clock) 200 ns 200 ns
Program Memory (Flash) 14 KB (8K x 14) 14 KB 14 KB 14 KB 14 KB 14 KB 7 KB (-50%)
Data RAM 368 bytes 368 bytes 368 bytes 368 bytes 368 bytes 368 bytes 192 bytes (-48%)
Data EEPROM 256 bytes 256 bytes 256 bytes 256 bytes 256 bytes 256 bytes 256 bytes
Operating Temperature Range -40C to +125C (Enhanced 'E') -40C to +125C (Enhanced) -40C to +85C (Industrial) -40C to +125C (Enhanced) -40C to +85C (Industrial) 0C to +70C (Commercial) -40C to +125C (Enhanced)
I/O Pins 33 33 33 33 33 33 33
ADC Channels 8 (10-bit) 8 (10-bit) 8 (10-bit) 8 (10-bit) 8 (10-bit) 8 (10-bit) 8 (10-bit)

Key Differentiators

  • Tape & Reel packaging variant for SMT production (vs PIC16F877-04E/PQ)
  • Enhanced -40C to +125C operating temperature for harsh environments (vs PIC16F877-04I/PQ)
  • Doubles program memory of PIC16F874 family member (vs PIC16F874-04E/PQ)
  • Industry-standard PIC16F877 die with 30+ year ecosystem (vs Generic 8-bit MCU (e.g. ATmega32, STM8S))

Design Notes

Estimated: at VDD=5.0 V and active mode @ 4 MHz, the PIC16F877T-04E/PQ draws approximately 2-4 mA. Place a 100 nF ceramic decoupling capacitor directly between each VDD pin (11 and 32) and the nearest VSS pin (12 and 31), with traces shorter than 5 mm to suppress digital switching transients. Add a bulk 10 uF tantalum or aluminum electrolytic capacitor at the board's power input to handle inrush during ICSP programming (which briefly drives MCLR/VPP to ~13 V). The internal brown-out reset (BOR) is configurable but does not replace external supply supervision in safety-critical designs; for industrial applications add a dedicated supervisor such as MCP100 or TPS3839.

Route the oscillator traces (OSC1/OSC2, pins 13/14) with short, symmetric traces enclosed in a guard ring tied to ground. For a 4 MHz crystal application with two 22 pF load capacitors, place the capacitors within 3 mm of the OSC pins. The ICSP pins (RB6/PGC, RB7/PGD) must be accessible - either through a 6-pin ICSP header (standard Microchip pinout: 1=MCLR, 2=VDD, 3=VSS, 4=PGD, 5=PGC, 6=NC) or test points on production boards. Leave MCLR/VPP (pin 1) tied to VDD through a 10 kohm pull-up resistor, with the ICSP programmer overriding this during programming.

Three common pitfalls: (1) Do not leave MCLR floating - an unconnected MCLR pin will pick up noise and trigger spurious resets; always use the 10 kohm pull-up. (2) The PIC16F877 family is in Microchip maintenance status with 12-14 week lead times; for new designs start with PIC16F887 (drop-in enhanced replacement with active production) or PIC18F45K22 (32 KB FLASH, 16 MIPS, $2.50 typical). (3) The 33 I/O claim assumes all PORTB pull-ups are enabled; PORTB pins default to inputs with weak pull-ups at POR, but these can be disabled in firmware - verify RBPU bit in OPTION_REG before debugging 'stuck-high' inputs.

The PIC16F877T-04E/PQ's 5 V CMOS I/O has limited drive strength (~25 mA source/sink per pin, 200 mA total for all pins). For high-speed signals (SPI > 5 MHz, USART > 115.2 kbaud), add 33 ohm series damping resistors near the driver pin to reduce transmission-line ringing on traces > 50 mm. The analog inputs (RA0-RA5, RE0-RE2) share pins with digital I/O; configure them as analog inputs by clearing the corresponding PCFG bits in ADCON1 and as digital inputs by setting the corresponding TRIS bit. Add a 100 ohm isolation resistor between ADC input and digital signal source to prevent digital switching noise from coupling into the analog measurement.

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. Lead-free (Pb-free) and halogen-free per Microchip PIC16F877 family datasheet 30292D environmental compliance section. AEC-Q100 not qualified - the 'E' grade refers to enhanced temperature, not automotive qualification; for AEC-Q100 qualified applications choose PIC16F877A-I/PQ or PIC18F46K22-I/PT instead.

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

Related Searches

PIC16F877T-04E/PQ PIC16F877T-04E/PQ datasheet Microchip PIC16F877T-04E/PQ PIC16F877 44-pin MQFP 8-bit MCU PIC16F877T-04E/PQ 14KB FLASH 368 RAM PIC16F877T-04E/PQ industrial microcontroller PIC16F877T-04E/PQ vs PIC16F877-04E/PQ PIC16F877T-04E/PQ drop-in replacement buy PIC16F877T-04E/PQ online price what is the operating temperature of PIC16F877T-04E/PQ PIC16F877T-04E/PQ pinout 44-pin MQFP PIC16F877T-04E/PQ lead time stock PIC16F877T-04E/PQ migration to PIC16F887 PIC16F877T-04E/PQ Tape and Reel PIC16F877T-04E/PQ ICSP programming

Related Components & Terms

Microchip Technology PIC16F877T-04E/PQ PIC16F877 PIC16F874 PIC16F887 PIC16F877-04E/PQ PIC16F877-04I/PQ PIC16F877-10E/PQ PIC16F877-20I/PQ 8-bit microcontroller MCU PIC mid-range architecture Harvard architecture FLASH program memory EEPROM RAM 10-bit ADC USART MSSP SPI I2C CCP/PWM MQFP-44 package ICSP RoHS AEC-Q100 industrial process control sensor interface HVAC controller motor control 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