ade7169f16 Analog Devices, Inc., ade7169f16 Datasheet - Page 133

no-image

ade7169f16

Manufacturer Part Number
ade7169f16
Description
Single-phase Energy Measurement Ic With 8052 Mcu, Rtc And Lcd Driver
Manufacturer
Analog Devices, Inc.
Datasheet
Preliminary Technical Data
To illustrate the operation of DPCON, the following code copies
256 bytes of code memory at Address D000H into XRAM,
starting from Address 0000H.
MOVELOOP: CLR A
Whenever the DPTR is mentioned elsewhere in this data
sheet, active DPTR is implied.
Only the MOVC/MOVX @DPTR instructions
automatically post-increment and post-decrement the
DPTR. Other MOVC/MOVX instructions, such as MOVC
PC or MOVC @Ri, do not cause the DPTR to automatically
post-increment and post-decrement.
MOV DPTR,#0
MOV DPCON,#55H
MOV DPTR,#0D000H ;DPTR = D000H
MOVC A,@A+DPTR
MOV A, DPL
JNZ MOVELOOP
MOVX @DPTR,A
;Main DPTR = 0
;Select shadow DPTR
;DPTR1 increment mode
;DPTR0 increment mode
;DPTR auto toggling ON
;Get data
;Post Inc DPTR
;Swap to Main DPTR(Data)
;Increment main DPTR
;Swap Shadow DPTR(Code)
;Put ACC in XRAM
Rev. PrD | Page 133 of 140
ADE7169F16

Related parts for ade7169f16