ADE7518
Table 87. Flash Read Protection SFR (PROTR, 0xBF)
Bit
7 to 0
Mnemonic
PROTR
Default
0xFF
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 Memory section). Clearing the bits enables the protection.
PROTR.7 PROTR.6 PROTR.5 PROTR.4 PROTR.3 PROTR.2 PROTR.1
PROTR.0
Page 28 to
Page 31
Page 24 to
Page 27
Page 20 to
Page 23
Page 16 to
Page 19
Page 12 to
Page 15
Page 8 to
Page 11
Page 4 to
Page 7
Page 0 to
Page 3
Table 88. Flash Low Byte Address SFR (EADRL, 0xC6)
Bit
7 to 0
Mnemonic
EADRL
Default
0
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 Memory section). Clearing the bits enables
the protection.
EADRL.7     EADRL.6   EADRL.5   EADRL.4   EADRL.3   EADRL.2   EADRL.1   EADRL.0
Page 23 Page 22 Page 21 Page 20 Page 19 Page 18 Page 17 Page 16
Table 89. Flash High Byte Address SFR (EADRH, 0xC7)
Bit
7 to 0
Mnemonic
EADRH
Default
0
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 Memory section). Clearing the bits enables
the protection.
EADRH.7 EADRH.6 EADRH.5 EADRH.4 EADRH.3
EADRH.2 EADRH.1 EADRH.0
Page 31 Page 30 Page 29 Page 28 Page 27 Page 26 Page 25 Page 24
Flash Functions
Sample 8052 code is provided in this section to demonstrate
Erase All
Erase all of the 16 kB flash memory.
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 FLSHKY,#3Bh
key
MOV ECON,#03h
Read Byte
; Write flash security
; Erase all
MOV EDATA,#F3h
; Data to be written
Read Flash Memory Byte 0x3C00.
MOV EADRH,#3Ch
MOV EADRL,#00h
MOV FLSHKY,#3Bh
key.
MOV ECON,#01h
; Set up byte address
; Write flash security
; Write byte
MOV EADRH,#3Ch
MOV EADRL,#00h
MOV FLSHKY,#3Bh
key
MOV ECON,#04h
; Set up byte address
; Write flash security
; Read byte
Erase Page
Erase the page containing Flash Memory Byte 0x3C00.
register
; Data is ready in EDATA
MOV EADRh,#3Ch
byte address
MOV EADRL,#00h
MOV FLSHKY,#3Bh
; Select page through
; Write flash security
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.
key
MOV EDATA,#F3h
; Data to be written
MOV ECON,#02h
; Erase Page
MOV EADRH,#3Ch
; Set up byte address
MOV EADRL,#00h
MOV FLSHKY,#3Bh
key
MOV ECON,#05h
write byte
Rev. 0 | Page 90 of 128
; Write flash security
; Erase page and then
相关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