| 数据搜索系统,热门电子元器件搜索 |
|
ST52F510 数据表(PDF) 34 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST52F510 数据表(HTML) 34 Page - STMicroelectronics |
|
34 / 106 page ![]() ST52F510/F513/F514 34/106 A similar procedure can be used to write a single block: 1. The SetPage command is sent, followed by the page number where the data should be written 2. The IncBlock command is sent as many times as the block number inside the page (for ex- ample: to address the block 3 the IncBlock must be sent 3 times) 3. The WriteBlock command is sent followed by the 32 data bytes to be written. 4. After the 32th byte is sent, the device holds the SCL line low until all the data are not stored in the memory (about 4.5 ms: 2 ms for erasing and 2.5 for writing: the same time for a single byte) The procedures described previously can be repeated as many time as needed, without exiting from Programming Mode or re-sending the Slave Address again. The commands ByteErase and BlockErase, used instead of ByteWrite and BlockWrite, erase (put all bit to 0) the specified memory location or block. 4.2.4 Option Bytes Programming. The Option Byte addresses cannot be accessed with a sequential procedure like the one described in Section 4.2.2. Actually, the pointers are automatically incremented up to the last block or address in page 31. A further increment sets all the pointers to 0. The Option Byte addresses (located at page 48, block 0, addresses 0-7) must be accessed with a direct addressing procedure as the one described in Section 4.2.3. If the Fast Programming procedure is used, it must be followed by a Random Block Writing procedure to program the Option Bytes. The other 24 bytes of the block can be written with dummy or user values. The blocks 0, 1, 2 and 3 of Page 48 can be used for writing data as well (see Section 4.5) and for locking the device (see Section 4.4). Figure 4.2 Programming Procedures Fast Programming Procedure Random Byte Writing Procedure Random Block Writing Procedure Option Byte Writing Procedure S=Start, P=Stop, A=Acknowledge, NA=Non-acknowledge From Slave to Master From Master to Slave S 10100000 A 00000000 A GlobalErase A FastBlockWrite A Data0 A ..... ..... Data31 A IncBlock A FastBlockWrite A ..... Data31 A ..... ..... Data31 AP ..... SetPage A Page Address A ByteWrite A Byte Address AData A Command ..... ..... SetPage A Page Address A IncBlock A ..... IncBlock A BlockWrite A Data0 A ..... ..... Data31 A Command ..... ..... SetPage A 00110000 A WriteBlock A Option Byte 0 A ..... Option Byte 7 A ..... ..... Dummy 0 A ..... Dummy 23 AP |
|
链接网址 |
| 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 |