| 전자부품 데이터시트 검색엔진 |
|
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. |
|
링크 URL |
| 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 |