PUREPATHSTUDIO: NEED HELP WITH IMPLEMENTING PUREPTH EXPORT WITH CODE

Part Number: PUREPATHSTUDIO
Other Parts Discussed in Thread: TLV320AIC3268

HI , im new to audio and the purepath studio setup and implementation looks completely alien to me ,  my requirement is  i have 2 analog input and 1 bt input in asi2, im using esp32s3 as controller , the codec im using is TLV320AIC3268  i have set up the blocks in the purepath and  generated the h file , but when implememnting in my source code its not working , i have successfully developed the analog mixing inside the codec , but as next step i need volume control and, so i need to  use the mini dsp , right now im stuck , i will share the project details , the  digram from schgematics i have made some modification in the board , ihave  connected gpio 21 to mclk of the codec for clock purpose ,HMmixerAMP_schematics_2025-11-16.pdf Screenshot 2026-02-20 164708.pngmini_dsp_test (2).zip 

  • Hi,

    The first issue I see with your setup is the type of framework you chose and inputs/outputs. For systems using 48kHz sample rate or similar rates, we suggest using the "AIC3268 8x4x" option. This means that there is 8x interpolation on the DAC outputs and 4x decimation on ADC. This allows the internal clocks to the ADC/DAC and DSP to be maximized, which gives the best audio quality possible with maximal processing power as well. When you select that framework, then you can use the Dec4xIn ADC analog input block and the Int8xOut or MonoInt8xOut DAC analog output block. 

    Another step that you may not know about is SystemSettingsCode, this is where we can populate the I2C commands to do basic configuration like which pins are used for analog input and output, and any clocking settings needed. To get to the SystemSettingsCode screen, click on the framework object and then click on the right side on the triple dots button on top of the code you see next to "SystemSettingsCode" in the properties tab:

    I would recommend copying the whole default SystemSettingsCode contents into another text editor to be able to search in it and parse through easier. Without editing it, the clocking is set up for use with the EVM, so it expects an MCLK input to the PLL (of I believe 12.288MHz or 11.2896MHz for 44.1k systems) and then the clocking will be set based on the sample rate selected in the "Configuration" tab of your process flow, when you select an empty space on the grid. 

    You can select different sample rates but it seems like 44.1kHz is the default.

    From the default SSC, it looks like the LDAC channel goes to HPL, so the left IntOut will be to HPL, and right analog out will be to HPR. Also, on the ADC side, by default it is single-ended IN1L and IN1R selected for L and R decimating inputs. You will want to change that for your schematic, I see you have differential inputs on IN2 and IN3. This is set in registers on page 1 registers 52-57. 

    I understand the software is confusing, so let me know if there is anything else that you need some more clarification on. There are some start-up guides on the download page for PurePath Studio that may be helpful as well: https://www.ti.com/secureresources/PUREPATHSTUDIO

    Best,
    Mir