Accessible pinout for AT89x51xxP

Part description: 8-bit Microcontroller with 4K Bytes Flash, DIP-40

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
1P1.0
2P1.1
3P1.2
4P1.3
5P1.4
6P1.5
7P1.6
8P1.7 / SCK
9RST
10P3.0
11P3.1
12P3.2
13P3.3
14P3.4
15P3.5
16P3.6
17P3.7
18XTAL2
19XTAL1
20GND

Right side (numbering starts at near end)

Pin Signals
21P2.0 / A8
22P2.1 / A9
23P2.2 / A10
24P2.3 / A11
25P2.4 / A12
26P2.5 / A13
27P2.6 / A14
28P2.7 / A15
29PSEN (active low)
30ALE
31EA (active low) / V_pp
32P0.7 / AD7
33P0.6 / AD6
34P0.5 / AD5
35P0.4 / AD4
36P0.3 / AD3
37P0.2 / AD2
38P0.1 / AD1
39P0.0 / AD0
40V_cc

This pinout was automatically generated from the KiCAD symbol library revision 164574.

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