Hi All,
How to produce audio data in I2S format for TLV320AIC3120 codec? I need the data to be stored inside the MCU (MSP432).
Kind regards,
Andrei Zinenko
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.
Hi All,
How to produce audio data in I2S format for TLV320AIC3120 codec? I need the data to be stored inside the MCU (MSP432).
Kind regards,
Andrei Zinenko
Hi Andrei,
In order to send data in I2S format with the TLV320AIC3120, you must configure the ADC side (record mode) in the codec.
Please see the 5.5.8 ADC setup section and the 5.5.9 Example Register Setup to Record Analog Data Through ADC to Digital Out section for details.
For more information about the Audio Serial Interface Configuration, please see the following document: http://www.ti.com/lit/an/slaa469/slaa469.pdf
I hope this helps you. If you still have questions, please let me know.
Best regards,
Luis Fernando Rodríguez S.
Hi Andrei,
I apologize for my misunderstanding.
Please take a look of this document: Interfacing an I2S Device to an MSP430 Device. It describes how to create an I2S-like bus (left-justified mode) from a SPI bus.
The codec must be configured as playback mode with the left-justified protocol. Please see the 5.6.12 DAC Setup section and the 5.6.13 Example Register Setup to Play Digital Data Through DAC and Headphone/Speaker Outputs for details.
I hope this helps you. If you still have questions, please let me know.
Best regards,
Luis Fernando Rodríguez S.
Hi Andrei,
Unfortunately, we don't have much information about that. However, I found the following scripts:
https://e2e.ti.com/support/data_converters/audio_converters/f/64/p/192505/689300#689300
https://e2e.ti.com/support/data_converters/audio_converters/f/64/t/540.
They mention some information about the use of .wav files with digital converters.
I hope this helps you. If you still have questions, please let me know.
Best regards,
Luis Fernando Rodríguez S.
Hi, Andrei,
If you're searching for play sounds from the PC to the codec, you may take a look of the TLV320AIC3120EVM. It uses the TAS1020BPFB which is used in applications that require the streaming of digital audio data between the host PC and the speaker system via the USB connection. It can provide the I2S data from the PC.
Additionally, the TLV320AIC3120EVM is used with a graphical user interface to configure the EVM easier.
I hope this helps you. If you still have questions or comments, please let me know.
Best regards,
Luis Fernando Rodríguez S.
Hi, Andrei,
Yes, you're right. You must provide the BCLK during the configuration stage. The clock seetings must be programmed before program the processing blocks, the ADC and the DAC.
Best regards,
Luis Fernando Rodríguez S.
Hi Luis,
Thank you for your answer. The question how to produce sample with I2S data is still open for me. I'm trying to get help from our distributor. Hope he could help.
Kind regards,
Andrei
Hi Luis,
At this stage my codec TLV320AIC3120 already connected to the MCU MSP432. So I have no possibility to play sound from PC via USB port. I can only send data from MCU via I2S port to the codec. So I need a tool (utility or just an explanation how to do) to trasform my audio samples from PC into the format my codec can understand. I should save this transformed data inside my embedded project and run it from the MCU in real time to hear the sounds. In your opinion, somebody from TI company could help me?
Kind regards,
Andrei Zinenko
Hi, Andrei,
As the Interfacing an I2S Device to an MSP430 Device Application Report mentions, you can send data from SPI. Have you tried (for example) reading from an SD via SPI and then, sending the data as the application report explains?
Best regards,
Luis Fernando Rodríguez S.
Hi Luis,
It is exactly the way I communicate to the codec. The problem is I have no sample data to send to the codec because I have no way to produce it. And this is exactly my post about. I need the way(software tool, utility and step by step explanation) to produce sample data to send it to the codec. Do you have any supporting persons from codec team. I believe the firmware engineer will be the best. Can you advise me some guy from TI to contact directly, please?
Kind regards,
Andrei Zinenko
hi Andrei,
hi ,hello,you got any information regarding this mcu to i2s testing,please share me also..i also waiting for that only....