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.

Capture @ different config in TLV320AIC3254 codec used in CC3200 Audio booster pack.

Other Parts Discussed in Thread: CC3200, TLV320AIC3254

Hi all,

I am using CC3200 Cortex-M4 based board which has audio booster pack sub system connected to it. The Audio booster pack has TLV320AIC3254  audio codec in it. In the default sample application, the registers are configured to capture and playout stereo audio signals @ 16 KHz sampling rate.

I would like to know whats are the register settings to be done to configure the ADC/DAC modules @ required sampling rate.

Is it possible to capture and play only mono channels instead of stereo? If yes what are the register settings to be done.

IF possible can u share the required specific information to achieve the same.

Regards,

Sreenivasa

  • Hi Streenivasa,

    We use our PurePath Studio software that is a graphical programming interface for the TLV320AIC3254 device. You can request access to this software here: www.ti.com/.../aicpurepath_studio
    There is documentation and apps not to use both the software and the part itself, including the Applications Reference Guide for the TLV320AIC3254 : www.ti.com/.../slaa408a.pdf

    Justin
  • Hi Sreenivasa,

    This app note contains many example scripts on configuring the different modules: www.ti.com/.../slaa404

    The exact register and bits to configure can be determined by looking at the Register Map tables of the Application Reference Guide, as Justin suggested.

    Thanks,

    J-

  • Hi justin, Arbona,

    Thanks for the replies. I am more interested in developing applications in CC3200.
    The default register settings related to codec was for capturing and playout at 16 KHZ stereo configuration.
    setting were :
    "
    CodecRegWrite(0x04,0x03);
    CodecRegWrite(0x05,0x94);
    CodecRegWrite(0x06,0x2A);
    CodecRegWrite(0x07,0x00);

    CodecRegWrite(0x0B,0x8E);
    CodecRegWrite(0x0C,0x81);
    CodecRegWrite(0x0D,0x01);
    CodecRegWrite(0x0E,0x80);

    CodecRegWrite(0x12,0x95); /* NADC is powered up and set to 1 */
    CodecRegWrite(0x13,0x82); /* MADC is powered up and set to 1 */
    CodecRegWrite(0x14,0x80); /* AOSR set t0 128 */ //0x30

    "

    But i wanted to capture/playout signals @ 8 KHZ stereo. So when i searched on the forum for CC3200 i found the following settings

    "
    CodecRegWrite(0x04,0x03);
    CodecRegWrite(0x05,0x91);
    CodecRegWrite(0x06,0x04);
    CodecRegWrite(0x07,0x00);

    CodecRegWrite(0x0B,0x81);
    CodecRegWrite(0x0C,0x81);
    CodecRegWrite(0x0D,0x00);
    CodecRegWrite(0x0E,0x80);

    CodecRegWrite(0x12,0x81); /* NADC is powered up and set to 1 */
    CodecRegWrite(0x13,0x81); /* MADC is powered up and set to 1 */
    CodecRegWrite(0x14,0x80); /* AOSR set t0 128 */ //0x30
    "

    But i find lot of noise in the capture/playout in the second set of register settings i.e. for 8 KHz compared to first setting i.e. for 16 KHZ.
    I dont know why this should happen. Please analyze and advice me on this.

    Regards,
    Sreenivasa
  • Hi,

    MDAC*DOSR >= RC*32 and MADC*AOSR >= RC*32. Search resource class (RC) in the TLV320AIC3254 datasheet and application reference guide.

    Also, refer to this document for additional information and example 8kHz scripts.

    Regards,

    J-