| 数据搜索系统,热门电子元器件搜索 |
|
AN1070 数据表(PDF) 2 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1070 数据表(HTML) 2 Page - STMicroelectronics |
|
2 / 10 page ![]() 2/10 ST7 CHECKSUM SELFCHECKING CAPABILITY 1 CHECKSUM CALCULATION The checksum is calculated by a simple addition of the content of the FLASH. The result is in 3 bytes. For the ST72F264G2, the checksum is obtained by adding up all the bytes from E003h (be- ginning of the program stored in FLASH) up to FFFFh. The result is stored in 3 byte variables (CS0, CS1 and CS2) located at the beginning of the FLASH memory area (from E000 to E003): a special segment (‘CHECKSUM’ segment) has been created at this location (see ST72264.asm Mapping file). It’s very important to check the interrupt vectors because to perform the checksum, the reset vector has to point to the Safe routine and not to the main routine (if FLASH is not checked OK by the Safe routine, then the user program won’t be run). The routine which calculates the checksum is 27 bytes long. The table below shows the cal- culation times. The time depends on the chosen device (4k or 8k in this case) and on the value chosen to fill the unused memory area (if the chosen value is $FF for example, there will be more carry to take into account). The above results have been obtained in the worst case (unused memory part filled with $FF) with fcpu=8MHz. Table 1. Checksum Calculation tImes 4k 8k Device used ST72264G1 ST72264G2 time (ms) 13.7 27.5 CS0 CS1 CS2 E000 FFE0 FFF0 Interrupt vectors segment checksum FLASH (program) 2 |
|
|
链接网址 |
| 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 |