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.

TLV320AIC3120EVM-U: Issues faced with interfacing external microcontroller to TLV320AIC3120-EVM

Part Number: TLV320AIC3120EVM-U


Tool/software:

Hi,

I am working with TLV320AIC3120-EVM codec. I was using codec control software to configure the codec and I am able to do the loopback test. Now, I need to integrate it with a microcontroller. I am using the test points for I2C configuration, to which I am connecting the microcontroller I2C lines and I am able to configure it with same init log of codec. I need to change the sampling frequency to 8 KHz. For that I have used the internal clock division network within the codec control software, where I am giving MCLK as the PLL clock and PLL clock as the codec clock. I got the required division values and I run the log in the codec. Still, I am able to conduct the loopback test. My next objective is that, MCLK should be provided from the microcontroller and not through the TAS1020B USB controller within the EVM. What should I do to establish this? Can I remove the USB controller chip itself, so that there will not be any conflict of clocks happening between my controller and the EVM controller? So that I can provide MCLK as well as BLCK and WCLK for the I2S data transfer from my microcontroller.

  • Hi Manikanta,

    You can remove the TAS1020B and then use the test points to attach the I2S bus to the codec from your EVM. This is straightforward, but you will lose connection to the GUI. If you're a skilled solderer then you can just lift the I2S pins (35-39) off the pads of the TAS102B footprint and keep the I2C connection.

    Best regards,
    Jeff McPherson

  • Hi McPherson,

                             I need to send 128kbps data from audio codec to psoc microcontroller in the transmission chain and need to receive 128kbps from psoc microcontroller to audiocodec in the reception chain, because the sampling frequency is selected as 8 kHz and 16 bit linear format is selected. For this to be happen, how many bytes of data needed to send or receive for each packet frame to and from the psoc? I just want to understand that to send and receive data at 128 kbps, how many bytes of data should I send and receive in a single frame or single packet? 

  • Hi Manikanta,

    I can't answer this fully because that is a consideration on the microcontroller side. The codec does not care how many bytes are in a single packet.

    All that matters is that every 16 bits defines a single audio sample. At 8kHz you'll be transmitting/receiving 8000 * 16 bits * 2 channels = 256,000 bits per second. This is per I2S definition. I think you may have been only considering a single channel, which is how you got 128kbps. It's unusual to transmit only a single channel. If you want mono then you typically have to budget for two channels and then leave the second channel blank. 

    Best regards,
    Jeff McPherson