What is a data pointer in 8051 Microcontrollers?

devquora
devquora

Posted On: Mar 17, 2020

 

    1 Answer Written

  •  devquora
    Answered by Anil Saini

    In 8051 Microcontrollers, a data pointer is a 16-bit register that holds the address of a memory location in the internal RAM. The 8051 architecture has two data pointers: DPTR0 and DPTR1.

    DPTR0 is used for accessing code space in external memory, while DPTR1 is used for accessing data space in external memory. When the 8051 is executing code, the program counter (PC) points to the current instruction being executed. In contrast, when using data pointers, the DPTR register points to the memory location that is being accessed.

Related Questions

Please Login or Register to leave a response.

Related Questions

8051 Microcontroller Interview Questions

What is an interrupt? List various types of interrupts available in 8051 Microcontroller?

What is an interrupt? List various types of interrupts available in 8051 Microcontroller?..