cancel
Showing results for 
Search instead for 
Did you mean: 

Can I connect multiple LIS2DS12TR to one SPI?

Dfsd .1
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Eleon BORLINI
ST Employee

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

View solution in original post

1 REPLY 1
Eleon BORLINI
ST Employee

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