PIC16F877A Datasheet

MicrochipMicrocontroller

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.

Download PDF

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)

PinNameFunction
1MCLR/VPPMaster Clear / Programming Voltage Input
2RA0/AN0Analog Input 0 / Port A
3RA1/AN1Analog Input 1 / Port A
4RA2/AN2/VREF-/CVREFAnalog Input 2 / Negative Voltage Reference / Comparator Voltage Reference
5RA3/AN3/VREF+Analog Input 3 / Positive Voltage Reference
6RA4/T0CKI/C1OUTTMR0 Clock Input / Comparator 1 Output
7RA5/AN4/SS/C2OUTAnalog Input 4 / Slave Select / Comparator 2 Output
8RE0/RD/AN5Analog Input 5 / Read Control / Port E
9RE1/WR/AN6Analog Input 6 / Write Control / Port E
10RE2/CS/AN7Analog Input 7 / Chip Select / Port E
11VDDPower Supply Voltage
12VSSGround
13OSC1/CLKIOscillator Clock Input / RC Oscillator Input
14OSC2/CLKOOscillator Clock Output / RC Oscillator Output
15RC0/T1OSO/T1CKITMR1 Oscillator Output / TMR1 Clock Input / Port C
16RC1/T1OSI/CCP2TMR1 Oscillator Input / Capture/Compare/PWM2 / Port C
17RC2/CCP1Capture/Compare/PWM1 / Port C
18RC3/SCK/SCLSPI Clock / I2C Clock / Port C
19RD0/PSP0Parallel Slave Port 0 / Port D
20RD1/PSP1Parallel Slave Port 1 / Port D
21RD2/PSP2Parallel Slave Port 2 / Port D
22RD3/PSP3Parallel Slave Port 3 / Port D
23RC4/SDI/SDASPI Data Input / I2C Data / Port C
24RC5/SDOSPI Data Output / Port C
25RC6/TX/CKUSART Transmit / SPI Clock / Port C
26RC7/RX/DTUSART Receive / SPI Data / Port C
27RD4/PSP4Parallel Slave Port 4 / Port D
28RD5/PSP5Parallel Slave Port 5 / Port D
29RD6/PSP6Parallel Slave Port 6 / Port D
30RD7/PSP7Parallel Slave Port 7 / Port D
31VSSGround
32VDDPower Supply Voltage
33RB0/INTExternal Interrupt / Port B
34RB1Digital Input/Output / Port B
35RB2Digital Input/Output / Port B
36RB3/PGMProgramming Control / Digital Input/Output
37RB4Digital Input/Output / Port B
38RB5Digital Input/Output / Port B
39RB6/PGCIn-Circuit Debugger Programming Clock / Port B
40RB7/PGDIn-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
File Size
2 MB

Ask AI Assistant

Ask questions about PIC16F877A specifications

AI Powered

Click to ask a quick question:

Parameters

Access Time20us
Address Bus Width8b
Core ArchitecturePIC
Data Bus Width8b
Density14KB
Frequency20MHz
Height3.68mm
InterfaceI2C, SPI, USART, UART, SSP
Lead FreeLead Free
Length16.66mm
Max Frequency20MHz
Max Operating Temperature85°C
Max Supply Voltage5.5V
Memory Size14.3KB
Memory TypeFLASH,
Min Operating Temperature-40°C
Min Supply Voltage4V
MountSurface Mount
Number of ADC Channels8
Number of A/D Converters1
Number of Bits8
Number of Ethernet Channels1
Number of I2C Channels1
Number of I/Os33
Number of Programmable I/O33
Number of PWM Channels2
Number of SPI Channels1
Number of Timers/Counters3
Number of UART Channels1
Oscillator TypeExternal
Package/CasePLCC
Package Quantity27
PackagingRail/Tube
PeripheralsBrown-out Detect/Reset, POR, PWM, WDT, I2C
Radiation HardeningNo
RAM Size368B
Reach SVHC CompliantNo
RoHSCompliant
SeriesPIC® 16F Series
Supply Current1.6mA
Watchdog TimerYes
Width16.66mm