| 数据搜索系统,热门电子元器件搜索 |
|
AN2737 数据表(PDF) 5 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2737 数据表(HTML) 5 Page - STMicroelectronics |
|
5 / 16 page ![]() AN2737 IAP example with I2C 5/16 1.3.2 Current read command The current read command allows data from the Flash program memory of the STM8 to be read, starting from the current address. This address is set to 4000h after a firmware reset. The packet sequence to achieve a ‘current read’ is summarized in Figure 2. Figure 2. Current read packet sequence The following points explain how to read different bytes using the Aardvark software, starting from the reset address (4000h): 1. Select the master tabsheet. 2. Set the bitrate to 100 kHz or 400 kHz using the ‘bitrate’ field and the ‘set’ button. 3. Set the slave address to 51h (corresponding to the firmware address A2h) in the slave address field. 4. Uncheck the ‘10-bit addressing mode’ option because the firmware uses 7-bit addressing mode only. 5. Uncheck the ‘no stop’ option. 6. Enter the number of bytes to be read in the ‘number of bytes’ field. A value from 1 to 255 can be entered. 7. Press the ‘master read’ button. 8. The number of bytes to be read can be changed by pressing the master read button again. The read values are displayed in the transaction log window of the Aardvark software. At the end of this command, the LCD displays the message ‘reading done’. Figure 3 illustrates points 1 to 8 of a current read command. START ADD SLV DEVICE-R ACK-S Bytes read from STM8 STOP ACK-M ACKF |
|
|
链接网址 |
| 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 |