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.

TLV320AIC3268: AIC3268 48K sample rate

Part Number: TLV320AIC3268

I made a PurePath build of a parametric equalizer.  It was initially set at 44.1K sample rate.   I need to change to a 48K sample rate to support other parts of my hardware.  I made the change in PurePath, ran the build but do not see a change in my performance.  My center frequencies are skewed.  I see this in the system Setting Code and it appears that there are no differences for between 44.1 and 48K. 

%%if (%%prop(SampleRate) == 44100 || %%prop(SampleRate) == 48000)
    reg[0][0][7]  = 0x08             ; P=1, R=1, J=8
    reg[0][0][13] = 0x00             ; DOSR = 128 (MSB)
    reg[0][0][14] = 0x80             ; DOSR = 128 (LSB)
    reg[0][0][18] = 0x02             ; NADC Powerdown NADC = 2
    reg[0][0][19] = 0x90             ; MADC Powerup MADC = 16
    reg[0][0][20] = 0x40             ; AOSR = 64
%%endif

How do I change to 48K?

Joe

  • Hi Joe, 

    You need to change the settings in the properties window.  set 48kHz to True,  and then set the CurrentRate to 48k

    If you'd like to continue using the EVM,  download the AIC3262EVM-GUI (CODEC CONTROL) and use it to update the USB audio processor firmware.  Do not use Purepath studio to update the firmware as it does not work properly.

    best regards,

    -Steve Wilson

  • That's what I did first.  No change.  I started to look inside the "SystemsSettingCode" under properties to find additional options.

    Joe

  • Joe, 

    when you generate and run your process flow,  what is in the output window?  here is what I see:

    Saving process flow to:C:\Users\Hangman\My Documents\Texas Instruments Inc\PurePath Studio (Portable Audio) MiniDSP 5.95\BuildTempFolder\buildTemp.pfw

    Generating code for base_main_Rate44 ..  assembling .....Done.

    Generating code for base_main_Rate48 ..  assembling .....Done.

    Build succeeded.

    Connecting to the EVM.

    Found board type: FWIDTLV320AIC3254EVM-K.

    Board sampling rate: 44100Hz.

    done.

    best regards,

    -Steve Wilson

  • Thanks for your help.

    Yes, I see all of that including the 44 or 48 in the file names.  There is still no change in performance.  The center frequency is still off.

    I am not testing on a dev board.  That is correct.  I am testing using my board and circuit where we load in the configuration for the CODEC from our program that is based on the files generated by Purepath. 

    See my original post.

    %%if (%%prop(SampleRate) == 44100 || %%prop(SampleRate) == 48000)
        reg[0][0][7]  = 0x08             ; P=1, R=1, J=8
        reg[0][0][13] = 0x00             ; DOSR = 128 (MSB)
        reg[0][0][14] = 0x80             ; DOSR = 128 (LSB)
        reg[0][0][18] = 0x02             ; NADC Powerdown NADC = 2
        reg[0][0][19] = 0x90             ; MADC Powerup MADC = 16
        reg[0][0][20] = 0x40             ; AOSR = 64
    %%endif

    It appears that the same clock parameters are used for both the 44 and 48K sample rates.  There must be another register setting that selects either 44 or 48K.

    Joe

  • Joe, 

    Will you provide me with the output when generate and run your process flow?

    The clock parameters ARE the same.  the Which means that either your MCLK is wrong (your EVM is still set for 44.1k - which I could see if you provided me the output when you generate the code for and run your process flow), or if you are referring to biquad filter center frequencies,  you may have generated the biquad filter coefficients for 44.1k rather than 48k.

    best regards,

    -Steve Wilson

  • Steve,

    Thanks again.  This is NOT the eval board.  I am using the PEQ blocks.

    Is there an email so I can attach a file to just you rather than the whole community?

    Joe

  • Joe, 

    if this isn't the Eval board, we need to know your audio serial interface frequencies. 

    What is the MCLK frequency for your system? PPS assumes you are using the EVM which provides an MCLK of 12.288 MHz when operating at 48kHz.

    best regards,

    -Steve Wilson

  • Steve,

    Our clock is 12.288MHz.

    Joe

  • Hi Joe,

    Steve is out for a couple weeks, please send your file to pa_deltasigma_apps 'at' ti.com and we'll take a look.

  • Hi Joe, 

    Im sorry for the radio silence, I was out on Parental leave.  Were you able to get this resolved?

    best regards,

    Steve Wilson