Intel 8051 Microcontroller Architecture

The Intel 8051 is a popular 8-bit microcontroller developed by Intel in 1980. It is widely used in various embedded systems and applications due to its versatility, simplicity and ease of programming. The architecture of 8051 microcontroller includes several key components as described below.

8051 consists of following internal elements or modules.
• 8 bit processor(CPU)
• Extensive Boolean processing (Single-bit logic) capabilities
• 64K Program Memory
• 64K Data Memory
• 4K bytes Program Memory(on chip)
• 128 bytes of Data RAM( on chip )
• 32 addressable I/O lines ( bidirectional and can be individually addressed)
• Two 16-bit timer/counters
• Full duplex UART
• 6-source OR 5-vector interrupts structure with two priority levels
• On-chip clock oscillator of 11.0592 MHz

Let us understand these elements as per 8051 architecture block diagram.
• CPU (Central Processing Unit) : This 8 bit CPU is responsible for executing instructions. It has one accumulator and several general purpose registers. It can be used for data manipulation and arithmetic instructions.
• Memory : 8051 has two types of memory viz. program memory (ROM) and data memory (RAM). ROM stores program code that microcontroller executes and RAM stores variables, intermediate calculations and stack related operations.
• I/O ports : It has four I/O ports (P0, P1, P2, P3). Port lines can be used to interface external devices. These port lines can be configured as input or output.
• Timers and counters : They are used to generate timing delay and to measure external events.
• Serial communications : It has built-in UART (Universal Asynchronous Receiver Transmitter) for serial communication. It can be used for interfacing other devices such as computers and other embedded devices.
• Interrupts : 8051 supports both hardware and software interrupts. It has five interrupt sources and uses prioritization scheme to handle interrupt requests.
• Clock circuitry : Intel 8051 requires external oscillator or clock sources to provide basic clock signal for its operation. The clock frequency and its variants determine execution speed of instructions.
• Boolean processor : It is used to help in performing bitwise AND, OR, XOR and complement operations on bits within registers.

Microcontroller Architecture Intel 8051 core

The 8051 is CISC based architecture. The intel 8051 follows the Harvard architecture principles of memory interface, so has separate program & data memory. 16 of the available 32 I/O lines are used for accessing the external memory. We can access a maximum of 64KB of program and 64 KB data memory externally. 8 of the IO lines are used as both Address & data lines.

Both the program memory and data memories are 64K bytes. Program memory is read only and Data memory is readable/writable. Program Store Enable is the read strobe signal used to access external program memory. There are RD and WR signals used for reading from and writing to the external memory.

After reset signal is applied to the microcontroller , program execution starts from 0th location as stored in the program memory.

Microcontroller PSW (Program Status Word),BIT ADDRESSABLE

Microcontroller PSW(Program Status Word) register

RS0 and RS1 selects register bank to use.
OV is Overflow Flag set by arithmetic operations.
P is the parity bit set by hardware, if it contains odd number of 1s, otherwise it is zero.
AC is the Auxiliary Carry Flag(from addition operation)
CY is the carry flag(from ALU operation)

Microcontroller PCON (Power Control Register),NOT BIT ADDRESSABLE

Microcontroller PCON(Power Control) register

PD-Activates power down operation in microcontroller.
IDL- Activates idle mode operation in microcontroller.

Conclusion : The 8051 microcontroller architecture has been widely used in various applications including consumer electronics, automotive systems, industrial automation and more.


Similar posts on Intel 8051 microcontroller