AnsweredAssumed Answered

What should be the output on SDO when CS = 0 and SDI =0 for ADXL343?

Question asked by sunny@ on Feb 14, 2017
Latest reply on Feb 14, 2017 by NevadaMark

I am using ADXL343 and trying to power it on by setting measure 3rd bit of POWER_CTL. But nothing is happening. I am unable to see any output on SDO. Initially, VDD and VS both are high which means my module is in standby mode. Also, I have attached OR for SDI according to datasheet. 

First question:  What should be the output on SDO when CS = 0 and SDI =0 for ADXL343?

Second question: Below, I am just trying to read device ID and POWER_CTL for ADXL343 but I am getting 0 every time. SPI clock is 3 Mhz.

i = 0x08;
Accel_SPI_Write(POWER_CTL,i);

 

i = Accel_SPI_Read_Byte(DEVID);
CONSOLE_Printf("\r\nPower Mode: %2x\n",i);

i = Accel_SPI_Read_Byte(POWER_CTL);
CONSOLE_Printf("\r\nPower Mode: %2x\n",i);

Outcomes