Embedded

DPTR in 8051

By CourseTron Team ·  1 min read ·  Updated Oct 2026 💬 𝕏 in f
Table of Contents

    8051 REGISTERS

    DPTR in 8051

    DPTR is the 16-bit data pointer register in 8051, formed by DPH and DPL, and used for external memory access and table lookup operations.

    Quick answer

    DPTR is the 16-bit data pointer register in 8051, formed by DPH and DPL, and used for external memory access and table lookup operations.

    Key points to remember

    • DPTR is 16-bit: DPH plus DPL.
    • Used for external memory and code table addressing.
    • Essential for lookup tables and memory interfacing.

    How DPTR is structured

    DPTR consists of two 8-bit registers: DPH for the high byte and DPL for the low byte. Together they hold a 16-bit address, which is useful because the 8051 core is 8-bit but memory addresses can be wider.

    Common uses

    DPTR is used with MOVX for external data memory and with MOVC for code memory table lookups. It is also useful for iterating through lookup tables, display patterns, and stored constants.

    FAQ

    Is DPTR 8-bit or 16-bit?

    DPTR is 16-bit, split into DPH and DPL registers.

    Which instructions commonly use DPTR?

    MOVX and MOVC commonly use DPTR for external memory access and code memory lookup.

    Advertisement