cancel
Showing results for 
Search instead for 
Did you mean: 

LIS3DH and LSM6DSV32X on same SPI bus

PierreProt
Visitor

Hello,

I intend to put LIS3DH and LSM6DSV32X on same SPI bus and use different CS lines to address them separately. But when the CS is desactivated, these components activate their I2C engine, therefore leading to possible conflicts of I2C interface on the SPI bus.

For LSM6DSV32X, the datasheet states that I2C can be deactivated by setting to 1 the bit I2C_I3C_DISABLE of IF_CFG register.

For LIS3DH, iy is said here (https://community.st.com/t5/mems-sensors/use-lis3dh-on-the-same-spi-bus-as-an-eeprom-is-it-possible/td-p/427285) to write 0x80 on address 0x17 to desactivate I2C on LIS3DH.

Question 1: this method for LIS3DH is not officially documented in the datasheet, nevertheless, is it an official and safe way to deactivate the I2C bus ?

Question 2 : If I deactivate I2C on LIS3DH and LSM6DSV32X, is it a safe way to make both components coexist on a same SPI bus ?

Best regards

Pierre Prot

0 REPLIES 0