Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN1496 Datasheet(PDF) 7 Page - STMicroelectronics

Part # AN1496
Description  Flash Programming / Reprogramming
PDF  17 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1496 Datasheet(HTML) 7 Page - STMicroelectronics

Back Button AN1496 Datasheet HTML 3Page - STMicroelectronics AN1496 Datasheet HTML 4Page - STMicroelectronics AN1496 Datasheet HTML 5Page - STMicroelectronics AN1496 Datasheet HTML 6Page - STMicroelectronics AN1496 Datasheet HTML 7Page - STMicroelectronics AN1496 Datasheet HTML 8Page - STMicroelectronics AN1496 Datasheet HTML 9Page - STMicroelectronics AN1496 Datasheet HTML 10Page - STMicroelectronics AN1496 Datasheet HTML 11Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 7 / 17 page
background image
AN1496 - APPLICATION NOTE
7/
17
2 - WRITING CODE FOR THE FLASH OF ST10 WITH 0.35
µm EMBEDDED FLASH
2.1 - ST10 Programming Constraints
Programming Language:
Direct addressing is not allowed for command sequences. All addresses of command cycles shall be
defined only with Register-indirect addressing mode.
As the compiler may generate indirect addressing, the part of the software that generates the commands
to the Flash should be written in assembly. Still part of the software that is not generating the
commands can be in higher level language (ex : C).
Indirect addressing :
For command instructions, address bit A14, A15, A16 and A17 are don’t care, provided the generated
address falls within the Flash memory space.
This allows to simplify the use of DPP registers when generating commands to the Flash : any DPP
already pointing to data in the Flash memory space can be used to write commands to the Flash.
– Tip : It is also possible to use the extended segment or extended page instructions for addressing the
Flash.
2.2 - Polling the Flash Erase Program Controller
As soon as the Erase Program Controller (EPC) receives the last command of a command sequence, it
starts execution of the command. During command execution, the EPC status is indicated by 2 sources :
– The Flash Status Register,
– The Read/Bust signal.
The Flash automatically resumes the read mode after the completion of the command.
2.2.1 - Ready/Busy Signal
The Ready/Busy (R/B) signal is connected to the XPER2 interrupt node (XP2IC). When R is high, the
Flash is busy with a Program or Erase operation and will not accept any additional program or erase
instruction. When R/B is Low, the Flash is ready for any Read/Write or Erase operation. The R/B will also
be Low when the memory is put in Erase Suspend mode.
This signal can be polled by reading XP2IC register, or can be used to trigger an interrupt when the Flash
goes from Busy to Ready.
This feature may not be available for all ST10 variants in 0.35
µm technology (ex : not available for
ST10F280). Please, check the product datasheet.
2.2.2 - Flash Status Register
The Flash Status register has been described in the previous chapter.
This method of polling ST10 embedded Flash is the one recommanded : the method will be implemented
on all ST10 variants in 0.35
µm technology.
2.3 - Flash Memory Mapping in ST10 Space
As defined for all ST10 derivatives, the lower 32 Kbyte part of the embedded Flash memory can be
mapped into 2 different segments.
The Flash mapping is controlled by bit ROMS1 in register SYSCON.
Note : the memory mapping of the other block is independant of bit ROMS1.
Table 2 : FLASH Memory Block Mapping
Block
Addresses (Segment 0)
Addresses (Segment 1)
Size (bytes)
0
1
2
00’0000h to 00’3FFFh
00’4000h to 00’5FFFh
00’6000h to 00’7FFFh
01’0000h to 01’3FFFh
01’4000h to 01’5FFFh
01’6000h to 01’7FFFh
16 K
8 K
8 K



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