Unit 2 Mi
Unit 2 Mi
Introduction to Microcontrollers
Differences between processors and
controllers
8051
• 8051 microcontroller is 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.
• It consists of are four parallel 8-bit ports, which are programmable as well
as addressable as per the requirement.
• An on-chip crystal oscillator is integrated in the microcontroller having
crystal frequency of 12 MHz
Pin diagram of 8051
Contd..
8051 Internal RAM organization:
SFR’s:
• The internal RAM or Data Memory of the 8051 Microcontroller is
divided in to General Purpose Registers, Bit Addressable Registers,
Register Banks and Special Function Registers or SFRs.
• The 8051 Microcontroller Special Function Registers are used to
program and control different hardware peripherals like Timers,
Serial Port, I/O Ports etc
CPU or Math Registers
• A or Accumulator (ACC)
• The Accumulator or Register A is the most important and most used
8051 Microcontroller SFRs. The Register A is located at the address
E0H in the SFR memory space. The Accumulator is used to hold the
data for almost all the ALU Operations.
• Some of the operations where the Accumulator is used are:
• Arithmetic Operations like Addition, Subtraction, Multiplication etc.
• Logical Operations like AND, OR, NOT etc.
• Data Transfer Operations (between 8051 and External Memory)
ACC
B (Register B)