English
Language : 

UPSD3422_06 Datasheet, PDF (49/293 Pages) STMicroelectronics – Turbo Plus Series Fast Turbo 8032 MCU with USB and Programmable Logic
uPSD34xx
Dual data pointers
LOOP:
MOVX(1) A, @DPTR
MOVX(1) @DPTR, A
DJNZ(1)
MOV
MOV
R7, LOOP
86h, #00
85h, #00
; load XDATA byte from source into ACC.
; after load completes, DPTR0 increments and
DPTR
; switches DPTR1
; store XDATA byte from ACC to destination.
; after store completes, DPTR1 increments and
DPTR
; switches to DPTR0
; continue until done
; disable auto-increment
; disable auto-toggle, now back to single DPTR
mode
Note: 1 The code loop where the data transfer takes place is only 3 lines of code.
49/293