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.

Wifi Audio App with 48kHz

I am now using the newest CC3200launchpad and I want to make  my "wifi_audio_app" run in 44.1kHz or 48kHz instead of 16kHz (default)
I've seen the code and recognize that I must change value in 'AudioCodecConfig' and I2S interface at 'AudioCaptureRendererConfigure'

Is it right?

I dont know if it is exactly!
And I dont know how to configure the PLL as right configuration. Which value of MCLK, P, R, J, NDAC, MDAC... and so on

So, how to calculate these value (D=0???)



Can you please help me with the right Code for 44.1kHz and/or 48kHz please?

Thanks for your help

P.s: I've read this post but I dont know how to calculate these values and dont know if it works fine
https://e2e.ti.com/support/wireless_connectivity/f/968/t/445703

  • Hi Huan,

    You need to make following changes for 44.1/48 KHz 16-bit stereo PCM:

    1. Add below code lines in AudioCodecConfig() after “if(bitClk == 512000)”

    else if(bitClk == 1536000 || bitClk == 1411200)
    {
    AudioCodecPageSelect(TI3254_PAGE_0);

    AudioCodecRegWrite(TI3254_CLK_MUX_REG, 0x03); // PLL Clock is CODEC_CLKIN
    AudioCodecRegWrite(TI3254_CLK_PLL_P_R_REG, 0x91); // PLL is powered up, P=1, R=1
    AudioCodecRegWrite(TI3254_CLK_PLL_J_REG, 0x38); // J=56
    AudioCodecRegWrite(TI3254_CLK_PLL_D_MSB_REG, 0x00); // D = 0

    AudioCodecRegWrite(TI3254_CLK_NDAC_REG, 0x82); // NDAC divider powered up, NDAC = 2
    AudioCodecRegWrite(TI3254_CLK_MDAC_REG, 0x87); // MDAC divider powered up, MDAC = 7
    AudioCodecRegWrite(TI3254_DAC_OSR_MSB_REG, 0x00); // DOSR = 0x0080 =
    AudioCodecRegWrite(TI3254_DAC_OSR_LSB_REG, 0x80); // DOSR = 0x0080 = 128

    AudioCodecRegWrite(TI3254_CLK_NADC_REG, 0x82); // NADC divider powered up, NADC = 2
    AudioCodecRegWrite(TI3254_CLK_MADC_REG, 0x87); // MADC divider powered up, MADC = 7
    AudioCodecRegWrite(TI3254_ADC_OSR_REG, 0x80); // AOSR = 128 ((Use with PRB_R1 to PRB_R6, ADC Filter Type A)
    }

    2. In AudioCaptureRendererConfigure() replace 512000 with 1411200 for 44.1KHZ and 1536000 for 48KHz

    3. In main.c pass 44100 or 48000 in place of 16000 as argument for AudioCodecConfig()
    4. In main.c pass 44100 or 48000 in place of 16000 as argument for AudioCaptureRendererConfigure() 

    As don't have expertise on Audio codec, so it is best to post query in TI-Audio codec((AIC3254) ) forum to know how to configure PLL related configuration.

    Regards,

    Aashish

  • Thanks for your reply,
    but the configuration of 44.1kHz and 48kHz is as the same?