Skip to main content
Associate
November 28, 2024
Solved

VL53L8CX LPn pin ignored

  • November 28, 2024
  • 1 reply
  • 920 views

I have 5 VL53L8CX on the same I2C bus.

I need to set the LPn pin HIGH of the sensor I want to change address.

But the problem is that I can also change the address when LPn pin is low as well.

Also I also don't know how to scan I2C addresses in only one sensor when all other also reply as well even though only one sensor has LPn pin set to HIGH.

Can I not disable I2C with the LPn pin or am I missing something?

LPn pin datasheet:

Enables communication. Drive this pin to logic 0
to disable the I²C communication. Drive this pin
to logic 1 to enable the I²C communication. This
pin is typically used when you need to change
the I²C address in multidevice systems.

 

Best answer by John E KVAM

Once you lift the LPn pin and re-configure the I2C address, you have to leave the LPn pin high. Dropping it means you have to start over. Whenever that pin comes high it will respond on the default I2C address. (The pin actually drops power to the core that does the I2C. So, cycling that pin is rebooting the I2C interface.)

 

1 reply

Peter BENSCH
Technical Moderator
November 28, 2024

Welcome @1MHz, to the community!

You will find an answer to your question including a step-by-step procedure in UM3109, section 2.3 (under fig. 5).

Hope that helps?

Regards
/Peter

1MHzAuthor
Associate
November 28, 2024

That procedure is valid after hard reset. But after each sensor is configured with new I2C address and downloaded with firmware the LPn pin can not disable I2C communication anymore.

John E KVAM
John E KVAMBest answer
ST Employee
December 2, 2024

Once you lift the LPn pin and re-configure the I2C address, you have to leave the LPn pin high. Dropping it means you have to start over. Whenever that pin comes high it will respond on the default I2C address. (The pin actually drops power to the core that does the I2C. So, cycling that pin is rebooting the I2C interface.)