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.

PowerPath (portable) not updating values

Hello All,

I have a TLV320AIC3254EVM-U, and I am having trouble getting the double buffer to work. I have it enabled under the DAC section of the framework. Even with just trying to change the volume, it will not work in real time. If I disconnect and re-download the code, does the volume change. If I use the GUI software for the EVM board, I dont have a problem. I can change stuff in real time.

I know it has to be something I am doing, because it worked before I had some problems (https://e2e.ti.com/support/data_converters/audio_converters/f/64/t/449246) that were fixed. And before I switched to Windows 10. I went back to Windows 7, thinking that was the problem.

Does anyone have some ideas I can try to be able to update values in real time?

Thanks

Anthony

  • Hi, Anthony,

    In order to change the coefficients in real time, it is necessary to determine if the codec will work with double buffer (adaptive mode) or with one buffer (non-adaptive mode). In non-adaptive mode, the coefficients only can be changed when the ADC and DAC are not in use. However, in adaptive mode, the coefficients can be changed with the help of the second buffer. The codec cannot change the coefficients until the buffers are changed too. 

    2.4.5.3 Adaptive Filtering section explains how it works. Basically, the buffer which is not in use will be used as an auxiliary buffer. The buffer in use cannot be written directly. So, it is necessary to write on the second buffer and then switch the coefficient buffers (page 44, register 1, bit D0). This step must be done if a coefficient is changed in adaptive mode.

    I hope this helps you. Please let me know if the problem persists.

    Best regards,
    Luis Fernando Rodríguez S.

  • Thank you Luis,

    I knew I was the problem. I was using the wrong framework. It is working now.

    If I may ask, Is there a way to see the full source code? I am only doing bass boost, and I want to see what the code looks like, so I can use it.

    Thanks

    Anthony

  • Hi, Anthony,

    The full source code can be seen on the SystemSettingsCode property of the framework. You need to click on the framework block and search for the SystemSettingsCode on the Properties window. It can be opened by clicking on the [...] button.

    I hope this helps you. Please let me know if you still have questions or comments.

    Best regards,
    Luis Fernando Rodríguez S.

  • Hello Luis,

    I like that option, it allows me to see what settings I should use for my EVAL board. But it doesn't show me the data being downloaded to the EVAL board. For example, Lets say my project only needed loudness control. And I want a micro-controller to load the AIC3254 with the loudness program.

    I download and run the program, then I go and check the source code

    Almost everything is encrypted. And in the output window, it only shows the AIC3254 config settings. I cant find anything that would allow me to see the data from the program I made, so I could program a micro-controller to load the AIC3254.

    The only other way I can figure out to load the AIC3254 with a Micro, is to take the Biquad coefficients in the "Properties" tab, and hand type all of them. 

    There has to be an easier way. If I use the AIC3254 CS, I can see the script that was used for the EVAL board. I can use that for my micro and load the AIC3254.

    Does purepath studio allow me to see and/or copy the script that was used to program my EVAL board?

    I hope this makes sense.

    Thanks

    Anthony

  • Hi, Anthony,

    This wiki article could be useful for you: https://e2e.ti.com/support/data_converters/audio_converters/w/design_notes/2823.how-to-generate-a-header-h-file-with-pps. Additionally, there are more articles related with PPS in the wiki page: https://e2e.ti.com/support/data_converters/audio_converters/w/design_notes/2776.purepath-studio-pps. 

    I hope this helps you. Please let me know if you have more questions or comments.

    Best regards,
    Luis Fernando Rodríguez S.

  • Hello Luis,

    That is exactly what I was looking for. Thank you so much. And I also learned a couple things from the wiki articles.

    Thanks

    Anthony