| Zakładka z wyszukiwarką danych komponentów |
|
AN1528 Arkusz danych(PDF) 13 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1528 Arkusz danych(HTML) 13 Page - STMicroelectronics |
|
13 / 18 page ![]() 13/18 ST92F120/F124/150/F250 TESTFLASH 3.5.3 Complete Aborted Swap (23002Fh) Inputs: None. Outputs: R0. Variables: R192-R223 (for Stack). Goal: complete the aborted Swap Phase after a Swap fail. This routine has to be called by the User application if after an E3TM write operation the bits FEERR of FESR0 (224002h) and SWER of FESR1 (224003h) are set. After having executed the “Find Wrong Pages routine” and the “Find Wrong Bytes routine”, and after having stored in Ram the E3TM addresses and data to program again, this routine can be called through a far call: CALLS 23h, 002Fh ;Complete Swap This routine performs the following operations: ■ perform a Sector Erase operation on the old sector; ■ during the Sector Erase operation, a User routine is called toy refresh an external Watchdog if necessary. 3.7 User routine for External Watchdog Refresh for details. ■ write the VCSS1 register (222003h) with the sector number currently mapping the E3TM data; ■ write the VCSS0 register (222001h) with the number of the last completed Erase Phase on the complementary sector; The User Application should check the Output variable of the Complete Swap routine: Register R0 shows if the Sector Erase operation has been completed correctly (Good Code: A4h), or if has failed (Bad Code: 40h). R0 X Byte 8h+X OK Byte 8h+X Wrong R0 7 Byte Fh OK Byte Fh Wrong Table 5. Wrong Bytes Output Meaning Reg Bit 0 Meaning 1 Meaning |
|
|
Link URL |
| Czy Alldatasheet okazała się pomocna? [ DONATE ] |
O Alldatasheet | Reklama | Kontakt | Polityka prywatności | Link do karty katalogowej | Linki | Lista producentów 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 |