| 数据搜索系统,热门电子元器件搜索 |
|
ADE7166 数据表(PDF) 106 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADE7166 数据表(HTML) 106 Page - Analog Devices |
|
106 / 144 page ![]() ADE7566/ADE7569/ADE7166/ADE7169 Rev. A | Page 106 of 144 Table 98. Flash Read Protection SFR (PROTR, 0xBF) Bit Mnemonic Default Description 7 to 0 PROTR 0xFF 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 99. Flash Low Byte Address SFR (EADRL, 0xC6) Bit Mnemonic Default Description 7 to 0 EADRL 0 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 100. Flash High Byte Address SFR (EADRH, 0xC7) Bit Mnemonic Default Description 7 to 0 EADRH 0 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 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 ; Data to be written MOV EADRH,#3Ch ; Setup byte address MOV EADRL,#00h MOV FLSHKY,#3Bh ; Write flash security key. MOV ECON,#01h ; Write byte Erase Page Erase the page containing flash memory byte 0x3C00. MOV EADRh,#3Ch ; Select page through byte address MOV EADRL,#00h MOV FLSHKY,#3Bh ; Write flash security key. MOV ECON,#02h ; Erase Page Erase All Erase all of the 16 kB flash memory. MOV FLSHKY,#3Bh ; Write flash security key. MOV ECON,#03h ; Erase all Read Byte Read flash memory byte 0x3C00. MOV EADRH,#3Ch ; Setup byte address MOV EADRL,#00h MOV FLSHKY,#3Bh ; Write flash security key. MOV ECON,#04h ; Read byte ; 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 ; Data to be written MOV EADRH,#3Ch ; Setup byte address MOV EADRL,#00h MOV FLSHKY,#3Bh ; Write flash security key. MOV ECON,#05h ; Erase page and then write byte |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |