SlideShare a Scribd company logo
Microcontroller .pptx
In 8051 There are six types of addressing modes.
 Register AddressingMode
 Direct AddressingMode
 Register IndirectAddressing Mode
 Immediate AddressingMode
 Implied/Register Specfic AddressingMode
 Indexed AddressingMode
 The register addressing instruction involves
information transfer between registers
 The 8051 can access eight ‘’working registers’’(R0-
R7).
 Three bit code within the instruction selects one of
the eight registers from the selected register bank.
 The programmer can select a register bank by
modifying bits 4 and 3 in the PSW.
 Example: add the content of register r3 and r4 from
bank 2.
 step 1: MOV PSW
 step 2:MOV A, R3
MOV A, R4
 Can access any on chip variable and hardware
register.(RAM and SF register).
 This mode allows you to specify the operand by
giving its actual memory address.
 the MSB of the address decides whether it is a
location within in the chip RAM(MSB=0) or in
SFR.(MSB=1).
 Example: MOV A,50H
ADD A, 51H
 addressing mode R0 and R1 of each register bank
can be used as an index or pointer register.
 R0 and R1 point to the contents in the RAM.
 the instruction with indirect addressing uses the@
sign.
 Example: MOV A , @R0
ADD A ,@R1
 In this Immediate Addressing Mode, the data is
provided in the instruction itself.
 The data is provided immediately after the opcode.
 The sign # indicates it is a immediate addressing
mode.
 Example: MOV A ,#52
 Inherent in the instruction, these refers to a specific
register such as accumulator or DPTR.
 In the implied addressing mode, there will be a
single operand.
 These types of instruction can work on specific
registers only.
 Example: RLA , SWAPA
 These are 1- byte instruction. The first one is used
to rotate the A register content to the Left. The
second one is used to swap the nibbles in A.
 Only program memory can be accessed in the
index addressing.
 Either DPTR or PC can be used as an index.
 Example: MOVCA, @A+PC;
MOVCA, @A+DPTR;
The C in MOVC instruction refers to code byte. For
the first instruction, let us consider A holds 30H. And
the PC value is1125H. The contents of program
memory location 1155H (30H + 1125H) are moved to
register A.
 Comparison b/w MC and MP
 Features of 8051
 Architecture
 Pin configuration
 Memory organization(external data and program)
 Addressing modes
 8051 microcontrollers are manufactured by which of the following
companies?
a) Atmel
b) Philips
c) Intel
d) All of the mentioned
 Unlike microprocessors, microcontrollers make use of batteries
because they have:
a) high power dissipation
b) low power consumption
c) low voltage consumption
d) low current consumption
 The internal RAM memory of the 8051 is:
A. 32 bytes
B. 64 bytes
C. 128 bytes
D. 256 bytes
 The 8051 has ________ 16-bit counter/timers.
A. 1 B. 2 C. 3 D. 4
 Microcontrollers often have:
A. CPUs
B. RAM
C. ROM
D. all of the above
Microcontroller .pptx

More Related Content

PPTX
addressing modes of microcontrooller 8051
PPT
addressingmodes8051.ppt
PPTX
8051 addressing modes & instruction set
PPTX
Addressing modes of 8051
PPT
PPT
microprocessor and microcontroller notes ppt
PPTX
8051 addressing modes
PPTX
Addressing Modes
addressing modes of microcontrooller 8051
addressingmodes8051.ppt
8051 addressing modes & instruction set
Addressing modes of 8051
microprocessor and microcontroller notes ppt
8051 addressing modes
Addressing Modes

Similar to Microcontroller .pptx (20)

PDF
VTU 4th Semester ECE dept Microcontroller lecture slides module 2
PDF
unit5_8051_microcontroller presentation.pdf
PPTX
Addressing mode
PDF
addressing-mode-of-8051.pdf
PPT
Addressing modes
PPT
Module-02 Instruction Set in 8051 and their usage
PPTX
2. Instruction Set.pptx huishiuhfuidhiuhdfuhdu
PDF
8051 instruction set
PPTX
MICROCONTROLLERS-module2 (7).pptx
PPTX
Expanation about Addressing Mode of 8051
PPT
Lecture_4__8051_Instruction_Set__Rv01.ppt
PPTX
8051 MICROCONTROLLER ARCHITECTURE.pptx
PPTX
8051 addressing
PDF
Lecture 4 (8051 instruction set) rv01
PPT
8051d.ppt microcontroller instruction set summary
PPTX
MCUnit 4and 5_New.pptx
PPT
8051 Addressing Modes
PPTX
Microcontroller 8051 addressing modes
PDF
Question paper with solution the 8051 microcontroller based embedded systems...
PPT
INTRODUCTION TO MICROCONTROLLERS(8051) ARCHITECTURE,INSTRUCTION SET ,ADDRESSI...
VTU 4th Semester ECE dept Microcontroller lecture slides module 2
unit5_8051_microcontroller presentation.pdf
Addressing mode
addressing-mode-of-8051.pdf
Addressing modes
Module-02 Instruction Set in 8051 and their usage
2. Instruction Set.pptx huishiuhfuidhiuhdfuhdu
8051 instruction set
MICROCONTROLLERS-module2 (7).pptx
Expanation about Addressing Mode of 8051
Lecture_4__8051_Instruction_Set__Rv01.ppt
8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 addressing
Lecture 4 (8051 instruction set) rv01
8051d.ppt microcontroller instruction set summary
MCUnit 4and 5_New.pptx
8051 Addressing Modes
Microcontroller 8051 addressing modes
Question paper with solution the 8051 microcontroller based embedded systems...
INTRODUCTION TO MICROCONTROLLERS(8051) ARCHITECTURE,INSTRUCTION SET ,ADDRESSI...
Ad

More from KIRUTHIKA (20)

PPTX
zeeman effect.pptx
PPTX
x-ray spectra.pptx
PPT
X-RAY -DIFRACTION TYPES.ppt
PPTX
types of wiring.pptx
PPTX
shell model and ionization chamber.pptx
PPTX
NDT.pptx
PPTX
multimeter.pptx
PPTX
metallic glass.pptx
PPTX
megger testing.pptx
PPTX
Materials Science -nano ppt 1.pptx
PPTX
liquid drop model and counter.pptx
PPTX
fullerene seminar_2 (1).pptx
PPTX
electrical measuring instruments.pptx
PPT
Earthing.ppt
PPTX
applications of nanotubes.pptx
PPTX
Machine Cycle 1.pptx
PPTX
TENSOR .pptx
PPTX
Bonds in solids.pptx
PPTX
ALGEBRA OF TENSOR .pptx
PPTX
SAW.pptx
zeeman effect.pptx
x-ray spectra.pptx
X-RAY -DIFRACTION TYPES.ppt
types of wiring.pptx
shell model and ionization chamber.pptx
NDT.pptx
multimeter.pptx
metallic glass.pptx
megger testing.pptx
Materials Science -nano ppt 1.pptx
liquid drop model and counter.pptx
fullerene seminar_2 (1).pptx
electrical measuring instruments.pptx
Earthing.ppt
applications of nanotubes.pptx
Machine Cycle 1.pptx
TENSOR .pptx
Bonds in solids.pptx
ALGEBRA OF TENSOR .pptx
SAW.pptx
Ad

Recently uploaded (20)

PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
Geodesy 1.pptx...............................................
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
composite construction of structures.pdf
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Well-logging-methods_new................
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Geodesy 1.pptx...............................................
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Internet of Things (IOT) - A guide to understanding
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Automation-in-Manufacturing-Chapter-Introduction.pdf
UNIT 4 Total Quality Management .pptx
CH1 Production IntroductoryConcepts.pptx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
composite construction of structures.pdf
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
OOP with Java - Java Introduction (Basics)
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Well-logging-methods_new................

Microcontroller .pptx

  • 2. In 8051 There are six types of addressing modes.  Register AddressingMode  Direct AddressingMode  Register IndirectAddressing Mode  Immediate AddressingMode  Implied/Register Specfic AddressingMode  Indexed AddressingMode
  • 3.  The register addressing instruction involves information transfer between registers  The 8051 can access eight ‘’working registers’’(R0- R7).  Three bit code within the instruction selects one of the eight registers from the selected register bank.  The programmer can select a register bank by modifying bits 4 and 3 in the PSW.
  • 4.  Example: add the content of register r3 and r4 from bank 2.  step 1: MOV PSW  step 2:MOV A, R3 MOV A, R4
  • 5.  Can access any on chip variable and hardware register.(RAM and SF register).  This mode allows you to specify the operand by giving its actual memory address.  the MSB of the address decides whether it is a location within in the chip RAM(MSB=0) or in SFR.(MSB=1).  Example: MOV A,50H ADD A, 51H
  • 6.  addressing mode R0 and R1 of each register bank can be used as an index or pointer register.  R0 and R1 point to the contents in the RAM.  the instruction with indirect addressing uses the@ sign.  Example: MOV A , @R0 ADD A ,@R1
  • 7.  In this Immediate Addressing Mode, the data is provided in the instruction itself.  The data is provided immediately after the opcode.  The sign # indicates it is a immediate addressing mode.  Example: MOV A ,#52
  • 8.  Inherent in the instruction, these refers to a specific register such as accumulator or DPTR.  In the implied addressing mode, there will be a single operand.  These types of instruction can work on specific registers only.  Example: RLA , SWAPA  These are 1- byte instruction. The first one is used to rotate the A register content to the Left. The second one is used to swap the nibbles in A.
  • 9.  Only program memory can be accessed in the index addressing.  Either DPTR or PC can be used as an index.  Example: MOVCA, @A+PC; MOVCA, @A+DPTR; The C in MOVC instruction refers to code byte. For the first instruction, let us consider A holds 30H. And the PC value is1125H. The contents of program memory location 1155H (30H + 1125H) are moved to register A.
  • 10.  Comparison b/w MC and MP  Features of 8051  Architecture  Pin configuration  Memory organization(external data and program)  Addressing modes
  • 11.  8051 microcontrollers are manufactured by which of the following companies? a) Atmel b) Philips c) Intel d) All of the mentioned  Unlike microprocessors, microcontrollers make use of batteries because they have: a) high power dissipation b) low power consumption c) low voltage consumption d) low current consumption  The internal RAM memory of the 8051 is: A. 32 bytes B. 64 bytes C. 128 bytes D. 256 bytes
  • 12.  The 8051 has ________ 16-bit counter/timers. A. 1 B. 2 C. 3 D. 4  Microcontrollers often have: A. CPUs B. RAM C. ROM D. all of the above