STC8A8K64D4 Series Manual
24 Enhanced Dual Data Pointer
Two 16-bit data pointers are integrated in STC8A8K64D4 series of microcontrollers. The data pointers can be increased
or decreased automatically by the program control, and they can be switched automatically.
24.1 Related special function registers
Data pointer low byte register
Data pointer high byte register
2nd Data pointer low byte
2nd Data pointer high byte
DPTR Timing control register
24.1.1 1st 16-bit Data Pointer Registers (DPTR0)
DPL is Data pointer 0 low byte.
DPH is Data pointer 0 high byte.
The combination of DPL and DPH is the first 16-bit data pointer register DPTR0.
24.1.2 2nd 16-bit Data Pointer Registers (DPTR1)
DPL1 is Data pointer 1 low byte.
DPH1 is Data pointer 1 low byte.
The combination of DPL1 and DPH1 is the second 16-bit data pointer register DPTR1.
24.1.3 DPTR control register
ID1: DPTR1 auto-increment or auto-decrement mode control bit
0: DPTR1 auto-increment mode
1: DPTR1 auto-decrement mode
ID0: DPTR0 auto-increment or auto-decrement mode control bit
0: DPTR0 auto-increment mode
1: DPTR0 auto-decrement mode
TSL: DPTR0/DPTR1 auto-switch control bit (invert SEL automatically)
0: DPTR0/DPTR1 auto switch is disabled.
1: DPTR0/DPTR1 auto switch is enabled.
If the TSL bit is set, the SEL bit will be inverted automatically after the relevant instruction is executed.