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);
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login