Opens in a new tab

Authorized electronic component supplier · 12,000+ part numbers in stock

MENU

Instant Quote

SEARCH PARTS

PIC16F877A-I

8-bit PIC MCU ‘A’ rev, 14KB Flash, 368B RAM, 256B EEPROM, 8-ch 10-bit ADC, 2 CCP, 2 comparators, SPI/I2C/USART, PSP, ICD, self-program, industrial -40°C~85°C

Effective inventoryPCS

9527
in stock

SpecificationsTechnical data

Manufacturer part

PIC16F877A-I

Package

40-pin PDIP / 44-pin PLCC / 44-pin TQFP / QFN

Brand

MICROCHIP

Category

Integrated Circuits ICs, Microcontrollers (MCU)

Quality Commitment

Shipping & Payment

Service & Packaging

DescriptionProduct overview

Product Overview

The PIC16F877A-I is the enhanced ‘A’ revision of the legendary PIC16F877 40-pin, 8-bit Flash-based CMOS microcontroller from Microchip Technology. Building on the classic design with significant improvements, it features enhanced Flash memory (100K erase/write cycles), self-programming capability, built-in In-Circuit Debug (ICD), and improved electrical characteristics. Offering 14KB (8K x 14 words) of Flash program memory, 368 bytes of RAM, and 256 bytes of data EEPROM (1M cycles), it operates at up to 20 MHz with a 200 ns instruction cycle across an industrial temperature range of -40°C to +85°C. The comprehensive peripheral set includes an 8-channel 10-bit ADC, two analog comparators, two CCP modules, SSP (SPI/I2C), USART, and a Parallel Slave Port (PSP). As one of the most popular 8-bit MCUs ever made, the PIC16F877A remains a benchmark for industrial control, automotive electronics, consumer products, and embedded system education worldwide.

Key Specifications

Core Architecture 8-bit PIC (Mid-Range Core, ‘A’ revision)
Program Memory 14KB Flash (8K x 14 words), 100K E/W cycles
RAM 368 bytes
Data EEPROM 256 bytes, 1M E/W cycles, >40yr retention
Maximum Speed 20 MHz (5 MIPS)
Operating Voltage 2.0V to 5.5V
I/O Pins 33
ADC 10-bit, 8 channels
Comparators 2
Timers 2 x 8-bit (TMR0/TMR2) + 1 x 16-bit (TMR1)
PWM 2 x CCP (Capture/Compare/PWM), 10-bit
Communication SPI, I2C (SSP), USART
Parallel Port PSP (Parallel Slave Port), 8-bit
Debug Built-in In-Circuit Debug (ICD)
Self-Programming Yes (self-write Flash capability)
Oscillator External (RC, XT, HS, LP, EC options)
Stack Levels 8
Operating Temperature -40°C to +85°C (Industrial)
Package 40-pin PDIP / 44-pin PLCC / 44-pin TQFP / QFN

Features

  • Enhanced ‘A’ revision with improved Flash and EEPROM endurance
  • High-performance RISC CPU with only 35 single-word instructions
  • Enhanced Flash: 100,000 erase/write cycles typical
  • Data EEPROM: 256 bytes, 1M cycles, >40 year retention
  • Self-reprogrammable under software control (bootloader support)
  • Built-in In-Circuit Debug (ICD) via two pins
  • 8-channel 10-bit Analog-to-Digital Converter (ADC)
  • Two analog comparators with programmable on-chip voltage reference
  • Two Capture/Compare/PWM (CCP) modules: 16-bit capture, 10-bit PWM
  • Synchronous Serial Port (SSP) with SPI (Master/Slave) and I2C (Master/Slave)
  • Universal Synchronous Asynchronous Receiver Transmitter (USART/SCI)
  • Parallel Slave Port (PSP) with 8-bit wide read/write interface
  • Timer0: 8-bit timer/counter with 8-bit programmable prescaler
  • Timer1: 16-bit timer/counter with prescaler, can increment during Sleep
  • Timer2: 8-bit timer/counter with period register, prescaler, and postscaler
  • Power-on Reset (POR), Power-up Timer (PWRT), Oscillator Start-up Timer (OST)
  • Programmable Brown-out Reset (BOR)
  • Watchdog Timer (WDT) with on-chip RC oscillator
  • In-Circuit Serial Programming (ICSP) via two pins
  • Programmable code protection for program and data memory
  • Power-saving Sleep mode
  • High sink/source current: 25 mA per I/O pin
  • Industrial temperature range: -40°C to +85°C
  • Pinout compatible with PIC16F877 (original)

Applications

  • Industrial control systems and PLCs
  • Automotive electronics and body control modules
  • Consumer electronics and smart appliances
  • Motor control and power management systems
  • Data acquisition and multi-channel sensor monitoring
  • Medical devices and diagnostic equipment
  • Embedded systems education and development platforms
01PIC16F877A-I · Product Introduction
The PIC16F877A-I is the enhanced ‘A’ revision of Microchip’s legendary PIC16F877, widely regarded as one of the most popular 8-bit microcontrollers ever produced. This 40/44-pin Flash-based CMOS MCU features the Mid-Range PIC architecture with significant improvements over the original PIC16F877. Key enhancements include enhanced Flash memory with 100,000 erase/write cycles (vs. 1,000 for the original), self-programming capability enabling firmware updates via bootloader, and built-in In-Circuit Debug (ICD) support that eliminates the need for external debug headers. It offers 14KB (8K x 14 words) of Flash program memory, 368 bytes of RAM, and 256 bytes of data EEPROM with 1M erase/write cycles and >40 year data retention. Operating at up to 20 MHz (5 MIPS) across industrial temperature range (-40°C to +85°C), the peripheral set includes an 8-channel 10-bit ADC, two analog comparators with programmable voltage reference, two CCP modules, an SSP module for SPI/I2C (both Master and Slave modes with address masking), a USART for serial communication, and a Parallel Slave Port (PSP) for 8-bit parallel interface. Three timer modules (TMR0, TMR1, TMR2) provide flexible timing and PWM generation. With 33 I/O pins, programmable Brown-out Reset, Watchdog Timer, and code protection, the PIC16F877A is the industry-standard 8-bit MCU for industrial, automotive, consumer, medical, and educational applications.
02PIC16F877A-I · Working Principle
The PIC16F877A-I operates on the Mid-Range PIC RISC architecture with Harvard design, providing separate 14-bit program memory and 8-bit data memory buses for concurrent access. The ‘A’ revision introduces enhanced Flash technology with 100x higher endurance (100K vs. 1K cycles) and self-programming capability via special Flash control registers, enabling the MCU to update its own program memory under software control – essential for bootloader and field-upgrade applications. The built-in ICD module allows real-time in-circuit debugging through the same two pins used for ICSP programming, significantly reducing development cost and complexity. The 10-bit ADC uses successive approximation register (SAR) architecture with 8 input channels and selectable voltage references. Two analog comparators with Comparator Voltage Reference (CVREF) enable threshold detection and window comparison. Two CCP modules provide 16-bit capture (12.5 ns resolution at 20 MHz), 16-bit compare, and up to 10-bit PWM resolution for motor control and power regulation. The SSP module handles both SPI and I2C (Master/Slave with 7-bit address masking and SMBus/PMBus compatibility) in hardware. The USART provides asynchronous RS-232 compatible and synchronous serial communication. The Parallel Slave Port (PSP) is an 8-bit bidirectional parallel interface for high-speed data transfer with external microprocessors. The 256 bytes of EEPROM provide high-endurance non-volatile storage. Power management includes Sleep mode, programmable Brown-out Reset, and Watchdog Timer with independent RC oscillator for reliable operation in industrial environments.
03PIC16F877A-I · Pin Description
Pin (PDIP-40) Name Type Function
1 MCLR/VPP/RE3 I/P Master Clear / Programming Voltage / Port E I/O
2 RA0/AN0 I/O Port A I/O / ADC Channel 0
3 RA1/AN1 I/O Port A I/O / ADC Channel 1
4 RA2/AN2/VREF-/CVREF I/O Port A I/O / ADC Ch2 / Vref Neg / Comp Vref
5 RA3/AN3/VREF+ I/O Port A I/O / ADC Ch3 / Vref Positive
6 RA4/T0CKI I/O Port A I/O / Timer0 Clock Input
7 RA5/SS/AN4 I/O Port A I/O / SPI Slave Select / ADC Ch4
8 RE0/RD/AN5 I/O Port E I/O / PSP Read / ADC Ch5
9 RE1/WR/AN6 I/O Port E I/O / PSP Write / ADC Ch6
10 RE2/CS/AN7 I/O Port E I/O / PSP Chip Select / ADC Ch7
11 VSS P Ground Reference
12 RD0/PSP0 I/O Port D I/O / Parallel Slave Port Bit 0
13 RD1/PSP1 I/O Port D I/O / Parallel Slave Port Bit 1
14 RD2/PSP2 I/O Port D I/O / Parallel Slave Port Bit 2
15 RD3/PSP3 I/O Port D I/O / Parallel Slave Port Bit 3
16 RC0/T1OSO/T1CKI I/O Port C I/O / T1OSO / Timer1 Clock
17 RC1/T1OSI/CCP2 I/O Port C I/O / T1OSI / CCP2
18 RC2/CCP1 I/O Port C I/O / CCP1
19 RC3/SCK/SCL I/O Port C I/O / SPI Clock / I2C Clock
20 RD4/PSP4 I/O Port D I/O / Parallel Slave Port Bit 4
21 RD5/PSP5 I/O Port D I/O / Parallel Slave Port Bit 5
22 RD6/PSP6 I/O Port D I/O / Parallel Slave Port Bit 6
23 RD7/PSP7 I/O Port D I/O / Parallel Slave Port Bit 7
24 RC4/SDI/SDA I/O Port C I/O / SPI Data In / I2C Data
25 RC5/SDO I/O Port C I/O / SPI Data Out
26 RC6/TX/CK I/O Port C I/O / USART TX/Clock
27 RC7/RX/DT I/O Port C I/O / USART RX/Data
28 VSS P Ground Reference
29 VDD P Positive Supply Voltage
30 RB0/INT I/O Port B I/O / External Interrupt
31 RB1/C12IN0- I/O Port B I/O / Comparator Negative Input 0
32 RB2/C12IN1- I/O Port B I/O / Comparator Negative Input 1
33 RB3/PGM/C2OUT I/O Port B I/O / LVP / Comparator2 Output
34 RB4/C1OUT I/O Port B I/O / Comparator1 Output
35 RB5 I/O Port B I/O
36 RB6/ICSPCLK I/O Port B I/O / ICSP Clock
37 RB7/ICSPDAT I/O Port B I/O / ICSP Data
38 OSC1/CLKIN I Oscillator Input / Clock Input
39 OSC2/CLKOUT O Oscillator Output / Clock Output
40 VDD P Positive Supply Voltage
04PIC16F877A-I · Application Scenarios
  • Industrial PLCs and factory automation controllers
  • Automotive electronics and body control modules
  • Smart home appliances and consumer electronics
  • Motor control drives and power inverters
  • Multi-channel data acquisition and monitoring systems
  • Medical instrumentation and diagnostic equipment
  • Embedded education platforms and development kits
05PIC16F877A-I · Alternative Models
Manufacturer Part Number Package Notes
Microchip PIC16F877-20I 40-pin Original non-A version, no ICD/self-program
Microchip PIC16F876A-I 28-pin Same features, 28-pin, 5-ch ADC, no PSP
Microchip PIC16F874A-I 40-pin 7KB Flash, 192B RAM, same peripherals
Microchip PIC16F887-I 40-pin Internal oscillator, ECCP, enhanced peripherals
Microchip PIC16F1789-I 44-pin Newer generation, 28KB Flash, enhanced analog

Request a quoteWithin 24h

Tell us the quantity you need. We confirm price and availability within one business day.

DatasheetPDF

Specifications subject to change by the manufacturer.

IC-Vendor · Sourcing

Verified stock, quoted fast.

AuthenticityOriginal parts
Lead time1 business day
ShippingDHL / FedEx / UPS

Recommended

Related parts you may need

PIC18F25K22-I

PIC18 XLP MCU, 32KB Flash, 1.5KB RAM, 256B EEPROM, 17-ch 10-bit ADC, 5 PWM, 2 comp, dual SPI/I2C, EUSART/LIN, CTMU, 64MHz, 28-pin

Brand: MICROCHIPPackage: 28-pin PDIP / SOIC / SSOP / QFN / UQFN

IN STOCK: 10732pcs

Cargo cycle: 3~7 Days

The minimum order is 1

MC9S08AW16CFGE

8-bit HCS08 MCU, 16KB Flash, 1KB RAM, LQFP-48

Brand: NXPPackage: LQFP-48 (7.0 x 7.0 mm)

IN STOCK: 13379pcs

Cargo cycle: 3~7 Days

The minimum order is 1

PIC16LF1526-I

8-bit XLP PIC MCU, 14KB Flash, 768B RAM, 30-ch 10-bit ADC, 10 CCP, 2 EUSART, 2 SPI/I2C, 54 I/O, 1.8-3.6V low voltage, 64-pin

Brand: MICROCHIPPackage: 64-pin TQFP / QFN / UQFN

IN STOCK: 2792pcs

Cargo cycle: 3~7 Days

The minimum order is 1

PIC32MX795F512L-80I/PT

MIPS32 MCU, 80MHz, 512KB Flash, Ethernet, dual CAN, USB OTG, 100-TQFP

Brand: MICROCHIPPackage: 100-TQFP (14.0 x 14.0 x 1.0 mm)

IN STOCK: 5670pcs

Cargo cycle: 3~7 Days

The minimum order is 1

GD32F303CCT6

Cortex-M4 32-bit MCU, 120MHz, 256KB Flash, 48KB SRAM, LQFP-48

Brand: gigadevicePackage: LQFP-48 (7x7mm, 0.5mm pitch)

IN STOCK: 7002pcs

Cargo cycle: 3~7 Days

The minimum order is 1

PIC18F4331-I

PIC18 motor control MCU, 8KB Flash, 768B RAM, 256B EEPROM, 9-ch 10-bit 200Ksps ADC, 8 PWM, QEI encoder interface, 3 capture, SPI/I2C, EUSART/LIN, 40-pin

Brand: MICROCHIPPackage: 40-pin PDIP / 44-pin TQFP / QFN

IN STOCK: 5730pcs

Cargo cycle: 3~7 Days

The minimum order is 1

QUALITY COMMITMENT

Quality Commitment

Every order is sourced, inspected and documented so your production line receives parts that meet specification.

Authenticity & traceability

We supply original manufacturer parts or material from authorized distribution channels. Unless a listing states otherwise, parts are new and unused — not refurbished, re-marked or pulled from used equipment. Each shipment is traceable to its purchase lot, date code and supplier record.

Incoming inspection

  • Visual inspection of labels, packaging, marking and date codes.
  • Lot and quantity verification against the purchase order.
  • Moisture-sensitivity and ESD packaging checks.
  • Electrical and functional testing, curve tracing, X-ray or decapsulation available on request.

Documentation

Commercial invoice and packing list are included with every shipment. A Certificate of Conformance (CoC) showing part number, quantity, lot/date code and inspection result is available on request. RoHS/REACH declarations and conflict-minerals statements can be supplied for compliance programs.

Warranty & returns

Parts are warranted against manufacturer defects for 12 months from shipment unless otherwise agreed in writing. Quality claims should be raised within 30 days of receipt with photos, the quantity affected and lot/date-code information. Special-order and non-cancellable/non-returnable (NCNR) items are handled case by case.

Counterfeit prevention

Suspect material is quarantined, documented and never resold. Suppliers are screened and monitored, and we support customer audits and third-party verification when required.

SHIPPING & PAYMENT

Shipping & Payment

From same-day dispatch on stock lines to consolidated production shipments, we keep logistics and payment predictable.

Lead time

In-stock lines usually ship the same or next business day. For backorder and factory-order items, lead time is confirmed in the quotation before you commit.

Carriers & tracking

We ship worldwide with DHL, FedEx, UPS and SF Express. Tracking details are sent as soon as the shipment is handed to the carrier. Customer carrier accounts can be used on request.

Freight & insurance

Freight is quoted prepaid-and-added, collect, or included depending on the agreed Incoterm (EXW, FOB, CIF or DDP). Shipment insurance is available on request; risk passes according to the agreed Incoterm.

Payment methods

  • Bank transfer (T/T) in USD, EUR or CNY.
  • PayPal for smaller or sample orders.
  • Alipay / RMB transfer for domestic settlement.

A proforma invoice is issued for every order. New customers are normally prepaid; repeat customers may apply for net terms.

Order changes & cancellation

Please confirm changes before dispatch. Once material is allocated, cut tape/reel or shipped, cancellation may not be possible. Non-standard items are subject to NCNR terms.

Customs & duties

We provide commercial invoices and origin documentation. Import duties, taxes and customs clearance are the buyer’s responsibility unless DDP terms are agreed.

SERVICE & PACKAGING

Service & Packaging

Beyond supplying the part, we support BOM sourcing, value-added processing and packaging that fits your line.

BOM sourcing & kitting

Send your BOM and we will cross-reference alternatives, consolidate lines and quote shortages. Kitting and kit-level labeling are available for production and repair centers.

Value-added services

  • Programming and firmware loading.
  • Tape-and-reel, re-reeling and tray packing.
  • Baking and dry-pack for moisture-sensitive parts.
  • Barcode, QR and custom label generation.

Packaging options

Parts are packed in ESD-safe bags, moisture-barrier bags with desiccant and humidity indicator, tape-and-reel, trays, tubes or bulk cartons. Custom labels, mixed kits and drop-ship to your contract manufacturer can be arranged.

Documentation & traceability

Each package carries the part number, quantity, lot/date code and country of origin. Packing lists and CoCs can be formatted to match your receiving process.

After-sales support

For returns, please contact us with the invoice number, part number and reason. We will issue an RMA and instructions before material is returned. Technical and order-status questions are answered within one business day.