SPI with LIS3DH Accelerometer is not working
I am using a PIC32MX250F128B . I am trying to communicate with LIS3DH through SPI connection. I have several other devices like ADC, DAC working with SPI protocol perfectly fine. However the Accelerometer does not.
With the scope my CS, Clock and SDA matches the diagram from datasheet (its sending the correct address of WHO_AM_I register ) but SDO output remains silent. Cant see anything coming out of accelerometer.
I am trying to get the who_am_i register value but the output i am getting is zero.
I have attached a scoped picture of my SPI. I have tried rest of the 3 mode other than the mode mentioned in the datasheet.
Any suggestions or solution from the community would be much appreciated. I have gone through several posts with the same problem but with no solution.
I hope I can get one.
N.B: All my connections are perfectly fine and other SPI connections are also working fine (ADC, DAC). I've also purchased several breakout boards (Adafruit, seedstudio) but that does not work either.
Here in this picture
yellow line : CLK
Pink waveform : SDO
Cyan waveform: SDA
CS is working fine.
