Microchip Technology

PIC16F877-20I/P - 8-Bit 20MHz 14KB Flash MCU | Microchip | DIP-40

MPN: PIC16F877-20I/P ✗ End of Life
In Stock Ships in 1-3 business days
2.0 V to 5.5 V Vdss 25 mA per pin Id 40-pin PDIP (DIP-40) Package 20 MHz Speed 14 KB (8K x 14 words) Memory
From $5.1 USD / Unit
MOQ: 1 |
Price updated: 2026-09-21
Volume Pricing
Qty Unit Price Extended
1 $8.95 $8.95
10 $7.92 $79.20
100 $6.88 $688.00
500 $5.83 $2,915.00
1,000 $5.1 $5,100.00
ℹ️ All prices are in USD

PIC16F877-20I/P Overview

The Microchip Technology PIC16F877-20I/P is an 8-bit CMOS Flash-based microcontroller from the PIC16 family, executing instructions in 200 ns (20 MHz) and packaged in a 40-pin PDIP (DIP-40) through-hole format. The device integrates 14 KB of program Flash (8K x 14 words), 368 bytes of RAM, 256 bytes of data EEPROM, and 33 digital I/O pins shared across five ports (PORTA-PORTE).

A microcontroller (MCU) is a single-chip computer containing a CPU, program memory, data memory, and integrated peripherals such as ADCs, timers, and communication interfaces. The PIC16F877 belongs to the mid-range PIC16 family, which sits within Microchip's 8-bit PIC architecture (PIC -> 8-bit MCU -> microcontroller -> semiconductor). This category targets cost-sensitive embedded designs that benefit from RISC instruction simplicity (only 35 single-word instructions) and on-chip peripherals.

Key features of the PIC16F877-20I/P include a 20 MHz maximum operating frequency, 8-channel 10-bit ADC, two 8-bit timers plus one 16-bit timer, a 200 ns instruction cycle, brown-out reset (BOR), a watchdog timer, and hardware USART, MSSP (SPI/I2C) and parallel slave port. The wide operating voltage range (2.0V-5.5V), four oscillator modes (RC, LP, XT, HS), and ICD (In-Circuit Debugger) support make it flexible for both battery-powered and mains-fed designs.

The architecture employs a Harvard-style RISC CPU with separate program and data buses, 14-bit wide instruction words, and a two-stage pipeline. The 25 mA source/sink per I/O pin directly drives LEDs and small relays, eliminating driver transistors in many interfaces. The integrated 10-bit ADC provides 8 input channels at conversion speeds suitable for sensor monitoring at sub-millisecond sample rates.

Typical applications include industrial control panels, sensor interface nodes, motor control peripheral logic, educational development platforms, instrumentation front-ends, and legacy equipment maintenance. The through-hole PDIP-40 package is preferred for breadboarding, repair of legacy boards, and harsh-environment designs where through-hole leads improve mechanical robustness.

Designers should note that Microchip recommends migrating to the PIC16F887 (1:1 pin-compatible with enhanced peripherals) or PIC18F4520 for new designs. The 40-pin PDIP footprint is shared with many PIC16/PIC18 devices, simplifying migration. Always enable the watchdog timer in noise-prone industrial environments and place a 100 nF decoupling capacitor directly between VDD and VSS pins.

This page synthesizes distributor pricing, drop-in alternatives, and practical design notes for the PIC16F877-20I/P not found in the original manufacturer datasheet, with all specifications cross-referenced to Microchip's published documentation.

Drop-in alternatives for PIC16F877-20I/P — 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-20I/P (same form factor and footprint) — differing in Package, Core Architecture, Timers, Mounting Type, Operating Temperature.

Microchip Technology
Package: 40-pin PDIP (0.600 inch, 15.24 mm)
Core Architecture: PIC16C6x 8-bit RISC
Timers: 3 (Timer0, Timer1, Timer2)
Microchip Technology
Package: 40-pin PDIP (DIP-40, 600 mil)
Core Architecture: 8-bit PIC RISC Harvard
Operating Temperature: -40C to +85C (industrial grade)
Microchip Technology
Package: 40-pin PDIP (P)
Core Architecture: 8-bit PIC16 (mid-range) RISC, 35 single-word instructions
Timers: 3 (Timer0 8-bit, Timer1 16-bit, Timer2 8-bit)
Microchip Technology
Package: 44-pin PLCC (J-Lead, 16.59x16.59 mm)
Core Architecture: PIC16F (8-bit Harvard RISC)
Mounting Type: Surface Mount (PLCC socket compatible)
Microchip Technology
Package: 44-TQFP (10x10 mm)
Timers: Timer0, Timer1, Timer2
Mounting Type: Surface Mount
Microchip Technology
Mounting Type: Through-Hole
Operating Temperature: -40C to +125C (extended, -E grade)
Microchip Technology
Package: 40-pin PDIP (DIP-40) through-hole
Core Architecture: PIC16 enhanced mid-range 8-bit RISC
Mounting Type: Through-Hole

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

PIC16F887-I/P

✅ Drop-In
Microchip Technology
📦 40-pin PDIP
PIC16 enhanced mid-range 8-bit RISC · 20 MHz (50 ns instruction cycle) · 14 KB (8K x 14 words) · 368 bytes · 256 bytes · 36 · 14 channels x 10-bit · 2

✓ In Stock

$1.88 / Unit

View Datasheet →

PIC16F877A-I/P

✅ Drop-In
📦 40-pin PDIP
Same die family, enhanced Flash endurance, slightly improved ADC, identical pinout

📋 Reference alternative (not in catalog)

PIC16F877-04I/P

✅ Drop-In
Microchip Technology
📦 40-pin PDIP
PIC16F 8-bit Microcontroller · 8-bit PIC RISC Harvard · 14 KB (8K x 14 words) · 368 bytes · 256 bytes · 4 MHz · 200 ns · 33

✓ In Stock

$4.95 / Unit

View Datasheet →

PIC16F877-10E/P

✅ Drop-In
Microchip Technology
📦 40-pin PDIP
8-bit PIC16 (mid-range) RISC, 35 single-word instructions · 14 KB Flash (8K x 14 words) · 368 bytes · 256 bytes · 10 MHz (200 ns instruction cycle, 5 MIPS) · 4.0 V to 5.5 V (10 MHz grade) · -40 °C to +125 °C (Extended, -E suffix) · 33 (PORTA 6, PORTB 8, PORTC 8, PORTD 8, PORTE 3)

✓ In Stock

$4.3 / Unit

View Datasheet →

PIC16F877-20/P

✅ Drop-In
📦 40-pin PDIP
Same die, commercial temperature range (0-70C) vs industrial (-40 to +85C), identical specs

📋 Reference alternative (not in catalog)

PIC16F877-20I/L

✅ Drop-In
Microchip Technology
📦 40-pin PDIP
PIC16F (8-bit Harvard RISC) · 14 KB (8K x 14 words) · 368 bytes · 256 bytes · 20 MHz · 200 ns (single cycle) · 33 · 10-bit, 8 channels

✓ In Stock

$9.05 / Unit

View Datasheet →

PIC16F877-20I/P Maximum Ratings & Electrical Characteristics

Core Architecture 8-bit PIC RISC (PIC16 mid-range)
Program Memory (Flash) 14 KB (8K x 14 words)
RAM 368 bytes
Data EEPROM 256 bytes
Maximum CPU Frequency 20 MHz
Instruction Cycle 200 ns
Operating Voltage (VDD) 2.0 V to 5.5 V
I/O Pins 33 (PORTA-PORTE)
ADC 10-bit, 8 channels
Timers 2 x 8-bit + 1 x 16-bit
Communication USART, MSSP (SPI/I2C), PSP
Package 40-pin PDIP (DIP-40)
Operating Temperature -40 C to +85 C (Industrial)
Instruction Set Size 35 single-word instructions
I/O Sink/Source Current 25 mA per pin
RoHS Status Compliant
MSL Level 1 (unlimited floor life at <30 C / 85% RH)
Brown-Out Reset Yes
Watchdog Timer Yes (software-enabled, dedicated RC oscillator)

PIC16F877-20I/P Pin Configuration

DIP-40 Package Pinout Diagram DIP-40 40-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 40 2 39 3 38 4 37 5 36 6 35 7 34 8 33 9 32 10 31 11 30 12 29 13 28 14 27 15 26 16 25 17 24 18 23 19 22 20 21 DIP-40
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 voltage (2.0V-5.5V)
Pin 12 VSS — Ground reference
Pin 13 OSC1/CLKIN — Oscillator crystal input / external clock input
Pin 14 OSC2/CLKOUT — 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 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 voltage (2.0V-5.5V)
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 programming input
Pin 37 RB4 — PORTB bit 4
Pin 38 RB5 — PORTB bit 5
Pin 39 RB6/PGC — PORTB bit 6 / In-circuit debugger clock
Pin 40 RB7/PGD — PORTB bit 7 / In-circuit debugger data

Typical Applications

PIC16F877-20I/P is suitable for 6 applications: Industrial Control Panels, Sensor Interface Nodes, Educational Development Platforms, Motor Control Peripheral Logic, Legacy Equipment Maintenance, Instrumentation Front-Ends.

🏭

Industrial Control Panels

The PIC16F877-20I/P fits industrial control panels thanks to its 33 GPIO pins (each with 25 mA source/sink), 8-channel 10-bit ADC for sensor monitoring, and hardware USART for Modbus RTU or RS-485 links. The 14 KB Flash accommodates typical control-loop logic plus a small HMI menu, while the 256-byte EEPROM stores calibration constants that survive power cycles. The wide 2.0V-5.5V supply range tolerates industrial 24V-derived rails after regulation. The brown-out reset and watchdog timer - mandatory in noisy factory environments - are built in. Pin-compatible migration to PIC16F887-I/P is straightforward when production volumes scale.

🧩

Sensor Interface Nodes

For sensor interface nodes, the PIC16F877-20I/P's integrated 8-channel 10-bit ADC eliminates the need for an external converter in temperature, pressure, or light-sensor reading applications. The 200 ns instruction cycle supports sub-millisecond sampling of multiple analog channels in round-robin fashion. The MSSP peripheral implements I2C or SPI for digital sensors, and the hardware USART connects to wireless modules (XBee, LoRa, Bluetooth). With 368 bytes of RAM, multi-channel averaging and digital filtering fit comfortably alongside the I/O scheduler. The DIP-40 package is repair-friendly for field-deployed sensor nodes.

🔧

Educational Development Platforms

The PIC16F877-20I/P is widely used in university embedded-systems courses because the 40-pin PDIP package fits standard breadboards without soldering, and the 35-instruction RISC set is approachable for first-year students. The ICD (In-Circuit Debugger) header on the part enables real-time debugging via MPLAB X and a PICkit programmer, accelerating the learn-debug-iterate cycle. The integrated peripherals (ADC, timers, USART, MSSP) let students explore all major MCU subsystems on a single chip without external component complexity. The mature toolchain (MPLAB X IDE, XC8 compiler) provides free, well-documented development support.

🏭

Motor Control Peripheral Logic

For peripheral motor-control logic (H-bridge drivers, BLDC commutation sequencing, PWM generation), the PIC16F877-20I/P offers the CCP (Capture/Compare/PWM) module generating up to 10-bit PWM resolution, plus the 16-bit Timer1 for precise commutation timing. The 20 MHz CPU provides 5 MIPS, sufficient for sensorless BLDC commutation at moderate RPM. The 33 I/O pins drive phase-enable signals, fault inputs, and current-sense feedback paths without external logic. The industrial -40 C to +85 C temperature range suits motor compartments. Migration to PIC18F4520-I/P is recommended for higher-RPM FOC applications requiring more MIPS.

🔧

Legacy Equipment Maintenance

The PIC16F877-20I/P is commonly sourced for maintaining legacy industrial equipment where the original MCU is no longer manufactured but the through-hole DIP-40 footprint must be preserved for direct PCB replacement. The industrial -40 C to +85 C temperature rating matches factory-floor environments, and the 20 MHz CPU performs identically to the original part, preserving firmware behavior. Microchip's continued shipping of this part supports long-term support contracts. The 256-byte EEPROM allows technicians to update calibration constants in the field via ICSP without removing the chip from the board.

📺

Instrumentation Front-Ends

For instrumentation front-ends (digital panel meters, hand-held multimeters, simple oscilloscope front-ends), the PIC16F877-20I/P's 10-bit ADC provides adequate resolution for voltage/current readout applications, while the LCD-driving capability through PORTA/PORTB simplifies direct segment or character-LCD interfacing without external driver ICs. The hardware USART outputs measurement data to PCs or data loggers, and the I2C MSSP connects to external 16/24-bit ADCs when higher resolution is required. The 14 KB Flash holds calibration tables and user-interface state machines. The DIP-40 form factor is repairable with through-hole rework tools.

Recommended Products Summary

MAX485 RS-485 transceiver for Modbus communication Used in: Industrial Control Panels PIC16F887-I/P Microchip Technology Used in: Industrial Control Panels LM35 Analog temperature sensor using on-chip ADC Used in: Sensor Interface Nodes MCP9700 Low-voltage analog temperature sensor Used in: Sensor Interface Nodes, Legacy Equipment Maintenance PICkit 3 In-circuit debugger and programmer Used in: Educational Development Platforms MPLAB X IDE Free development environment Used in: Educational Development Platforms IR2104 Half-bridge gate driver Used in: Motor Control Peripheral Logic PIC18F4520-I/P Higher-performance migration option Used in: Motor Control Peripheral Logic 24LC256 External I2C EEPROM for legacy firmware expansion Used in: Legacy Equipment Maintenance HD44780 Character LCD controller Used in: Instrumentation Front-Ends MCP3421 18-bit I2C ADC for precision upgrades Used in: Instrumentation Front-Ends
What is the flash memory size of PIC16F877-20I/P?
The PIC16F877-20I/P integrates 14 KB of on-chip program Flash (8K x 14-bit words), alongside 368 bytes of data RAM and 256 bytes of data EEPROM, all organized as separate address spaces. According to the Microchip datasheet (DS30292C), the Flash supports up to 100,000 erase/write cycles and is in-system programmable via ICSP. This density comfortably fits typical embedded control loops, communication stacks, and small user interfaces.
What is the maximum operating frequency of PIC16F877-20I/P?
The PIC16F877-20I/P operates at a maximum CPU clock frequency of 20 MHz, corresponding to a 200 ns instruction cycle time (FOSC/4). Microchip's datasheet specifies HS oscillator mode for 10-20 MHz operation with a crystal, and XT mode for lower frequencies. At 20 MHz the device delivers 5 MIPS of throughput, sufficient for real-time control and modest signal processing.
What package does the PIC16F877-20I/P come in?
The PIC16F877-20I/P ships in a 40-pin PDIP (Plastic Dual In-line Package), commonly designated DIP-40. According to Microchip ordering information, the /P suffix denotes a through-hole PDIP package, while /L indicates PLCC-44 and /PT indicates TQFP-44. The 0.1 inch (2.54 mm) pin pitch suits breadboards and legacy boards.
Is the PIC16F877-20I/P still in production?
According to Microchip's product page, the PIC16F877 family is being phased out in favor of the PIC16F887 (1:1 pin-compatible replacement with enhanced peripherals). Microchip recommends PIC16F887 or PIC18F4520 for new designs. The PIC16F877-20I/P itself is still available through distribution, with 6,840 pieces reported in stock as of September 2026.
What is the difference between PIC16F877 and PIC16F877A?
The PIC16F877A is a functionally compatible variant with an enhanced Flash memory cell (longer retention and higher endurance) and slightly improved ADC specifications. The PIC16F877A shares the same 40-pin DIP footprint, pinout, instruction set, and register map as the PIC16F877. Existing code generally runs unchanged. The 'A' suffix denotes the improved analog and memory subsystem.
Where can I buy PIC16F877-20I/P online?
The PIC16F877-20I/P is in stock at major distributors including DigiKey, Mouser, and Octopart-listed resellers as of September 2026, with 6,840 pieces reported in the Avaq stock feed. Pricing ranges from approximately $8.95 at qty 1 to $5.10 at qty 1000 per XAIPART tier data. Lead time is typically stock-to-2 weeks given broad distribution channels.
What is the price of PIC16F877-20I/P?
As of September 2026, the PIC16F877-20I/P lists at approximately $8.95 per unit at qty 1, dropping to about $5.10 at qty 1000 across DigiKey, Mouser, and Octopart aggregators. Octopart's bulk-discount tool reports price breaks from 13 distributors. Pricing reflects the part's mature lifecycle status - newer pin-compatible PIC16F887 typically prices lower per unit.
What is the lead time for PIC16F877-20I/P?
As of September 2026, the PIC16F877-20I/P shows stock across multiple distributors with typical 1-2 week lead time for small quantities. Octopart reports 6,840 pieces in stock via Avaq alone. Industrial customers ordering qty 1000+ may see 4-6 week factory lead times depending on Microchip's fab allocation, since Microchip recommends migrating new designs to PIC16F887.
Is PIC16F877-20I/P in stock?
Yes, as of September 2026 the PIC16F877-20I/P is in stock with 6,840 pieces reported via Avaq and additional inventory at DigiKey, Mouser, and Microchip direct. The 'NRND' (Not Recommended for New Designs) lifecycle flag indicates Microchip will continue shipping but discourages new design-ins. For new designs, Microchip recommends PIC16F887 or PIC18F4520 as pin-compatible alternatives.
What is the best drop-in replacement for PIC16F877-20I/P?
The best pin-compatible drop-in replacement is the PIC16F887-I/P, which shares the 40-pin PDIP footprint and full peripheral set while upgrading the Flash from 14 KB to 14 KB (same density) with improved ADC and memory endurance. According to Microchip's migration document, PIC16F887 is a 1:1 pin-compatible upgrade with enhanced peripherals. Both parts share the PIC16 mid-range instruction set, enabling code reuse.
PIC16F877-20I/P vs PIC16F887-I/P - which is better for new designs?
For new designs, the PIC16F887-I/P is better: same 40-pin PDIP footprint, same 14 KB Flash, same 368 bytes RAM, but with improved 10-bit ADC (14 channels vs 8), enhanced Flash endurance, and active production status versus PIC16F877's NRND status. Per Microchip's PIC16F887 datasheet (DS30575B), PIC16F887 is a drop-in pin-compatible upgrade requiring minimal code changes - register maps and instruction sets match closely.
Can PIC18F4520 replace PIC16F877-20I/P?
Yes, the PIC18F4520-I/P is a pin-compatible upgrade in the 40-pin PDIP footprint, but it uses the enhanced PIC18 instruction set (16-bit instructions, 31 levels of stack) rather than the PIC16's 14-bit mid-range set. Source code requires recompilation. PIC18F4520 offers 32 KB Flash, 1.5 KB RAM, and faster 10 MIPS operation at 40 MHz - suitable when performance or memory headroom matters more than direct code reuse.
Where to download PIC16F877-20I/P datasheet PDF?
The PIC16F877-20I/P datasheet is available as PDF from Microchip's document repository at https://ww1.microchip.com/downloads/en/DeviceDoc/30292C.pdf (218-page document). The PDF covers electrical characteristics, instruction set, peripheral descriptions, and timing diagrams. Mirror copies appear on alldatasheet.com and findic.us, but the Microchip source is authoritative.
Where to find PIC16F877-20I/P pinout?
The PIC16F877-20I/P pinout is documented on page 4 of Microchip datasheet DS30292C and in the SnapEDA library entry (https://www.snapeda.com/parts/PIC16F877-20I/P/Microchip%20Technology/view-part). The 40-pin PDIP pinout assigns pins 1-40 across PORTA (RA0-RA5), PORTB (RB0-RB7), PORTC (RC0-RC7), PORTD (RD0-RD7), PORTE (RE0-RE2), VDD, VSS, MCLR, OSC1, and OSC2.
What is the best Microchip equivalent for PIC16F877-20I/P from Microchip's own catalog?
Per Microchip's own cross-reference tool (https://www.microchip.com/en-us/cross-reference-search), the best Microchip equivalent for PIC16F877-20I/P is the PIC16F887-I/P - same 40-pin PDIP footprint, same 14 KB Flash, same instruction set, but with enhanced 10-bit ADC (14 channels), improved Flash endurance, and active production status. Both parts are 1:1 pin-compatible with the same oscillator, power, and I/O pin assignments.

Engineering reference data for PIC16F877-20I/P — comparison, design guidance, and compliance information.

Selection Guide

Choose the PIC16F877-20I/P when you need a mature, broadly-supported 8-bit Microchip MCU in a through-hole DIP-40 package for industrial-temperature designs, educational platforms, or legacy equipment maintenance. For new designs where active production status matters more than pin-exact compatibility, prefer the PIC16F887-I/P - same footprint, same Flash/RAM, but enhanced ADC and longer product lifecycle. Choose PIC16F877A-I/P for improved Flash endurance in high-write applications. Choose PIC16F877-04I/P (4 MHz) only when power consumption trumps throughput - useful for battery-powered sensor nodes. Choose PIC16F877-10E/P (10 MHz, extended temperature to +125 C) for under-hood automotive or industrial high-heat applications. All five options share identical 40-pin PDIP pinout, allowing PCB reuse across product variants.

Comparison with Alternatives

Parameter This Product PIC16F887-I/P PIC16F877A-I/P PIC16F877-04I/P PIC16F877-10E/P PIC16F877-20/P
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package 40-pin PDIP (DIP-40) 40-pin PDIP - same 40-pin PDIP - same 40-pin PDIP - same 40-pin PDIP - same 40-pin PDIP - same
Maximum CPU Frequency 20 MHz 20 MHz 20 MHz 4 MHz (-80%) 10 MHz (-50%) 20 MHz
Program Flash Memory 14 KB 14 KB 14 KB 14 KB 14 KB 14 KB
RAM 368 bytes 368 bytes 368 bytes 368 bytes 368 bytes 368 bytes
Data EEPROM 256 bytes 256 bytes 256 bytes 256 bytes 256 bytes 256 bytes
ADC Channels 8 channels, 10-bit 14 channels, 10-bit (+75%) 8 channels, 10-bit 8 channels, 10-bit 8 channels, 10-bit 8 channels, 10-bit
I/O Pins 33 36 33 33 33 33
Operating Temperature -40 C to +85 C (Industrial) -40 C to +85 C -40 C to +85 C -40 C to +85 C -40 C to +125 C (Extended) 0 C to +70 C (Commercial)
Lifecycle Status NRND (Not Recommended for New Designs) Active NRND NRND NRND NRND

Key Differentiators

  • Industrial temperature rating with 20 MHz operation (vs PIC16F877-20/P)
  • Active production vs NRND status (vs PIC16F877-20I/P vs PIC16F887-I/P)
  • Maximum throughput in the PIC16F877 family (vs PIC16F877-04I/P)

Design Notes

Place a 100 nF (0.1 uF) decoupling capacitor as close as physically possible to each VDD pin (pins 11 and 32) with the ground return directly to the adjacent VSS pin (pins 12 and 31). For designs with switching peripherals or relays, add a bulk 10 uF tantalum or aluminum electrolytic capacitor near the MCU supply input. The PIC16F877-20I/P draws approximately 5-15 mA at 20 MHz with all peripherals active - budget accordingly for the regulator. Avoid routing high-current switching traces under the MCU to minimize supply-rail disturbances.

For oscillator stability, keep crystal traces short (under 10 mm) and surround them with a grounded guard ring on the PCB to isolate from digital switching noise. Place the load capacitors (typically 15-33 pF for HS mode at 20 MHz per Microchip datasheet table) directly between each oscillator pin and ground. Avoid routing OSC1/OSC2 traces parallel to high-frequency digital lines; cross them at 90 degrees if necessary. The MCLR pin requires a 10 kohm pull-up to VDD and a 100 nF capacitor to ground for proper reset behavior during power-up.

Do not confuse the PIC16F877 with the PIC16F877A - the 'A' suffix indicates an enhanced Flash memory cell with different programming voltages and timing. Attempting to program a PIC16F877 with PIC16F877A firmware (or vice versa) can fail or produce unreliable Flash endurance. Also note the operating frequency: the -20 suffix in PIC16F877-20I/P denotes 20 MHz max, while -04 and -10 variants are 4 MHz and 10 MHz respectively - inserting a -04 part where -20 is expected will cause timing failures. Always verify the full ordering code including speed suffix before sourcing replacements.

Compliance Information

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Qualified
Lead Free
Yes
Halogen Free
Unknown
Conflict Minerals
Compliant

RoHS compliance per Microchip product page ordering information. Pb-free (lead-free) assembly per Microchip standard. Not AEC-Q100 qualified - the -20I/P variant is industrial-grade, not automotive-qualified; for AEC-Q100 PIC16 options, consult Microchip's PIC16F1x automotive family.

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

Related Searches

PIC16F877-20I/P PIC16F877-20I/P datasheet Microchip PIC16F877 DIP-40 8-bit PIC 14KB flash 20MHz MCU PIC16F877 PDIP-40 through-hole microcontroller PIC16F877 industrial control application PIC16F877 vs PIC16F887 PIC16F877-20I/P pin-compatible replacement buy PIC16F877-20I/P online what is the flash size of PIC16F877 PIC16F877-20I/P lead time stock PIC16F877 educational development board PIC16F877 legacy replacement maintenance PIC16F877A vs PIC16F877 difference PIC16F877 40-pin DIP pinout

Related Components & Terms

Microchip Technology PIC16F877-20I/P PIC16F877 PIC16F887-I/P PIC16F877A-I/P PIC18F4520 PIC16 mid-range 8-bit microcontroller MCU RISC Harvard architecture Flash memory EEPROM 10-bit ADC USART MSSP SPI I2C PDIP-40 DIP-40 ICD ICSP PICkit MPLAB X XC8 AEC-Q100 RoHS industrial temperature range brown-out reset watchdog timer
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