ade7566acpzf8-rl Analog Devices, Inc., ade7566acpzf8-rl Datasheet - Page 92
![no-image](/images/no-image-200.jpg)
ade7566acpzf8-rl
Manufacturer Part Number
ade7566acpzf8-rl
Description
Single-phase Energy Measurement Ic With 8052 Mcu, Rtc, And Lcd Driver
Manufacturer
Analog Devices, Inc.
Datasheet
1.ADE7566ACPZF8-RL.pdf
(152 pages)
- Current page: 92 of 152
- Download datasheet (3Mb)
ADE7116/ADE7156/ADE7166/ADE7169/ADE7566/ADE7569
DUAL DATA POINTERS
Each ADE7116/ADE7156/ADE7166/ADE7169/ADE7566/
ADE7569 incorporates two data pointers. The second data
pointer is a shadow data pointer and is selected via the data
pointer control SFR (DPCON, Address 0xA7). DPCON features
automatic hardware postincrement and postdecrement, as well as
an automatic data pointer toggle.
Note that this is the only section of the data sheet where the
main and shadow data pointers are distinguished. Whenever the
data pointer (DPTR) is mentioned elsewhere in the data sheet,
active DPTR is implied.
In addition, only the MOVC/MOVX @DPTR instructions
automatically postincrement and postdecrement the DPTR.
Other MOVC/MOVX instructions, such as MOVC PC
or MOVC @Ri, do not cause the DPTR to automatically
postincrement and postdecrement.
To illustrate the operation of DPCON, the following code copies
256 bytes of code memory at Address 0xD000 into XRAM,
starting from Address 0x0000:
Table 76. Data Pointer Control SFR (DPCON, Address 0xA7)
Bit
7
6
[5:4]
[3:2]
1
0
Mnemonic
DPT
DP1m1,
DP1m0
DP0m1,
DP0m0
DPSEL
Default
0
0
0
0
0
0
Description
Not implemented. Write don’t care.
Data pointer automatic toggle enable. Cleared by the user to disable autoswapping 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 bits enable extra modes of the shadow data pointer operation,
allowing more compact and more efficient code size and execution.
DP1m1
0
0
1
1
Main data pointer mode. These bits enable extra modes of the main data pointer operation, allowing
more compact and more efficient code size and execution.
DP0m1
0
0
1
1
Not implemented. Write don’t care.
Data pointer select. Cleared by the user to select the main data pointer, meaning that the contents of
this 16-bit register are placed into the DPL SFR and DPH SFR. Set by the user to select the shadow data
pointer, meaning that the contents of a separate 16-bit register appear in the DPL SFR and DPH SFR.
DP1m0
0
1
0
1
DP0m0
0
1
0
1
Result (Behavior of the Shadow Data Pointer)
8052 behavior.
DPTR is postincremented after a MOVX or a MOVC instruction.
DPTR is postdecremented 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.
Result (Behavior of the Main Data Pointer)
8052 behavior.
DPTR is postincremented after a MOVX or a MOVC instruction.
DPTR is postdecremented after a MOVX or MOVC instruction.
DPTR LSB is toggled after a MOVX or MOVC instruction. This instruction is useful
for moving 8-bit blocks to/from 16-bit devices.
Rev. B | Page 92 of 152
MOVELOOP: CLR A
MOV DPTR,#0
MOV DPCON,#55H
MOV DPTR,#0D000H
MOVC A,@A+DPTR
MOV A, DPL
JNZ MOVELOOP
;DPTR1 increment mode
;DPTR0 increment mode
;DPTR auto toggling ON
;Post Inc DPTR
;Swap to Main DPTR(Data)
;Increment main DPTR
;Swap Shadow DPTR(Code)
MOVX @DPTR,A
;Main DPTR = 0
;Select shadow DPTR
;DPTR = D000H
;Get data
;Put ACC in XRAM
Related parts for ade7566acpzf8-rl
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![ade7566](/images/no-image3.png)
Part Number:
Description:
Single-phase Energy Measurement Ic With 8052 Mcu, Rtc, And Lcd Driver
Manufacturer:
Analog Devices, Inc.
Datasheet:
![ad535kd](/images/no-image3.png)
Part Number:
Description:
Analog Divider
Manufacturer:
Analog Devices, Inc.
Datasheet:
![ad6437](/images/no-image3.png)
Part Number:
Description:
Analog Front End For Adsl
Manufacturer:
Analog Devices, Inc.
Datasheet:
![ad7868bq](/images/no-image3.png)
Part Number:
Description:
Lc2mos Complete, 12-bit Analog I/o System
Manufacturer:
Analog Devices, Inc.
Datasheet:
![ad7502sq](/images/no-image3.png)
Part Number:
Description:
Cmos 4/8 Channel Analog Multiplexers
Manufacturer:
Analog Devices, Inc.
Datasheet:
![ad73311](/images/no-image3.png)
Part Number:
Description:
Low Cost, Low Power Cmos General Purpose Analog Front End
Manufacturer:
Analog Devices, Inc.
Datasheet:
![ad1582crt-reel7](/images/no-image3.png)
Part Number:
Description:
2.5 V To 5.0 V Micropower, Precision Series Mode Voltage References
Manufacturer:
Analog Devices, Inc.
Datasheet:
![ad1859jrz](/images/no-image3.png)
Part Number:
Description:
Stereo, Single-supply 18-bit Integrated Dac
Manufacturer:
Analog Devices, Inc.
Datasheet:
![ad1833ast](/images/no-image3.png)
Part Number:
Description:
Multichannel 24-bit, 192 Khz, Dac
Manufacturer:
Analog Devices, Inc.
Datasheet:
![ad1881a](/images/no-image3.png)
Part Number:
Description:
Ac?97 Soundmax Codec
Manufacturer:
Analog Devices, Inc.
Datasheet:
![ad1865r-j](/images/no-image3.png)
Part Number:
Description:
Complete Dual 18-bit 16 X Fs Audio Dac
Manufacturer:
Analog Devices, Inc.
Datasheet:
![ad1890jpz](/images/no-image3.png)
Part Number:
Description:
Sampleport Stereo Asynchronous Sample Rate Converters
Manufacturer:
Analog Devices, Inc.
Datasheet:
![ad1803jru](/images/no-image3.png)
Part Number:
Description:
U.s./international Modem Daa Line Codec Chipset
Manufacturer:
Analog Devices, Inc.
Datasheet:
![ad9630an](/images/no-image3.png)
Part Number:
Description:
Low Distortion 750 Mhz Closed-loop Buffer Amp
Manufacturer:
Analog Devices, Inc.
Datasheet:
![ad1315kz](/images/no-image3.png)
Part Number:
Description:
High Speed Active Load With Inhibit Mode
Manufacturer:
Analog Devices, Inc.
Datasheet: