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.

ADS1259: Unable to communicate with ads1259 and wrong data receiving

Part Number: ADS1259

Tool/software:

so i was trying to read the ADS1259 Using stm32F071 my spi configuration is 

hspi2.Instance = SPI2;
hspi2.Init.Mode = SPI_MODE_MASTER;
hspi2.Init.Direction = SPI_DIRECTION_2LINES;
hspi2.Init.DataSize = SPI_DATASIZE_8BIT;
hspi2.Init.CLKPolarity = SPI_POLARITY_LOW;
hspi2.Init.CLKPhase = SPI_PHASE_1EDGE;
hspi2.Init.NSS = SPI_NSS_SOFT;
hspi2.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_2;
hspi2.Init.FirstBit = SPI_FIRSTBIT_MSB;
hspi2.Init.TIMode = SPI_TIMODE_DISABLE;
hspi2.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
hspi2.Init.CRCPolynomial = 7;
hspi2.Init.CRCLength = SPI_CRC_LENGTH_DATASIZE;
hspi2.Init.NSSPMode = SPI_NSS_PULSE_DISABLE;
if (HAL_SPI_Init(&hspi2) != HAL_OK)
{
Error_Handler();
}

whenever i try to read the ads1259 register  i am always receiving 0x21 0x00 0x00 0x21 0x00 0x00 , this sequence is repeating my controller is running in 48 MHZ and my spi peripheral is running in 3 MHZ with baudrate 1.5 mb/s 

Can someone solve this issue also tell how to properly initialize the ADS1259 

  • void readRegister(void)
    {
    	uint8_t str[3] = {0};
    	uint8_t result[9] = {0};
    
    	HAL_GPIO_WritePin(ADC_CS_GPIO_Port, ADC_CS_Pin, GPIO_PIN_RESET);
    	HAL_Delay(100);
    	str[0] = 0x20;
    	HAL_SPI_Transmit(&hspi2, str, 1, 100);
    	str[0] = 0x08;
    	HAL_SPI_Transmit(&hspi2, str, 1, 100);
    	HAL_Delay(500);
    	HAL_SPI_Receive(&hspi2, result, 9, 2000);
    	HAL_Delay(200);
    	HAL_GPIO_WritePin(ADC_CS_GPIO_Port, ADC_CS_Pin, GPIO_PIN_SET);
    	HAL_Delay(100);
    
    
    }

  • Hi Lince chacko,

    Welcome to the E2E forum!  Can you send us your schematic? Can you also verify that both DVDD and AVDD are at the nominal operating voltage?  Also verify that the RESET/PDWN pin is high and that you have a working clock for the master clock as either a crystal or oscillator input?

    Can you also attach the Saleae file for use to review?

    Thanks,

    Bob B