2020-10-07 01:12 AM
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?
Solved! Go to Solution.
2020-10-07 01:37 AM
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
2020-10-07 01:37 AM
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