4.5. Pin Diagram of 8051
4.5. Pin Diagram of 8051
Draw the Pin out diagram of 8051 Microcontroller and explain the
operations of various pins.
Answer:
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.
The following table gives the details of the additional functions of PORT
3 Pins.
PORT 2 is also a Bidirectional Port i.e. all the PORT 2 pins act as Input
or Output.
Pin 29 ( PSEN ):
Pin 29 is the Program Store Enable Pin ( PSEN ). It is an output pin.
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.