Electronic Components Datasheet Search
  English  ▼

X  

AN2244 Datasheet(PDF) 12 Page - STMicroelectronics

Part # AN2244
Description  The ST10F27x MCUs provide 0.18關m embedded true Flash technology
PDF  17 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2244 Datasheet(HTML) 12 Page - STMicroelectronics

Back Button AN2244 Datasheet HTML 8Page - STMicroelectronics AN2244 Datasheet HTML 9Page - STMicroelectronics AN2244 Datasheet HTML 10Page - STMicroelectronics AN2244 Datasheet HTML 11Page - STMicroelectronics AN2244 Datasheet HTML 12Page - STMicroelectronics AN2244 Datasheet HTML 13Page - STMicroelectronics AN2244 Datasheet HTML 14Page - STMicroelectronics AN2244 Datasheet HTML 15Page - STMicroelectronics AN2244 Datasheet HTML 16Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 12 / 17 page
background image
3 Application example: EEPROM emulation using ST10F27x Flash library
AN2244
12/17
Figure 7.
EepromSectorTransfer flowchart
FindValidSector( ) routine
This function reads both sector headers and returns the sector number which contains valid
data. It has as parameter a byte indicating that we are looking for a valid sector for write or
read operation( READ_FROM_VALID_SECTOR or WRITE_IN_VALID_SECTOR).
The following diagram describes this routine principle.
Figure 8.
Find_Valid_sector flowchart
FlashRead( ) routine
This routine allows 32-bit data to be read from a given Flash address.
Write new sector header
RECEIVE DATA
Transfer Data to new sector
Mark old sector TRANSFER
COMPLETE
Mark new sector VALID
Erase old sector
( including the new one)
sector
Switch operation
Write
Read
sector 1
status
=valid ?
status
=receive data?
sector 2
Yes
Return sector 2
Yes
Return sector 1
No
status
=valid?
sector 2
No
status
= receive data?
sector 1
Return sector 1
Yes
Return sector 2
No
Yes
sector 1
status
=valid ?
Yes
Return sector 1
No
sector 2
status
=valid?
Return sector 2
Yes
Find_Valid_Sector(operation)
No
Return No_Valid_Sector
Return No_Valid_Sector
No



Html Pages

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


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