| 数据搜索系统,热门电子元器件搜索 |
|
ADE5166 数据表(PDF) 104 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADE5166 数据表(HTML) 104 Page - Analog Devices |
|
104 / 148 page ![]() ADE5166/ADE5169/ADE5566/ADE5569 Preliminary Technical Data Rev. PrB | Page 104 of 148 ensure that the correct value is written to the PROTKY SFR each time the protection scheme is changed. The two most significant bits of 0xF7FF are used to enable the lock mechanisms for the watchdog and stack boundary settings (see the Watchdog Timer section and the Stack Boundary Protection section for more information). The following code provides an example of how the write/erase protection can be enabled on the first page and the PROTKY set to 0xA3. Note that to active the following protection, the part requires a reset. ; enable write/erase protection on the first page only MOV EDATA, #0FEH ; clear bit WP 0 MOV EADRL, #0F0H ; write address to F7F0h MOV FLSHKY, #3BH ; enable flash access MOV ECON, #08H ;issue protection command ;enable write/erase protection on last page (this is required for any protection to be activated) MOV EDATA, #0F7H ; clear bit WP123 MOV EADRL, #0FFH ; write address to F7FFh MOV FLSHKY, #3BH ; enable flash access MOV ECON, #08H ;issue protection command ;set up PROTKY to A3h MOV EDATA, #0A3H ; set PROTKY to A3h MOV EADRL, #0EBH ; write address to F7EBh MOV FLSHKY, #3BH ; enable flash access MOV ECON, #08H ; issue protection command Note that once PROTKY is changed to 0xA3, as shown in the preceding example code, all future modifications of the protection scheme require the PROTKY SFR to be set to 0xA3 prior to issuing the ECON protection command. PROTKY RP 28 TO 31 RP 24 TO 27 RP 20 TO 23 RP 16 TO 19 RP 12 TO 15 RP 8 TO 11 RP 4 TO 7 RP 0 TO 3 RP 60 TO 63 RP 56 TO 59 RP 52 TO 55 RP 48 TO 51 RP 44 TO 47 RP 40 TO 43 RP 36 TO 39 RP 32 TO 35 92 TO 95 88 TO 91 84 TO 87 80 TO 83 76 TO 79 72 TO 75 68 TO 71 64 TO 67 RP RP RP RP RP RP RP RP RP 120 TO 123 RP 116 TO 119 RP 112 TO 115 RP 108 TO 111 RP 104 TO 107 RP 100 TO 103 RP 96 TO 99 WP 7 WP 6 WP 5 WP 4 WP 3 WP 2 WP 1 WP 0 WP 15 WP 14 WP 13 WP 12 WP 11 WP 10 WP 9 WP 8 PROTECTION KEY 0xF7EB 0xF7EF 0xF7FF 0xF600 WP 111 WP 110 WP 109 WP 108 WP 107 WP 106 WP 105 WP 104 WP 119 WP 118 WP 117 WP 116 WP 115 WP 114 WP 113 WP 112 WDOG LOCK STCON LOCK WP 123 WP 122 WP 121 WP 120 Figure 74. Flash Protection in Page124 |
|
链接网址 |
| 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 |