I2C speed increase
-
Hi to All
I use a M5 Stack Core Basic and it's working fine.
I try to read the values from the IMU with the I2C bus as quickly as possible.
It' works well.
Unfortunately I have a long pause of 124uSec between the bytes, which limits the speed. Can I do something to shorten this pause or remove it completely? -
@alkaline64 have you checked the data sheet for the IMU?
-
Hi @ajb2k3
Yes I have checked the data sheet and it's working fine. Just read all the byte need to long time in my program even if I read with 1Mega.
I suspect it would be twice as fast without this pause.I found a information about this break, but i have no idea how to do this with the Uiflow
activate polling mode (use portMAX_DELAY)
The last parameter -1 stands for the timeout in milliseconds. If you want to ensure that no RTOS scheduling is delayed, you can set portMAX_DELAY
i2c_master_transmit_receive(dev_handle, buffer, 2, buf, 9, portMAX_DELAY);