I2C write delay problem | Cypress Semiconductor
I2C write delay problem
In FX3 Release note, for I2C, 5 ms delay is required after write operation,
but it cause the fatal problem in performance, I think.
I guess this is because the I2C hardware runs in background, and
I2C API (CyU3PI2cTransmitBytes, etc) returns without waiting for the 'done' of hardware.
Is this idea right? and if it is right, can I get the done status of the I2C hardware?
Experimentally, I tried to shorten this delay as equal as the transmit time
(that is calculated with transmit bytes and clock rate) and it succeeded.
And when this delay is more shorter, I2C waveform is broken.
So, this delay-time calculation may be useful for workaround,
but I think it shall fail if the slave device use clock-stretching.