Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN1528 Datasheet(PDF) 13 Page - STMicroelectronics

Part # AN1528
Description  The testflash is a ST reserved flash area that contains device information
PDF  18 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1528 Datasheet(HTML) 13 Page - STMicroelectronics

Back Button AN1528 Datasheet HTML 9Page - STMicroelectronics AN1528 Datasheet HTML 10Page - STMicroelectronics AN1528 Datasheet HTML 11Page - STMicroelectronics AN1528 Datasheet HTML 12Page - STMicroelectronics AN1528 Datasheet HTML 13Page - STMicroelectronics AN1528 Datasheet HTML 14Page - STMicroelectronics AN1528 Datasheet HTML 15Page - STMicroelectronics AN1528 Datasheet HTML 16Page - STMicroelectronics AN1528 Datasheet HTML 17Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 13 / 18 page
background image
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



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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