Overview of 8051 Microcontroller
Overview of 8051 Microcontroller
8051 is one of the first and most popular microcontrollers also known
as MCS-51. It was designed by Intel in 1981. It is an 8-bit
microcontroller. It is built with 40 pins DIP (dual inline package), 4kb of
ROM storage, and 128 bytes of RAM storage, 2 16-bit timers.
8052 – 8052 is the super set of 8051 as it has all the features of
8051 with an extra timer and an extra RAM of 128 bytes.
Therefore, 8052 has a total of 256 bytes of RAM and 3 timers in
all. Also all the programs written for 8051 will run on 8052 as 8052
is super set of 8051, but it’s reverse is not true.
Pins 1 to 8
It is also known as PORT 1. The 8-bit bidirectional input and
output ports with inbuilt pull-up resistors make up PORT 1 Pins.
Older 8051 microcontrollers only have an 8-bit I/O port on port 1.
This port doesn't serve any additional purposes, unlike other ports.
DESCRIPTION OF THE PINS
Pin 9
It is an active HIGH pin, meaning the microcontroller will be reset
if the RST Pin (Pin 9) is HIGH for at least two machine cycles. So
it is the RESET pin used to reset it to its default values when
operating or at the beginning of an application.
Pins 10 to 17
It is also known as PORT 3. Interrupts, timer input, control
signals, serial communication signals Receive Data (RxD) and
Transmit Data (TxD), and other operations are served by this
port.
Pins 10 to 17 DESCRIPTION OF THE PINS
Pin 3.0 - This pin is known as the serial input pin and its function
is to receive data during serial communication.
Pin 3.1 - This pin is known as the serial output pin and its function
is to transmit data during serial communication.
Pin 3.2 - This pin is used as an external trigger for interrupt 0.
Pin 3.3 - This pin is used as an external trigger for interrupt 1.
Pin 3.4 - This pin is for external input for Timer 0.
Pin 3.5 - This pin is for external input for Timer 1.
Pin 3.6 - This pin is used for writing data to the external memory.
Pin 3.7 - This pin is used for reading data from the external
memory.
DESCRIPTION OF THE PINS
DESCRIPTION OF THE PINS
Pins 18 and 19
The pins connecting an external oscillator are 18 and 19, or XTAL
2 and XTAL 1, respectively. A Quartz Crystal Oscillator is often
attached here.
Pin 20
The ground pin on an 8051 microcontroller is pin 20, or GND. It
connects to the power supply's negative terminal (0V), representing
0V.
DESCRIPTION OF THE PINS
Pins- 21-28
The PORT 2 Pins on the 8051 Microcontroller are Pins 21 through
28. The PORT 2 pins function as either inputs or outputs because
it is a bidirectional port. Additionally, PORT 2 pins work as the
higher-order address byte when external memory is interfaced.
Pin 29
Program Store Enable, often known as PSEN, is used to interpret
signals from external program memory.
DESCRIPTION OF THE PINS
Pin 30
This pin is linked to Vcc(Voltage Common Collector) to drag it high
if there is no requirement for external memory.
Pin 31
It is also known as Address Latch Enable or ALE and is used to
demultiplex the port 0 address data indication (for external
memory interfacing).
DESCRIPTION OF THE PINS
Pins 32 to 39
Pins 32 to 39 are known as Port 0 (P0.0 to P0.7), and they are
multiplexed with low-order data/address bus signals to act as
input/output ports (to provide the use of outer memory
interfacing).
Pin 40 (VCC)
The circuit receives power supply voltage, or +5 Volts, from this
pin, VCC (Voltage Common Collector).
THE PIN DIAGRAM OF THE 8051 MICROCONTROLLER IS AS FOLLOWS:
1. VCC - This pin provides +5V power supply to the circuit.
13. WR - This pin gives the write signal for external memory.
14. RD - This pin giver the read signal for external memory.
15. ALE - This pin gives the signal to enable the latch to get the
address for the external memory.
THE PIN DIAGRAM OF THE 8051 MICROCONTROLLER IS AS FOLLOWS:
16. PSEN - This pin is used to give the signal for accessing the
program memory.
17. 17-24. Address bus - These pins transmit address from the
microcontroller to the external memory.
18. 25-32. Data bus - These pins transmit data from the
microcontroller to the internal memory.
19. RST - This pin gives the signal that the microcontroller is
being reset.
THE PIN DIAGRAM OF THE 8051 MICROCONTROLLER IS AS FOLLOWS:
24. P1.0 (AD0) – P1.7 (AD7) - These pins are used to interface
external devices with the microcontroller.