| 数据搜索系统,热门电子元器件搜索 |
|
AN2737 数据表(PDF) 3 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2737 数据表(HTML) 3 Page - STMicroelectronics |
|
3 / 16 page ![]() AN2737 IAP example with I2C 3/16 1 IAP example with I2C This section describes how to perform basic IAP with the STM8 I²C peripheral. The STM8 device behaves like a standard I²C EEPROM slave which can communicate with any master. In this application note, the Aardvark PC host adapter is used as the I²C master. 1.1 Hardware description Figure 1 shows a typical hardware connection between the Aardvark host adapter as master and the STM8 I²C peripheral as slave. The Aardvark host adapter and the STM8 I²C are connected together via the data (SDA) and clock (SCL) pins. A 4.7 k Ω pull-up resistor must be connected to both the SDA and SCL lines Note: If the STM8/128-EVAL board is used, the pull-up resistors are present by default. Figure 1. Hardware connection between the Ardvark host adapter the STM8 I2C 1.2 Firmware description The current firmware is provided in the ZIP file attached to this AN. It includes: ● The I²C driver that supports all basic I²C communication. ● The Flash, GPIO, I2C and LCD screen drivers. ● STM8A and STM8S firmware libraries The firmware uses 7-bit addressing mode which has been validated at 100 kHz and 400 kHz for the I2C SCL line frequency. The STM8 address has been set to A2h using the ‘I2C own address register’. As bit 0 of this register is used for read/write operation selection, the value 51h must be entered in the Aardvark software. R/W SCL SDA USB PC + Aardvark software Aardvark host adapter STM8 device I2C Flash program memory and Master Slave data EEPROM |
|
|
链接网址 |
| 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 |