Skip to main content
Visitor II
March 12, 2025
Question

Using LIS2DH on a SPI bus with many devices

  • March 12, 2025
  • 0 replies
  • 352 views

It seems that its CS is inactive, the LIS will assume that it should be in I2C mode.

But if I have multiple devices on the SPI bus, then I want to be able to disable I2C mode altogether.

Our board has exactly this setup and it seems that whenever I enable the LIS2DH, it corrupts SPI comms for the other device, presumably due to it entering I2C mode as soon as I de-assert the LIS CS-pin.

I'm unable to find a register that controls this. So my question is: How do I use the LIS2DH on a SPI bus with other devices?

    This topic has been closed for replies.