AD1938: what is the formula to transform the data received from AD1938 into volts?

I want to display a sine wave signal in a software program that I apply to the analog audio input of the codec. I get the data in the receive buffer, then convert it from a fixed-point format to a 32-bit floating-point format, but I do not know how to convert this data into an effective signal (amplitude in volts). Thank you.

Parents
  • 0
    •  Analog Employees 
    on Jun 30, 2017 11:48 PM

    Hello Jerca,

    Something is wrong... You are setting the format of the ADC into the AUX mode. This will set it up for using external ADCs and DACs and the data pins change functions in the AUX modes.

    Look at table 13, Pin Function Changes in TDM and AUX modes and you will see the issue.

    You need to set the ADC in TDM mode if you are using only one codec. Even if you are using two codecs you would be daisy chaining them and not using the AUX modes.

    Regarding the code for setting up the serial ports and converting the numbers, you should ask that on the SHARC or BLACKFIN space on this forum since they can help answer those questions.

Reply
  • 0
    •  Analog Employees 
    on Jun 30, 2017 11:48 PM

    Hello Jerca,

    Something is wrong... You are setting the format of the ADC into the AUX mode. This will set it up for using external ADCs and DACs and the data pins change functions in the AUX modes.

    Look at table 13, Pin Function Changes in TDM and AUX modes and you will see the issue.

    You need to set the ADC in TDM mode if you are using only one codec. Even if you are using two codecs you would be daisy chaining them and not using the AUX modes.

    Regarding the code for setting up the serial ports and converting the numbers, you should ask that on the SHARC or BLACKFIN space on this forum since they can help answer those questions.

Children
No Data