ADE7566ASTZF8-RL2 AD [Analog Devices], ADE7566ASTZF8-RL2 Datasheet - Page 97
ADE7566ASTZF8-RL2
Manufacturer Part Number
ADE7566ASTZF8-RL2
Description
Single-Phase Energy Measurement IC with 8052 MCU, RTC, and LCD Driver
Manufacturer
AD [Analog Devices]
Datasheet
1.ADE7566ASTZF8-RL2.pdf
(136 pages)
- Current page: 97 of 136
- Download datasheet (2Mb)
Preliminary Technical Data
Table 94. Flash Read Protection SFR (PROTR, 0xBF)
Bit No.
7 to 0
Table 95. Flash Low Byte Address SFR (EADRL, 0xC6)
Bit No.
7 to 0
Table 96. Flash High Byte Address SFR (EADRH, 0xC7)
Bit No.
7 to 0
Flash Functions
Sample 8051 code is provided in this section to demonstrate
how to use the flash functions. For these examples, the byte of
flash memory 0x3C00 is accessed.
Write Byte
Write 0xF3 into flash memory byte 0x3C00.
MOV EDATA, #F3h
MOV EADRH, #3Ch
MOV EADRL, #00h
MOV FLSHKY, #3Bh
key.
MOV ECON, #01H
Erase Page
Erase the page containing flash memory byte 0x3C00.
MOV EADRH, #3Ch
byte address
MOV EADRL, #00h
MOV FLSHKY, #3Bh
key.
MOV ECON, #02H
Mnemonic
PROTR
Mnemonic
EADRL
Mnemonic
EADRH
Default
0xFF
Default
0
Default
0
; Data to be written
; Setup byte address
; Write Flash security
; Write Byte
; Select page through
; Write Flash security
; Erase Page
Description
This SFR is used to write the read protection bits for Page 0 to Page 31 of the flash memory
(see the Protecting the Flash section). Clearing the bits enables the protection.
PROTR.7
Page 28 to
Page 31
Description
Flash Pointer Low Byte Address. This SFR is also used to write the write/erase protection bits for Page 16 to
Page 23 of the flash memory (see the Protecting the Flash section). Clearing the bits enables the
protection.
EADRL.7
Page 23
Description
Flash Pointer High Byte Address. This SFR is also used to write the write/erase protection bits for Page 24 to
Page 31 of the flash memory (see the Protecting the Flash section). Clearing the bits enables the
protection.
EADRH.7
Page 31
EADRH.6
Page 30
PROTR.6
Page 24 to
Page 27
EADRL.6
Page 22
Rev. PrA | Page 97 of 136
EADRH.5
Page 29
PROTR.5
Page 20 to
Page 23
EADRL.5
Page 21
Erase All
Erase all of the 16 kB flash memory.
MOV FLSHKY, #3Bh
key.
MOV ECON, #03H
Read Byte
Read flash memory byte 0x3C00.
MOV EADRH, #3Ch
MOV EADRL, #00h
MOV FLSHKY, #3Bh
key.
MOV ECON, #04H
; Data is ready in EDATA register
Erase Page and Write Byte
Erase the page containing flash memory byte 0x3C00 and then
write 0xF3 to that address. Note that the other 511 bytes in this
page are erased.
MOV EDATA, #F3h
MOV EADRH, #3Ch
MOV EADRL, #00h
MOV FLSHKY, #3Bh
key.
MOV ECON, #05H
write byte
EADRH.4
Page 28
PROTR.4
Page 16 to
Page 19
EADRL.4
Page 20
EADRH.3
Page 27
PROTR.3
Page 12 to
Page 15
EADRL.3
Page 19
EADRH.2
Page 26
PROTR.2
Page 8 to
Page 11
EADRL.2
Page 18
; Write Flash security
; Erase All
; Setup byte address
; Write Flash security
; Read Byte
; Data to be written
; Setup byte address
; Write Flash security
; Erase page and then
ADE7566/ADE7569
EADRH.1
Page 25
EADRL.1
Page 17
PROTR.1
Page 4 to
Page 7
EADRH.0
Page 24
PROTR.0
Page 0 to
Page 3
EADRL.0
Page 16
Related parts for ADE7566ASTZF8-RL2
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Single-phase Energy Measurement Ic With 8052 Mcu, Rtc, And Lcd Driver
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
DPG2 EVAL ADAPTER FOR XILINX BOARDS
Manufacturer:
Analog Devices Inc
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
Part Number:
Description:
RF Development Tools Sransceiver board for FMC evaluation kit
Manufacturer:
Analog Devices
Part Number:
Description:
Analog Devices: Data Converters: DAC 12-Bit, 10 ns to 100 ns Converters Selection Table
Manufacturer:
AD [Analog Devices]
Datasheet:
Part Number:
Description:
Analog Devices: Data Converters: DAC 8-Bit, 10 ns to 100 ns Converters Selection Table
Manufacturer:
AD [Analog Devices]
Datasheet:
Part Number:
Description:
Low-Power Analog Front End with DSP Microcomputer
Manufacturer:
AD [Analog Devices]
Datasheet: