ade7566acpzf8-rl Analog Devices, Inc., ade7566acpzf8-rl Datasheet - Page 112

no-image

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
ADE7116/ADE7156/ADE7166/ADE7169/ADE7566/ADE7569
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
; Write Flash security
; Erase all
; Setup byte address
; Write Flash security
; Read Byte
Rev. B | Page 112 of 152
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 ; Erase page and then write
byte
; Data to be written
; Set up byte address
; Write flash security

Related parts for ade7566acpzf8-rl