Posts

Showing posts from 2018

Addressing Modes of 8051

  ADDRESSING MODES OF 8051   Ans: Various methods of accessing the data are called addressing modes. 8051 addressing modes are classified as follows.                     i.             Immediate addressing. -           In this addressing mode the data is provided as a part of instruction itself. -           In other words data immediately follows the instruction. Eg. MOV A,#30H ADD A, #83                  ii.             Register addressing. -           In this addressing mode the register will hold the data. -           One of the eight general registers (R0 to R7) can be used and specified as the operand. Eg. MOV A, R0 ADD A, R6 -           R0 – R7 will be selected from the current selection of register bank. -           The default register bank will be bank 0.                iii.             Direct addressing -           In direct addressing, an 8 bit internal data memory address is specified as part of the instruction and hence