| 数据搜索系统,热门电子元器件搜索 |
|
RM0312 数据表(PDF) 32 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
RM0312 数据表(HTML) 32 Page - STMicroelectronics |
|
32 / 275 page ![]() Flash program memory and data EEPROM RM0312 32/275 DocID022352 Rev 3 with the first address. The programming cycle starts automatically when the 4 bytes have been written. As for byte operation, the EOP and the WR_PG_DIS control flags of FLASH_IAPSR, together with the Flash interrupt, can be used to determine if the operation has been correctly completed. 4.6.3 Block programming Block program operations are much faster than byte or word program operations. In a block program operation, a whole block is programmed or erased in a single programming cycle. Refer to Table 5 for details on the block size according to the devices. Block operations can be performed both to the main program memory and DATA area. They are executed totally from RAM. There are three possible block operations: • Block programming, also called standard block programming: The block is automatically erased before being programmed. • Fast block programming: No previous erase operation is performed. • Block erase During block programming, interrupts are masked by hardware. Standard block programming A standard block program operation allows a whole block to be written in one shot. The block is automatically erase before being programmed. To program a whole block in standard mode, the PRG bit in the FLASH_CR2 register must be previously set to enable standard block programming (see Section 4.8.2: Flash control register 2 (FLASH_CR2)). Then, the block of data to be programmed must be loaded sequentially to the destination addresses in the main program memory or DATA area. This causes all the bytes of data to be latched. To start programming the whole block, all bytes of data must be written. All bytes written in a programming sequence must be in the same block. This means that they must have the same high address: Only the six least significant bits of the address can change. When the last byte of the target block is loaded, the programming starts automatically. It is preceded by an automatic erase operation of the whole block. The EOP and the WR_PG_DIS control flags of the FLASH_IAPSR together with the Flash interrupt can be used to determine if the operation has been correctly completed. Fast block programming Fast block programming allows programming without first erasing the memory contents. Fast block programming is therefore twice as fast as standard programming. This mode is intended only for programming parts that have already been erased. It is very useful for programming blank parts with the complete application code, as the time saving is significant. Fast block programming is performed by using the same sequence as standard block programming. To enable fast block programming mode, the FPRG bit of the FLASH_CR2 registers must be previously set. |
|
链接网址 |
| 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 |