Skip to main content
Dfsd .1
Visitor II
October 7, 2020
Solved

Can I connect multiple LIS2DS12TR to one SPI?

  • October 7, 2020
  • 1 reply
  • 802 views

I need to know routin to use multiple LIS2DS12TR on one SPI if it's possible. If I undestood correctly nCS pin used to selecting between I2C and SPI mode. So if CS is high, SDO is open-drain. Is I need to simply connect SDO pins of LIS2DS12TR (may be with pull-up resistor) and disable I2C mode during init. procedure: I2C_DISABLE bit in CTRL2 register should override nCS pin. Or, may be use of external multiplexor or tri-state buffer is need?

This topic has been closed for replies.
Best answer by Eleon BORLINI

Hi @Dfsd .1​ ,

right, the procedure you described is correct: you can connect all the sensor on a single SPI line, managing the nCS lines accordingly. In order to avoid any inconvenience due to the polarization of the CS pin, you should run the I2C_DISABLE bit procedure just after the devices initialization.

-Eleon

1 reply

Eleon BORLINI
Eleon BORLINIBest answer
ST Employee
October 7, 2020

Hi @Dfsd .1​ ,

right, the procedure you described is correct: you can connect all the sensor on a single SPI line, managing the nCS lines accordingly. In order to avoid any inconvenience due to the polarization of the CS pin, you should run the I2C_DISABLE bit procedure just after the devices initialization.

-Eleon