2024-10-21 03:20 AM - edited 2024-10-21 03:21 AM
"I'm using the VL53L8CX sensor, the en.X-CUBE-TOF1 example, specifically from NUCLE -F401RE\Examples\53L8A1\53L8A1_SimpleRanging. The data reads correctly,
and I have verified the outputs. However, when the INT pin goes low and triggers an interrupt, it takes about 16ms to read the data.
I measured this time by toggling a GPIO pin before and after the read function. Even after adjusting various settings, the read time remains similar.
I am using an I2C speed of 400kHz.
Is this typical for the read operation? Additionally, I'd like to optimize the timing for use in an RTOS environment, where timing management is critical.
Below is the configuration:
2024-10-22 02:59 PM
The read time is entirely dependent on the bus speed and the amount of data you want to send.
I'd switch to 1Mbit. It will help a lot and unless you have long wires, won't hurt.
next is to check the params in Platform.h. Are there any you can leave out.
By default you get all of these. I disabled 4 of them by uncommenting them (in bold).