0% found this document useful (0 votes)
28 views4 pages

4.5. Pin Diagram of 8051

The document provides a detailed pinout diagram and description of the 8051 Microcontroller, outlining the functions of each pin. It includes information on the various ports (Port 0, Port 1, Port 2, and Port 3), special function pins, and power supply connections. Key pins such as RST, PSEN, ALE, and EA are explained in terms of their roles in resetting, memory interfacing, and clock signal provision.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views4 pages

4.5. Pin Diagram of 8051

The document provides a detailed pinout diagram and description of the 8051 Microcontroller, outlining the functions of each pin. It includes information on the various ports (Port 0, Port 1, Port 2, and Port 3), special function pins, and power supply connections. Key pins such as RST, PSEN, ALE, and EA are explained in terms of their roles in resetting, memory interfacing, and clock signal provision.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

5.

Draw the Pin out diagram of 8051 Microcontroller and explain the
operations of various pins.
Answer:

Pin description of 8051 Microcontroller:

Pins 1 – 8 (Port 1 Pins P1.0 – P1.7):


 Pins 1 to 8 are the PORT 1 Pins of 8051.

 PORT 1 act as a bidirectional Input / Output PORT with internal pull-ups.

Pin 9 (RST):
 Pin 9 is the Reset Input Pin.

 It is an active HIGH Pin i.e. if the RST Pin is HIGH for a minimum of
two machine cycles.
 Microcontroller starts its operation from initial point, all internal registers
are loaded with their default values, internal buses operates at tri-state and
all IO ports can be declared as Input Ports.

Pins 10 – 17 (Port 3 Pins P3.0 – P3.7):


 These are the PORT 3 Pins of the 8051 Microcontroller.

 PORT 3 also acts as a bidirectional Input / Output PORT with internal


pull-ups.

 Additionally, all the PORT 3 Pins have special functions.

 The following table gives the details of the additional functions of PORT
3 Pins.

PORT 3 Pin Function Description

P3.0 RXD Serial Input


P3.1 TXD Serial Output
P3.2 INT 0 External Interrupt 0
P3.3 INT1 External Interrupt 1
P3.4 T0 Timer 0
P3.5 T1 Timer 1
P3.6 WR External Memory Write
P3.7 RD External Memory Read

Pins 18 & 19 (XTAL2 & XTAL1):


 XTAL 2 and XTAL 1 are the pins used for connecting external oscillator.

 Generally, a Quartz Crystal Oscillator is connected here.

 It provides clock signal to 8051 microcontroller.


Pin 20 (GND):
 Pin 20 is the Ground Pin of the 8051 Microcontroller.

 It represents 0V and is connected to the negative terminal (0V) of the


Power Supply.

Pins 21 – 28 (Port 2 Pins P2.0 – P2.7):


 These are the PORT 2 Pins of the 8051 Microcontroller.

 PORT 2 is also a Bidirectional Port i.e. all the PORT 2 pins act as Input
or Output.

 Additionally, when external memory is interfaced, PORT 2 pins act as the


higher order address byte i.e. A8 to A15.

Pin 29 ( PSEN ):
 Pin 29 is the Program Store Enable Pin ( PSEN ). It is an output pin.

 This pin is connected to output enable (OE) pin of external memory.

 If PSEN = 1 means external code memory is enabled.

 If PSEN = 0 means external data memory is enabled.

Pin 30 (ALE/ PROG ):


 Pin 30 is the Address Latch Enable Pin.

 It is used for de-multiplexing the address-data pins of port 0.

 When 8051 is connected to external memory. If ALE = 1 means AD0 to


AD7 will be used as address pins.

 If ALE = 0 means AD0 to AD7 will be used as data pins.


Pin 31 ( EA /VPP):
 Pin 31 is the External Access Enable Pin.

 It is used to enable/disable the external memory interfacing.

 When EA pin is connected to Vcc. 8051 will access internal memory.

 When EA pin is connected to ground. 8051 will access external memory.

Pins 32 – 39 (Port 0 Pins P0.0 – P0.7):


 Pins 32 to 39 are PORT 0 Pins.

 They are also bidirectional Input / Output Pins but without any internal
pull-ups. Hence, we need external pull-ups in order to use PORT 0 pins
as I/O PORT.

 This port pins can be also used as multiplexed address and data lines
(AD0 – AD7).

 PORT 0 also acts as lower order address/data bus when external memory
is accessed.

Pin 40 (Vcc):
 This pin is used to provide power supply to the circuit.

 It requires +5V DC power supply.

You might also like