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.

CCS/LAUNCHXL-CC2640R2: Audio capture issue with AIC3109 codec on CC2640R2

Part Number: LAUNCHXL-CC2640R2

Tool/software: Code Composer Studio

Hi,

I am using CC2640R2 with AIC3109 Audio codec. audio play is working with below configuration but audio capture is not working. when i connect i2s audio in and audio out signal then audio loopback is also working.

AudioCodecRegWrite(TI3109_PAGE_SEL_REG,0);
AudioCodecRegWrite(TI3109_SERIAL_IF_CTL_A_REG, 0x00);
AudioCodecRegWrite(TI3109_PAGE_SEL_REG,0);
AudioCodecRegWrite(TI3109_CLK_REG, 0x01);       // CODEC_CLKIN source selection. 0: CODEC_CLKIN uses PLLDIV_OUT 1: CODEC_CLKIN uses CLKDIV_OUT
AudioCodecRegWrite(TI3109_CLK_GEN_CTL_REG,0xa0);    //CODEC_CLKIN and PLLCLK_IN is MCLK
AudioCodecRegWrite(TI3109_SAMPLE_RATE_SEL_REG, 0x44);
AudioCodecRegWrite(TI3109_PLL_PROG_A_REG, 0x90);
AudioCodecRegWrite(TI3109_PLL_PROG_B_REG, 0x30);
AudioCodecRegWrite(TI3109_DATAPATH_SETUP_REG, 0x0a);
AudioCodecRegWrite(TI3109_SERIAL_IF_CTL_A_REG, 0x10);
AudioCodecRegWrite(TI3109_SERIAL_IF_CTL_B_REG, 0x00);
AudioCodecRegWrite(TI3109_SERIAL_IF_CTL_C_REG, 0x02);
AudioCodecRegWrite(TI3109_DAC_PWR_CTL_REG,0x80);    //DAC power on
AudioCodecRegWrite(TI3109_DAC_OUT_SW_CTL_REG,0x40);    //DAC = DAC_1
AudioCodecRegWrite(TI3109_DAC_VOL_CTL_REG,0x0);    //DAC not muted
AudioCodecRegWrite(TI3109_PGA_LEFTLOP_VOL_CTL_REG,0x0);    //PGA to Left_LOP,left_LOM
AudioCodecRegWrite(TI3109_DAC_LEFTLOP_VOL_CTL_REG,0x0);    //DAC_1 to Left_LOP,left_LOM
AudioCodecRegWrite(TI3109_LEFTLOP_OUT_LEVEL_CTL_REG,0x99);    //DAC_1 to Left_LOP,left_LOM
AudioCodecRegWrite(TI3109_MICBIAS_CTL_REG,0xc6);    //micbias to 2.5v
AudioCodecRegWrite(TI3109_PGA_GAIN_CTL_REG,0x2f);    //Select Page 0
AudioCodecRegWrite(TI3109_MIC1P_LINE1P_CTL_REG,0xc4);    //micp/m differential add power up

Regards,

Darshan

  • It's not clear from your post what actually is the issue and if this is a issue with CC2640R2 or with AIC3109.

    Could you elaborate some?
  • Hi,

    There is I2S echo example given in SDK. when we run i2s echo example in lunchxl-cc2640r2 kit then it is working. but it is not working with our board. the difference between these two board is audio codec. lunchxl-cc2640r2 kit has AIC3254 codec while we have used AIC3109 codec.

    i2s driver is not able to capture frame from AIC3109 codec.

    Regards,
    Darshan
  • In this forum we support the CCxxxx products. In the examples we have used AIC3254 since it exist a booster pack for this product. We have not looked into other codecs or know other codecs. One thing you can do is to start a new thread called something like "porting AIC3254 to AIC3109" and state that you want the two codecs to be the same. Looking briefly at the datasheet it looks like the clock generation is fairly equal on the two codecs but the parts are fairly different on other parts and compared to the register setup we do on AIC3254 the list you give looks a bit short.