Microcontroller
8051
Wednesday, March 13, 2024 1
What is microcontroller?
A Microcontroller is a small and low-cost microcomputer
It is designed to perform the specific tasks of embedded systems
like displaying information, receiving remote signals etc.
The general microcontroller consists of the processor, the memory
(RAM, ROM, EPROM), Serial ports, peripherals (timers, counters)
etc.
Wednesday, March 13, 2024 2
Types of Microcontrollers
Based on bit configuration, the microcontroller is divided into three categories.
8-bit microcontroller
This type of microcontroller is used to execute arithmetic and logical operations like
addition, subtraction, multiplication division
For example, Intel 8031 and 8051 are 8-bit microcontroller.
16-bit microcontroller
This type of microcontroller is used to perform arithmetic and logical operations where
higher accuracy and performance is required.
For example, Intel 8096 is a 16-bit microcontroller.
32-bit microcontroller
This type of microcontroller is generally used in automatically controlled appliances like
automatic operational machines, medical appliances, etc.
Wednesday, March 13, 2024 3
Microprocessor Based System
CPU
External RAM, ROM, I/O (No internal RAM,
ROM, I/O ports in the CPU)
8051 Microcontroller 4
Microcontroller
A smaller computer on a CHIP
On-chip RAM, ROM, I/O Ports, Timer, Serial
Controller
Example: Motorola’s 6811, Intel’s 8051, Atmel 32
8051 Microcontroller 5
Microprocessor vs. Microcontroller
Microprocessor
Microcontroller
• CPU is stand-alone, RAM,
ROM, I/O, timer are separate • CPU, RAM, ROM, I/O and
timer are all on a single chip
• Designer can decide on the
amount of ROM, RAM and I/O • Fixed amount of on-chip
ports. ROM, RAM, I/O ports.
• Expensive • Not Expensive
• Versatility
• Single-purpose
• General-purpose
• Special Purpose.
6
C based Embedded Systems
Special purpose computer system usually completely inside
the device it controls
Has specific requirements and performs pre-defined tasks
Cost reduction compared to general purpose processor
8051 Microcontroller 7
Embedded Systems Examples
8051 Microcontroller 8
8051 CPU Operation
Pin Diagram
Block Diagram
8051 Microcontroller 9
8051 Microcontroller
• Intel introduced 8051, referred as MCS- 51, in
1981.
• The 8051 is an 8-bit processor
– The CPU can work on only 8 bits of data at a time.
8051 Microcontroller 10
Block Diagram of 8051
8051 Microcontroller 11
Pin Diagram
8051 Microcontroller 12