PIC16F877T-04/L - 8-Bit 4MHz PIC MCU 14KB Flash 44-PLCC | Microchip
MPN: PIC16F877T-04/L ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $12.4558 | $12.46 |
| 10 | $12.5 | $125.00 |
| 100 | $11.2 | $1,120.00 |
| 500 | $9.85 | $4,925.00 |
| 1,000 | $8.4 | $8,400.00 |
| 3,000 | $17.0372 | $51,111.60 |
PIC16F877T-04/L Overview
What is a PIC16F8xx microcontroller? The PIC16F877 belongs to Microchip's mid-range PIC16 family, an 8-bit RISC architecture positioned in the broader taxonomy as: 8-bit microcontroller -> PIC microcontroller -> microcontroller unit (MCU) -> embedded controller -> semiconductor. PIC16F8xx devices execute one instruction per 200 ns cycle (4 MHz external oscillator, 1 MHz instruction clock), providing a deterministic Harvard-architecture engine that is widely used for industrial control, instrumentation, and legacy embedded designs.
Key features include 33 digital I/O pins, a 10-bit Analog-to-Digital Converter (ADC) with up to 8 channels, a USART, MSSP (SPI/I2C), capture/compare/PWM modules, two 8-bit timers plus one 16-bit timer, and in-circuit serial programming (ICSP). The device operates from 2.0 V to 5.5 V and supports 35 single-word instructions with 14-bit instruction word width.
Architecturally, the PIC16F877 uses a RISC core with 14-bit instructions, an integrated 10-bit ADC, and Flash program memory that enables in-system reprogramming. Compared to its predecessor PIC16C77, the Flash-based PIC16F877 offers faster development cycles and field-upgradeable firmware. Microchip recommends migrating to the pin-compatible PIC16F887 for new designs.
Typical applications include industrial automation controllers, HVAC control boards, sensor signal conditioning, motor driver front-ends, low-end embedded displays, and legacy test & measurement instrumentation. The wide peripheral set makes it suitable for any 8-bit application that requires ADC, serial communication, and PWM in a single device.
When designing with the PIC16F877T-04/L, ensure decoupling capacitors are placed close to VDD/VSS pairs and that the MCLR reset pin has the proper 10 kohm pull-up with a diode clamp. For new designs, prefer the pin-compatible PIC16F887 which offers enhanced peripherals and longer lifecycle support.
This page synthesizes distributor pricing, drop-in alternatives, and design notes beyond the manufacturer datasheet summary, helping engineers evaluate lifecycle status and replacement strategy.
Drop-in alternatives for PIC16F877T-04/L — 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/L (same form factor and footprint) — differing in Package, Timers, Operating Temperature, ADC, Communication.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F877-04/L
✅ Drop-In✓ In Stock
$3.82 / Unit
View Datasheet →PIC16F877-04I/P
✅ Drop-In✓ In Stock
$4.95 / Unit
View Datasheet →PIC16F877-20/L
✅ Drop-In✓ In Stock
$4.85 / Unit
View Datasheet →PIC16F877-20I/L
✅ Drop-In✓ In Stock
$9.05 / Unit
View Datasheet →PIC16F877A-E/L
✅ Drop-In✓ In Stock
$7.4 / Unit
View Datasheet →PIC16F877A-I/LG
✅ Drop-In✓ In Stock
$4.78 / Unit
View Datasheet →PIC16F877T-04/L Maximum Ratings & Electrical Characteristics
| Core | PIC16 8-bit RISC |
| Program Memory Type | Flash |
| Program Memory Size | 14 KB (8K x 14) |
| RAM | 368 bytes |
| EEPROM | 256 bytes |
| Maximum CPU Speed | 4 MHz (4 MIPS) |
| Instruction Cycle Time | 200 ns |
| Instruction Word Width | 14 bits |
| Operating Voltage | 2.0 V to 5.5 V |
| I/O Pins | 33 |
| ADC | 10-bit, 8 channels |
| Timers | 2 x 8-bit, 1 x 16-bit |
| Communication | USART, MSSP (SPI/I2C) |
| PWM Modules | 2 (CCP) |
| Operating Temperature | 0C to +70C (Commercial /L) |
| Package | 44-pin PLCC (J-Lead, 16.59 x 16.59 mm) |
| Mounting Type | Surface Mount |
| ICSP | Yes (In-Circuit Serial Programming) |
PIC16F877T-04/L Pin Configuration
| Pin 1 | MCLR/VPP — Master Clear (reset) input / programming voltage |
| Pin 2 | RA0/AN0 — PORTA bit 0 / analog channel 0 |
| Pin 3 | RA1/AN1 — PORTA bit 1 / analog channel 1 |
| Pin 4 | RA2/AN2/VREF- — PORTA bit 2 / analog channel 2 / VREF- |
| Pin 5 | RA3/AN3/VREF+ — PORTA bit 3 / analog channel 3 / VREF+ |
| Pin 6 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| Pin 7 | RA5/AN4/SS — PORTA bit 5 / analog channel 4 / SPI slave select |
| Pin 8 | RE0/RD/AN5 — PORTE bit 0 / read control / analog channel 5 |
| Pin 9 | RE1/WR/AN6 — PORTE bit 1 / write control / analog channel 6 |
| Pin 10 | RE2/CS/AN7 — PORTE bit 2 / chip select / analog channel 7 |
| Pin 11 | VDD — Positive supply voltage |
| Pin 12 | VSS — Ground |
| 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 / clock input |
| Pin 16 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator input / CCP2 |
| 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 / clock |
| Pin 26 | RC7/RX/DT — PORTC bit 7 / USART RX / 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 |
| Pin 32 | VDD — Positive supply voltage |
| 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 |
| 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 (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-04/L is suitable for 6 applications: Industrial Automation Controllers, HVAC Control Boards, Sensor Signal Conditioning Modules, Motor Driver Front-End Controllers, Low-End Embedded Display Controllers, Legacy Test and Measurement Instrumentation.
Industrial Automation Controllers
The PIC16F877T-04/L fits industrial automation controllers thanks to its 33 digital I/O pins, 8-channel 10-bit ADC, and PWM outputs sufficient for driving relays, solenoids, and small motors. With 14 KB Flash and 368 bytes RAM, the device runs state-machine ladder logic, PID control loops, and Modbus RTU slave protocols over the integrated USART. The 4 MHz clock provides deterministic 200 ns instruction cycles essential for time-critical control. Designers benefit from Microchip's MPLAB X IDE and PICkit programmer ecosystem, reducing time-to-prototype. Typical circuit roles include PLC sub-modules, conveyor belt controllers, and process sensor aggregators. Commercial 0-70C temp range suits factory-floor enclosures.
Recommended
HVAC Control Boards
In HVAC control boards, the PIC16F877T-04/L reads temperature and humidity sensors through its 10-bit ADC, drives triacs for blower motor speed control via PWM, and communicates with thermostats over I2C or UART. The 14 KB Flash accommodates custom scheduling algorithms, while the 256-byte EEPROM stores user preferences across power cycles. Operating from 2.0 V to 5.5 V, the MCU is compatible with 3.3 V and 5 V sensor rails. The integrated USART enables communication with variable-frequency drives (VFDs) and remote building management systems. Compared to discrete logic designs, this single-chip approach reduces BOM cost and PCB area while improving reliability.
Recommended
Sensor Signal Conditioning Modules
The PIC16F877T-04/L functions as a sensor signal conditioning front-end by digitizing analog signals from thermocouples, RTDs, pressure transducers, and load cells via its 10-bit ADC. The CCP/PWM modules drive sensor excitation currents and excitation PWM, while the MSSP peripheral communicates with digital sensors over SPI or I2C. With 14 KB program memory, the device supports multi-point calibration tables and linearization routines stored in Flash. Typical role is bridging analog sensor signals to industrial fieldbus networks (RS-485, CAN, Modbus). Compared to standalone ADC chips, this integrated approach reduces component count and improves noise immunity through digital filtering in firmware.
Recommended
Motor Driver Front-End Controllers
In motor driver front-ends, the PIC16F877T-04/L generates PWM signals for H-bridge gate drivers, reads back EMF or current shunt voltages through its 10-bit ADC, and implements closed-loop speed/torque control. The 16-bit timer/counter provides precise PWM duty cycle resolution at the 4 MHz instruction rate, while the capture/compare modules decode quadrature encoder feedback. The 33 I/O pins can interface multiple motor drivers simultaneously. The Flash memory stores motor-specific tuning parameters and fault thresholds. Compared to pure analog motor control, this digital approach enables adaptive control algorithms and field upgradeability through ICSP.
Recommended
Low-End Embedded Display Controllers
The PIC16F877T-04/L serves as a low-end embedded display controller, driving character LCDs, LED matrices, or small graphic OLEDs through its GPIO and SPI peripherals. The 14 KB Flash stores multilingual font tables, menu structures, and graphic bitmaps, while the 368 bytes RAM serves as display buffer memory. The USART enables communication with host microcontrollers for content updates. Operating at 4 MHz provides sufficient throughput for refresh rates up to 60 Hz on small displays. Compared to dedicated LCD controllers, this integrated approach consolidates UI logic and display control in a single chip. Commercial temp range suits indoor appliance and consumer electronics.
Recommended
Legacy Test and Measurement Instrumentation
The PIC16F877T-04/L powers legacy test and measurement instruments including digital multimeters, bench-top calibrators, and lab data loggers. Its 10-bit ADC achieves sufficient resolution for voltage, current, and resistance measurements, while the USART streams measurement data to PCs over RS-232. The 256-byte EEPROM stores calibration coefficients and user presets. The 33 I/O pins control rotary encoder inputs, keypad scanning, and relay-based range switching. Compared to modern 32-bit MCUs, the PIC16F877T-04/L provides adequate performance at lower cost and BOM count for measurement instruments not requiring USB or graphical interfaces.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F877T-04/L — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F877-04/L | PIC16F877-04I/P | PIC16F877-20/L | PIC16F877A-E/L |
|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 44-PLCC | 44-PLCC | 44-PLCC | 44-PLCC | 44-PLCC |
| Maximum Clock Speed | 4 MHz | 4 MHz | 4 MHz | 20 MHz | 4 MHz (with 20 MHz enhanced mode) |
| Program Memory | 14 KB Flash | 14 KB Flash | 14 KB Flash | 14 KB Flash | 14 KB Flash (100k endurance) |
| RAM | 368 bytes | 368 bytes | 368 bytes | 368 bytes | 368 bytes |
| Temperature Range | 0C to +70C (Commercial) | 0C to +70C (Commercial) | -40C to +85C (Industrial) | 0C to +70C (Commercial) | -40C to +125C (Extended) |
| Silicon Revision | Original (PIC16F877) | Original | Original | Original | Enhanced (A suffix, 100k Flash) |
| I/O Pins | 33 | 33 | 33 | 33 | 33 |
| Packaging | Tape & Reel | Tube | Tube | Tube | Tube |
Key Differentiators
- Tape & Reel packaging for high-volume SMT assembly (vs PIC16F877-04/L)
- Commercial temperature grade (vs PIC16F877-04I/P)
- Original silicon revision vs enhanced A revision (vs PIC16F877A-E/L)
Design Notes
Place 100 nF decoupling capacitors as close as possible to each VDD/VSS pair on the PIC16F877T-04/L. The 44-PLCC package has multiple VDD pins (pins 11 and 32) and VSS pins (pins 12 and 31) - each pair requires its own decoupling capacitor. A bulk 10 uF capacitor should be placed near the MCU power input. Brown-out detection should be enabled in configuration bits to prevent code execution during unstable supply conditions. Estimated power consumption at 4 MHz and 5 V is approximately 2-5 mA active depending on peripheral activity.
The 44-pin PLCC package supports both surface-mount soldering and socket mounting. For prototype development, use a PLCC socket (e.g., 3M Textool) to enable easy device swap. For production, use standard J-lead reflow profiles per IPC J-STD-020. Pin 1 indicator (notch or dot) must be respected during PCB layout. Maintain 0.1 inch (2.54 mm) grid compatibility with breadboards when prototyping.
Configuration bits must be set correctly: enable the appropriate oscillator mode (HS, XT, or RC for 4 MHz external crystal with 15-33 pF load capacitors). Watchdog timer should be enabled for unattended industrial applications. The MCLR pin requires a 10 kohm pull-up to VDD with a diode clamp to VDD for protection. Low-Voltage Programming (LVP) bit enables ICSP but may conflict with RB3/PGM pin usage - disable LVP if not using ICSP for production firmware to free RB3 as GPIO.
Compliance Information
Compliance data not explicitly provided in verified web data. Microchip PIC16F877 family is generally RoHS compliant, but specific compliance status should be confirmed with manufacturer documentation. Not AEC-Q100 qualified - this is a general-purpose MCU not targeting automotive applications.