Loading…
Loading…
DIP-40 · PIC16F877A-I/P
Microchip Technology · DIP-40 · 8-bit PIC MCU
Price on Request
Get a competitive quote within 24 hours. Volume discounts available. Shenzhen stock ships in 1-2 business days.
The PIC16F877A-I/P is a 40-pin PDIP mid-range PIC that remains one of the most widely recognised 8-bit microcontrollers in the industry, largely because two decades of university curricula, textbooks and industrial products were built on it. It executes 35 single-word RISC instructions at DC to 20 MHz (200 ns instruction cycle) from a 4.0 V to 5.5 V supply, with 8K x 14-bit words of flash program memory (about 14 KB), 368 bytes of data SRAM, 256 bytes of data EEPROM and 33 I/O pins across ports A to E. The -I suffix denotes the industrial -40 C to +85 C temperature range and the P suffix the plastic DIP.
Peripherals are generous for its generation: an 8-channel 10-bit ADC, two analog comparators with voltage reference, an MSSP module providing SPI master and I2C master/slave operation, a synchronous/asynchronous USART with 9-bit address detection, an 8-bit parallel slave port for microprocessor-bus style interfacing, three timers (8-bit Timer0 with prescaler, 16-bit Timer1 that can run during sleep, 8-bit Timer2 with period register), and two capture/compare/PWM modules with 10-bit PWM resolution. Add 15 interrupt sources, in-circuit serial programming, two-pin in-circuit debug, brown-out reset, a watchdog with its own RC oscillator, selectable oscillator options and code protection, and the part covers most low-cost control duties.
Two sourcing realities matter. First, the PIC16F877A is a mature, legacy-grade device: Microchip still manufactures it and the 40-pin DIP is a repair-market staple, but for new designs the pin-compatible PIC16F887 (or the modern PIC16F18875) delivers more flash, better peripherals and lower cost. Second, this is one of the most counterfeited ICs on the broker market: blank or lower-density PIC16F876A/877 dies remarked as 877A, and pulled parts with re-tinned leads. Verify electrically - read the device ID and full flash map with a PICkit 3 or ICD, and confirm the EEPROM and SRAM sizes. MOQ for the DIP-40 is one tube (10 pcs) for prototypes; volume orders are 500-1,000 pcs, with Shenzhen stock typically shipping in 1-2 days.
For repair and legacy production buy genuine Microchip with lot traceability and run a full-flash program/verify test on receipt; for new designs quote the PIC16F887 in parallel - it is pin compatible, cheaper and avoids a redesign when the 877A eventually reaches end of life.
Microchip lists the PIC16F877A as an Active product, and the -I/P DIP remains available, but it is a legacy device that Microchip steers new designs away from. The recommended replacements are the PIC16F887 (same 40-pin pinout, 8K x 14 flash, more peripherals) and the modern PIC16F18875 with independent peripherals. For repairs and existing firmware, the 877A is still the correct buy.
Same silicon architecture and pinout. The F version is specified at 4.0 V to 5.5 V; the LF version operates from 2.0 V to 5.5 V for battery and 3.3 V designs, with the usual low-voltage frequency derating. A PIC16F877A will not reliably run at 3.3 V, so do not substitute it into a 3.3 V board.
In most cases yes, because Microchip kept the 40-pin pinout compatible, and the 887 adds a second MSSP-capable feature set, more flash and better ADC. You must recompile firmware for the different configuration words and register set, and verify oscillator and brown-out settings. Always prototype before committing a production change.
Check the oscillator configuration bits: HS is required above 4 MHz (XT covers 100 kHz to 4 MHz) and the crystal needs correct load capacitors on OSC1/OSC2. Also confirm the part is genuine and not a remarked lower-grade device, and that MCLR is not being held low. Instruction cycle time is Fosc/4, so a 20 MHz crystal gives a 200 ns cycle.
Program and verify a test image that touches the entire 8K-word flash, then read back the device ID and check the reported data EEPROM and SRAM sizes with a PICkit 3, PICkit 4 or ICD 4 - remarked 876A dies show 4K words and 192 bytes. Look for laser etching rather than ink, matte-tin leads, uniform date codes and correct weight. We can provide X-ray inspection and an electrical test report per lot.
Prototype MOQ is one factory tube (10 pcs); volume is 500-1,000 pcs, with TQFP-44 (-I/PT) available for surface-mount assembly. Microchip authorised lead time is typically 10-20 weeks; our Shenzhen stock usually holds thousands of pieces and ships in 1-2 business days.
Submit an RFQ — we reply within 24 hours with stock, pricing, lead time and packaging options.
Request a Quote →