| 数据搜索系统,热门电子元器件搜索 |
|
M58LR128HT 数据表(PDF) 95 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
M58LR128HT 数据表(HTML) 95 Page - STMicroelectronics |
|
95 / 112 page ![]() M58LR128HT, M58LR128HB Flowcharts and pseudocodes 95/112 Figure 21. Buffer Program flowchart and pseudocode 1. n + 1 is the number of data being programmed. 2. Next Program data is an element belonging to buffer_Program[].data; Next Program address is an element belonging to buffer_Program[].address 3. Routine for Error Check by reading SR3, SR4 and SR1. Buffer Program E8h Command, Start Address AI08913b Start Write Buffer Data, Start Address YES X = n End NO Write n(1), Start Address X = 0 Write Next Buffer Data, Next Program Address X = X + 1 Program Buffer to Flash Confirm D0h Read Status Register NO SR7 = 1 YES Full Status Register Check(3) (2) Read Status Register NO SR7 = 1 YES Buffer_Program_command (Start_Address, n, buffer_Program[] ) /* buffer_Program [] is an array structure used to store the address and data to be programmed to the Flash memory (the address must be within the segment Start Address and Start Address+n) */ { do {writeToFlash (Start_Address, 0xE8) ; status_register=readFlash (Start_Address); } while (status_register.SR7==0); writeToFlash (Start_Address, n); writeToFlash (buffer_Program[0].address, buffer_Program[0].data); /*buffer_Program[0].address is the start address*/ x = 0; while (x<n) { writeToFlash (buffer_Program[x+1].address, buffer_Program[x+1].data); x++; } writeToFlash (Start_Address, 0xD0); do {status_register=readFlash (Start_Address); } while (status_register.SR7==0); full_status_register_check(); } |
|
链接网址 |
| 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 |