数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN1070 数据表(PDF) 2 Page - STMicroelectronics

部件名 AN1070
功能描述  ST7 CHECKSUM SELFCHECKING CAPABILITY
PDF  10 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN1070 数据表(HTML) 2 Page - STMicroelectronics

  AN1070 Datasheet HTML 1Page - STMicroelectronics AN1070 Datasheet HTML 2Page - STMicroelectronics AN1070 Datasheet HTML 3Page - STMicroelectronics AN1070 Datasheet HTML 4Page - STMicroelectronics AN1070 Datasheet HTML 5Page - STMicroelectronics AN1070 Datasheet HTML 6Page - STMicroelectronics AN1070 Datasheet HTML 7Page - STMicroelectronics AN1070 Datasheet HTML 8Page - STMicroelectronics AN1070 Datasheet HTML 9Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 2 / 10 page
background image
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



Html Pages

1 2 3 4 5 6 7 8 9 10


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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