Block Diagram of 8051
Block Diagram of 8051
List the important blocks of the 8051 MCU and briefly describe each block by giving examples.
8051CPU- CPU which is known as the brain of the microcontroller is responsible for carrying
out and executing instructions from program memory and performing arithmetic and logic
operations.
E.g.: Arithmetic Operations-Addition, Subtraction, Multiplication, Division
Logic operations-Logical AND, Logical OR, Logical XOR, Logical NOT
The 8051 CPU includes an (Arithmetic and Logic Unit)ALU, accumulator(A register), registers,
and a program counter.
Oscillator and Timing-Oscillator provides a clock signal. All of the microcontroller’s actions
are synchronized by means of this clock signal. Timing circuit requires to assure that each
instruction is performed at the right moment when timing activities are controlled within
microcontroller.
E.g.: Crystal oscillators are mostly used as microcontrollers’ oscillator circuits.
4096 bytes program memory- Program memory is used to store the instructions of a
program which are executed by CPU. As program memory, 8051 microcontroller includes
4096 bytes read only memory (ROM) which is non-volatile memory.
128 bytes Data memory- Data memory is used to store program instructions temporarily
when the microcontroller is in operation. Typically, 8051 microcontroller includes 128 bytes
RAM (Random Access Memory) which is volatile memory as data memory.
Programmable Input/Output ports (I/O ports)- 8051 MCU has four 8-bit I/O ports (Port0,
Port1, Port2, Port3) which can be configured as either input or output when it is connected
to external devices.
E.g.: LEDs, LCD displays, Sensors, Actuators
Timers and counters- 8051 MCU has two 16-bit programmable timers (Timer 0 and Timer
1) which are used to count events, monitor time intervals and create time delays.
E.g.: Counting events- Counting the on/off states of LED
Time delays- Delay the time of lighting the LED after switch on
Programmable serial port- 8051 MCU includes a built-in serial port which is known as
Universal Asynchronous Receiver/Transmitter (UART) that can be used for asynchronous serial
communication with other devices.
E.g.: Receiving data from a PC to microcontroller via serial port
64 bytes Bus expansion control-8051 MCU consists a bus controller that manages data
transfer between the 8051 CPU and peripheral devices such as memory or input/output
devices.