Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 3 months ago.
I2C master and slave read and write time between two MBED's is more than 30ms
I have two MBED's communicating via i2c. The master sends a 32 bit number, and the slave receives it and that is all it has to do, but i need it to do it as fast as possible. It seems to be working well except the read and write functions are taking about 33ms. From what i have read it sounds like the i2c is timing out but i haven't been able to find a solution. If anyone has insight on this problem, it would be greatly appreciated. Please see the code below. Thank you!
Master Code:
Import programi2cmaster8
this code sends a 32 bit value to a slave
Slave Code:
Import programi2cslave8
This code is for creating a MBED slave that pulls a 32 bit number from a MBED master
