This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS8664 SPI

Other Parts Discussed in Thread: ADS8664

Hi,

I'm trying to read/write to the ADS8664 with little success. To begin with I'm trying to write a range input config to channel 0 and check on the scope that the data I sent is on SDO line. However im failing to see it on the SDO line. The SDO appears to do something but doesnt appear correct. Im out of ideas.

Here some snapshots:

Sent:

 ADS866X_input_range_config(0,ADS866X_INPUT_RANGE_UNIPOLAR_0_TO_125);

static int8_t ADS866X_input_range_config(uint8_t ch, uint8_t range){
uint8_t data[3];
uint8_t resp[3];

HAL_GPIO_WritePin(CS_PIN_GPIO_Port,CS_PIN_Pin,GPIO_PIN_SET);


data[0] = (ADS866X_CH0_INPUT_RANGE_ADDR + ch) | ADS866X_WR_BIT;
data[1] = range;
data[2] = ADS866X_NO_OP;

if( HAL_SPI_TransmitReceive(&hspi1,data,resp,3,1) == HAL_OK){

}

HAL_GPIO_WritePin(CS_PIN_GPIO_Port,CS_PIN_Pin,GPIO_PIN_RESET);

return 0;
}

Program DATA

CLOCK

SDO line: