| 数据搜索系统,热门电子元器件搜索 |
|
AN1045 数据表(PDF) 2 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1045 数据表(HTML) 2 Page - STMicroelectronics |
|
2 / 16 page ![]() 2/16 ST7 S/W IMPLEMENTATION OF I2C BUS MASTER 1.1 COMMUNICATION SPEED The communication speed is modifiable by using the function delay(time) which waits for a given time period and then modifies the frequency of SCL. Here Fscl is equal to 62.5 kHz. It can be easily reduced by increasing the period between two clock cycles, but this speed is not far from the highest speed you can have (~70 kHz). 1.2 START, STOP CONDITION AND ACKNOWLEDGE GENERATION The Start and Stop conditions are always generated by the master. In this software, there are no bits to set to generate these conditions like in the real peripheral: you just have to call the corresponding function (I2Cm_Start() and I2Cm_Stop()). An Acknowledge is sent after an address or a data byte is received. When the master has to receive an acknowledge from the slave, you have to call the function Wait_Ack() which reads the SDA and SCL lines to recognize the acknowledge condition (the SDA line put at the low state by the one which sends the acknowledge during one clock pulse). And when the master has to send an acknowledge after receiving data from the slave, you have to call the function I2Cm_Ack(). 2 ST7 I2C COMMUNICATION APPLICATION 2.1 HARDWARE CONFIGURATION The ST7 communication application hardware is composed of a ST72324 microcontroller (which has no I2C peripheral) and any slave (an M24C08 EEPROM for example). Figure 1. ST7 / E2PROM I2C Communication Application ST72324 I2C Vdd Vss SCL 5V 2x100W SDA 2x12KW M24C08 SCL SDA Vss E 2 |
|
|
链接网址 |
| 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 |