Saturday, February 27, 2016

8051 Data Pointer

DPTR

8051 Data Pointer

  • Address: 0x83 – 0x82.
  • Size: 16-bit.
  • Byte and word addressable.
  • Used to point to data.
  • Used to access external data or code memory.
  • 8051 will access external memory at the address indicated by DPTR.
  • DPTR holds the memory addresses for internal and external code access and external data access (eg. MOVC A,@A+DPTR MOVX A,@DPTR MOVX @DPTR,A )
  • Often used to point to data in external memory.
  • It’s the only user accessible 16-bit register.
  • Can be used as temporary storage.
  • Can also be used as two 8-bit registers. DPH – 0x83, DPL – 0x82.
  • MOV DPTR, #2550H
    is same as
    MOV DPL, #50H
    MOV DPH, #25H



Related topics:
8051 Registers   |   8051 Program Counter   |   8051 R Registers   |   8051 SFR   |   8051 P Registers   |   8051 Stack   |   8051 Stack Pointer   |   8051 PCON Register   |   8051 TCON Register   |   8051 TMOD Register   |   8051 Timer Registers   |   8051 SCON Register   |   8051 SBUF Register   |   8051 IE Register   |   8051 IP Register   |   8051 PSW Register   |   8051 A Register   |   8051 B Register

List of topics: 8051

No comments:

Post a Comment