Can I safely use LIS3DH on a common SPI bus?
I am having a problem with an LIS3DH device on a common SPI bus with a serial flash memory chip. I am wondering if I may be doing something that I should not.
The two devices share a common SPI bus (SPC, SDI and SDO). The LIS3DH and the memory each have individual CS lines.
All works fine until I try to access particular memory locations in the serial flash. It seems as if the LSI3DH is, while it's CS is high, listening to the SPC and SDI lines and treating them like I2C SCL and SDA lines. Then under very particular pattern conditions, when I would have liked the LIS3DH to remain "silent", it detects an I2C Start condition. And so, some number of clock cycles later, I see the SDI (SDA) line being pulled down (fighting against the microcontroller, which was trying to keep it high at that point.)
I am thinking that, because the "CS" line on the LIS3DH is really an interface mode selector (I2C/SPI), it is unsafe to use LIS3DH devices on a common SPI bus (with ANY other device)
Any comments/observations on this situation would be much appreciated.
