| 数据搜索系统,热门电子元器件搜索 |
|
PM0020 数据表(PDF) 23 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0020 数据表(HTML) 23 Page - STMicroelectronics |
|
23 / 87 page ![]() PM00020 STR91xFA Flash memory 23/87 1. Write a Program Set-up command (40h) to any word address in the bank to be programmed. 2. Write the data halfword to be programmed to the destination address in the bank.The address must be pointing to the halfword location where the data is programmed. 3. After writing the data, reading any address within the bank will return the Bank Status Register data. – While programming is in progress the PECS bit in the Bank Status Register is ‘0’. When programming is completed the PECS bit is ‘1’. – The PS bit in the Bank Status Register returns ‘1’ if there has been a programming error. – If the bank is protected, the program operation aborts and the SP bit in the Status Register returns ‘1’ 4. While programming is ongoing, the bank accepts only Read Status Register (70h) and Program/Erase Suspend (B0h) commands. 5. At the end of the program operation: – Write a Clear Status Register (50h) command to the bank to reset the Status Register. – Write a Read Array (FFh) command to return to normal operations. Note: Programming aborts if the MCU is powered down or a reset occurs. As data integrity cannot be guaranteed when the program operation is aborted, the sector containing the memory location must be erased and reprogrammed. 1.12.3 CLSR clear status register (50h) Each bank has a Status Register which indicates when a program or erase operation is complete and the success or error status. (see also Section 1.13.1: Bank status register). To clear the Status Register: 1. Write a Clear Status Register command (50h) to any word address in the bank. 2. After the Clear Status Register command is executed, the bank returns automatically to Read Array mode. 1.12.4 CR write Flash configuration register (60h)+(03h) The Flash Configuration Register is located in the user configuration sector of Bank 1 which you can read using the RSIG command. To program the Flash Configuration Register: 1. Write a Write Flash Configuration Register command (60h) to any word address in Bank 1. 2. Write a Write Flash Configuration Register Confirm command (03h) to an address in Bank 1. The A[12:9] and A4 address bit values are written to the Flash Configuration register. However the reserved bit values cannot be changed. Refer to Section 1.13.6. 3. At the end of the command, the memory returns to Read mode as if a Read Array command had been issued |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| 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 |