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.

ADAS3022 ADC not stable

Hi,

I am using ADAS3022 (ADC Board) interfacing with HDK as shown in the below figure

 

With the clock frequency of 1MHZ.

Below table shows the expected output for the given input voltage

Below is the output table which I got

Input Voltage

ADC value(HEX)

ADC Value (Dec)

5

6FFC

28668

4.5

6F03

28419

0.5

0C5A

3162

0.02

004E

78

0

000B

11

-0.02

FF8A

-118

-0.5

F3A7

-3161

-5

82F7

-32009

 

Here is my code,

 

 

  ADAS3022_HV_Clear_Conversion();  //Clear the conversion bit before start conversion

 

  HV_SPI_delay(10); // Giving 10ms delay

 

  gioSetBit(spiPORT2, SPI_PIN_CS0, 0u); //Enable the chip select

 

  gioSetBit(rtpPORT, 14u, 0u); // Make busy flag as 0 during the start of conversion( Avtive low pin)

 

  HV_SPI_delay(10); // Giving 10ms delay

 

  ADAS3022_HV_Set_Conversion();  // Start the conversion

 

  HV_SPI_delay(10);  //Giving 10 ms delay

 

  spiTransmitAndReceiveData(spiREG2, &dataconfig1_t, 1,    &g_HV__dummy_u16[0],&HV_SPI_DEFAULT_DATA[0]); // Read the converted data

 

  gioSetBit(spiPORT2, SPI_PIN_CS0, 1u); // Release the chip

 

  gioSetBit(rtpPORT, 14u, 1u);   // Make  busy flag as 1 after the end of conversion

  HV_SPI_delay(500);

 

Am getting the output as expected but the output values from HDK are not stable. For example, from the below table am giving input 5v, for that am getting the output as 6FFC but it varies from 6EF0 to 6F0A

Input Voltage

ADC value(HEX)

5

6FFC - it varies from 6FE0 to 6FFC

4.5

6F03 - it varies from 6EF0 to 6F0A

4

6335 - it varies from 632F to 6340

Kindly help me to stable the data. Thanks in Advance