| 数据搜索系统,热门电子元器件搜索 |
|
MGC3140 数据表(PDF) 32 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MGC3140 数据表(HTML) 32 Page - Microchip Technology |
|
32 / 49 page ![]() Figure 7-3. I2C Master Write Bit Timing Diagram 3 1 2 4 5 6 7 8 9 3 1 2 4 5 6 7 8 9 3 1 2 4 5 6 7 8 9 A7 A6 A5 A4 A3 A2 A1 0 D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0 Address R/W ACK ACK ACK Data Data Address Bits Latched in Data Bits Valid Out Data Bits Valid Out SCL may be stretched SCL may be stretched S P Start Bit Stop Bit SDA SCL • Address bits are latched into the MGC3140 on the rising edges of SCL. • Data bits are latched into the MGC3140 on the rising edges of SCL. • ACK bit: – MGC3140 presents the ACK bit on the ninth clock for address acknowledgment – I2C master presents the ACK bit on the ninth clock for data acknowledgment • The master must monitor the SCL pin prior to asserting another clock pulse, as the MGC3140 may be holding off the master by stretching the clock. I2C Communication Steps 1. SCL and SDA lines are Idle high. 2. I2C master presents Start bit to the MGC3140 by taking SDA high-to-low, followed by taking SCL high-to-low. 3. I2C master presents 7-bit address, followed by a R/W = 0 (Write mode) bit to the MGC3140 on SDA, at the rising edge of eight master clock (SCL) cycles. 4. MGC3140 compares the received address to its Device ID. If they match, the MGC3140 acknowledges (ACK) the I2C master sent address by presenting a low on SDA, followed by a low- high-low on SCL. 5. I2C master monitors SCL, as the MGC3140 may be clock stretching, holding SCL low to indicate the I2C master should wait. 6. I2C master presents eight data bits (MSB first) to the MGC3140 on SDA, at the rising edge of eight master clock (SCL) cycles. 7. MGC3140 acknowledges (ACK) receipt of the eight data bits by presenting a low on SDA, followed by a low-high-low on SCL. 8. If data transfer is not complete, then go to Step 5. 9. Master presents a Stop bit to the MGC3140 by taking SCL low-high, followed by taking SDA low-to- high. Important: The Stop condition after an I2C data transmission is generated by the host controller (I2C master) after the data transfer is completed. Thus, it is recommended to verify the number of bytes to be read in the message header (Size field). 7.3 Gesture Port The MGC3140 provides five output pins which can be used to indicate gesture events. These pins are controlled by GestIC Library to signal that an event occurred. The host does not need to monitor the I2C bus to get GestIC Library events, but only has to monitor the Gesture Port pins. This feature can be used in parallel to I2C communication. MGC3140 Interface Description © 2018 Microchip Technology Inc. DS40002037A-page 32 |
|
链接网址 |
| 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 |