I2C TransferDefinition of timingTo explore the I2C protocol in depth, you must have a deep understanding of the definitions of various times (F/S-mode)
Sr restarts, S starts, and P stops. Note: When SCL is high, SDA is high, which is 1, and low, which is 0. During SCL low, SDA changes data. Note: The start condition is easy to understand. Repeating the start condition means there is no STOP, then a START, and then sending another slave device ID to access other slave devices. Defining Terms1. Data ValidityDuring the SCL high level period, SDA must be stable, so in general, the SCL high level width is small and the SDA high level width is large, which is also the case when viewed with an oscilloscope. 2. Start condition and stop conditionStart condition: When SCL is high, SDA changes from high to low. Stop condition: When SCL is high, SDA changes from low to high. Generally, each time a byte (8 bits) is transmitted, it will restart. SDA changes data during the low level period of SCL, and cannot change data during the high level period of SCL, otherwise it will be considered as a start and stop condition.
3.ACK or NACKAfter each byte is transmitted, the slave device must respond with ACK or NACK. ACK: After transmitting 8 bits, at the ninth bit, SCL is high. If SDA is low, it means ACK is responded. NACK: After transmitting 8 bits, at the ninth bit, SCL is high. If SDA is high, it means a NACK response. 4.write data5. read data6. Composite Format7.I2C Transfer Regulation
8.10-bit addressingThe analysis is as follows: A9-A0 indicates 10 bits address 9. Oscilloscope waveform10. SupplementI2C does not support the slave device to initiate an interrupt on the SCL and SDA buses to notify the master device to read data. Slave devices with interrupt requirements need to connect an additional interrupt line to notify the master that the data is ready and let the master initiate the data read operation. |
<<: Will the laser in a broken optical fiber harm us?
>>: 2022 Network Open Source Technology Ecosystem Summit (Online) concluded successfully
The "Made in China 2025 Strategy" has e...
The number of online 5G users has exceeded 100 mi...
Need to practice VPS hosting? You can take a look...
The latest data from the Ministry of Industry and...
RAKsmart cloud servers also participate in the ye...
Over the past 50 years, we’ve made a lot of progr...
The complaint, filed in the U.S. District Court f...
[[437233]] Recently, the hottest word is naturall...
Corporate Owned Single-Use Units (COSUs) are used...
The energy of digital technologies represented by...
Recently, the Ministry of Industry and Informatio...
South Korea plans to launch sixth-generation netw...
[[395758]] This article is reprinted from the WeC...
ESG is an acronym for Environment, Society and Go...
Nowadays, whether people like it or not, the Inte...