Interface 4 wire spi with ILPS22QS
Hello,
I am developing an application that uses 8 ILPS22QS in 3-wire mode and a microcontroller that does not support this mode natively. A shift register is used to control the CS lines and it is working as expected.
I tried to go around this problem by wiring the SPI as per the diagram attached.
I am using the Arduino IDE and the SPI library.
After enabling the SPI at a speed of 100000Hz (and set to MODE 3), I pull the first sensor CS pin low and immediately write to address 0x0E the value 0x60.
After that I try to read back the same register (SPI.trasfer(0x8E)) and register 0x0F, but the chip does not respond. During the "reading back" part of the transaction, I tried sending either 0xFF or 0x00 on the MOSI, but the result is the same, on the MISO I just get a copy of whatever the MOSI is sending.
I have also tried changing the 2.7k resistor between the MOSI and MISO pin for a 5k, but nothing changed.
I have attached the full arduino code too, just in case (to test it, remove .txt extension).
Am I missing something? Any help is greatly appreciated!
