| 数据搜索系统,热门电子元器件搜索 |
|
VL6522 数据表(PDF) 14 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
VL6522 数据表(HTML) 14 Page - STMicroelectronics |
|
14 / 35 page ![]() Detailed description VL6522 14/35 4.3.2 I2C mastering This allows the control of the slave I2C lines, which can be useful for reading from and writing to an EEPROM, or for control of any other I2C device. If 'manual_mode' is set, then the SCL/SDA lines can be bit bashed by writing direct to 'sda' and 'scl'. Otherwise these are controlled automatically. The 'clk_div' reg is used to slow down the clock if necessary (default is zero which should result in approx 400 kHz SCL). The 'start' bit will generate an I2C start bus condition when set high. The 'cmd_processed' bit will initially be set low and then go high when the command is complete. The 'stop' bit will generate an I2C stop bus condition when set high.The 'cmd_processed' bit will initially be set low and then go high when the command is complete. The 'read' bit will kick off a read from the current address. The 'cmd_processed' bit will be set low and then go high when the command is complete. At this point the READ_BYTE register will contain the data. If the 'multiple_read' bit is set, then the address will be auto-incremented after each 'read'. That is, you can kick off another read without first having to set the address. To write a byte, write the data value into the WRITE_BYTE register, then wait for the 'cmd_processed' bit to go high. Finally check that the 'ack_rx' (acknowledge recieved) bit is high. The 'eeprom_present' bit is set by the firmware when it first attempts to address the eeprom. If it gets an acknowledge then this bit is set high, otherwise it is set low. Note: See Table 10 on page 17 for locations of and information on relevant registers. |
|
链接网址 |
| 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 |