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.

TAD5212EVM-K: How do I set sample rate on EVM?

Part Number: TAD5212EVM-K
Other Parts Discussed in Thread: TAD5212

The documentation for the TAD5212EVM-K says that the audio sample rate can be set by the USB Audio driver.  What software can I use to do this? I've tried pyaudio and simpleaudio but specifying the sample rate seems to have no effect.  

  • Hey David, 

    Thank you for asking your question. PPC3 is the best option to control TAD5212EVM-K.

    The first step you need to take is to request to download PPC3 here: https://www.ti.com/tool/PUREPATHCONSOLE

    Once that is done, you would be granted access to control the TAD5212 using PPC3. 

    Here is the PPC3 user's manual to help you get started: 

    slou408 [PPC3 User Manual] (1).pdf

    If you require more assistance, feel free to ask.

    Regards,

    Ore.

        

  • I already have PPC3.  I don't see any effect when I make changes to the registers (in particular PASI_SAMP_RATE[5:0]) while monitoring the BCLK line.  

  • Hey David,

    Thanks for the feedback. I would like to know if you are using the tac5x1x app on ppc3 to control the device ?

    Regards,

    Ore. 

  • TAC5x1x-Q1 App

  • To observe changes made to a register the i2c window is a helpful debugging tool. 

    Try opening the i2c window. It should be at the bottom of the ppc3 window. 

    Click 'log' and click on the green button. It should turn red. Once you do this, click on i/o and repeat your register write on the i/o window. 

    The log portion of this i2c window shows the live register updates on a device. 

    Let me know if that helps if not feel free to ask for more guidance. 

    Regards,

    Ore. 

  • I think there's some fundamental confusion on what this EVM is able to do.  What role does the AC-MB have in controlling the TAD5212?  If I change the sample rate register in the TAD5212 using PPC3 does that also configure the AC-MB to produce data and clock at that revised sample rate?  

  • Also, the manual for the EVM says: "The serial interface clocks and data are provided from the USB interface. The sampling rate and format are
    determined by the USB audio class driver on the operating system. The default settings for the USB audio
    interface are 32-bit frame size, 48-kHz sampling rate, BCLK and FSYNC ratio is 256, and the format is
    timedivision multiplexing (TDM)."

    That points back to my original post where I asked what software should I use to manipulate the settings of the "USB audio class driver".

  • Hi David,

    The driver is automatically installed once the AC-MB is plugged in. It will appear as a TI logo in your system tray.

    From here you'll be able to alter some of the settings. Functionally however you'll only be able to change the bitwidth. The sample rate, FS/BCLK ratio and TDM format are fixed by the driver.

    In PPC3 you'll want your ASI settings to match this so that the audio gets converted correctly by the AC-MB processor to be sent over USB.

    Best regards,
    Jeff McPherson

  • Hey David, 

    I would be closing out this thread, if you need more support regarding this topic feel free to ask.

    Regards,

    Ore. 

  • Well, that makes it impossible for us to do what we need to do without having some other hardware to provide the ASI input.  I'm not familiar with the XMOS audio processor chip.  Is it possible to write some code for it to provide custom sample rate data to the DAC?  

  • Hey David,

    Allow 48hrs to get a response on this. 

    Regards,

    Ore.  

  • Hey David, 

    The AC-MB 'Audio Converter Motherboard' is intended to support the use of the TAD5212 DAC on its EVM board. Once the USB option is selected as the audio bus source on the ac-mb, you can change the settings through the TI driver (represented as the TI logo), and the Windows advanced Sound setting(represented as a sound icon) to get the sample rates you want.

    Jeff explained how to get to the TI driver settings window. To access more settings to help you configure your sample rates, Make sure the Status page in the driver window is open so you can observe the changes you make> Right click the Sound icon on your taskbar > select Recording > double click on Line(TI USB Audio)> a window should pop-up> select advanced and pick any rate of your choice> once this is done, it should reflect on the TI driver window on its Status page. The advanced page has its limitations per the format picked but it shows up when needed.    

    If you go back and forth between the TI Driver, status page and the TI USB Line Properties, Advanced page, you should be able to provide and configure the ASI input. When doing this, it helps to make sure all the settings match from the format page to the advanced page.

    I have attached examples of what you could expect using a windows OS:

     

    Hope that was able to help, 

    Regards,

    Ore.