leonpan-avatar

Give examples of different addressing modes used in microcontroller programming.

In order to transfer data to various memory locations in a microcontroller different addressing techniques are used. Give some examples with reference to 8051 microcontroller.
almost 13 years ago
0%

3 replies

almost 13 years ago
angarika-avatar
Addressing function can be a way to handle the operand. Operand indicates the data were working with (in most cases source data).
almost 13 years ago
ankitay-avatar
An "addressing mode" refers to how you are addressing a given memory location. In summary, the addressing modes are as follows, with an example of each:
Immediate Addressing MOV A,#20h
Direct Addressing MOV A,30h
Indirect Addressing MOV A,@R0
External Direct MOVX A,@DPTR
Code Indirect MOVC A,@A+DPTR Source: http://en.docsity.com/en-docs/Addressing_Modes_-_Microcontroller_Interfacing_-_Lab_Handouts_