SlideShare a Scribd company logo
1 of 15
ADDRESSING MODES OF 8051
by
-SHARIQUE MULLA
13/3/2015 SHARIQUE MULLA
WHAT IS AN ADDRESSING MODE?
• An Addressing mode is a way to address an
operand.
• Operand means the data we are operating upon
(in most cases source data).
• It can be a direct address of memory, it can be any
numerical data, etc.
23/3/2015 SHARIQUE MULLA
ADDRESSING MODES
1. Immediate addressing mode
2. Direct addressing mode
3. Register direct addressing mode
4. Register indirect addressing mode
5. Indexed addressing mode
33/3/2015 SHARIQUE MULLA
1) IMMEDIATE ADDRESSING MODE
• This type of addressing mode is named as
“immediate addressing”, because it transfers
an 8-bit data immediately to the accumulator
(destination register).
• This instruction has an 8-bit immediate data
at the operand.
43/3/2015 SHARIQUE MULLA
• Example- MOV A,#6AH
53/3/2015 SHARIQUE MULLA
2) DIRECT ADDRESSING MODE
• This is an another way of addressing an
operand.
• In this type of addressing mode, the address
of the data (source data) is given as operand
instead of immediate data .
63/3/2015 SHARIQUE MULLA
• Example- MOV A,04H
73/3/2015 SHARIQUE MULLA
3) REGISTER DIRECT ADDRESSING
MODE
• In this type of addressing mode, we use the
register name directly as source operand.
• In 8051,there are 4 register banks, containing 8
registers (R0-R7) each.
• Hence, the selection of a register bank is done by a
special function register (SFR) called Processor
Status Word (PSW).
83/3/2015 SHARIQUE MULLA
• Example- MOV A,R4
93/3/2015 SHARIQUE MULLA
4) REGISTER INDIRECT ADDRESSING
MODE
• In this type of addressing mode, the address of the
data (source data) is given in the register operand.
• Here also, the register bank is required to be
selected by PSW (Processor Status Word).
• Here, the selected register is first loaded with a
value which acts as the address of the data.
103/3/2015 SHARIQUE MULLA
• Example- MOV A,@R0
113/3/2015 SHARIQUE MULLA
5) INDEXED ADDRESSING MODE
• In this type of addressing, DPTR (Data Pointer) or
PC (Program Counter), i.e. 16-bit registers, are
used in the instruction.
• Here, the content of DPTR or PC is added to the
current content of accumulator.
• The result acts as the address of the source data.
• After execution the source data is stored in
accumulator.
123/3/2015 SHARIQUE MULLA
• Example- MOV A,@A+DPTR
133/3/2015 SHARIQUE MULLA
PROCESSOR STATUS WORD (PSW)
143/3/2015 SHARIQUE MULLA
THANK YOU
153/3/2015 SHARIQUE MULLA

More Related Content

What's hot

8051 addressing modes
 8051 addressing modes 8051 addressing modes
8051 addressing modes
ghoshshweta
 
Addressing mode & data transfer instruction of 8085
Addressing mode & data transfer instruction of 8085Addressing mode & data transfer instruction of 8085
Addressing mode & data transfer instruction of 8085
Chinmayee samal
 
Types of Addressing modes- COA
Types of Addressing modes- COATypes of Addressing modes- COA
Types of Addressing modes- COA
Ruchi Maurya
 

What's hot (20)

Addressing modes
Addressing modesAddressing modes
Addressing modes
 
Addressing modes of 8085
Addressing modes of 8085Addressing modes of 8085
Addressing modes of 8085
 
8051 addressing modes
 8051 addressing modes 8051 addressing modes
8051 addressing modes
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
Computer System Architecture
Computer System ArchitectureComputer System Architecture
Computer System Architecture
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
 
Addressing Modes of 8085 Microprocessor
Addressing Modes of 8085 MicroprocessorAddressing Modes of 8085 Microprocessor
Addressing Modes of 8085 Microprocessor
 
8051 addressing modes
8051 addressing modes8051 addressing modes
8051 addressing modes
 
8085 addressing modes(For College Seminars)
8085 addressing modes(For College Seminars)8085 addressing modes(For College Seminars)
8085 addressing modes(For College Seminars)
 
Addressing mode & data transfer instruction of 8085
Addressing mode & data transfer instruction of 8085Addressing mode & data transfer instruction of 8085
Addressing mode & data transfer instruction of 8085
 
Addresing mode and timing diagram
Addresing mode and timing diagramAddresing mode and timing diagram
Addresing mode and timing diagram
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
8051 Addressing Modes
8051 Addressing Modes8051 Addressing Modes
8051 Addressing Modes
 
4. Instruction Set Of MP 8085.pptx
4. Instruction Set Of MP 8085.pptx4. Instruction Set Of MP 8085.pptx
4. Instruction Set Of MP 8085.pptx
 
Addressing modes of 8085
Addressing modes of 8085Addressing modes of 8085
Addressing modes of 8085
 
8085 instructions and addressing modes
8085 instructions and addressing modes8085 instructions and addressing modes
8085 instructions and addressing modes
 
Instruction.pdf
Instruction.pdfInstruction.pdf
Instruction.pdf
 
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
 
Types of Addressing modes- COA
Types of Addressing modes- COATypes of Addressing modes- COA
Types of Addressing modes- COA
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
 

Viewers also liked

8086 instruction set
8086 instruction set8086 instruction set
8086 instruction set
jemimajerome
 
Arquitectura
ArquitecturaArquitectura
Arquitectura
johanra
 
Ciencias 31 10 2007 1193887542283222 3
Ciencias 31 10 2007 1193887542283222 3Ciencias 31 10 2007 1193887542283222 3
Ciencias 31 10 2007 1193887542283222 3
Marian Gutiérrez
 
Wd133 unit 6 module 2 using adjustment layers
Wd133 unit 6 module 2 using adjustment layersWd133 unit 6 module 2 using adjustment layers
Wd133 unit 6 module 2 using adjustment layers
kateridrex
 
Dig imag unit 6 module 2 using adjustment layers
Dig imag unit 6 module 2 using adjustment layersDig imag unit 6 module 2 using adjustment layers
Dig imag unit 6 module 2 using adjustment layers
kateridrex
 
Poemas.damian gomez 2013
Poemas.damian gomez 2013Poemas.damian gomez 2013
Poemas.damian gomez 2013
laboratorio283
 
20100928 hva er nytt i 6 0 helse vest forum final 2
20100928 hva er nytt i 6 0 helse vest forum final 220100928 hva er nytt i 6 0 helse vest forum final 2
20100928 hva er nytt i 6 0 helse vest forum final 2
Kamikaze Media AS
 

Viewers also liked (20)

Lab2在幹嘛
Lab2在幹嘛Lab2在幹嘛
Lab2在幹嘛
 
8086 instruction set
8086 instruction set8086 instruction set
8086 instruction set
 
Shift rotate
Shift rotateShift rotate
Shift rotate
 
[ASM]Lab7
[ASM]Lab7[ASM]Lab7
[ASM]Lab7
 
Arquitectura
ArquitecturaArquitectura
Arquitectura
 
Ciencias 31 10 2007 1193887542283222 3
Ciencias 31 10 2007 1193887542283222 3Ciencias 31 10 2007 1193887542283222 3
Ciencias 31 10 2007 1193887542283222 3
 
Wd133 unit 6 module 2 using adjustment layers
Wd133 unit 6 module 2 using adjustment layersWd133 unit 6 module 2 using adjustment layers
Wd133 unit 6 module 2 using adjustment layers
 
Axioligía y anomia
Axioligía y anomiaAxioligía y anomia
Axioligía y anomia
 
JOURMEY TO THE GOMUKH
JOURMEY TO THE GOMUKHJOURMEY TO THE GOMUKH
JOURMEY TO THE GOMUKH
 
Dig imag unit 6 module 2 using adjustment layers
Dig imag unit 6 module 2 using adjustment layersDig imag unit 6 module 2 using adjustment layers
Dig imag unit 6 module 2 using adjustment layers
 
Poemas.damian gomez 2013
Poemas.damian gomez 2013Poemas.damian gomez 2013
Poemas.damian gomez 2013
 
20100928 hva er nytt i 6 0 helse vest forum final 2
20100928 hva er nytt i 6 0 helse vest forum final 220100928 hva er nytt i 6 0 helse vest forum final 2
20100928 hva er nytt i 6 0 helse vest forum final 2
 
Estructura
EstructuraEstructura
Estructura
 
Imagenes lectura
Imagenes lecturaImagenes lectura
Imagenes lectura
 
Roteiro COE
Roteiro COERoteiro COE
Roteiro COE
 
Il Breviario Grimani e la sua storia
Il Breviario Grimani e la sua storiaIl Breviario Grimani e la sua storia
Il Breviario Grimani e la sua storia
 
Visual
VisualVisual
Visual
 
Estructura ideal del aula virtual
Estructura ideal del aula virtualEstructura ideal del aula virtual
Estructura ideal del aula virtual
 
Knowledge management-competitive-advantage
Knowledge management-competitive-advantageKnowledge management-competitive-advantage
Knowledge management-competitive-advantage
 
Br 6
Br   6Br   6
Br 6
 

Similar to 8051 addressing

lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptxlec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
MadavanR1
 
Addressing modes-of-8085
Addressing modes-of-8085 Addressing modes-of-8085
Addressing modes-of-8085
jemimajerome
 

Similar to 8051 addressing (20)

3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptx3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptx
 
8085 addressing modes
8085 addressing modes8085 addressing modes
8085 addressing modes
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 
Microprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptxMicroprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptx
 
module-3.pptx
module-3.pptxmodule-3.pptx
module-3.pptx
 
Microprocessor and Microcontroller lec3
Microprocessor and Microcontroller lec3Microprocessor and Microcontroller lec3
Microprocessor and Microcontroller lec3
 
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptxlec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
 
Microprocessors-based systems (under graduate course) Lecture 3 of 9
Microprocessors-based systems (under graduate course) Lecture 3 of 9 Microprocessors-based systems (under graduate course) Lecture 3 of 9
Microprocessors-based systems (under graduate course) Lecture 3 of 9
 
MP_MC.pdf
MP_MC.pdfMP_MC.pdf
MP_MC.pdf
 
ADDRESSING MODES OF 8085
ADDRESSING MODES OF 8085 ADDRESSING MODES OF 8085
ADDRESSING MODES OF 8085
 
Addressing modes-of-8085
Addressing modes-of-8085Addressing modes-of-8085
Addressing modes-of-8085
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modes
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
Addressing modes-of-8085
Addressing modes-of-8085 Addressing modes-of-8085
Addressing modes-of-8085
 
Microprocessor Unit 2.PDF
Microprocessor Unit 2.PDFMicroprocessor Unit 2.PDF
Microprocessor Unit 2.PDF
 
Microcontroller .pptx
Microcontroller .pptxMicrocontroller .pptx
Microcontroller .pptx
 
Unit 2.ppt
Unit 2.pptUnit 2.ppt
Unit 2.ppt
 
UNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxUNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptx
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
Digital signal processing
Digital signal processingDigital signal processing
Digital signal processing
 

Recently uploaded

Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptx
chumtiyababu
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 

Recently uploaded (20)

Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptx
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptx
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 

8051 addressing

  • 1. ADDRESSING MODES OF 8051 by -SHARIQUE MULLA 13/3/2015 SHARIQUE MULLA
  • 2. WHAT IS AN ADDRESSING MODE? • An Addressing mode is a way to address an operand. • Operand means the data we are operating upon (in most cases source data). • It can be a direct address of memory, it can be any numerical data, etc. 23/3/2015 SHARIQUE MULLA
  • 3. ADDRESSING MODES 1. Immediate addressing mode 2. Direct addressing mode 3. Register direct addressing mode 4. Register indirect addressing mode 5. Indexed addressing mode 33/3/2015 SHARIQUE MULLA
  • 4. 1) IMMEDIATE ADDRESSING MODE • This type of addressing mode is named as “immediate addressing”, because it transfers an 8-bit data immediately to the accumulator (destination register). • This instruction has an 8-bit immediate data at the operand. 43/3/2015 SHARIQUE MULLA
  • 5. • Example- MOV A,#6AH 53/3/2015 SHARIQUE MULLA
  • 6. 2) DIRECT ADDRESSING MODE • This is an another way of addressing an operand. • In this type of addressing mode, the address of the data (source data) is given as operand instead of immediate data . 63/3/2015 SHARIQUE MULLA
  • 7. • Example- MOV A,04H 73/3/2015 SHARIQUE MULLA
  • 8. 3) REGISTER DIRECT ADDRESSING MODE • In this type of addressing mode, we use the register name directly as source operand. • In 8051,there are 4 register banks, containing 8 registers (R0-R7) each. • Hence, the selection of a register bank is done by a special function register (SFR) called Processor Status Word (PSW). 83/3/2015 SHARIQUE MULLA
  • 9. • Example- MOV A,R4 93/3/2015 SHARIQUE MULLA
  • 10. 4) REGISTER INDIRECT ADDRESSING MODE • In this type of addressing mode, the address of the data (source data) is given in the register operand. • Here also, the register bank is required to be selected by PSW (Processor Status Word). • Here, the selected register is first loaded with a value which acts as the address of the data. 103/3/2015 SHARIQUE MULLA
  • 11. • Example- MOV A,@R0 113/3/2015 SHARIQUE MULLA
  • 12. 5) INDEXED ADDRESSING MODE • In this type of addressing, DPTR (Data Pointer) or PC (Program Counter), i.e. 16-bit registers, are used in the instruction. • Here, the content of DPTR or PC is added to the current content of accumulator. • The result acts as the address of the source data. • After execution the source data is stored in accumulator. 123/3/2015 SHARIQUE MULLA
  • 13. • Example- MOV A,@A+DPTR 133/3/2015 SHARIQUE MULLA
  • 14. PROCESSOR STATUS WORD (PSW) 143/3/2015 SHARIQUE MULLA