PIC16F877T-04/PQ - 8-bit PIC MCU, 14KB Flash, 4MHz, 44-MQFP | Microchip
MPN: PIC16F877T-04/PQ ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $9.95 | $9.95 |
| 10 | $8.92 | $89.20 |
| 100 | $7.85 | $785.00 |
| 500 | $7.1 | $3,550.00 |
| 1,000 | $6.5 | $6,500.00 |
PIC16F877T-04/PQ Overview
An 8-bit microcontroller (MCU) is a single-chip computer that integrates a CPU, RAM, Flash program memory, EEPROM data memory, and a rich set of peripherals onto one IC. The PIC16F877 sits within the broader taxonomy of microcontroller -> embedded controller -> semiconductor device, and its RISC architecture makes it suitable for real-time control applications where deterministic instruction timing simplifies firmware design.
Key features of the PIC16F877T-04/PQ include 368 bytes of RAM, 256 bytes of EEPROM data memory, 33 digital I/O pins, three timers, a 10-bit Analog-to-Digital Converter with up to 8 channels, a USART, MSSP (SPI/I2C), and a Parallel Slave Port. The “-04” suffix indicates the 4 MHz maximum operating frequency grade, and the “T” suffix denotes Tape & Reel packaging for high-volume SMT assembly.
The device integrates a Harvard-architecture RISC core, 14-bit instruction word, and brown-out-reset / power-on-reset / watchdog timer for robust embedded operation. The wide operating voltage range (2.0 V to 5.5 V) and four oscillator modes (RC, HS, XT, LP) allow trade-offs between speed, power, and external component cost. The 10-bit ADC makes it well suited to sensor-interface designs where mixed-signal integration reduces BOM.
Typical applications include industrial control panels, HVAC sensor nodes, motor-control daughter boards, instrumentation front-ends, automotive body modules, and educational/development platforms where the PIC16 architecture is widely taught and supported by MPLAB X IDE and the XC8 compiler toolchain.
When designing with the PIC16F877T-04/PQ, observe the 44-MQFP land pattern and reflow profile (JEDEC J-STD-020). The MCU’s wide 2.0–5.5 V supply range allows direct operation from a 3.3 V or 5 V rail, but the ADC absolute accuracy is improved with a clean analog supply and proper PCB partitioning.
This page synthesizes distributor pricing, drop-in pin-compatible alternatives from the PIC16F family, and practical design notes not consolidated on the manufacturer datasheet.
Drop-in alternatives for PIC16F877T-04/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-04/PQ (same form factor and footprint) — differing in Package, Timers, Operating Temperature, Communication, Core Architecture.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F877-04/PQ
✅ Drop-In✓ In Stock
$5.7 / Unit
View Datasheet →PIC16F877-04I/PQ
✅ Drop-In✓ In Stock
$4.35 / Unit
View Datasheet →PIC16F877-20/PQ
✅ Drop-In✓ In Stock
$10.3927 / Unit
View Datasheet →PIC16F874-04/PQ
✅ Drop-In✓ In Stock
$5.9 / Unit
View Datasheet →PIC16F877-04E/PQ
✅ Drop-In✓ In Stock
$5.72 / Unit
View Datasheet →PIC16F877T-04/L
✅ Drop-In✓ In Stock
$8.4 / Unit
View Datasheet →PIC16F877T-04/PQ Maximum Ratings & Electrical Characteristics
| Core | PIC16 8-bit RISC |
| Instruction Set Width | 14-bit |
| Program Memory Type | Flash |
| Program Memory Size | 14 KB (8K x 14 words) |
| CPU Speed | 4 MHz |
| Instruction Execution Time | 200 ns |
| RAM | 368 bytes |
| EEPROM Data Memory | 256 bytes |
| I/O Pins | 33 |
| ADC | 10-bit, up to 8 channels |
| Timers | 3 (Timer0, Timer1, Timer2) |
| Communication | USART, MSSP (SPI / I2C), PSP |
| Operating Voltage | 2.0 V to 5.5 V |
| Operating Temperature | 0°C to +70°C (Commercial) |
| Package | 44-pin MQFP (10x10 mm) |
| Packaging | Tape & Reel |
| Mounting Type | Surface Mount |
PIC16F877T-04/PQ Pin Configuration
| Pin 1 | MCLR/VPP — Master Clear (reset) input / programming voltage |
| 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 VREF- |
| Pin 5 | RA3/AN3/VREF+ — PORTA bit 3 / Analog input 3 / ADC VREF+ |
| 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 / Read control for PSP / Analog input 5 |
| Pin 9 | RE1/WR/AN6 — PORTE bit 1 / Write control for PSP / Analog input 6 |
| Pin 10 | RE2/CS/AN7 — PORTE bit 2 / Chip Select for PSP / Analog input 7 |
| Pin 11 | VDD — Positive supply (2.0 V to 5.5 V) |
| Pin 12 | VSS — Ground reference |
| Pin 13 | OSC1/CLKIN — Oscillator input / external clock input |
| Pin 14 | OSC2/CLKOUT — 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 |
| 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 transmit / USART clock |
| Pin 26 | RC7/RX/DT — PORTC bit 7 / USART receive / 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 (2.0 V to 5.5 V) |
| 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 / LVP programming entry |
| Pin 37 | RB4 — PORTB bit 4 |
| Pin 38 | RB5 — PORTB bit 5 |
| Pin 39 | RB6/PGC — PORTB bit 6 / ICSP clock |
| Pin 40 | RB7/PGD — PORTB bit 7 / ICSP data |
| Pin 41 | NC — Not connected |
| Pin 42 | NC — Not connected |
| Pin 43 | NC — Not connected |
| Pin 44 | NC — Not connected |
Typical Applications
PIC16F877T-04/PQ is suitable for 6 applications: Industrial Sensor Interface Module, HVAC Climate Control Board, Educational MCU Development Platform, Automotive Body Control Module, Motor Control Daughter Board, Instrumentation Front-End with LCD.
Industrial Sensor Interface Module
The PIC16F877T-04/PQ is well matched to industrial sensor-interface modules thanks to its 10-bit ADC with up to 8 analog input channels, 33 digital I/O lines, and integrated USART plus MSSP for SPI/I2C sensor chains. Operating from 2.0 V to 5.5 V it accepts power directly from a 24 V-derived 5 V or 3.3 V rail, while the brown-out reset and watchdog timer harden the design against supply transients on factory floors. Engineers typically route analog sensors through AN0–AN7 with proper guarding, then drive relays or opto-isolated outputs from PORTB and PORTD, with the USART bridging to an RS-485 transceiver. Compared to a discrete op-amp + ADC + MCU solution, the integrated peripherals reduce BOM cost and PCB area.
Recommended
HVAC Climate Control Board
In HVAC climate-control boards the PIC16F877T-04/PQ reads multiple analog temperature sensors via its 10-bit ADC, drives triac outputs through opto-isolated I/O, and uses the USART to talk to a wall-mounted thermostat or BMS gateway. The 256-byte EEPROM is sufficient for storing user setpoints, scheduling profiles, and diagnostic logs, while the 14 KB Flash holds the PID control loop plus display menu state machines. The 2.0–5.5 V supply tolerance accommodates rectified 24 VAC-derived rails with simple linear regulation. Designers benefit from the 33 I/O pins to drive seven-segment displays, keypads, fan relays, and compressor contactors from a single chip without external I/O expanders.
Recommended
Educational MCU Development Platform
The PIC16F877T-04/PQ is a classic teaching microcontroller because its 35-instruction RISC core and 14-bit instruction word are simple enough for undergraduates to master in a single semester. The 44-MQFP package exposes every peripheral pin — USART, MSSP, PSP, ADC, timers — without muxing, so lab exercises can demonstrate UART communication, I2C EEPROM interfacing, and analog sampling without compromise. MPLAB X IDE with the free XC8 compiler provides full C and assembly support, and the ICSP header allows in-circuit programming on the lab board. The 4 MHz speed grade keeps power consumption low so USB-powered boards run cool without heatsinks.
Recommended
Automotive Body Control Module
Automotive body-control modules use the PIC16F877T-04/PQ or its industrial-grade sibling to read door switches, light sensors, and potentiometer inputs through the 10-bit ADC, then drive window motors, mirror actuators, and lamp relays through MOSFET-driver I/O pins. The PIC16F877-04I/PQ industrial variant extends the temperature range to -40°C to +85°C, sufficient for cabin electronics though under-the-hood designs should select AEC-Q100 qualified parts. The 256-byte EEPROM stores user preferences such as seat position and mirror settings, while the USART bridges to the body CAN gateway via an external MCP2515 CAN controller. Designers appreciate that the 33 I/O lines consolidate what would otherwise need an I/O expander plus a smaller MCU.
Recommended
Motor Control Daughter Board
For low-voltage brushed-DC or stepper motor control daughter boards the PIC16F877T-04/PQ supplies three timers — Timer0 for tick generation, Timer1 for RPM measurement via capture input, and Timer2 for PWM — plus a 10-bit ADC to read current sense amplifiers and back-EMF. The MSSP port drives stepper-driver chips such as the A3967 in SPI mode, while the USART logs telemetry back to a host controller. At 4 MHz the device produces PWM frequencies suitable for sub-1 kHz motor control loops without CPU saturation. The wide 2.0–5.5 V supply tolerance simplifies sharing logic and motor-rail regulation stages.
Recommended
Instrumentation Front-End with LCD
Bench-top instrumentation such as handheld multimeters, panel meters, and laboratory data loggers use the PIC16F877T-04/PQ to scan a 4x4 keypad via PORTB interrupts, drive a character LCD in 4-bit mode through PORTC, and digitize analog inputs through the 10-bit ADC. The 14 KB Flash is enough for menu engines, calibration constants, and linearization routines, while the 256-byte EEPROM stores last-measurement history. The 33 I/O lines comfortably support the LCD, keypad, status LEDs, buzzer, and a UART debug port simultaneously. Compared to a 28-pin PIC16 alternative, the 44-MQFP package eliminates I/O multiplexing and simplifies firmware.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F877T-04/PQ — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F877-04/PQ | PIC16F877-04I/PQ | PIC16F877-20/PQ | PIC16F874-04/PQ | PIC16F877-04E/PQ |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 44-MQFP (10x10 mm) | 44-MQFP (10x10 mm) - same | 44-MQFP (10x10 mm) - same | 44-MQFP (10x10 mm) - same | 44-MQFP (10x10 mm) - same | 44-MQFP (10x10 mm) - same |
| CPU Speed | 4 MHz | 4 MHz | 4 MHz | 20 MHz | 4 MHz | 4 MHz |
| Program Flash | 14 KB | 14 KB | 14 KB | 14 KB | 7 KB | 14 KB |
| RAM | 368 B | 368 B | 368 B | 368 B | 192 B | 368 B |
| EEPROM | 256 B | 256 B | 256 B | 256 B | 128 B | 256 B |
| I/O Pins | 33 | 33 | 33 | 33 | 33 | 33 |
| Operating Temperature | 0°C to +70°C (Commercial) | 0°C to +70°C | -40°C to +85°C (Industrial) | 0°C to +70°C | 0°C to +70°C | 0°C to +70°C |
| Parallel Slave Port | Yes | Yes | Yes | Yes | Yes | Yes |
Key Differentiators
- Tape & Reel factory packaging for high-volume SMT assembly (vs PIC16F877-04/PQ (Tray))
- Same 44-MQFP footprint as PIC16F877 family siblings (vs PIC16F887-I/P (DIP-40))
- 4 MHz speed grade optimized for low EMI and low power (vs PIC16F877-20/PQ (20 MHz))
Design Notes
Place one 100 nF ceramic decoupling capacitor as close as possible to each VDD pin (pin 11 and pin 32) and a bulk 10 µF tantalum or aluminum capacitor on the same rail within 25 mm of the package. The PIC16F877T-04/PQ can operate from 2.0 V to 5.5 V, but the ADC accuracy degrades if the supply ripple exceeds 50 mVpp; route noisy digital VDD through a ferrite bead to a separate analog AVdd node. Brown-out-reset should be enabled in the configuration word (BOREN=1) for any supply derived from rectified mains or a battery that can dip below 2 V during cranking transients.
The 44-MQFP package has a 10x10 mm body with 0.8 mm pitch gull-wing leads. Use a land pattern that complies with IPC-7351 nominal-density MQFP footprint with at least 0.4 mm solder-resist dams between pads to prevent bridging during reflow. Route all 33 I/O signals on the outer layer with short stubs to adjacent bypass caps; place the ICSP header (PGD/PGC/MCLR/VSS/VDD) on the same board edge as the MCU so production programming does not require fixture cables. A 4-layer stack-up with continuous ground plane beneath the device is strongly recommended to keep digital switching noise out of the analog AN0–AN7 inputs.
Do not leave the MCLR/VPP pin floating — it must be pulled to VDD through a 10 kΩ resistor with a 100 nF capacitor to VSS to filter noise spikes that can cause spurious resets. When using the MSSP in I2C mode, the SDA and SCL pins (RC4/RC3) are open-drain and require pull-up resistors of 2.2 kΩ to 10 kΩ depending on bus capacitance; do not enable the internal weak pull-ups by accident as they are too weak for multi-node I2C buses. Also, the PSP pins (RD0–RD7, RE0–RE2) default to digital I/O; configure the PSPMODE bit only if you actually need parallel-slave communication.
Compliance Information
RoHS/REACH compliance and lead-free finish status were not present in the verified web data; confirm with the distributor or manufacturer datasheet before placing production orders. This part is NOT AEC-Q100 qualified; for automotive designs use the PIC16F877-04I/PQ industrial variant or a newer AEC-Q100 PIC16 family member.