数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN2244 数据表(PDF) 9 Page - STMicroelectronics

部件名 AN2244
功能描述  The ST10F27x MCUs provide 0.18關m embedded true Flash technology
PDF  17 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN2244 数据表(HTML) 9 Page - STMicroelectronics

Back Button AN2244 Datasheet HTML 5Page - STMicroelectronics AN2244 Datasheet HTML 6Page - STMicroelectronics AN2244 Datasheet HTML 7Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 17 page
background image
AN2244
3 Application example: EEPROM emulation using ST10F27x Flash library
9/17
Figure 3.
Header status switching between sectors 1 and 2
3.4.3
Project routines
EepromFormat( ) routine
This function erases sector 1 and sector 2, and writes a VALID_SECTOR header to sector
1.
WriteVariable( ) routine
This function is called by the user application. It uses WriteVerifyVariableFull( ) and
EepromSectorTransfer( ) routines described later.
See below the procedure of updating a variable entry in the eeprom.
Figure 4.
WriteVariable flowchart
Note:
1
For more informations about Flash error codes, please refer to the "Flash programming for
ST10 devices in 0.18µ technology" application note.
Valid1
Erased2
Valid1
Transfer_
Receive1
Valid2
Valid1
Receive2
Erased1
Valid2
Transfer_
Complete1
Valid2
Complete2
Sector 1 Full
Transfer 1->2 complete
Erase1
Sector 2 Full
Transfer 1->0 complete
Erase2
Write data1
Copy data1->2
Write data2
Copy data2->1
WriteVariable
status = WriteVerifyVariableFull( )
return 0 on success
if status=0x80 (Variable full)
status = EepromSectorTransfer( )
return 0 on success
if status = 0
return Flash error code
on failure.(1)



Html Pages

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


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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