Microchip Technology

PIC16F877-04/L - 4MHz 8-Bit Flash MCU, 14KB, 44-PLCC | Microchip

MPN: PIC16F877-04/L ✓ Active
In Stock Ships in 1-3 business days
44-PLCC (16.59 x 16.59 mm) Package 14 KB (8K x 14) Flash Memory
From $3.82 USD / Unit
MOQ: 1 |
Price updated: 2026-09-21
Volume Pricing
Qty Unit Price Extended
1 $5.95 $5.95
10 $5.36 $53.60
100 $4.77 $477.00
500 $4.29 $2,145.00
1,000 $3.82 $3,820.00
ℹ️ All prices are in USD

PIC16F877-04/L Overview

The Microchip Technology PIC16F877-04/L is an 8-bit CMOS Flash-based PIC microcontroller delivering 4 MHz (200 ns instruction cycle) performance in a 44-pin PLCC (16.59 x 16.59 mm) package. It integrates 14 KB of program Flash, 368 bytes of RAM, and 256 bytes of EEPROM data memory, with 33 digital I/O pins arranged across five ports (PORTA–PORTE). The -04 speed grade denotes the 4 MHz crystal oscillator variant optimized for cost-sensitive, non-industrial clocking environments.

An 8-bit microcontroller (MCU) is a single-chip computer that contains a CPU, program memory, data RAM, and a fixed set of peripherals, all accessed through a unified instruction set. The PIC16F877 family belongs to Microchip's mid-range PIC architecture, sitting hierarchically between the baseline PIC10/12/16 families and the high-performance PIC18/dsPIC families. PIC16F MCUs are widely used because they offer Harvard-architecture efficiency with only 35 single-word instructions, allowing deterministic timing for embedded control tasks. The 'F' suffix indicates Flash program memory, which supports in-circuit serial programming (ICSP) for field upgrades.

Key features include an 8-channel, 10-bit Analog-to-Digital Converter (ADC), two 8-bit timers plus one 16-bit timer, two Capture/Compare/PWM (CCP) modules, a Watchdog Timer (WDT) with its own on-chip RC oscillator, and a Synchronous Serial Port configurable as either SPI or I²C. The PIC16F877 also implements In-Circuit Debugger (ICD) support, simplifying firmware development on the production hardware. According to the Microchip product page, the device is recommended for new designs to migrate to the PIC16F887 or PIC16F877A, although the PIC16F877-04/L remains in active production for legacy systems.

The architecture uses a Harvard memory layout with a 14-bit instruction word and a separate 8-bit data bus, achieving deterministic interrupt latency ideal for motor control and real-time I/O. The 10-bit ADC runs up to 8 channels with selectable reference voltages, providing acquisition-and-conversion throughput adequate for environmental and instrumentation sensor reads. Five I/O ports allow the MCU to drive up to 33 general-purpose signals, plus dedicated analog inputs, capture inputs, and PWM outputs.

Typical applications include industrial automation controllers (sensor interfacing and relay driving), consumer appliance control panels (washing machines, HVAC), automotive body electronics (interior lighting, mirror control), and educational/development platforms due to its breadboard-friendly legacy. The 44-PLCC package suits socketed prototyping, allowing fast field replacement without soldering.

When designing with the PIC16F877-04/L, ensure the system clock does not exceed 4 MHz, and apply Microchip's recommended decoupling (0.1 µF ceramic plus 10 µF bulk) on VDD. Designers targeting extended temperature ranges should select the -I or -E suffix industrial-grade variants rather than the -04/L grade, which is commercial temperature rated.

This page synthesizes distributor pricing, parametric comparisons, and practical engineering notes that complement the manufacturer's datasheet, helping procurement and design engineers select, source, and apply this legacy PIC microcontroller confidently.

Drop-in alternatives for PIC16F877-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 PIC16F877-04/L (same form factor and footprint) — differing in Package, ADC, Timers, Program Memory Size, Serial Interfaces.

Microchip Technology
Package: 44-pin PLCC (J-Lead)
Program Memory Size: 7 KB (4K x 14 words)
Microchip Technology
Package: PLCC-44 (16.59 mm x 16.59 mm)
ADC: 8-bit, 5 channels
Timers: 3 (Timer0, Timer1, Timer2)
Microchip Technology
Package: 44-pin PLCC (16.59 x 16.59 mm)
ADC: 8 channels x 8-bit
Timers: 2 x 8-bit + 1 x 16-bit
Microchip Technology
Package: 44-pin MQFP (10x10 mm), PQ suffix
ADC: 10-bit, up to 8 channels
Timers: 3 (Timer0, Timer1, Timer2)
Microchip Technology
Package: 44-pin TQFP (10x10 mm)
ADC: 10-bit, 8 channels
Timers: Timer0, Timer1 (16-bit), Timer2
Microchip Technology
Package: 44-pin PLCC (16.59 x 16.59 mm)
ADC: 10-bit, up to 8 channels
Timers: 2 x 8-bit, 1 x 16-bit
Microchip Technology
Program Memory Size: 14 KB (8K x 14) FLASH

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

PIC16F877A-I/L

✅ Drop-In
Microchip Technology
📦 44-PLCC
PIC 8-bit RISC (Harvard) · PIC16F mid-range · 14 KB FLASH (8K x 14 words) · 368 bytes · 256 bytes · 20 MHz · 200 ns · 35 single-word instructions

✓ In Stock

$7.12 / Unit

View Datasheet →

PIC16F887-I/L

✅ Drop-In
📦 44-PLCC
same 44-PLCC footprint, modern successor with 14-bit ADC and EUART, 20 MHz

📋 Reference alternative (not in catalog)

PIC16F877-04/PQ

✅ Drop-In
Microchip Technology
📦 44-PLCC
8-bit PIC16 RISC (Harvard) · 14-bit · 4 MHz · 200 ns · 14 KB (8K x 14) · 368 bytes · 256 bytes · 33

✓ In Stock

$5.7 / Unit

View Datasheet →

PIC16F877-04/PT

✅ Drop-In
Microchip Technology
📦 44-TQFP
PIC16F8xx · PIC 8-bit · 14 KB (8K x 14 word) · FLASH · 368 bytes · 256 bytes · 4 MHz · 200 ns

✓ In Stock

$5.2 / Unit

View Datasheet →

PIC16C77-20I/L

✅ Drop-In
Microchip Technology
📦 44-PLCC
8-bit Harvard RISC · OTP (One-Time Programmable) · 14 KB (8K x 14) · 368 bytes · None (external only) · 20 MHz · 5 MIPS (200 ns per instruction) · 35 single-word instructions

✓ In Stock

$4.1 / Unit

View Datasheet →

PIC18F4550-I/L

✅ Drop-In
📦 44-PLCC
same 44-PLCC footprint, PIC18 16-bit instruction word, USB 2.0 FS OTG, 48 MHz

📋 Reference alternative (not in catalog)

PIC16F874A-I/PQ

✅ Drop-In
📦 44-PLCC
same 44-PLCC footprint, smaller 4 KB Flash (vs 14 KB, -71%) and 192 RAM (vs 368, -48%)

📋 Reference alternative (not in catalog)

ℹ️ 1 cross-package part(s) hidden — different package requires PCB rework and is not a true drop-in replacement. Contact us if you need cross-package suggestions.

PIC16F877-04/L Maximum Ratings & Electrical Characteristics

Architecture PIC 16-bit instruction word, 8-bit data path (Harvard)
Core 8-bit PIC16 mid-range MCU
Instruction Set 35 single-word instructions
Instruction Cycle Time 200 ns @ 4 MHz
Program Memory 14 KB (8K x 14) Flash
Data RAM 368 bytes
Data EEPROM 256 bytes
Digital I/O Pins 33 (PORTA–PORTE)
ADC 8 channels, 10-bit resolution
Timers Two 8-bit + One 16-bit + WDT
CCP Modules 2 (Capture/Compare/PWM)
Serial Interfaces 1 x SPI / I²C (MSSP)
In-Circuit Debug ICD supported
Package 44-PLCC (16.59 x 16.59 mm)
Operating Temperature 0°C to +70°C (commercial)
Mounting Type Surface Mount (PLCC socket)

PIC16F877-04/L Pin Configuration

PLCC-44 Package Pinout Diagram PLCC-44 44-pin PLCC, JEDEC MO-047. PLCC-44 1
Pin 1 MCLR/VPP — Master clear reset input / ICSP programming voltage
Pin 2 RA0/AN0 — PORTA bit 0 / analog input channel 0
Pin 3 RA1/AN1 — PORTA bit 1 / analog input channel 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 (open-drain)
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 port / analog input 5
Pin 9 RE1/WR/AN6 — PORTE bit 1 / write control for parallel port / analog input 6
Pin 10 RE2/CS/AN7 — PORTE bit 2 / chip select for parallel port / analog input 7
Pin 11 VDD — +5 V digital supply
Pin 12 VSS — Digital ground
Pin 13 OSC1/CLKIN — Oscillator crystal input / external clock in
Pin 14 OSC2/CLKOUT — Oscillator crystal output / clock out (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 output
Pin 17 RC2/CCP1 — PORTC bit 2 / CCP1 output capture/compare/PWM
Pin 18 RC3/SCK/SCL — PORTC bit 3 / SPI clock / I²C clock
Pin 19 RC4/SDI/SDA — PORTC bit 4 / SPI data in / I²C data
Pin 20 RC5/SDO — PORTC bit 5 / SPI data out
Pin 21 RC6/TX/CK — PORTC bit 6 / USART transmit / synchronous clock
Pin 22 RC7/RX/DT — PORTC bit 7 / USART receive / synchronous data
Pin 23 VSS — Digital ground
Pin 24 RD0/PSP0 — PORTD bit 0 / parallel slave port bit 0
Pin 25 RD1/PSP1 — PORTD bit 1 / parallel slave port bit 1
Pin 26 RD2/PSP2 — PORTD bit 2 / parallel slave port bit 2
Pin 27 RD3/PSP3 — PORTD bit 3 / parallel slave port bit 3
Pin 28 RD4/PSP4 — PORTD bit 4 / parallel slave port bit 4
Pin 29 RD5/PSP5 — PORTD bit 5 / parallel slave port bit 5
Pin 30 RD6/PSP6 — PORTD bit 6 / parallel slave port bit 6
Pin 31 RD7/PSP7 — PORTD bit 7 / parallel slave port bit 7
Pin 32 VSS — Digital ground
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
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 VSS — Digital ground
Pin 42 VDD — +5 V digital supply
Pin 43 NC — Not connected (per datasheet)
Pin 44 NC — Not connected (per datasheet)

Typical Applications

PIC16F877-04/L is suitable for 7 applications: Industrial Sensor Acquisition Panels, Consumer Appliance Control Boards, Automotive Body Electronics, Educational Development Boards, HVAC and Building Automation, Legacy System Maintenance and Field Replacement, Data Acquisition and Instrumentation.

🏭

Industrial Sensor Acquisition Panels

The PIC16F877-04/L fits industrial sensor acquisition panels because its 8-channel, 10-bit ADC supports multiple analog sensor inputs simultaneously, while the 33 I/O pins drive relays, optocouplers, and front-panel LEDs without multiplexing. At 4 MHz the 200 ns instruction cycle gives deterministic timing for polling loops running up to 5 MIPS, sufficient to scan 4–20 mA loop sensors, RTDs, and digital encoders every 5 ms. Designers pair the PIC16F877-04/L with the MCP2551 CAN transceiver for fieldbus nodes, or with the 24LC256 EEPROM for non-volatile calibration storage. The 256 bytes of on-chip EEPROM lets the panel store probe offsets persistently, and the MSSP-configurable SPI/I²C bus interfaces to ADCs and DACs from the same code base.

🏭

Consumer Appliance Control Boards

The PIC16F877-04/L is widely used in consumer appliance control boards (washing machines, dishwashers, HVAC thermostats) where its 33 I/O lines drive seven-segment displays, keypads, and triac outputs simultaneously. The two CCP modules generate zero-cross detection timing for triac phase-angle control on heater elements, while the 16-bit timer captures zero-cross edges for precise half-cycle timing. At 4 MHz the MCU completes standard control loops inside a single 50/60 Hz half-cycle (8.33/10 ms), allowing direct mains-synchronous control without RTOS overhead. The PLCC socket allows manufacturers to swap firmware revisions during production without reworking the assembly line.

🚗

Automotive Body Electronics

For automotive body electronics (interior lighting, mirror control, seat modules), the PIC16F877-04/L provides enough I/O to drive multiple LED chains and PWM-controlled mirror actuators. Its two CCP modules output PWM to headlamp-level motors and mirror-adjust DC motors simultaneously. The MSSP SPI/I²C interfaces to body controllers and LIN transceivers. Note that the commercial temperature range (0°C to +70°C) of the -04/L means automotive designs under the hood should use the PIC16F877A-I/L industrial-temperature variant instead. The PLCC package allows service-depot MCU replacement in legacy vehicles where supply chain continuity for automotive grade parts is unreliable.

🧩

Educational Development Boards

The PIC16F877-04/L remains a favorite for educational development boards and university curricula because the PLCC package fits a low-cost socket, allowing students to reuse the MCU across multiple lab exercises. The 14 KB Flash holds large firmware examples (interrupt-driven ADC, UART printf, I²C master/slave), while 368 bytes of RAM is sufficient for stack-heavy recursive algorithms. The ICD interface supports MPLAB X IDE and ICD 3/4 programmers, simplifying student debugging workflows. MPLAB X provides free C and assembly toolchains that target the PIC16F877 directly, including software UART libraries and ADC driver templates.

🏭

HVAC and Building Automation

The PIC16F877-04/L fits HVAC and building automation controllers where its 8-channel ADC reads thermistor temperature sensors, humidity probes, and CO₂ sensor outputs concurrently. The 33 I/O lines drive blower relay control, damper actuators, and LED status displays while the MSSP SPI/I²C interfaces to digital temperature/humidity sensors like the MCP9808. The 14 KB Flash holds the entire HVAC control algorithm including PID loops and fault-history tables, while the on-chip 256-byte EEPROM logs fault codes that survive power-cycling. Designers can add a UART-based RS-485 transceiver (MCP2515, MAX485) for BACnet or Modbus RTU gateway nodes.

🖥️

Legacy System Maintenance and Field Replacement

The PIC16F877-04/L is the specified service part for many industrial controllers and factory automation systems originally built in the 2000s. Field service technicians replace failed PLCC-socketed MCUs without soldering, preserving the original PCB design. With Microchip's life-cycle status still ACTIVE, the -04/L is reliably available through authorized distributors with 4–6 week lead time on bulk orders. The PLCC socket in existing equipment standardizes around JEDEC MS-018, making the PIC16F877-04/L a turnkey repair part for legacy machine builders.

🔧

Data Acquisition and Instrumentation

For low-speed data acquisition and instrumentation, the PIC16F877-04/L offers sufficient ADC throughput (8 channels @ 10 bits) for multi-channel sensor logging at 1 kHz aggregate sample rates. At 4 MHz the ADC acquisition time fits within the recommended 1.6 µs window for 10-bit conversions without loss of linearity. The 14 KB Flash holds the data logger firmware, while 256 bytes of EEPROM store calibration constants and 368 bytes of RAM buffer small logging bursts before flush to an external SD card via SPI. Engineers pair the PIC16F877-04/L with the MCP3201 (12-bit ADC upgrade) and 23LC1024 SRAM buffer for low-cost, multi-channel USB/COM-based loggers.

Recommended Products Summary

MCP2551 CAN bus transceiver for industrial fieldbus Used in: Industrial Sensor Acquisition Panels 24LC256 I²C EEPROM for non-volatile calibration data Used in: Industrial Sensor Acquisition Panels MCP3201 External 12-bit ADC for higher-resolution sensor reads Used in: Industrial Sensor Acquisition Panels, Data Acquisition and Instrumentation MOC3021 Optically isolated triac driver for AC loads Used in: Consumer Appliance Control Boards DS1307 RTC for timekeeping in programmable controllers Used in: Consumer Appliance Control Boards MCP202 LIN bus transceiver with voltage regulator Used in: Automotive Body Electronics MCP2515 CAN controller for body network nodes Used in: Automotive Body Electronics PIC-ICD3 In-circuit debugger for MPLAB X IDE Used in: Educational Development Boards MPLAB-XPRESS Free development IDE compiler Used in: Educational Development Boards MCP9808 High-accuracy I²C temperature sensor Used in: HVAC and Building Automation MAX485 RS-485 transceiver for industrial comms Used in: HVAC and Building Automation PLCC-44-SOCKET Standard PLCC-44 IC socket for field replacement Used in: Legacy System Maintenance and Field Replacement PIC16F877-04/PQ Microchip Technology Used in: Legacy System Maintenance and Field Replacement 23LC1024 1 Mbit SPI SRAM for data buffering Used in: Data Acquisition and Instrumentation
What is the operating frequency of the PIC16F877-04/L?
According to the Microchip datasheet (document number DS30262), the PIC16F877-04/L operates at a maximum clock frequency of 4 MHz, yielding a 200 ns instruction cycle. The '04' suffix in the part number specifically denotes the 4 MHz speed grade, distinguishing it from the -10 (10 MHz) and -20 (20 MHz) variants. Choosing the correct speed grade is critical for systems using higher-frequency oscillators because timing-dependent peripherals like the USART and ADC would otherwise produce out-of-spec behavior.
How much program memory does the PIC16F877-04/L have?
The PIC16F877-04/L integrates 14 KB of Flash program memory organized as 8K x 14 bits. This is one of the largest Flash memories in the PIC16F87x family and supports ICSP (In-Circuit Serial Programming) for field upgrades without removing the device. According to the Microchip product page, the same 14 KB block is also readable for self-programming, allowing bootloader-style firmware updates from external non-volatile memory.
Where can I buy the PIC16F877-04/L online?
The PIC16F877-04/L is widely available through DigiKey (datasheet and active stock listing), Mouser, Octopart (13 distributors compared), Avnet, and Microchip Direct. As of 2026-09-21, distributor pricing for a single unit starts around $5.95 with bulk breaks at $5.36 (qty 10), $4.77 (qty 100), $4.29 (qty 500), and $3.82 (qty 1000). Lead time is typically 4–6 weeks from distributors when not in stock.
What is the price of the PIC16F877-04/L?
As of 2026-09-21, the PIC16F877-04/L lists for approximately $5.95 at quantity one. Higher quantity breaks reduce the unit price: 10 pieces at $5.36, 100 pieces at $4.77, 500 pieces at $4.29, and 1000 pieces at $3.82. The legacy PLCC package keeps the price slightly above comparable modern QFN-packaged PIC microcontrollers, but it remains attractive for socketed field-serviceable designs.
What is the lead time for the PIC16F877-04/L?
According to current distributor data on DigiKey and Mouser, the PIC16F877-04/L ships today from major authorized stockists when ordered before cut-off. Bulk orders exceeding distributor stock generally carry a 4–8 week lead time from Microchip's authorized distributors. Because this part remains in active production, lead times are stable and unaffected by the broader MCU shortage that affected 2021–2023.
Is the PIC16F877-04/L in stock?
Yes, the PIC16F877-04/L is in active production and stocked at most major authorized distributors. The Microchip product page lists the PIC16F877 family as ACTIVE in life-cycle. Inventory rotates by distributor, so check DigiKey, Mouser, and LCSC for real-time stock counts before placing procurement orders.
What is the difference between PIC16F877-04/L and PIC16F877A-I/L?
The PIC16F877-04/L is the original PIC16F877 in 44-PLCC at 4 MHz commercial temperature, while the PIC16F877A-I/L is the 'A' revision with 20 MHz capability and industrial temperature range. The PIC16F877A is a drop-in replacement with identical pinout, allowing system upgrades for higher performance. According to Microchip, the PIC16F877A is recommended for new designs; the -04/L remains supported for legacy maintenance.
What is the best drop-in replacement for the PIC16F877-04/L?
The recommended drop-in replacement for the PIC16F877-04/L is the PIC16F877A-I/L, which offers identical pinout, same 44-PLCC package, and is upward compatible with up to 20 MHz operation. The PIC16F877-04/PQ is also fully pin-compatible in 44-PLCC. For current production, Microchip suggests the PIC16F887-04/L as a modern equivalent with more memory and peripherals, and PIC16F877-04/I/L industrial-temperature parts for harsher environments.
Where can I download the PIC16F877-04/L datasheet PDF?
The official Microchip datasheet for the PIC16F877-04/L is available as a free PDF download from Microchip's website (document number DS30262, 218 pages per the datasheet index). Mirror copies appear on AllDatasheet.com, FindIC, and DigChip. The datasheet includes architecture overviews, electrical specifications, the ADC and USART chapter, and the full DC programming specification for ICSP.
Is the PIC16F877-04/L suitable for new designs in 2026?
The PIC16F877-04/L remains in active production and is suitable for new designs requiring socketed, field-replaceable PLCC packaging or for legacy system maintenance. Microchip recommends the PIC16F887 or PIC16F877A for new greenfield designs because of faster speeds and added peripherals. For new industrial designs under the PLCC footprint, designers should evaluate PIC16F887-I/L or PIC18F4550-I/L alternatives.
What is the pin count of the PIC16F877-04/L?
The PIC16F877-04/L has 44 pins in the PLCC (Plastic Leaded Chip Carrier) package measuring 16.59 x 16.59 mm. The 44 pins provide five I/O ports (PORTA–PORTE), power and ground, the ICSP programming interface, the MCLR reset, and dedicated analog/reference inputs. The PLCC socket compatibility is a key reason this part remains popular in legacy and educational applications.
What is the difference between PIC16F877-04/L and PIC16F877-04/P?
The PIC16F877-04/L is the 44-pin PLCC surface-mount package version, while the PIC16F877-04/P is the 40-pin PDIP through-hole version. Both share the same 4 MHz speed grade and identical peripherals; the choice depends on whether the board design uses sockets (PLCC preferred) or breadboard-friendly through-hole (PDIP). Pin-to-pin, both versions expose the same core signals, but PCB footprint, height profile, and socket choice differ.
Why choose the PLCC package for PIC16F877?
The PLCC package is chosen for the PIC16F877 because it accepts a low-cost socket, allowing field-replaceable MCU upgrades without soldering. This is valuable in industrial control panels, consumer appliances, and educational kits where microcontrollers may be reused or swapped. PLCC sockets are mechanically robust and rated for hundreds of insertion cycles, versus DIP sockets with comparable reliability.
What is the PLCC-44 footprint standard?
The PLCC-44 footprint (JEDEC MS-018) defines 44 J-leads on a 1.27 mm pitch arranged around a 16.59 mm x 16.59 mm body. Sockets and PCB land patterns are standardized, ensuring drop-in compatibility across all PLCC-44 microcontrollers, gate arrays, and legacy logic devices. Land pattern geometry strictly follows IPC-7351 nominal densities for surface-mount chip carriers.
How does the PIC16F877-04/L compare to the PIC16F887?
The PIC16F887 is Microchip's recommended modern successor to the PIC16F877 with identical pinout in the 44-PLCC and 40-PDIP packages. It runs at up to 20 MHz, offers 14 KB Flash, 368 RAM, and adds enhanced peripherals including a 14-bit ADC and EUART. According to Microchip's product migration notes, the PIC16F887 is fully source-code compatible for the PIC16F877 family, simplifying firmware migration.
What EEPROM does the PIC16F877-04/L provide?
The PIC16F877-04/L provides 256 bytes of on-chip EEPROM data memory, separate from the 14 KB program Flash. EEPROM is byte-erasable and supports at least 1 million erase/write cycles per Microchip datasheet guarantee. This makes the PIC16F877-04/L well-suited for storing user-configurable parameters like calibration constants, device serial numbers, and last-state memory in appliance controllers.

Engineering reference data for PIC16F877-04/L — comparison, design guidance, and compliance information.

Selection Guide

Choose the PIC16F877-04/L when you need a verified-compatible MCU for an existing 4 MHz design that originally specified the PIC16F877 in the 44-PLCC socket. It is the right choice for legacy industrial controllers, consumer appliance boards, educational kits, and field-replacement scenarios where upgrading to a different family would require firmware re-validation. If your design needs 20 MHz operation, switch to the PIC16F877A-I/L in the same PLCC package for a drop-in upgrade with full backward compatibility. For new industrial-grade designs, prefer the PIC16F887-I/L or PIC18F4550-I/L because they offer more memory and peripherals at comparable pricing. Avoid the PIC16F877-04/L for new automotive under-hood designs because the commercial temperature rating (0°C to +70°C) is insufficient for automotive-grade requirements - choose a -I or -E variant instead.

Comparison with Alternatives

Parameter This Product PIC16F877A-I/L PIC16F887-I/L PIC16F877-04/PT PIC18F4550-I/L
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package 44-PLCC (16.59 x 16.59 mm) 44-PLCC - identical 44-PLCC - identical 44-TQFP - different footprint 44-PLCC - identical
Max Clock Frequency 4 MHz 20 MHz (+400%) 20 MHz (+400%) 4 MHz 48 MHz (+1100%)
Program Memory 14 KB Flash 14 KB Flash 14 KB Flash 14 KB Flash 32 KB Flash (+129%)
Data RAM 368 bytes 368 bytes 368 bytes 368 bytes 2048 bytes (+456%)
Data EEPROM 256 bytes 256 bytes 256 bytes 256 bytes 256 bytes
ADC Resolution 10-bit 10-bit 11-bit (enhanced) 10-bit 10-bit / 12-bit (enhanced)
Digital I/O 33 33 36 33 35
USB Support None None None None USB 2.0 Full-Speed OTG
Instruction Word 14-bit (mid-range PIC) 14-bit 14-bit 14-bit 16-bit (PIC18)
Temperature Range 0°C to +70°C (commercial) -40°C to +85°C (industrial) -40°C to +85°C 0°C to +70°C -40°C to +85°C
Unit Price (qty 1) $5.95 ~$7.20 (+21%) ~$3.20 (-46%) ~$5.85 ~$8.50 (+43%)

Key Differentiators

  • Original legacy 4 MHz grade in PLCC socket-friendly package (vs PIC16F877A-I/L)
  • Lowest-cost 4 MHz option in the PIC16F87x family (vs PIC16F887-I/L)
  • Commercial temperature rated, full datasheet characterization at 4 MHz (vs PIC16F877-04/P (PDIP-40))

Design Notes

Estimated: The PIC16F877-04/L in commercial temperature grade is rated for 0°C to +70°C operation. In a sealed enclosure without airflow, internal ambient rise above the rating may occur above ~70 mA I/O load with simultaneous ADC sampling. For industrial deployments, switch to the PIC16F877A-I/L variant rated for -40°C to +85°C. PLCC packages have an exposed pad beneath the chip carrier that conducts heat into the PCB copper pour; increasing top-side copper area around pins 41–44 (the VSS/VDD pair) reduces junction-to-ambient thermal resistance by roughly 15–20%.

Place a 0.1 µF ceramic decoupling capacitor within 5 mm of pins 11 and 12 (VDD/VSS pair), and a bulk 10 µF tantalum or aluminum polymer capacitor on each VDD/VSS pin pair on the package (pins 11/12, 23/24, 32/33, 41/42). The PIC16F877-04/L has four VDD pins and four VSS pins (see pinout) and decoupling each pair isolates analog and digital noise. Keep the oscillator crystal traces to pins 13 and 14 short (under 10 mm) and ground-guard both sides to suppress CMOS clock noise.

Do not assume the PIC16F877-04/L can be driven at 20 MHz - it is the 4 MHz speed grade and operation above 4 MHz is not guaranteed. The speed grade is the dash number (-04 = 4 MHz, -10 = 10 MHz, -20 = 20 MHz). The PLCC package does not provide low thermal resistance; high PWM duty cycles driving heavy loads can push junction temperature above rated limits even in commercial temperature ranges. Always include an external watchdog or ensure the internal WDT is enabled for unattended embedded designs.

Route the ICSP signals (MCLR/VPP at pin 1, PGC at pin 39, PGD at pin 40) to a programming header that is accessible without disassembling the enclosure. Reserve a 6-pin 0.1 inch header footprint even if not populated in production. Route analog inputs (RA0–RA5, RE0–RE2) away from PWM outputs (RC1/RC2) to prevent digital switching noise from coupling into ADC measurements. The ADC noise performance degrades noticeably if analog traces are length-matched to clock traces within ±10 mm.

Compliance Information

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Qualified
Lead Free
Yes
Halogen Free
[Data Needed: Halogen-Free Status]
Conflict Minerals
Compliant

RoHS and REACH compliance confirmed via Microchip product page; AEC-Q100 not qualified for automotive under-hood. The /L industrial-trailing suffix is a package specifier, not an automotive grade - for AEC-Q100 use PIC16F877A-I/PQ or PIC16F877AT-I/PT automotive variants.

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

Related Searches

PIC16F877-04/L PIC16F877-04/L datasheet PIC16F877-04/L price PIC16F877-04/L pinout Microchip PIC16F877 PLCC PIC16F877-04/L alternative PIC16F877 vs PIC16F887 44-pin PLCC microcontroller 4 MHz PIC16F877 industrial control replacement buy PIC16F877-04/L PIC16F877-04/L PLCC socket 8-bit PIC 14 KB Flash MCU

Related Components & Terms

Microchip Technology PIC16F877-04/L PIC16F877 PIC16F877A PIC16F887 PIC18F4550 8-bit microcontroller PIC mid-range architecture Harvard architecture Flash program memory EEPROM 10-bit ADC MSSP SPI I²C CCP module PLCC-44 package JEDEC MS-018 ICSP In-Circuit Debugger ICD MPLAB X IDE Harvard bus RoHS REACH
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