cancel
Showing results for 
Search instead for 
Did you mean: 

LSM6DS3US SPI interface

Nick Brown
Associate
Posted on June 28, 2018 at 14:48

I plan on using the LSM6DS3US with an SPI interface. To do this i have to set the CS line to 1. The SPI bus I have is a shared bus with SPI memory devices, each controlled by their own CS line. Therefore on first glance the LSM6DS3US should just sit on the shared bus and only become active when its CS line goes high.

However...when the CS line of the LSM6DS3US is 0 it puts the SPI SDI and SCK lines into I2C mode. Therefore when I am not using the LSM6DS3US and have therefore deselected it by putting CS low, I am in fact adding an I2C device onto my shared SPI bus.

This doesn't sounds good to me.

Will the LSM6DS3US cope with this and will it cause issues for the other, potential active, SPI devices?

#lsm6ds3us-spi-interface-(what-hapens-when-i2c-is-select
1 REPLY 1
Miroslav BATEK
ST Employee
Posted on July 02, 2018 at 15:22

First of all the logic is opposite:

CS ... 0 ... SPI mode

CS ... 1 ... I2C mode 

Normally the I2C device on SPI bus is not a problem, but you can disable the I2C interface using I2C_disable bit in CTRL4_C register.

0690X0000060LZxQAM.png0690X0000060La2QAE.png