PIC16F877P Microchip Integrated Circuit (Dual-In-Line Packages) In Stock

The Microchip PIC16F877P is a 40-pin 8-bit CMOS Flash microcontroller with 14 KB of program memory, 368 bytes of RAM, and 256 bytes of EEPROM. It runs at up to 20 MHz and integrates a 10-bit 8-channel ADC, two CCP modules, USART, SPI, and I2C peripherals. Available in PDIP-40 package with worldwide stock and fast shipping.

ACTIVEIntegrated CircuitVerified Jun 2026
Package / Visual Reference
PIC16F877PDual-In-Line Packages
Quick Facts
Manufacturer
Microchip
Package
Dual-In-Line Packages
Pin Count
40
Lifecycle
ACTIVE
Category
Integrated Circuit
RoHS
Compliant
Lead Time
3–7 business days
Shipping
DHL Express · Worldwide

Key Features

  • 14 KB Flash program memory with in-circuit serial programming (ICSP) for fast firmware updates without removing the IC from the board
  • 8-channel 10-bit ADC enabling simultaneous sampling of up to 8 analog sensor signals with 4.88 mV resolution at 5 V
  • Dual CCP modules support PWM output and input capture up to 1.25 MHz for precise motor control and frequency measurement
  • USART, SPI, and I2C peripherals on-chip eliminate external communication ICs, reducing BOM cost in embedded control designs

Applications

The PIC16F877P is a classic choice for educational embedded systems projects, prototype control boards, and low-volume industrial automation equipment that requires a full-featured 8-bit MCU in a breadboard-friendly 40-pin DIP package. It is commonly used in temperature monitoring systems, small motor controllers, and data loggers that leverage its 8-channel 10-bit ADC and USART peripheral for sensor reading and serial communication. Legacy industrial equipment and agricultural sensor nodes continue to rely on the PIC16F877P because replacement firmware can be flashed in-circuit via ICSP without disassembling the product.

Compliance & Regulatory

RoHS StatusCompliant
Lead-FreeYes (Pb-Free)

Datasheet

PIC16F877P Datasheet Download

Official datasheet from Microchip

Alternate & Equivalent Parts

Compatible alternatives and drop-in replacements for PIC16F877P:

PIC16F877A-I/PMicrochip Technology Inc

RISC Microcontroller, 8-Bit, FLASH, PIC16 CPU, 20MHz, CMOS, PDIP40

View Part →
PIC16F877A-I/LMicrochip Technology Inc

RISC Microcontroller, 8-Bit, FLASH, PIC16 CPU, 20MHz, CMOS, PQCC44

View Part →

Frequently Asked Questions

What is the maximum clock speed and program memory size of the PIC16F877P for real-time control tasks?

The PIC16F877P runs at a maximum clock frequency of 20 MHz, executing most instructions in a single 200 ns machine cycle (4 clock periods per instruction cycle). It contains 14 KB (8,192 x 14-bit words) of Flash program memory, sufficient for moderately complex control algorithms including PID loops, state machines, and communication protocol handlers. The 368-byte SRAM provides enough working memory for typical sensor averaging buffers and communication frame queues in real-time embedded applications.

How many analog input channels does the PIC16F877P ADC provide, and what resolution is achievable?

The PIC16F877P integrates an 8-channel 10-bit successive-approximation ADC, delivering 1,024 discrete levels for a resolution of approximately 4.88 mV per count at a 5 V reference. Conversion time is as fast as 1.6 µs per sample at 20 MHz, enabling sampling rates up to 100 kSPS for audio-frequency signals. Eight simultaneously available analog input pins (AN0 through AN7) allow a single PIC16F877P to read temperature sensors, pressure transducers, potentiometers, and current-sense resistors without external multiplexer ICs.

Which communication interfaces are built into the PIC16F877P, and which protocols can it support natively?

The PIC16F877P integrates three on-chip communication peripherals: a USART supporting RS-232 asynchronous and synchronous modes up to 312.5 kbps at 20 MHz; an SSP module for SPI (up to 5 Mbps master mode) and I2C (up to 400 kHz fast mode); and a parallel slave port (PSP) for microprocessor bus interfacing. These native peripherals allow the PIC16F877P to communicate with GPS modules via USART, read EEPROM and sensor ICs via I2C, and control DACs or SD cards via SPI without any additional UART or bus expander chips.

When should an engineer choose the PIC16F877P over the newer PIC16F887 for a replacement or new design?

The PIC16F877P is preferable when maintaining backward compatibility with an existing PIC16F877-based design, since it shares the same 40-pin PDIP pinout and instruction set, allowing firmware reuse with zero code changes. The PIC16F887 adds 256 extra bytes of SRAM, an enhanced comparator, and a 25 mA sink/source per pin versus 20 mA on the PIC16F877P. For new designs, the PIC16F887 is typically the better choice; but for production-line repairs or end-of-life board rebuilds where the 40-pin PDIP footprint is locked, the PIC16F877P remains the correct drop-in replacement.

Related Guides

Why Buy from FindMyChip

Authorized Source
Verified supply chain with full traceability & inspection
$
Competitive Pricing
Factory-direct from China distributors, low MOQ
Fast Shipping
DHL Express 3–5 days · FedEx/UPS 5–7 days worldwide
Quality Guaranteed
30-day replacement for defective parts, no questions asked

About Microchip

Microchip is a leading electronic component manufacturer. FindMyChip sources Microchip ICs directly from authorized China distributors, offering competitive pricing and reliable stock.

AvailabilityIn Stock
Reference Price (USD)
Contact for Price
Buy from 1pc · Factory-direct pricing
pcs

In Stock · 24h Response · Worldwide Shipping

Lead Time3-7 business days
MOQFrom 1 piece
ShippingDHL / FedEx / UPS
OriginChina (Authorized)

Response within 24 hours · Worldwide shipping

FindMyChip sourced our entire STM32 BOM in 48 hours when our usual distributor had 16-week lead times.

TM
Thomas Mueller
Hardware Lead, SensorTech GmbH, Germany