You are on page 1of 5

4/10/13

ATMEL 89C51 | AT89C51 Microcontroller Pin Diagram & Description - EngineersGarage

Home Advertise

Insight

EG Labs

Articles

Invention Stories

Forum

Knowledge Base

Post & Earn

Contact Us

JOIN US ON FACEBOOK FOR LATEST UPDATES

AT89C51 Microcontroller
Image: CP044

ERROR
USER LOGIN Username: *

Password: *

Log in Create new account Request new password

ACTIVE FORUM TOPICS

Automatic Custom Display on LCD using AVR I2C in AVR Wireless communication

DataSheet: AT89C51.pdf

AT89C51 is an 8-bit microcontroller and belongs to Atmel's 8051 family. ATMEL 89C51 has 4KB of Flash programmable and erasable read only memory (PEROM) and 128 bytes of RAM. It can be erased and program to a maximum of 1000
1/5

www.engineersgarage.com/electronic-components/at89c51-microcontroller-datasheet

4/10/13

ATMEL 89C51 | AT89C51 Microcontroller Pin Diagram & Description - EngineersGarage

using PIC Microcontroller USB Bootloader


more

times.

In 40 pin AT89C51, there are four ports designated as P1, P2, P3 and P0. All these ports are 8-bit bi-directional ports, i.e., they can be used as both input and output ports. Except P0 which needs external pull-ups, rest of the ports have internal pull-ups. When 1s are written to these port pins, they are pulled high by the internal pull-ups and can be used as inputs. These ports are also bit addressable and so their bits can also be accessed individually.

INSIGHTDISCOVER HOW GADGETS WORK?

Adapter Banana Jack Electric Bead Trimmer HDMI Cable Membrane Keypad Micro Switch Scientific Calculator SMPS Telephone Turbidity Sensor USB Connector ...more

Port P0 and P2 are also used to provide low byte and high byte addresses, respectively, when connected to an external memory. Port 3 has multiplexed pins for special functions like serial communication, hardware interrupts, timer inputs and read/write operation from external memory. AT89C51 has an inbuilt UART for serial communication. It can be programmed to operate at different baud rates. Including two timers & hardware interrupts, it has a total of six interrupts.

Pin Diagram:

www.engineersgarage.com/electronic-components/at89c51-microcontroller-datasheet

2/5

4/10/13

ATMEL 89C51 | AT89C51 Microcontroller Pin Diagram & Description - EngineersGarage

Pin Description:

Pin No 1 2 3 4
www.engineersgarage.com/electronic-components/at89c51-microcontroller-datasheet

Function

Name P1.0

8 bit input/output port (P1) pins

P1.1 P1.2
3/5

4/10/13

ATMEL 89C51 | AT89C51 Microcontroller Pin Diagram & Description - EngineersGarage

P1.3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Program store enable; Read from external program memory Address Latch Enable Program pulse input during Flash programming External Access Enable; Vcc for internal program executions Programming enable voltage; 12V (during Flash programming) 32 33 34 35 36 37 38 39 40
124123 reads
www.engineersgarage.com/electronic-components/at89c51-microcontroller-datasheet 4/5

P1.4 P1.5 P1.6 P1.7 Reset pin; Active high Input (receiver) for serial RxD communication Output (transmitter) for TxD serial communication External interrupt 1 Int0 External interrupt 2 Timer1 external input Timer2 external input Write to external data memory Read from external data memory Int1 T0 T1 Write Read Reset P3.0 P3.1 8 bit input/output port (P3) pins P3.2 P3.3 P3.4 P3.5 P3.6 P3.7 Crystal 2 Crystal 1 Ground P2.0/ A8 P2.1/ A9 8 bit input/output port (P2) pins / High-order address bits when interfacing with external memory P2.2/ A10 P2.3/ A11 P2.4/ A12 P2.5/ A13 P2.6/ A14 P2.7/ A15 PSEN ALE Prog EA Vpp P0.7/ AD7 P0.6/ AD6 8 bit input/output port (P0) pins Low-order address bits when interfacing with external memory P0.5/ AD5 P0.4/ AD4 P0.3/ AD3 P0.2/ AD2 P0.1/ AD1 P0.0/ AD0 Supply voltage; 5V (up to 6.6V) Vcc

Quartz crystal oscillator (up to 24 MHz) Ground (0V)

31

4/10/13

ATMEL 89C51 | AT89C51 Microcontroller Pin Diagram & Description - EngineersGarage

YOU ARE HERE Home


Copyright 2012 EngineersGarage. All rights reserved. Privacy Policy

Top

www.engineersgarage.com/electronic-components/at89c51-microcontroller-datasheet

5/5