ADE7518
FLASH MEMORY ORGANIZATION
The 16 kB of flash memory provided by the ADE7518 are seg-
mented into 32 pages of 512 bytes each. It is up to the user to
decide which flash memory to allocate for data memory. It is
recommended that each page be dedicated solely to program
memory or to data memory. Doing so prevents the program
counter from being loaded with data memory instead of an
operations code from the program memory. It also prevents
program memory used to update a byte of data memory from
being erased.
The implication of write/erase protecting the last page is that
the content of the 506 bytes in this page that are available to the
user must not change.
Thus, if code protection is enabled, it is recommended to use
this last page for program memory only (if the firmware does
not need to be updated in the field). If the firmware must be
protected and can be updated at a future date, the last page
should be used only for constants utilized by the program code.
Therefore, Page 0 through Page 30 are for general program and
data memory use. It is recommended that Page 31 be used for
0x3FFF
0x3E00
0x3DFF
0x3C00
0x3BFF
0x3A00
0x39FF
0x3800
0x37FF
0x3600
0x35FF
0x3400
0x33FF
0x3200
0x31FF
0x3000
0x2FFF
0x2E00
0x2DFF
0x2C00
0x2BFF
0x2A00
0x29FF
0x2800
0x27FF
0x2600
PAGE 31
PAGE 30
PAGE 29
PAGE 28
PAGE 27
PAGE 26
PAGE 25
PAGE 24
PAGE 23
PAGE 22
PAGE 21
PAGE 20
PAGE 19
READ
PROTECT
BIT 7
READ
PROTECT
BIT 6
READ
PROTECT
BIT 5
0x1FFF
0x1E00
0x1DFF
0x1C00
0x1BFF
0x1A00
0x19FF
0x1800
0x17FF
0x1600
0x15FF
0x1400
0x13FF
0x1200
0x11FF
0x1000
0x0FFF
0x0E00
0x0DFF
0x0C00
0x0BFF
0x0A00
0x09FF
0x0800
0x07FF
0x0600
PAGE 15
PAGE 14
PAGE 13
PAGE 12
PAGE 11
PAGE 10
PAGE 9
PAGE 8
PAGE 7
PAGE 6
PAGE 5
PAGE 4
PAGE 3
READ
PROTECT
BIT 3
READ
PROTECT
BIT 2
READ
PROTECT
BIT 1
constants or code that do not need to be updated. Note that the
last six bytes of Page 31 are reserved for protecting the flash
memory.
USING THE FLASH MEMORY
The 16 kB of flash memory are configured as 32 pages, each of
512 bytes. As with the other ADE7518 peripherals, the interface
to this memory space is via a group of registers mapped in the
SFR space (see Table 80).
A data register, EDATA, holds the byte of data to be accessed. The
byte of flash memory is addressed via the EADRH and EADRL
registers. Finally, ECON is an 8-bit control register that can be
written to with one of seven flash memory access commands to
trigger various read, write, erase, and verify functions.
Table 80. The Flash SFRs
Bit
SFR Address Default Addressable Description
0x25FF
0x2400
0x23FF
0x2200
0x21FF
0x2000
PAGE 18
PAGE 17
PAGE 16
READ
PROTECT
BIT 4
0x05FF
0x0400
0x03FF
0x0200
0x01FF
0x0000
PAGE 2
PAGE 1
PAGE 0
READ
PROTECT
BIT 0
ECON
FLSHKY
PROTKY
EDATA
0xB9
0xBA
0xBB
0xBC
0x00
0xFF
0xFF
0x00
No
No
No
No
Flash Control
Flash Key
Flash Protection
Key
Flash Data
CONTAINS PROTECTION SETTINGS.
PROTB0
0xBD
0xFF
No
Flash W/E
Figure 79. Flash Memory Organization
Protection 0
The flash memory can be protected from read or write/erase
(W/E) access. The protection is implemented in part of the last
page of the flash memory, Page 31. Four of the bytes from this
page are used to set up write/erase protection for each page.
Another byte is used for configuring read protection of the flash
memory. The read protection is selected for groups of four pages.
Finally, one byte is used to store the key required for modifying
PROTB1
PROTR
EADRL
EADRH
0xBE
0xBF
0xC6
0xC7
0xFF
0xFF
0x00
0x00
No
No
No
No
Flash W/E
Protection 1
Flash Read
Protection
Flash Low Byte
Address
Flash High
Byte Address
the protection scheme. The last page of flash memory must be
write/erase protected for any flash protection to be active.
ECON
COMMAND
Figure 80 demonstrates the steps required for access to the flash
memory.
ADDRESS
EADRH EADRL
ADDRESS
DECODER
PROTECTION
DECODER
ACCESS
ALLOWED?
TRUE: ACCESS
ALLOWED
ECON = 0
FLASH
PROTECTION KEY
FLSHKY
FLSHKY = 0 × 3B?
FALSE: ACCESS
DENIED
ECON = 1
Figure 80. Flash Memory Read/Write/Erase Protection Block Diagram
Rev. 0 | Page 88 of 128
相关PDF资料
ADE7569ASTZF16 IC ENERGY METER MCU 16K 64LQFP
ADE7752BARWZ-RL IC ENERGY METERING 3PHASE 24SOIC
ADE7755ARSZ IC ENERGY METERING 1PHASE 24SSOP
ADE7757ARNZRL IC ENERGY METERING 1PHASE 16SOIC
ADE7758ARWZRL IC ENERGY METERING 3PHASE 24SOIC
ADE7761AARSZ-RL IC ENERGY METERING 1PHASE 20SSOP
ADE7761BARSZ-RL IC ENERGY METERING 1PHASE 20SSOP
ADE7768ARZ-RL IC ENERGY METERING 1PHASE 16SOIC
相关代理商/技术参数
ADE7566 制造商:AD 制造商全称:Analog Devices 功能描述:Single-Phase Energy Measurement IC with 8052 MCU, RTC, and LCD Driver
ADE7566ACPZF16 制造商:AD 制造商全称:Analog Devices 功能描述:Single-Phase Energy Measurement IC with 8052 MCU, RTC, and LCD Driver
ADE7566ACPZF161 制造商:AD 制造商全称:Analog Devices 功能描述:Single-Phase Energy Measurement IC with 8052 MCU, RTC and LCD driver
ADE7566ACPZF162 制造商:AD 制造商全称:Analog Devices 功能描述:Single-Phase Energy Measurement IC with 8052 MCU, RTC, and LCD Driver
ADE7566ACPZF16-RL 制造商:AD 制造商全称:Analog Devices 功能描述:Single-Phase Energy Measurement IC with 8052 MCU, RTC, and LCD Driver
ADE7566ACPZF16-RL1 制造商:AD 制造商全称:Analog Devices 功能描述:Single-Phase Energy Measurement IC with 8052 MCU, RTC and LCD driver
ADE7566ACPZF16-RL12 制造商:AD 制造商全称:Analog Devices 功能描述:Single-Phase Energy Measurement IC with 8052 MCU, RTC, and LCD Driver
ADE7566ACPZF8 制造商:AD 制造商全称:Analog Devices 功能描述:Single-Phase Energy Measurement IC with 8052 MCU, RTC, and LCD Driver