Post Go back to editing

AD7949 Eval hardware setup

Hi team,

i tried to read the AD7949 values visa SPI protocol but i am not getting proper data ,

please find the hardware configuration

SL No Description Voltage in V
1 VDDR 5
2 VDD 5
3 VIO 3.3
4 REF 4
5 REFIN 2.1
6 COM 0
7 REG Config 0x3C40
8 INCH1 3.3
9 SPI Baud Rate 25kbps

please help me any hardware setting is required?

Software Code :

HAL_GPIO_WritePin(GPIOB, GPIO_PIN_6, GPIO_PIN_RESET);
SPI_Status = HAL_SPI_Transmit(&hspi1, (uint8_t *)&Data[0], 2, 10);//for channel 0
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_6, GPIO_PIN_SET);

HAL_Delay(20);

HAL_GPIO_WritePin(GPIOB, GPIO_PIN_6, GPIO_PIN_RESET);
__NOP();
__NOP();

HAL_SPI_Receive(&hspi1, (uint8_t *)&receiveBuffer[0], 2, 10);

__NOP();
__NOP();
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_6, GPIO_PIN_SET);

let me know for any clarification.

thanks

krishna