I'm using the i2c to read data from device. Presently it is OK to read the data correctly. See the attached waveform:
yellow line: i2c SCL
green line: i2c SDA
This figure indicates a 10bytes data read, SCL frq=300KHz
In thewaveform, there are 2 long delay during i2c access. The first delay happens between address and first data read, the second delay happens between i2c Nack and i2c Stop. Is there any way to shorten or eliminate these 2 delays?
For a easy understanding, the source code for i2c reading is like: