SlideShare a Scribd company logo
5
Most read
10
Most read
Nitin Ahire
XIE,Mahim
Prof. Nitin Ahire 1
 The CPU can access data various ways
 The data could be in a register, or memory
or as an immediate value
 The various ways of accessing data are
called addressing modes.
Prof. Nitin Ahire 2
1)Direct addressing mode
2)Indirect addressing mode
3)Register addressing
4)Register specific addressing (optional)
5)Immediate addressing
6)External Addressing ( Index )
a) Code access b) Data access
Prof. Nitin Ahire 3
 In this mode the operand is specified by an
8-bit address field In the instruction.
 One can access all the 128 bytes of internal
RAM locations and each SFR.
 If the MSB bit = 0 then the location is within
on chip internal RAM. If MSB bit = 1
then the location is SFR.
Prof. Nitin Ahire 4
 The location 00h to 7Fh to address the
internal RAM .
 SFR addresses from 80h to FF h
 e.g. MOV A,40h
MOV R0,14h
Prof. Nitin Ahire 5
 In this addressing mode, the instruction
specifics a register which contains address
of an operand
i.e. the register hold the actual address that
will be used in the data move operation.
 The R0 and R1 of each bank can be used as an
index or pointer to memory location
Prof. Nitin Ahire 6
 The sign @ indicates the register acts as a
pointer to memory locations
 E.g. MOV A,@ R1
Note : only register R0 and R1 can be used
for indirect addressing mode .
MOV A,@R2 invalid instruction.
Prof. Nitin Ahire 7
 Each bank consist of register R0 to R7 can be
used as general purpose register for selection
of bank register, the user has to modify the
two bits of PSW
 These register can be used to stored the
address or data in the register addressing
mode
Prof. Nitin Ahire 8
 E.g.
MOV R2,A
MOV A, R1
MOV A,R7
Note: MOV R2,R7 is an invalid instruction
Prof. Nitin Ahire 9
 In this addressing mode the instruction refer
to a specific registers such as accumulator or
data pointer
 Example:
DA A
SWAP A
Prof. Nitin Ahire 10
 This method is the simplest method to get
the data.
 In this addressing mode the source operand is
a constant rather then a variable.
 As the data source is a part of instruction
 The # sign indicates that the data followed is
immediate operand.
Prof. Nitin Ahire 11
 E.g.
MOV A,#30h
MOV P1,#0FF
MOV DPTR, #1234h
Prof. Nitin Ahire 12
(a) Code access (ROM access)
 Using these instructions only program
memory can be accessed.
 This addressing mode is preferred for
reading look up tables in the program
memory.
 Either DPTR or PC can be used as pointer.
Prof. Nitin Ahire 13
 E.g.
MOVC A,@A+DPTR
MOVC A,@A+PC
Prof. Nitin Ahire 14
(b) Data access (RAM access)
 Using this addressing mode the programmer
can access the external Data memory
 E.g. MOVX A,@DPTR
MOVX @R0,A
Prof. Nitin Ahire 15

More Related Content

PPT
PPTX
Instruction set of 8086
PDF
Serial communication in 8085
PPTX
4.programmable dma controller 8257
PPTX
3.programmable interrupt controller 8259
PPTX
8085 addressing modes
PPT
Interfacing of io device to 8085
PPT
80486 microprocessor
Instruction set of 8086
Serial communication in 8085
4.programmable dma controller 8257
3.programmable interrupt controller 8259
8085 addressing modes
Interfacing of io device to 8085
80486 microprocessor

What's hot (20)

PPT
8085 Architecture & Memory Interfacing1
DOCX
Microprocessor Interfacing and 8155 Features
DOCX
8086 pin diagram description
PPTX
Arithmetic and logical instructions
PPTX
General Purpose Input Output - Brief Introduction
PPSX
Lect 3 ARM PROCESSOR ARCHITECTURE
PPT
8255 presentaion.ppt
PPT
8085-microprocessor
PDF
8155 PPI
PPTX
Floating point arithmetic operations (1)
PPTX
8255 PPI
PPT
Microprocessor 80386
PPT
8085 MICROPROCESSOR
PPTX
Programmable peripheral interface 8255
PPTX
Registers
PPTX
Computer organization and architecture
PPTX
Module 2 ARM CORTEX M3 Instruction Set and Programming
PPTX
Interrupts of microprocessor 8085
8085 Architecture & Memory Interfacing1
Microprocessor Interfacing and 8155 Features
8086 pin diagram description
Arithmetic and logical instructions
General Purpose Input Output - Brief Introduction
Lect 3 ARM PROCESSOR ARCHITECTURE
8255 presentaion.ppt
8085-microprocessor
8155 PPI
Floating point arithmetic operations (1)
8255 PPI
Microprocessor 80386
8085 MICROPROCESSOR
Programmable peripheral interface 8255
Registers
Computer organization and architecture
Module 2 ARM CORTEX M3 Instruction Set and Programming
Interrupts of microprocessor 8085
Ad

Similar to Addressing mode of 8051 (20)

PDF
addressing-mode-of-8051.pdf
PPT
microprocessor and microcontroller notes ppt
PPT
addressingmodes8051.ppt
PPTX
Expanation about Addressing Mode of 8051
PPTX
addressing modes of microcontrooller 8051
PDF
8051 instruction set
PPSX
8051 addressing modes
PPTX
Addressing modes
PPTX
instruction format and addressing modes
PPT
8051 Addressing Modes
PDF
A Comprehensive Guide to 8051 Microcontroller Addressing Modes and Instructions
PPT
MC-MODULE-2.ppt includes addressing modes , instruction set etc...
PPTX
Addressing modes of 8051
PPTX
Microcontroller .pptx
PDF
432_17EC563_8051-microcontroller-moving-data_notes.pdf
PPTX
8051 Programming (1).pptx
PPT
Module-02 Instruction Set in 8051 and their usage
PPTX
ADDRESSING MODES
PPTX
ADDRESSING MODES
PPTX
addressing modes
addressing-mode-of-8051.pdf
microprocessor and microcontroller notes ppt
addressingmodes8051.ppt
Expanation about Addressing Mode of 8051
addressing modes of microcontrooller 8051
8051 instruction set
8051 addressing modes
Addressing modes
instruction format and addressing modes
8051 Addressing Modes
A Comprehensive Guide to 8051 Microcontroller Addressing Modes and Instructions
MC-MODULE-2.ppt includes addressing modes , instruction set etc...
Addressing modes of 8051
Microcontroller .pptx
432_17EC563_8051-microcontroller-moving-data_notes.pdf
8051 Programming (1).pptx
Module-02 Instruction Set in 8051 and their usage
ADDRESSING MODES
ADDRESSING MODES
addressing modes
Ad

More from Nitin Ahire (8)

PDF
Microprocessor 8086 8087_nitin ahire
PDF
8051 Microcontroller
PDF
8085 ppi 8255 and 8155
PPTX
Microprocessor
PDF
8051 singed number concept [compatibility mode]
PDF
8051 micro controllers Instruction set
PDF
8051 (microcontroller)class1
PDF
Interrupt of 8085
Microprocessor 8086 8087_nitin ahire
8051 Microcontroller
8085 ppi 8255 and 8155
Microprocessor
8051 singed number concept [compatibility mode]
8051 micro controllers Instruction set
8051 (microcontroller)class1
Interrupt of 8085

Recently uploaded (20)

PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
KodekX | Application Modernization Development
PDF
Modernizing your data center with Dell and AMD
PDF
Empathic Computing: Creating Shared Understanding
PDF
Electronic commerce courselecture one. Pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Big Data Technologies - Introduction.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
MYSQL Presentation for SQL database connectivity
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
KodekX | Application Modernization Development
Modernizing your data center with Dell and AMD
Empathic Computing: Creating Shared Understanding
Electronic commerce courselecture one. Pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
20250228 LYD VKU AI Blended-Learning.pptx
Encapsulation_ Review paper, used for researhc scholars
Diabetes mellitus diagnosis method based random forest with bat algorithm
The Rise and Fall of 3GPP – Time for a Sabbatical?
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Review of recent advances in non-invasive hemoglobin estimation
Big Data Technologies - Introduction.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
MYSQL Presentation for SQL database connectivity
NewMind AI Monthly Chronicles - July 2025
Digital-Transformation-Roadmap-for-Companies.pptx
Understanding_Digital_Forensics_Presentation.pptx

Addressing mode of 8051

  • 2.  The CPU can access data various ways  The data could be in a register, or memory or as an immediate value  The various ways of accessing data are called addressing modes. Prof. Nitin Ahire 2
  • 3. 1)Direct addressing mode 2)Indirect addressing mode 3)Register addressing 4)Register specific addressing (optional) 5)Immediate addressing 6)External Addressing ( Index ) a) Code access b) Data access Prof. Nitin Ahire 3
  • 4.  In this mode the operand is specified by an 8-bit address field In the instruction.  One can access all the 128 bytes of internal RAM locations and each SFR.  If the MSB bit = 0 then the location is within on chip internal RAM. If MSB bit = 1 then the location is SFR. Prof. Nitin Ahire 4
  • 5.  The location 00h to 7Fh to address the internal RAM .  SFR addresses from 80h to FF h  e.g. MOV A,40h MOV R0,14h Prof. Nitin Ahire 5
  • 6.  In this addressing mode, the instruction specifics a register which contains address of an operand i.e. the register hold the actual address that will be used in the data move operation.  The R0 and R1 of each bank can be used as an index or pointer to memory location Prof. Nitin Ahire 6
  • 7.  The sign @ indicates the register acts as a pointer to memory locations  E.g. MOV A,@ R1 Note : only register R0 and R1 can be used for indirect addressing mode . MOV A,@R2 invalid instruction. Prof. Nitin Ahire 7
  • 8.  Each bank consist of register R0 to R7 can be used as general purpose register for selection of bank register, the user has to modify the two bits of PSW  These register can be used to stored the address or data in the register addressing mode Prof. Nitin Ahire 8
  • 9.  E.g. MOV R2,A MOV A, R1 MOV A,R7 Note: MOV R2,R7 is an invalid instruction Prof. Nitin Ahire 9
  • 10.  In this addressing mode the instruction refer to a specific registers such as accumulator or data pointer  Example: DA A SWAP A Prof. Nitin Ahire 10
  • 11.  This method is the simplest method to get the data.  In this addressing mode the source operand is a constant rather then a variable.  As the data source is a part of instruction  The # sign indicates that the data followed is immediate operand. Prof. Nitin Ahire 11
  • 12.  E.g. MOV A,#30h MOV P1,#0FF MOV DPTR, #1234h Prof. Nitin Ahire 12
  • 13. (a) Code access (ROM access)  Using these instructions only program memory can be accessed.  This addressing mode is preferred for reading look up tables in the program memory.  Either DPTR or PC can be used as pointer. Prof. Nitin Ahire 13
  • 14.  E.g. MOVC A,@A+DPTR MOVC A,@A+PC Prof. Nitin Ahire 14
  • 15. (b) Data access (RAM access)  Using this addressing mode the programmer can access the external Data memory  E.g. MOVX A,@DPTR MOVX @R0,A Prof. Nitin Ahire 15