Can you let me know the SPI communications that should be used to get the Device ID and the SPI communication to get Temperature.
Knowing the communication, bytes sent, and bytes received, will help alot. I am sure I have an issue to do with my code so before I try to read the XYZ values I need to prove that my SPI communication to the ADXL355 dev board works. I am trying to read DeviceID and temperature but my values are not as expected.
I send Commands 0,1,2... and print the return values
ADXL355 Command=0,(Hex 0) ReturnValue=0,(Hex 0)
ADXL355 Command=1,(Hex 1) ReturnValue=173,(Hex ad)
ADXL355 Command=2,(Hex 2) ReturnValue=0,(Hex 0)
ADXL355 Command=3,(Hex 3) ReturnValue=29,(Hex 1d)
ADXL355 Command=4,(Hex 4) ReturnValue=0,(Hex 0)
ADXL355 Command=5,(Hex 5) ReturnValue=237,(Hex ed)
ADXL355 Command=6,(Hex 6) ReturnValue=0,(Hex 0)
ADXL355 Command=7,(Hex 7) ReturnValue=1,(Hex 1)
The results I get are consistent and are the same if I swap in another ADXL355 dev board. Again they are the same if I change SPI clock speeds
I am familiar with SPI for the ADIS16223 where you send a command via SPI and get a value back.
For ADXL355 I changed SPI mode to ( CPOL = 0, CPHA = 0 )
I am just starting the development for the ADXL355 so sorry if this question seems a bit basic.
I will re-read the data sheet but finding it a bit hard going.
Wiring of the dev board to the Master microcontrollers (MCU) is as follows:
VDD & VDDIO connected to 3.3V from the Master MCU
Ground is common for the ADXL355 dev board and the Master MCU
MISO – MISO on master MCU
MOSI – MOSI on master MCU
SCLK – SPI Clock on master MCU
CS – SPI Chip select from master
INT1, INT2,DRDY, V1p ana, V1P dig are not connected