Accessible pinout for PIC16F877A-I_P

Part description: IC MCU 8BIT 14KB FLASH 40DIP

Package description: This package has two parallel rows of pins extending down from opposite edges of the chip.

There should be a semicircular notch that you can feel in the middle of one of the package's shorter bare edges. With the pins facing downward and the chip oriented so notch is on the side of the chip furthest from you, Pin 1 will be in the far left corner of the chip.

Pins are numbered counter-clockwise. Numbers increase from the far left corner to the near left corner. They then continue on the right side, increasing from the near right corner to the far right corner. Thus the highest number pin is to the right of pin 1.

Pin assignments

Left side (numbering starts at far end)

Pin Signals
1MCLR (active low) / VPP
2RA0 / AN0
3RA1 / AN1
4RA2 / AN2 / VREF- / CVREF
5RA3 / AN3 / VREF+
6RA4 / T0CKI / C1OUT
7RA5 / AN4 / SS (active low) / C2OUT
8RE0 / RD (active low) / AN5
9RE1 / WR (active low) / AN6
10RE2 / CS (active low) / AN7
11VDD
12VSS
13OSC1 / CLKI
14OSC2 / CLKO
15RC0 / T1OSO / T1CKI
16RC1 / T1OSI / CCP2
17RC2 / CCP1
18RC3 / SCK / SCL
19RD0 / PSP0
20RD1 / PSP1

Right side (numbering starts at near end)

Pin Signals
21RD2 / PSP2
22RD3 / PSP3
23RC4 / SDI / SDA
24RC5 / SDO
25RC6 / TX / CK
26RC7 / RX / DT
27RD4 / PSP4
28RD5 / PSP5
29RD6 / PSP6
30RD7 / PSP7
31VSS
32VDD
33RB0 / INT
34RB1
35RB2
36RB3 / PGM
37PB4
38RB5
39PB6 / PGC
40PB7 / PGD

This pinout was automatically generated from the DigiKey KiCAD library revision e0fe76.

It is possible that there may be a mistake in the source data leading to wrong information on this page.