2022-11-17 12:21 AM
Hello,
I am developing a system using VL53L1X.
Occasionally, when the host microcomputer is asynchronously reset,
there is no response from the sensor after that.
I've never used the xshut terminal.
If communication with the sensor becomes impossible,
I'm thinking of using the xshut terminal to synchronize the host microcomputer and the sensor.
Please let me know the setup time required to start I2C communication after setting the xshut pin to high level.
From the topic below, I think 10ms is enough, but I would like some information as a specification.
Title:vl53l1x-xshut-pin
Best regards.
Solved! Go to Solution.
2022-11-17 08:26 AM
It's a lot less than 10ms. But you don't need to know it.
drop Xshut, wait a ms or two and lift the Xshut line.
The sensor will reboot and come alive.
There is a I2C read -
VL53L1X_ERROR VL53L1X_BootState(VL53L1_Dev_t dev, uint8_t *state)
Just call that.
If it's not booted, wait a ms and call it again.
2022-11-17 08:26 AM
It's a lot less than 10ms. But you don't need to know it.
drop Xshut, wait a ms or two and lift the Xshut line.
The sensor will reboot and come alive.
There is a I2C read -
VL53L1X_ERROR VL53L1X_BootState(VL53L1_Dev_t dev, uint8_t *state)
Just call that.
If it's not booted, wait a ms and call it again.
2022-11-17 04:32 PM
Hello John-san,
Thank you for your answer.
I will try it on a real device to determine the setup time.
The information "about 1ms-2ms range" was very helpful.
Best regards.