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.
- Manufacturer
- Microchip
- Package
- Dual-In-Line Packages
- Pin Count
- 40
- Lifecycle
- ACTIVE
- Datasheet
- PIC16F877P Datasheet PDF
- 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 Status | Compliant |
| Lead-Free | Yes (Pb-Free) |
Alternate & Equivalent Parts
Compatible alternatives and drop-in replacements for PIC16F877P:
RISC Microcontroller, 8-Bit, FLASH, PIC16 CPU, 20MHz, CMOS, PDIP40
RISC Microcontroller, 8-Bit, FLASH, PIC16 CPU, 20MHz, CMOS, PQCC44
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
CL31A107MQHNNNE 1206 100 uF MLCC Selection Guide
How to choose CL31A107MQHNNNE and related 1206 MLCCs for low-voltage bulk capacitance and regulator stability.
Jul 2, 2026
CL05B103KB5NNNC 0402 10 nF X7R MLCC Selection Guide
How to choose CL05B103KB5NNNC and related 0402 MLCCs for bypassing, filtering, voltage derating, and sourcing.
Jul 2, 2026
ADAQ7768-1 Design Guide for Precision Vibration and Dynamic Signal Measurement
Design ADAQ7768-1 precision data acquisition channels for vibration and dynamic sensing with the right bandwidth, reference, clock, and layout choices.
Jun 30, 2026
AD5204BRZ10 Design Guide for SPI-Controlled Gain and Offset Calibration
Design AD5204BRZ10 digital potentiometer calibration loops with bounded trim span, safe wiper current, clean SPI routing, and reliable startup codes.
Jun 30, 2026
Why Buy from FindMyChip
About Microchip
Microchip is a leading electronic component manufacturer. FindMyChip sources Microchip ICs directly from authorized China distributors, offering competitive pricing and reliable stock.
In Stock · 24h Response · Worldwide Shipping
Response within 24 hours · Worldwide shipping
“FindMyChip sourced our entire STM32 BOM in 48 hours when our usual distributor had 16-week lead times.”