PIC16F877A Datasheet
8-bit RISC microcontroller featuring 14KB FLASH memory and 368B RAM. Operates at up to 20MHz with an 8-bit address and data bus. Offers 33 programmable I/Os, 8 ADC channels, 2 PWM channels, and multiple communication interfaces including I2C, SPI, and UART. Designed for surface mount with a PLCC package, operating from 4V to 5.5V and a temperature range of -40°C to 85°C. Includes integrated peripherals like Brown-out Detect, POR, WDT, and SSP.
The PIC16F877A is a 40/44-pin enhanced flash microcontroller featuring a high-performance RISC CPU with 35 single-word instructions and a wide operating voltage range of 2.0V to 5.5V. It integrates 14.3K bytes of flash program memory, 368 bytes of RAM, 256 bytes of EEPROM, and key analog/digital peripherals such as an 8-channel 10-bit A/D converter, two analog comparators, and serial communications (SPI, I2C, and USART). It is designed for low-power, high-integration embedded control and analog sensing applications.
PIC16F877A Key Specifications
- Frequency
- 20MHz
- Max Frequency
- 20MHz
- Max Supply Voltage
- 5.5V
- Memory Size
- 14.3KB
- Memory Type
- FLASH,
- Min Supply Voltage
- 4V
- Number of ADC Channels
- 8
- Number of Ethernet Channels
- 1
PIC16F877A Pinout (40-pin PDIP, 44-pin PLCC, 44-pin TQFP, 44-pin QFN)
| Pin | Name | Function |
|---|---|---|
| 1 | MCLR/VPP | Master Clear / Programming Voltage Input |
| 2 | RA0/AN0 | Analog Input 0 / Port A |
| 3 | RA1/AN1 | Analog Input 1 / Port A |
| 4 | RA2/AN2/VREF-/CVREF | Analog Input 2 / Negative Voltage Reference / Comparator Voltage Reference |
| 5 | RA3/AN3/VREF+ | Analog Input 3 / Positive Voltage Reference |
| 6 | RA4/T0CKI/C1OUT | TMR0 Clock Input / Comparator 1 Output |
| 7 | RA5/AN4/SS/C2OUT | Analog Input 4 / Slave Select / Comparator 2 Output |
| 8 | RE0/RD/AN5 | Analog Input 5 / Read Control / Port E |
| 9 | RE1/WR/AN6 | Analog Input 6 / Write Control / Port E |
| 10 | RE2/CS/AN7 | Analog Input 7 / Chip Select / Port E |
| 11 | VDD | Power Supply Voltage |
| 12 | VSS | Ground |
| 13 | OSC1/CLKI | Oscillator Clock Input / RC Oscillator Input |
| 14 | OSC2/CLKO | Oscillator Clock Output / RC Oscillator Output |
| 15 | RC0/T1OSO/T1CKI | TMR1 Oscillator Output / TMR1 Clock Input / Port C |
| 16 | RC1/T1OSI/CCP2 | TMR1 Oscillator Input / Capture/Compare/PWM2 / Port C |
| 17 | RC2/CCP1 | Capture/Compare/PWM1 / Port C |
| 18 | RC3/SCK/SCL | SPI Clock / I2C Clock / Port C |
| 19 | RD0/PSP0 | Parallel Slave Port 0 / Port D |
| 20 | RD1/PSP1 | Parallel Slave Port 1 / Port D |
| 21 | RD2/PSP2 | Parallel Slave Port 2 / Port D |
| 22 | RD3/PSP3 | Parallel Slave Port 3 / Port D |
| 23 | RC4/SDI/SDA | SPI Data Input / I2C Data / Port C |
| 24 | RC5/SDO | SPI Data Output / Port C |
| 25 | RC6/TX/CK | USART Transmit / SPI Clock / Port C |
| 26 | RC7/RX/DT | USART Receive / SPI Data / Port C |
| 27 | RD4/PSP4 | Parallel Slave Port 4 / Port D |
| 28 | RD5/PSP5 | Parallel Slave Port 5 / Port D |
| 29 | RD6/PSP6 | Parallel Slave Port 6 / Port D |
| 30 | RD7/PSP7 | Parallel Slave Port 7 / Port D |
| 31 | VSS | Ground |
| 32 | VDD | Power Supply Voltage |
| 33 | RB0/INT | External Interrupt / Port B |
| 34 | RB1 | Digital Input/Output / Port B |
| 35 | RB2 | Digital Input/Output / Port B |
| 36 | RB3/PGM | Programming Control / Digital Input/Output |
| 37 | RB4 | Digital Input/Output / Port B |
| 38 | RB5 | Digital Input/Output / Port B |
| 39 | RB6/PGC | In-Circuit Debugger Programming Clock / Port B |
| 40 | RB7/PGD | In-Circuit Debugger Programming Data / Port B |
From the PIC16F877A datasheet. Check the PDF for package-specific pin numbering.
Characteristics (datasheet)
- Operating Frequency
- DC – 20 MHz clock input, DC – 200 ns instruction cycle
- Flash Program Memory
- 14.3K bytes (8K x 14 words)
- Data RAM
- 368 bytes
- Data EEPROM
- 256 bytes
- Analog-to-Digital Converter (A/D)
- 10-bit, up to 8-channel
- Operating Voltage Range
- 2.0V to 5.5V
- Temperature Ranges
- Commercial and Industrial temperature ranges
- Package Options
- 40-pin PDIP, 44-pin PLCC, 44-pin TQFP, 44-pin QFN
PIC16F877A Package
- Package/Case
- PLCC
- Mount
- Surface Mount
The full pin configuration and pin descriptions are in the PIC16F877A PDF datasheet above.
PIC16F877A Equivalents & Similar Components
Similar parts
Matching key ratings; package or pinout may differ.
Check pinout and ratings in both datasheets before substituting.
Other Microchip parts
- PIC16F887-I/P — 8-bit RISC microcontroller featuring 20MHz clock speed and 14KB FLASH memory. T...
- ATSAMA5D27-SOM1 — Industrial ARM Microprocessor SOM | 128MB RAM | 3.3V | 38x40mm
- MCP2515-I/P — CAN Controller IC, 1Mbps, SPI, 3.3V/5V, PDIP
- W3DG7216V7AD1I — DRAM Module 128MB SDRAM 144SODIMM 133MHz 3.3V ECC
- AT68166HT-YS18-SR — 16Mbit SRAM Module, 18ns, 4Mx4, 3.3V, -55C to 125C, 68-MQFPT
- ATmega8 — 8-bit AVR microcontroller featuring 8KB FLASH memory and 512B RAM. Operates at u...
- TC4420CPA — Single-channel, low-side gate driver IC delivering 6A output current with a maxi...
- 24LC16B-I/SN — 16Kb serial EEPROM memory, featuring I2C 2-Wire interface and 400kHz maximum fre...
More Microcontrollers
- CH32V003J4M6 — Industrial-grade general-purpose microcontroller uses a QingKe RISC-V2A 32-bit c...
- PIC16F886-I/SO — 8-bit PIC RISC microcontroller featuring 14KB FLASH memory and 368B RAM. Operate...
- STM32H743 — 32-bit RISC microcontroller featuring an Arm Cortex-M7 core operating at up to 4...
- PIC18F4550-I/PT — 8-bit PIC MCU 48MHz 32KB Flash TQFP USB/I2C/SPI/UART
- STM32F103C6T6 — 32-bit ARM RISC microcontroller featuring 72MHz clock speed and 32KB FLASH memor...
- MSP430G2553IPW28R — 16-bit microcontroller featuring a 16MHz MSP430 core, 16KB FLASH memory, and 512...
- HT66F20 — RISC Microcontroller,
- PIC16F1829-I/P — 8-bit PIC RISC microcontroller featuring 14KB Flash memory and 1KB RAM. Operates...
Compare PIC16F877A
PIC16F877A belongs to the PIC16F Microcontrollers family — see all its parts in one comparison table.
PIC16F877A FAQ
What is PIC16F877A?
PIC16F877A is a Microcontroller from Microchip. 8-bit RISC microcontroller featuring 14KB FLASH memory and 368B RAM. Operates at up to 20MHz with an 8-bit address and data bus. Offers 33 programmable I/Os, 8 ADC channels, 2 PWM channels, and multiple communication interfaces including I2C, SPI, and UART. Designed for surface mount with a PLCC package, operating from 4V to 5.5V and a temperature range of -40°C to 85°C. Includes integrated peripherals like Brown-out Detect, POR, WDT, and SSP.
Who manufactures PIC16F877A?
PIC16F877A is manufactured by Microchip.
What package and pinout does PIC16F877A have?
PIC16F877A comes in PLCC package, surface mount mounting. The pin configuration and pin descriptions are given in the PDF datasheet.
What is the pinout of PIC16F877A?
PIC16F877A has 40 pins listed in its datasheet: pin 1 MCLR/VPP, pin 2 RA0/AN0, pin 3 RA1/AN1, pin 4 RA2/AN2/VREF-/CVREF, pin 5 RA3/AN3/VREF+, pin 6 RA4/T0CKI/C1OUT, pin 7 RA5/AN4/SS/C2OUT, pin 8 RE0/RD/AN5, …. The full pin table is shown above.
What is the operating temperature range of PIC16F877A?
PIC16F877A operates from -40°C to 85°C.
Where can I download the PIC16F877A datasheet PDF?
The PIC16F877A datasheet PDF (2 MB) can be downloaded free from this page using the Download PDF button.
What are the equivalents or alternatives to PIC16F877A?
Parts with a similar function (Microcontroller) include PIC16F877A-I/L. Always compare pinout and electrical ratings in both datasheets before substituting.
Specifications
- Manufacturer
- Microchip
- Category
- SemiconductorsMicrocontrollers
- File Size
- 2 MB
Ask AI Assistant
Ask questions about PIC16F877A specifications
Click to ask a quick question:
Parameters
| Access Time | 20us |
| Address Bus Width | 8b |
| Core Architecture | PIC |
| Data Bus Width | 8b |
| Density | 14KB |
| Frequency | 20MHz |
| Height | 3.68mm |
| Interface | I2C, SPI, USART, UART, SSP |
| Lead Free | Lead Free |
| Length | 16.66mm |
| Max Frequency | 20MHz |
| Max Operating Temperature | 85°C |
| Max Supply Voltage | 5.5V |
| Memory Size | 14.3KB |
| Memory Type | FLASH, |
| Min Operating Temperature | -40°C |
| Min Supply Voltage | 4V |
| Mount | Surface Mount |
| Number of ADC Channels | 8 |
| Number of A/D Converters | 1 |
| Number of Bits | 8 |
| Number of Ethernet Channels | 1 |
| Number of I2C Channels | 1 |
| Number of I/Os | 33 |
| Number of Programmable I/O | 33 |
| Number of PWM Channels | 2 |
| Number of SPI Channels | 1 |
| Number of Timers/Counters | 3 |
| Number of UART Channels | 1 |
| Oscillator Type | External |
| Package/Case | PLCC |
| Package Quantity | 27 |
| Packaging | Rail/Tube |
| Peripherals | Brown-out Detect/Reset, POR, PWM, WDT, I2C |
| Radiation Hardening | No |
| RAM Size | 368B |
| Reach SVHC Compliant | No |
| RoHS | Compliant |
| Series | PIC® 16F Series |
| Supply Current | 1.6mA |
| Watchdog Timer | Yes |
| Width | 16.66mm |