EVAL-ADUC836QS AD [Analog Devices], EVAL-ADUC836QS Datasheet - Page 48

no-image

EVAL-ADUC836QS

Manufacturer Part Number
EVAL-ADUC836QS
Description
MicroConverter, Dual 16-Bit ADCs with Embedded 62 kB Flash MCU
Manufacturer
AD [Analog Devices]
Datasheet
DUAL DATA POINTER
The ADuC836 incorporates both main and shadow data pointers.
The shadow data pointer is selected via the data point er con trol
SFR (DPCON). DPCON also includes features such as automatic
hardware post-increment and post-dec re ment, as well as automatic
data pointer toggle. DPCON is described in Table XXIII.
Bit
7
6
5
4
3
2
1
0
NOTES
1. This is the only place where the main and shadow data pointers are distinguished. Everywhere else in this data sheet, wher ev er the DPTR is mentioned, operation on the
2. Only MOVC/MOVX @DPTR instructions are rel e vant above. MOVC/MOVX PC/@Ri instructions will not cause the DPTR to automatically post increment/decrement,
ADuC836
MOVELOOP:
active DPTR is implied.
and so on. To illustrate the operation of DPCON, the following code will copy 256 bytes of code memory at address D000H into XRAM starting from address 0000H.
the code uses 16 bytes and 2054 cycles. To perform this on a standard 8051 requires ap prox i mate ly 33 bytes and 7172 cycles (depending on how it is im ple ment ed).
MOV
MOV
MOV
CLR
Name
–––
DPT
DP1m1
DP1m0
DP0m1
DP0m0
–––
DPSEL
DPTR,#0
DPCON,#55h
DPTR,#0D000h
A
Description
Reserved for Future Use
Data Pointer Automatic Toggle Enable.
Cleared by user to disable auto swapping of the DPTR.
Set in user software to enable automatic toggling of the DPTR after each MOVX or MOVC instruction.
Shadow Data Pointer Mode.
These two bits enable extra modes of the shadow data pointer operation, allowing for more compact and more
effi cient code size and execution.
m1
0
0
1
1
Main Data Pointer Mode.
These two bits enable extra modes of the main data pointer operation, allowing for more com pact and more
effi cient code size and ex e cu tion.
m1
0
0
1
1
This bit is not implemented to allow the INC DPCON instruction to toggle the data pointer without incre-
menting the rest of the SFR.
Data Pointer Select.
Cleared by user to select the main data pointer. This means that the con tents of the main 24-bit DPTR appears
in the three SFRs: DPL, DPH, and DPP.
Set by user to select the shadow data pointer. This means that the con tents of the shadow 24-bit DPTR
appears in the three SFRs: DPL, DPH, and DPP.
; Main DPTR = 0
; Select shadow DPTR
; DPTR1 increment mode,
; DPTR0 in cre ment mode
; DPTR auto toggling ON
; Shadow DPTR = D000h
m0
0
1
0
1
m0
0
1
0
1
Behavior of the Shadow Data Pointer
8052 Behavior
DPTR is post-incremented after a MOVX or MOVC instruction.
DPTR is post-decremented after a MOVX or MOVC instruction.
DPTR LSB is toggled after a MOVX or MOVC instruction.
(This instruction can be useful for moving 8-bit blocks to/from 16-bit devices.)
Behavior of the Main Data Pointer
8052 Behavior
DPTR is post-incremented after a MOVX or MOVC instruction.
DPTR is post-decremented after a MOVX or MOVC instruction.
DPTR LSB is toggled aftera MOVX or MOVC instruction.
(This instruction can be useful for moving 8-bit blocks to/from 16-bit devices.)
Table XXIII. DPCON SFR Bit Designations
–48–
DPCON
SFR Address
Power-On Default Value
Bit Addressable
MOVC A,@A+DPTR
MOVX @DPTR,A
MOV
JNZ
A, DPL
MOVELOOP
Data Pointer Con trol SFR
A7H
00H
No
; Get data
; Post Inc DPTR
; Swap to Main DPTR (Data)
; Put ACC in XRAM
; Increment main DPTR
; Swap to Shad DPTR (Code)
REV. 0

Related parts for EVAL-ADUC836QS