0% found this document useful (0 votes)
146 views7 pages

Addressing Modes of 8051

The document discusses the five addressing modes of the 8051 microcontroller: immediate, direct, register, register indirect, and indexed. Immediate addressing uses a constant as the source operand. Direct addressing accesses RAM locations from 30H to 7FH. Register addressing uses registers as both the source and destination. Register indirect uses a register as a pointer to data. Indexed addressing is used to access lookup table entries in program ROM using the register and DPTR.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
146 views7 pages

Addressing Modes of 8051

The document discusses the five addressing modes of the 8051 microcontroller: immediate, direct, register, register indirect, and indexed. Immediate addressing uses a constant as the source operand. Direct addressing accesses RAM locations from 30H to 7FH. Register addressing uses registers as both the source and destination. Register indirect uses a register as a pointer to data. Indexed addressing is used to access lookup table entries in program ROM using the register and DPTR.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Addressing Modes of

8051
Addressing Modes

 8051 provides a total of five addressing modes.


 The way in which the instruction is specified.
 Addressing Modes are
 Immediate Addressing Mode
 Direct Addressing Mode
 Register Addressing Mode
 Register Indirect Addressing Mode
 Indexed Addressing Mode
Immediate Addressing Mode

 In this addressing mode the source operand is Constant


 Immediate data must be preceded by the sign “#”
 This addressing mode can be used to load information into any of the registers.

e.g. Mov A, #25H


Direct Addressing Mode

 There is 128 Bytes of RAM in 8051.


 This mode most often used to Access RAM location from 30 to 7FH

 e.g. MOV R0, 40H


Register Addressing Mode

 It involves the use of register to hold the data to be manipulated


 In this mode source and destination both should be Register

e.g. MOV A, Ri
ADD A, Ri
Register Indirect Mode

 In this mode register used as pointer to the data


 If data is inside the CPU only register R0 & R1 are used.
Indexed Addressing Mode

 This mode is used in accessing the data elements of look up table entries located
in program code ROM at 8051

MOVC A, @A+DPTR

You might also like