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

X  

PM0020 数据表(PDF) 22 Page - STMicroelectronics

部件名 PM0020
功能描述  STR91xFA Flash programming manual
PDF  87 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

PM0020 数据表(HTML) 22 Page - STMicroelectronics

Back Button PM0020 Datasheet HTML 18Page - STMicroelectronics PM0020 Datasheet HTML 19Page - STMicroelectronics PM0020 Datasheet HTML 20Page - STMicroelectronics PM0020 Datasheet HTML 21Page - STMicroelectronics PM0020 Datasheet HTML 22Page - STMicroelectronics PM0020 Datasheet HTML 23Page - STMicroelectronics PM0020 Datasheet HTML 24Page - STMicroelectronics PM0020 Datasheet HTML 25Page - STMicroelectronics PM0020 Datasheet HTML 26Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 22 / 87 page
background image
STR91xFA Flash memory
PM00020
22/87
1.12
Write operations
When programming or writing to a Flash Bank, typically a "write" CUI command is issued
and followed by a "read" status register command. This "write" then "read" order must be
followed to program the Flash properly.
Caution:
This requires bit 18 (Instruction TCM order bit) in the Configuration Control Register of the
ARM966E-S core to be set. This can be done by the following assembler code :
MOV R0, #0x40000
MCR P15,0x1,R0,C15,C1,0
When set, the write and read to the Flash Bank are performed in the order generated by the
ARM966-ES core.This ensures that writes are committed to the Flash memory before any
subsequent read.
1.12.1
SE sector erase setup (20h)
Erasing a sector sets all the bits in the selected sector to '1'. You can erase one sector at a
time. You do not have to pre-program the sector, this is done automatically before erasing.
To erase a sector:
1.
Write a Sector Erase Set-up command (20h) to any word address in the sector to be
erased.
2.
Write an Erase Confirm command (D0h) to any word address in the sector to be
erased. If the second command given is not an Erase Confirm, the command aborts
and the ES and PS error flags in the status register are set.
3.
After writing the SE command, reading any address within the bank will return the
Status Register data.
While erasure is in progress the PECS bit in the Status Register is ‘0’. When
erasure is completed the PECS bit is ‘1’.
The ES bit in the Status Register returns ‘1’ if there has been an erase failure.
If the sector is protected, the erase operation aborts and the SP bit in the Status
Register returns ‘1’
4.
While the sector erase is ongoing, the bank with the sector being erased accepts only
Read Status Register (70h) and Program/Erase Suspend (B0h) commands.
5.
At the end of the sector erase operation:
Write a Clear Status Register (50h) command to the bank to reset the Status
Register.
The bank will remain in Read Status Register mode until you write a Read Array
(FFh) command.
1.12.2
PG program setup (40h)
The Program command programs a 16-bit array (halfword). Only one bank can be
programmed at a time, the other bank must be in one of the read modes or in program/erase
suspend mode (see Table 6: Rules for dual bank operations).
To program a halfword:



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87


数据表 下载

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