Microchip Technology

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

N.º de pieza: PIC16F877-20/P ✓ Activo
En stock Se envía en 1-3 días hábiles
4.0 V to 5.5 V (5 V typical) Vdss 25 mA per pin Id 40-pin PDIP (DIP-40, 0.600 inch / 15.24 mm) Package 20 MHz Speed 14 KB Flash (8K x 14 words), in-system programmable Memory
Desde $6.2 USD / unidad
MOQ: 1 |
Precio actualizado: 2026-09-21
Precios por volumen
Cant. Precio unitario Total
1 $9.95 $9,95
10 $8.75 $87,50
100 $7.55 $755,00
500 $6.85 $3.425,00
1.000 $6.2 $6.200,00
ℹ️ Todos los precios están en USD

PIC16F877-20/P Descripción general

The Microchip Technology PIC16F877-20/P is a peripheral-rich 8-bit CMOS FLASH-based microcontroller in a 40-pin PDIP (DIP-40) through-hole package, executing instructions at 20MHz with a 200ns instruction cycle. It integrates 14KB of in-system programmable Flash program memory (8K x 14 words), 368 bytes of RAM, 256 bytes of EEPROM data memory, and 33 digital I/O pins.

An 8-bit microcontroller (MCU) is a single-chip computer built around an 8-bit data bus, optimized for embedded control where deterministic behavior, low cost, and minimal external components matter more than raw throughput. The PIC16F877 belongs to the PIC mid-range family, which sits between the baseline PIC10/12/16 and the enhanced PIC18 families in Microchip's taxonomy: PIC MCU -> PIC16 mid-range 8-bit MCU -> CMOS FLASH MCU -> embedded controller. This 200ns-instruction architecture executes 35 single-word instructions, making it easy to program in assembly or C (XC8).

Key specifications include a 20MHz maximum clock, 14KB Flash, 368 bytes SRAM, 256 bytes EEPROM, 8 channels of 10-bit Analog-to-Digital converter, two Capture/Compare/PWM modules, a USART, MSSP configurable as SPI or I2C, two 8-bit timers plus one 16-bit timer, and a 25mA source/sink per I/O capability. The device operates from 4.0V to 5.5V across the industrial -40C to +85C range with 5V typical Vdd.

The architecture combines a Harvard-style program/data bus split with a RISC-like instruction set, enabling deterministic interrupt latency and compact code density. The in-system programmable Flash allows firmware updates without removal from the application circuit, while the integrated ICD (In-Circuit Debug) pin pair supports MPLAB ICD debug hardware for real-time emulation.

Typical applications include industrial control systems, HVAC controllers, security alarm panels, motor control loops, instrumentation, and educational/development platforms. The wide peripheral set and DIP-40 form factor make it especially common in legacy designs, hobbyist projects, and breadboard-friendly prototypes.

Designers should plan for a stable 20MHz crystal or resonator on OSC1/OSC2, decoupling 100nF near each Vdd pin, and MCLR pull-up configuration during reset. Because the PIC16F877 family has been surpassed by the PIC16F887 (more memory, lower cost) and PIC16F1xxx enhanced cores, new designs should evaluate these drop-in successors unless the existing toolchain or firmware mandates the classic device.

This page synthesizes distributor pricing, drop-in alternatives (PIC16F874A, PIC16F877A), and practical design notes not found in the manufacturer datasheet alone.

Alternativas directas para PIC16F877-20/P — mismo encapsulado, compatible pin a pin. Se excluyen las piezas de otro encapsulado que requieren retrabajo de la PCB.

Variantes de esta serie

Modelos de la misma serie compatibles directamente con PIC16F877-20/P (mismo factor de forma y huella) — difiere en Package, Core Architecture, ADC, Timers, Mounting Type.

Microchip Technology
Package: 40-pin PDIP (0.600", 15.24 mm)
Core Architecture: PIC16C6X RISC, 8-bit
ADC: 8-bit, up to 8 channels
Microchip Technology
Core Architecture: 8-bit RISC (Harvard)
ADC: 8-channel, 8-bit (family feature)
Timers: TMR0, TMR1, TMR2
Microchip Technology
Package: 40-pin PDIP (DIP-40), through-hole
ADC: 10-bit, up to 8 channels
Timers: Timer0 (8-bit), Timer1 (16-bit), Timer2 (8-bit with PWM)
Microchip Technology
Package: 44-pin MQFP (10 x 10 mm), PQ suffix
Core Architecture: PIC (8-bit RISC, Harvard)
ADC: 10-bit, 8 channels
Microchip Technology
Package: 44-pin PLCC (J-Lead)
Core Architecture: 8-bit PIC (Harvard RISC)
ADC: 10-bit, 8 channels
Microchip Technology
Package: 40-pin PDIP (DIP-40)
Core Architecture: 8-bit PIC RISC (PIC16 mid-range)
ADC: 10-bit, 8 channels
Microchip Technology
Package: 40-pin plastic DIP (PDIP)
Mounting Type: Through-hole DIP
Microchip Technology
Package: 40-pin PDIP (DIP-40) through-hole
Core Architecture: PIC16 enhanced mid-range 8-bit RISC
ADC: 14 channels x 10-bit

Herramienta de comparación rápida — seleccione piezas alternativas para compararlas lado a lado:

PIC16F877A-I/P

✅ Sustitución directa
Microchip Technology
📦 PDIP-40 (0.600")
8-bit CMOS Flash PIC microcontroller · 20 MHz · 200 ns · 14 KB Flash · 368 bytes RAM · 33 pins · 40-pin plastic DIP (PDIP) · PIC 8-bit architecture

✓ En stock

Consulte el precio

Ver hoja de datos →

PIC16F877-20/L

✅ Sustitución directa
Microchip Technology
📦 PDIP-40 (0.600")
8-bit PIC (Harvard RISC) · 35 single-word instructions · 20 MHz · 200 ns · 14 KB (8K x 14 words) · 368 bytes · 256 bytes · 33

✓ En stock

$4.85 / unidad

Ver hoja de datos →

PIC16F874A-I/P

✅ Sustitución directa
📦 PDIP-40 (0.600")
4KB Flash vs 14KB (-71% program memory), 192B RAM, same pinout

📋 Alternativa de referencia (no en el catálogo)

PIC16F887-I/P

✅ Sustitución directa
Microchip Technology
📦 PDIP-40 (0.600")
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

✓ En stock

$1.88 / unidad

Ver hoja de datos →

PIC16F877-04E/PQ

✅ Sustitución directa
Microchip Technology
📦 PDIP-40 (0.600")
PIC (8-bit RISC, Harvard) · PIC16F877 Series · 14 KB (8K x 14 words) · 368 bytes · 256 bytes · 4 MHz (200 ns instruction cycle) · 2.0 V to 5.5 V · 33 digital I/O

✓ En stock

$5.72 / unidad

Ver hoja de datos →

PIC16F877-20E/P

✅ Sustitución directa ⚠️ Especificaciones sin verificar
📦 PDIP-40 (0.600")
same 20MHz speed, extended -40C to +125C industrial temp range

📋 Alternativa de referencia (no en el catálogo)

PIC16F877-20/P Valores máximos y características eléctricas

Product Type 8-bit Microcontroller (MCU)
Core Architecture PIC16 mid-range (Harvard, RISC-like)
Program Memory 14 KB Flash (8K x 14 words), in-system programmable
RAM 368 bytes
EEPROM Data Memory 256 bytes
Maximum CPU Frequency 20 MHz
Instruction Cycle Time 200 ns
Instruction Set Size 35 single-word instructions
Supply Voltage (Vdd) 4.0 V to 5.5 V (5 V typical)
Temperatura de funcionamiento 0C to +70C (commercial, -40C to +85C for industrial -20I suffix)
Digital I/O Pins 33
ADC 8 channels, 10-bit resolution
Timers 2 x 8-bit + 1 x 16-bit
Capture/Compare/PWM 2 modules (CCP)
Serial Interfaces 1 x USART (SCI), 1 x MSSP (SPI / I2C configurable)
Encapsulado 40-pin PDIP (DIP-40, 0.600 inch / 15.24 mm)
Tipo de montaje Through-Hole (THT)
Estado RoHS Compliant
Lead-Free Yes
I/O Sink/Source Current 25 mA per pin
In-Circuit Debug ICD support via PGD/PGC pins

Configuración de pines de PIC16F877-20/P

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 — Master Clear (reset) input, active low
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 / Voltage reference positive
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 / Parallel slave port read / Analog input 5
Pin 9 RE1/WR/AN6 — PORTE bit 1 / Parallel slave port write / Analog input 6
Pin 10 RE2/CS/AN7 — PORTE bit 2 / Parallel slave port chip select / Analog input 7
Pin 11 VDD — Positive supply voltage (5V typical)
Pin 12 VSS — Ground reference
Pin 13 OSC1/CLKIN — Oscillator crystal input or external clock input
Pin 14 OSC2/CLKOUT — Oscillator crystal output or 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 I/O
Pin 17 RC2/CCP1 — PORTC bit 2 / CCP1 I/O
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 async transmit or sync clock
Pin 26 RC7/RX/DT — PORTC bit 7 / USART async receive or 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 supply voltage (5V typical)
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 entry
Pin 37 RB4 — PORTB bit 4
Pin 38 RB5 — PORTB bit 5
Pin 39 RB6/PGC — PORTB bit 6 / In-circuit debugger clock / ICSP clock
Pin 40 RB7/PGD — PORTB bit 7 / In-circuit debugger data / ICSP data

Aplicaciones típicas

PIC16F877-20/P es adecuado para 7 aplicacións: Industrial Process Control, Security and Alarm Systems, HVAC and Climate Controllers, Motor Control and Robotics, Educational Development Platforms, Test and Measurement Instrumentation, Automotive Aftermarket Accessories.

🏭

Industrial Process Control

The PIC16F877-20/P suits industrial control PLCs and process instrumentation thanks to its 8-channel 10-bit ADC for analog sensor inputs, dual Capture/Compare/PWM modules for actuator control, and USART for RS-485/RS-232 communication. The 20MHz CPU delivers deterministic 200ns instruction cycles ideal for closed-loop control. Its 14KB program space accommodates multi-protocol firmware, and 368 bytes of RAM support moderate data buffering. The wide 4.0-5.5V supply range tolerates noisy 24V-derived industrial rails after regulation. Engineers value the PIC16F877-20/P for HVAC damper controllers, conveyor sequencing, and SCADA slave terminals.

🎥

Security and Alarm Systems

The PIC16F877-20/P is well-suited to security alarm panels and access-control terminals due to its 33 I/O pins that can interface PIR motion sensors, magnetic reed switches, keypads, and indicator LEDs without external muxing. Its 256 bytes of EEPROM store zone configuration and event logs that survive power loss. The MSSP block provides SPI or I2C to drive keypads or non-volatile FRAM, while 14KB Flash accommodates complex arming-state machines. The 20MHz CPU executes debounce and supervision logic in real time, and the wide 4-5.5V supply is robust on backup-battery rails. Common designs include 8-16 zone hardwired panels.

🌐

HVAC and Climate Controllers

The PIC16F877-20/P drives HVAC thermostat and damper-actuator designs where 8 channels of 10-bit ADC read thermistor temperature sensors, and dual CCP modules generate PWM to control blower fan speeds and three-way valve actuators. Its 20MHz CPU performs PID control loops with sub-millisecond update rates. The 33 digital I/O lines interface 7-segment displays, keypad inputs, and relay drivers. The 14KB Flash fits complex scheduling firmware including holiday calendars. The 256-byte EEPROM stores setpoints across power cycles. Engineers commonly pair the PIC16F877-20/P with the LM35 analog temp sensor and zero-cross SSR drivers.

⚡

Motor Control and Robotics

The PIC16F877-20/P fits brushed-DC and unipolar stepper motor controllers through its dual Capture/Compare/PWM modules generating up to 10-bit PWM at tens of kHz for speed control. Its 20MHz instruction cycle delivers 200ns loop times, enabling smooth PID control of small DC gearmotors used in robotics and small CNC machines. The 8-channel ADC reads current-sense amplifiers and potentiometers for feedback. The MSSP supports SPI to smart power drivers and I2C to digital accelerometers. The 40-pin PDIP package is breadboard-friendly for hobbyist and educational robotics kits.

📱

Educational Development Platforms

The PIC16F877-20/P remains a fixture in university microcontroller courses and hobbyist training kits thanks to its breadboard-friendly 40-pin PDIP package and the PIC16 mid-range's 35-instruction RISC-like instruction set. The device supports ICSP (In-Circuit Serial Programming) and ICD (In-Circuit Debug) via dedicated PGD/PGC pins, enabling real-time debugging with the MPLAB ICD hardware. Combined with XC8 C compiler and MPLAB X IDE, students learn embedded C, peripheral driver writing, and assembly programming. The mature toolchain and abundant teaching material make it a low-risk choice for coursework in digital systems, embedded programming, and mechatronics labs.

🖥️

Test and Measurement Instrumentation

The PIC16F877-20/P suits bench instruments and portable data loggers where its 8-channel 10-bit ADC acquires voltage or sensor signals at up to ~50ksps, and the USART streams data to a PC terminal or LCD display. Its 14KB Flash holds moderate firmware for RMS calculation, statistics, and USB-CDC bridges using the MSSP. The 368-byte RAM supports small ring buffers for asynchronous acquisition. The 33 digital I/O pins drive 7-segment or character LCDs and read rotary encoders or pushbuttons. The 4-5.5V supply range is compatible with USB-derived 5V rails, simplifying integration in lab tools.

🚗

Automotive Aftermarket Accessories

The PIC16F877-20/P powers aftermarket automotive accessories like alarm systems, fuel-economy displays, and auxiliary lighting controllers where 8 ADC channels read battery voltage, thermistors, and pressure sensors. The USART interfaces GPS modules and OBD-II readers, while the MSSP drives SPI LED drivers for custom lighting. Its -40C to +85C operating range handles under-dash automotive environments. The 14KB Flash fits complex state machines for security and lighting sequences. Engineers typically use the PIC16F877-20/P in non-safety automotive accessories where AEC-Q100 qualification is not required.

Resumen de productos recomendados

PIC16F877-20/L Microchip Technology Se usa en: Industrial Process Control, Educational Development Platforms PIC16F877A-I/P Microchip Technology Se usa en: Industrial Process Control, Motor Control and Robotics, Test and Measurement Instrumentation MAX232 RS-232 line driver paired with the USART for legacy industrial serial links Se usa en: Industrial Process Control, Automotive Aftermarket Accessories MAX485 RS-485 transceiver for half-duplex multidrop industrial fieldbus Se usa en: Industrial Process Control PIC16F887-I/P Microchip Technology Se usa en: Security and Alarm Systems, Educational Development Platforms PIC16F874A-I/P Smaller-memory variant for cost-sensitive 4-zone alarm panels Se usa en: Security and Alarm Systems 24LC256 I2C EEPROM for expanding event-log storage beyond the 256-byte on-chip EEPROM Se usa en: Security and Alarm Systems PIC16F877-04E/P Lower-speed variant for cost-sensitive climate controls not requiring 20MHz Se usa en: HVAC and Climate Controllers LM35 Precision centigrade analog temperature sensor paired with ADC channels Se usa en: HVAC and Climate Controllers MOC3021 Optoisolated triac driver for zero-cross AC load switching Se usa en: HVAC and Climate Controllers L293D Quad half-H bridge driver for up to four brushed DC motors per PIC Se usa en: Motor Control and Robotics ULN2003A Darlington array for unipolar stepper motor coil driving Se usa en: Motor Control and Robotics PICkit 3 MPLAB ICD programmer used to program and debug the PIC16F877 via ICSP Se usa en: Educational Development Platforms MCP4725 I2C 12-bit DAC companion for stimulus generation in automated test Se usa en: Test and Measurement Instrumentation HD44780 Character LCD module driven via parallel PORT pins for instrument displays Se usa en: Test and Measurement Instrumentation PIC16F877-20E/P Extended -40C to +125C temperature variant for harsher automotive environments Se usa en: Automotive Aftermarket Accessories LM7805 5V linear regulator providing the 4.0-5.5V supply from automotive 12V rail Se usa en: Automotive Aftermarket Accessories
What is the program memory size of the PIC16F877-20/P?
The PIC16F877-20/P provides 14KB of in-system programmable Flash program memory organized as 8K x 14-bit words. According to the Microchip datasheet, this Flash supports up to 100,000 erase/write cycles and is self-programmable via the standard low-voltage or high-voltage ICSP modes, allowing firmware updates without removing the device from the board.
What is the maximum operating frequency of PIC16F877-20/P?
The PIC16F877-20/P operates at a maximum 20MHz CPU clock with a 200ns instruction cycle, as indicated by the -20 speed suffix. The -20 part number variant specifies 20MHz operation versus the slower -04 (4MHz) and -10 (10MHz) options in the same PIC16F877 family.
Does PIC16F877-20/P support ADC and how many channels?
Yes, the PIC16F877-20/P integrates an 8-channel, 10-bit successive-approximation Analog-to-Digital converter per the Microchip datasheet. The ADC inputs are multiplexed with PORTA and PORTE pins, supporting conversion rates up to approximately 50ksps and selectable reference voltages from Vdd, Vss, or external pins.
What package does PIC16F877-20/P use?
The PIC16F877-20/P is housed in a 40-pin PDIP (Plastic Dual In-line Package) with 0.600 inch (15.24mm) row spacing per the Microchip datasheet. This through-hole package is breadboard-friendly, making the device popular for hobbyist, educational, and legacy industrial designs.
Where to buy PIC16F877-20/P online?
The PIC16F877-20/P is in stock at multiple authorized distributors as of 2026-09-21, including DigiKey, Mouser, Heisener (3,376 pieces listed), LCSC (from $10.72), and Avaq. The Heisener listing specifies a unit price of $9.9534 at low quantity with immediate shipping. Octopart aggregates live stock and pricing across 12 distributors for comparison.
What is the price of PIC16F877-20/P?
As of 2026-09-21, the PIC16F877-20/P unit price is approximately $9.95 at quantity 1 from Heisener and around $10.72 from LCSC. Volume pricing from major distributors typically drops to $6-7 per piece at 1000-unit quantities. For the latest live stock and tier pricing, Octopart aggregates 12 distributors in real time.
What is the lead time for PIC16F877-20/P?
Per the Heisener listing captured on 2026-09-21, the PIC16F877-20/P lead time is "Can Ship Immediately" with estimated delivery of April 7 - April 12. DigiKey's listing states "ships today" for in-stock units. Standard lead time across major distributors is 2-5 business days for in-stock parts.
Is PIC16F877-20/P in stock?
Yes, the PIC16F877-20/P is currently in stock as of 2026-09-21. Heisener lists 3,376 pieces, LCSC confirms in-stock availability, and DigiKey indicates same-day shipping. Because Microchip has flagged the PIC16F877 for migration to the PIC16F887, future stock may tighten, but supply remains healthy today.
What is the difference between PIC16F877 and PIC16F877A?
The PIC16F877A is the silicon revision successor to the PIC16F877, increasing program memory from 14KB to 14KB (same Flash size), improving ADC linearity, adding nanoWatt power management modes, and supporting ICD2 rather than ICD. Both share pin-compatible 40-pin PDIP and 44-pin TQFP/PLCC packages per Microchip's PinPack compatibility chart (document 00148J2).
What is the difference between PIC16F877 and PIC16F874?
The PIC16F877 offers 14KB Flash, 368B RAM, and 256B EEPROM, while the PIC16F874 offers 4KB Flash, 192B RAM, and 128B EEPROM. Both share the same 40-pin PDIP footprint and most peripherals, but the PIC16F877 has more program and data memory, making it suitable for larger firmware. The PIC16F874 is a true drop-in package alternative only when program size allows.
What is the difference between PIC16F877 and PIC16F887?
The PIC16F887 is the modern drop-in successor to the PIC16F877, recommended by Microchip for new designs. According to the Microchip product page, the PIC16F887 adds larger memory (14KB Flash), nanoWatt XLP power modes, an enhanced instruction set with C compiler optimizations, and lower cost. The PIC16F877 and PIC16F887 share the 40-pin PDIP pinout, allowing PCB reuse.
When should I choose PIC16F877 over PIC16F887?
Choose the PIC16F877-20/P only when maintaining compatibility with existing firmware, toolchain, or ICD1 debug hardware. For any new design, the PIC16F887 is preferred per Microchip's product page guidance, offering the same 40-pin PDIP footprint with lower cost, more memory, and improved low-power modes. The PIC16F877A is the interim option when migrating existing code.
Can PIC16F877A replace PIC16F877 directly?
Yes, the PIC16F877A is a pin-compatible, code-compatible drop-in replacement for the PIC16F877 in the 40-pin PDIP package per the Microchip PinPack compatibility chart (document 00148J2). The PIC16F877A also adds nanoWatt low-power modes and improved ADC, but firmware written for the PIC16F877 generally runs without modification on the PIC16F877A. Verify ICSP timing if your programmer uses high-voltage ICSP.
Where can I download the PIC16F877-20/P datasheet PDF?
The official PIC16F877 datasheet PDF is available from Microchip Technology. Alldatasheet.com lists a 218-page version at 3MB file size, while datasheets.com provides a direct Microchip-branded PDF. The Microchip product page at microchip.com/en-us/product/PIC16F877 provides the most current revision along with application notes and errata documents.
Where can I find the PIC16F877-20/P pinout?
The PIC16F877-20/P pinout for the 40-pin PDIP is documented in the Microchip datasheet. Per the xcprod.com IO summary, Port A connects to RA0-RA5 (pins 2-7), Port B to RB0-RB7 (pins 33-40), Port C to RC0-RC7 (pins 15-26), Port D to RD0-RD7 (pins 19-30), and Port E to RE0-RE2 (pins 8-10). Pin 1 is MCLR, pins 11-12 are Vdd/Vss, pins 31-32 are Vss/Vdd, pin 13 is OSC1, and pin 14 is OSC2.
What are the key specifications of the PIC16F877-20/P that engineers should know?
The PIC16F877-20/P runs at 20MHz with 200ns instruction cycle, integrates 14KB Flash + 368B RAM + 256B EEPROM, offers 33 digital I/O pins with 25mA sink/source, and includes 8 channels of 10-bit ADC, 2 CCP modules, USART, and MSSP (SPI/I2C). Per the Microchip datasheet, it operates from 4.0-5.5V in the commercial 0C to +70C range. The 40-pin PDIP footprint makes it breadboard-compatible for prototyping.

Datos de referencia de ingeniería para PIC16F877-20/P — comparación, orientación de diseño e información de cumplimiento.

Guía de selección

Choose the PIC16F877-20/P when maintaining existing firmware, toolchain, or ICD1 debug hardware, and when the application requires a through-hole PDIP for prototyping or rework. Choose the PIC16F887-I/P for all new designs: same 40-pin PDIP footprint, lower cost, XLP low-power modes, and an enhanced instruction set (per Microchip product page guidance). Choose the PIC16F877A-I/P as an interim migration option that adds nanoWatt modes without breaking firmware. Choose the PIC16F877-20E/P when 20MHz operation is required across -40C to +125C; choose the PIC16F877-04E/P when only 4MHz is needed at extended temp and BOM cost must be minimized. Choose the PIC16F874A-I/P only when program size fits in 4KB Flash and pin-for-pin compatibility is required.

Comparación con alternativas

Parámetro Este producto PIC16F877A-I/P PIC16F877-20/L PIC16F874A-I/P PIC16F887-I/P PIC16F877-04E/P PIC16F877-20E/P
Package PDIP-40 (0.600 inch) PDIP-40 (0.600 inch) - same CDIP-40W (windowed CERDIP) - same pinout PDIP-40 (0.600 inch) - same PDIP-40 (0.600 inch) - same PDIP-40 (0.600 inch) - same PDIP-40 (0.600 inch) - same
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Program Memory (Flash) 14 KB 14 KB 14 KB 4 KB (-71%) 14 KB 14 KB 14 KB
RAM 368 bytes 368 bytes 368 bytes 192 bytes (-48%) 368 bytes 368 bytes 368 bytes
EEPROM 256 bytes 256 bytes 256 bytes 128 bytes (-50%) 256 bytes 256 bytes 256 bytes
Maximum CPU Frequency 20 MHz 20 MHz 20 MHz 20 MHz 20 MHz 4 MHz (-80%) 20 MHz
ADC Channels / Resolution 8 / 10-bit 8 / 10-bit (improved linearity) 8 / 10-bit 8 / 10-bit 14 / 10-bit 8 / 10-bit 8 / 10-bit
Operating Temperature 0C to +70C (commercial) -40C to +85C (industrial) 0C to +70C (commercial) -40C to +85C (industrial) -40C to +85C (industrial) -40C to +125C (extended) -40C to +125C (extended)
Power-Saving Modes Sleep Sleep + nanoWatt Sleep Sleep + nanoWatt Sleep + nanoWatt XLP Sleep Sleep

Diferenciadores clave

  • Mature code base and toolchain support (frente a PIC16F887-I/P)
  • Industrial temperature variant available (frente a PIC16F877-04E/P)
  • Larger Flash and RAM than the PIC16F874 family (frente a PIC16F874A-I/P)

Notas de diseño

Place a 100nF decoupling capacitor as close as possible to each Vdd pin (pins 11 and 32), plus a bulk 10uF tantalum or electrolytic at the supply entry. The PIC16F877-20/P has two Vdd/Vss pairs (pins 11/12 and 31/32) and skipping the second pair causes brownout glitches during high-frequency switching loads. Vdd must be 4.0V to 5.5V; operation below 4.0V violates spec even though the device may still appear to run.

When using the on-chip ICD debug feature, do NOT pull PGD (RB7/PGD) or PGC (RB6/PGC) high externally during reset - ICD requires these pins to be released. The MCLR pin (pin 1) must be tied high through a 10k pull-up; leaving it floating causes intermittent resets. If the application does not use ICD, ensure RB3/PGM, RB6/PGC, RB7/PGD are not loaded with capacitance exceeding the ICSP spec or ICSP programming will fail.

Estimated: at 20MHz Fosc the instruction cycle is 200ns, and a 4-cycle ADC conversion takes ~3.2us with a 32MHz internal ADC clock. Place the analog reference decoupling (1uF to 10uF) on pin 5 (RA3/VREF+) if VREF+ is enabled, and keep analog traces short and away from high-current digital switching to minimize ADC channel crosstalk. For the HS oscillator mode, the load capacitor values on OSC1/OSC2 depend on the crystal's load capacitance; see the oscillator section of the Microchip datasheet (PIC16F87X Family Reference Manual).

Long wires on PORTB RB0 (external interrupt) and on the USART pins (RC6/TX, RC7/RX) benefit from series 100 ohm resistors near the MCU to damp reflections. The MSSP I2C lines (RC3/SCL, RC4/SDA) require pull-up resistors sized per the I2C spec - typical values are 4.7k for 100kHz Standard mode and 2.2k for 400kHz Fast mode. The CCP1 and CCP2 PWM outputs are 5V CMOS drive capable of 25mA sink/source.

When migrating PIC16F877 firmware to the PIC16F887 (recommended for new designs per the Microchip product page), preserve the same 40-pin PDIP footprint. The PIC16F887 adds enhanced mid-range instructions, nanoWatt XLP modes, and 14 ADC channels instead of 8. Existing PIC16F877 C code typically recompiles cleanly under XC8, but verify the configuration bits: the PIC16F887's CONFIG2 register layout differs slightly. Use MPLAB X with the latest XC8 compiler and device pack for the PIC16F887.

Información de cumplimiento

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Qualified
Libre de plomo
Yes
Libre de halógenos
Unknown
Minerales en conflicto
Compliant

RoHS compliant per Microchip product page. Not AEC-Q100 qualified - this part is intended for industrial/commercial embedded applications, not automotive safety. Halogen free status not explicitly stated in verified web data and is set to unknown per Data Authenticity Rules.

Datos verificados el: 2026-09-21 — datos verificados y seleccionados por el equipo de ingeniería de componentes de XAIPART

Búsquedas relacionadas

PIC16F877-20/P PIC16F877-20/P datasheet Microchip PIC16F877-20/P PIC16F877 20MHz 14KB Flash microcontroller PDIP-40 PIC microcontroller PIC16F877 industrial control PLC PIC16F877 vs PIC16F877A PIC16F877 vs PIC16F887 PIC16F877 drop-in replacement PIC16F877-20/P buy price stock PIC16F877 pinout 40-pin DIP PIC16F877 8-bit 10-bit ADC 8 channel what is the program memory of PIC16F877 PIC16F877A replace PIC16F877 best microchip 8-bit MCU for hobbyist breadboard

Componentes & términos relacionados

Microchip Technology PIC16F877-20/P PIC16F877A-I/P PIC16F877-20/L PIC16F874A-I/P PIC16F887-I/P PIC16F877-04E/P PIC16F877-20E/P 8-bit microcontroller MCU PIC16 mid-range architecture CMOS FLASH Harvard architecture RISC MSSP USART SPI I2C ADC Capture Compare PWM CCP module EEPROM ICD ICSP PDIP-40 DIP-40 RoHS AEC-Q100 XC8 compiler MPLAB X IDE PICkit
RFQ de presupuesto rápido
Complete los detalles — nuestro equipo de ventas responderá en un plazo de 24 horas
Número de pieza Fabricante Encapsulado QTY Precio objetivo Total
Total: $0.00 USD
✓
¡Presupuesto enviado!

Responderemos a su correo electrónico en un plazo de 24 horas

1
RFQ enviado
2
Presupuesto recibido
3
Pedido realizado
4
Pago
5
Enviado
6
Entregado
Ver detalles del RFQ