| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
M58PR512LE Datasheet(PDF) 103 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
M58PR512LE Datasheet(HTML) 103 Page - STMicroelectronics |
|
103 / 119 page ![]() M58PR256LE, M58PR512LE, M58PR001LE Flowcharts and pseudocodes 103/119 Figure 21. Buffer program flowchart and pseudocode 1. n + 1 is the number of data being programmed. The maximum buffer count is 1FF (512 words). 2. Next Program data is an element belonging to buffer_Program[].data; Next Program address is an element belonging to buffer_Program[].address. In a program region configured in Control Program mode buffer_Program[].data = FFFFh if A3 = 1. 3. Routine for error check by reading SR3, SR4 and SR1. Read Status Register 70h command, at Bank Address AI10516b 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) NO SR7 = 1 YES Buffer_Program_command (Start_Address, n, buffer_Program[] ) /*The start address must be aligned to a 1KB boundary 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) */ { status_register=readFlash (Bank_Address); } while (status_register.SR7==0); do {writeToFlash (Block_Address, 0xE9) ; 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(); } Buffer Program E9h command, Block Address |
|
Enlace URL |
| ¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Enlace a la hoja de datos | Intercambio de Enlaces | Lista de Fabricantes 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 |