PIC16F877T-20/PT - 8-bit 20MHz MCU, 14KB Flash, TQFP-44 | Microchip
MPN: PIC16F877T-20/PT ✗ End of Life| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $9.4 | $9.40 |
| 10 | $8.6 | $86.00 |
| 100 | $7.65 | $765.00 |
| 500 | $6.9 | $3,450.00 |
| 1,000 | $6.2 | $6,200.00 |
PIC16F877T-20/PT Overview
An 8-bit microcontroller (MCU) is a single-chip computer that integrates a CPU, program memory (Flash/ROM), data memory (RAM), and peripherals such as timers, ADCs, and communication ports onto one die. Within the embedded hierarchy, an MCU sits below microprocessors (MPUs) in complexity but above discrete logic in capability. The PIC® 16F family uses a Harvard RISC core that fetches instructions and data on separate buses, allowing most instructions to complete in one instruction cycle - the foundation of its compact, deterministic performance.
Key features of the PIC16F877T-20/PT include 33 digital I/O pins, a 10-bit ADC with up to 8 channels, two 8-bit and one 16-bit timers, and three serial communication modules (USART, MSSP/SPI/I2C). The 'T' suffix indicates tape-and-reel packaging for high-volume assembly, while the '20' speed grade specifies a 20MHz maximum oscillator frequency. Internal brown-out reset, watchdog timer, and in-circuit serial programming (ICSP) are built in.
This combination of analog-rich peripherals, ample program memory, and a compact TQFP-44 footprint makes the PIC16F877T-20/PT a workhorse for industrial control, sensor conditioning, motor control, and human-machine interface designs. It remains widely deployed in mature products where firmware portability and long-term Microchip supply guarantees are priorities.
Typical applications span factory automation boards, HVAC controllers, security panels, instrumentation, and consumer appliance mainboards. Designers value the PIC16F877's deterministic interrupt latency and the mature MPLAB XC8 toolchain for rapid prototyping and long-term maintenance.
When designing with this MCU, ensure your 5V supply rail stays within the 2.0-5.5V VDD range, and budget for the in-circuit programming header on production boards for firmware updates. Decouple VDD with 100nF + 10uF bulk caps close to the pins.
This page synthesizes distributor pricing, drop-in same-brand and cross-brand alternatives, and practical PCB design notes that complement the manufacturer datasheet with information-gain content not found on distributor product pages.
Drop-in alternatives for PIC16F877T-20/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-20/PT (same form factor and footprint) — differing in ADC, Package, Operating Temperature, Timers, Serial Interfaces.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F877-20/PT
✅ Drop-In✓ In Stock
$6.72 / Unit
View Datasheet →PIC16F877A-I/PT
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F887T-I/PT
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F877T-20/PQ
✅ Drop-In✓ In Stock
$6.24 / Unit
View Datasheet →PIC16F877T-04E/PT
✅ Drop-In✓ In Stock
$6.1 / Unit
View Datasheet →PIC16F874T-I/PT
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F877T-20/PT Maximum Ratings & Electrical Characteristics
| Architecture | PIC16 (Harvard, 8-bit, RISC) |
| Program Memory (Flash) | 14 KB (8K x 14 words) |
| RAM | 368 bytes |
| EEPROM | 256 bytes |
| Maximum Clock Frequency | 20 MHz |
| Instruction Cycle Time | 200 ns |
| Instruction Set Size | 35 single-word instructions |
| I/O Pins | 33 |
| ADC | 10-bit, up to 8 channels |
| Timers | 2 x 8-bit, 1 x 16-bit |
| Serial Interfaces | USART (SCI), SPI, I2C (MSSP) |
| Operating Voltage (VDD) | 2.0 V to 5.5 V |
| Package | 44-pin TQFP (10 x 10 mm) |
| Operating Temperature | 0C to +70C (commercial) |
| Speed Grade | 20 MHz |
| Mounting Type | Surface Mount |
PIC16F877T-20/PT Pin Configuration
| Pin 1 | MCLR/VPP — Master clear reset (active low) / 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 — PORTA bit 2 / analog input 2 |
| 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 parallel slave port / analog input 5 |
| Pin 9 | RE1/WR/AN6 — PORTE bit 1 / write control / analog input 6 |
| Pin 10 | RE2/CS/AN7 — PORTE bit 2 / chip select / analog input 7 |
| Pin 11 | VDD — Positive power supply |
| 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/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 / 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 / SPI data in / I2C data |
| Pin 24 | RC5/SDO — PORTC / SPI data out |
| Pin 25 | RC6/TX/CK — PORTC / USART async transmit / sync clock |
| Pin 26 | RC7/RX/DT — PORTC / USART async receive / sync 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 power supply |
| 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 |
| Pin 42 | NC — Not connected |
| Pin 43 | NC — Not connected |
| Pin 44 | NC — Not connected |
Typical Applications
PIC16F877T-20/PT is suitable for 6 applications: Industrial Sensor Conditioning and Control, HVAC and Building Automation Controllers, Motor Control and BLDC Driver Boards, Security and Access Control Panels, Consumer Appliance Mainboards, Test and Measurement Instrumentation.
Industrial Sensor Conditioning and Control
The PIC16F877T-20/PT fits industrial sensor boards because its 10-bit 8-channel ADC and 33 GPIO pins let a single MCU read multiple analog sensors (temperature, pressure, flow) and drive control outputs simultaneously. The 14KB Flash accommodates mid-size state machines and PID control loops, while the 368-byte RAM is sufficient for calibration tables and recent sample buffers. At 20MHz the part provides 5 MIPS - enough for oversampling averaging and 9600-115200 baud UART telemetry typical of Modbus RTU nodes. The 2.0-5.5V VDD range tolerates the noisy 24V-to-5V industrial rails with proper decoupling. Pin-compatible migration to PIC16F887 preserves firmware investment when scaling production.
Recommended
HVAC and Building Automation Controllers
The PIC16F877T-20/PT is well suited to HVAC zone controllers and building-automation boards where its 33 GPIO can drive relays, triac outputs, status LEDs, and keypads while the ADC reads thermistor temperature sensors and humidity probes. The 14KB Flash comfortably fits firmware for scheduling, hysteresis control, and LCD menu logic, and the USART allows communication with a central BMS over RS-485. Its 20MHz core handles keypad debouncing, RTC tick scheduling, and PWM-driven damper actuators concurrently. The TQFP-44 footprint suits compact controller PCBs, and the device's mature firmware ecosystem accelerates HVAC product certification cycles. Watchdog timer and brown-out reset improve field reliability.
Recommended
Motor Control and BLDC Driver Boards
In small motor-driver boards (BLDC, stepper, brushed DC), the PIC16F877T-20/PT provides the 16-bit timer needed for precise PWM generation and the 8-bit timers for quadrature encoder feedback. With 20MHz it can run closed-loop commutation at speeds typical of small fans, pumps, and appliance motors. The 33 GPIO handle H-bridge enable signals, fault inputs, and tachometer capture, while the ADC senses motor current via shunt amplifiers for over-current protection. Its 5.5V tolerant I/O interfaces directly to 5V gate drivers. Source compatibility with PIC16F887 supports future migration to higher-performance motor-control firmware without PCB rework.
Recommended
Security and Access Control Panels
The PIC16F877T-20/PT is a long-standing choice for security panels because its 14KB Flash holds keypad scanning logic, zone monitoring state machines, and communication protocol stacks (Contact ID, SIA), while 368 bytes of RAM covers recent-event buffers. The USART interfaces to dialer or central-station modems, and the SPI bus drives external EEPROM for event-log retention. Brown-out reset and watchdog timer are essential for security-grade reliability, and the 33 GPIO support 8-16 wired zones plus keypad and LED indicators. The 0-70C commercial temperature grade is acceptable for indoor installations, and pin-compatible upgrades simplify service replacements.
Recommended
Consumer Appliance Mainboards
In washing machines, dishwashers, ovens, and microwave controllers, the PIC16F877T-20/PT's combination of 33 GPIO for relay/valve/triac drivers, ADC for temperature and level sensing, and PWM timers for motor speed control fits the appliance-mainboard role. The 14KB Flash accommodates user-interface state machines and diagnostic routines, while 256 bytes of EEPROM store user settings across power cycles. Its 2.0-5.5V VDD tolerance works with rectified 5V rails common in appliance SMPS designs. Decades of field experience and mature MPLAB XC8 toolchain accelerate appliance product development and certification.
Recommended
Test and Measurement Instrumentation
The PIC16F877T-20/PT serves as a control MCU in bench instruments such as multimeters, signal generators, and lab power supplies where its 10-bit ADC reads measured quantities, its PWM timers drive displays and reference DACs, and its USART enables PC connectivity for data logging. The 14KB Flash stores calibration constants and user-interface code, while 256-byte EEPROM retains instrument setup. At 20MHz it can run 4-digit LED multiplexing, key debouncing, and serial protocol simultaneously. Its long-term Microchip supply and mature firmware ecosystem suit instrumentation requiring 10+ year production runs.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F877T-20/PT — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F877-20/PT | PIC16F877A-I/PT | PIC16F887T-I/PT | PIC16F877T-20/PQ | PIC16F874T-I/PT |
|---|---|---|---|---|---|---|
| Package | TQFP-44 (PT) | TQFP-44 (PT) | TQFP-44 (PT) | TQFP-44 (PT) | TQFP-44 (PQ) | TQFP-44 (PT) |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Program Memory (Flash) | 14 KB | 14 KB | 14 KB | 14 KB | 14 KB | 7 KB |
| Maximum Clock Frequency | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz |
| I/O Pins | 33 | 33 | 36 | 36 | 33 | 33 |
| ADC Channels | 8 x 10-bit | 8 x 10-bit | 8 x 10-bit | 14 x 10-bit | 8 x 10-bit | 8 x 10-bit |
| Operating Voltage | 2.0 V to 5.5 V | 2.0 V to 5.5 V | 2.0 V to 5.5 V | 2.0 V to 5.5 V | 2.0 V to 5.5 V | 2.0 V to 5.5 V |
| Operating Temperature | 0C to +70C | 0C to +70C | -40C to +85C | -40C to +85C | 0C to +70C | -40C to +85C |
| Lifecycle Status | NRND | NRND | Active | Active | NRND | NRND |
Key Differentiators
- Higher GPIO count than PIC16F874 family (vs PIC16F874T-I/PT)
- Enhanced ADC channel count on successor (vs PIC16F887T-I/PT)
- Lower power and extended temperature (vs PIC16F877A-I/PT)
Design Notes
The PIC16F877T-20/PT operates from a single 2.0-5.5V VDD rail; place a 100nF ceramic decoupling capacitor as close as possible to each VDD/VSS pin pair (the TQFP-44 has two VDD/VSS pairs at pins 11/12 and 31/32). Add a 10uF bulk tantalum or aluminum cap near the IC to suppress motor and relay switching transients typical in industrial and appliance designs. AVss and AVdd should be tied to Vss/Vdd unless an analog reference is used.
Never leave the MCLR pin floating - tie it to VDD through a 10k resistor with a 100nF cap to ground for manual-reset pushbutton operation. ICSP programming requires the PGC (RB6) and PGD (RB7) pins to be accessible on the production PCB; adding a 4-pin ICSP header or test pads avoids costly rework during firmware updates. Pin 1 (MCLR/VPP) double-functions as programming voltage input - do not route sensitive analog signals near it.
The TQFP-44 has a thermal pad beneath the package that should be soldered to a copper pad on the PCB for mechanical and thermal stability. Route the high-current switching traces (relay/triac outputs) away from the oscillator and ADC traces to minimize digital switching noise coupling into analog measurements. Use a ground plane on the top or bottom layer adjacent to the MCU to provide a low-impedance return path.
When using the 20MHz crystal oscillator, place the crystal and its 15-22pF load capacitors within 5mm of the OSC1/OSC2 pins and surround them with a ground guard ring to minimize EMI pickup. For long-trace USART connections, add series resistors near the MCU pin to dampen reflections; 100-ohm resistors typically work at 115200 baud with shielded cable. Keep analog reference (VREF+/VREF-) traces short and bypassed with 100nF.
Compliance Information
Compliance data not provided in verified sources. Microchip product pages typically declare RoHS/REACH status per individual datasheet revision.