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.

looking for demo codes of DMA ping-pong buffer for I2S that can run on the eZdsp5535 platform

Other Parts Discussed in Thread: TMS320C5535

I want to implement DMA ping-pong buffer for I2S using eZdsp5535  from Spectrum Digital.

The block diagram is shown below.

I have done the following works:

1. read 'TMS320C5535 technical reference manual', intensively on chapter 1 (system control), chapter 3 (DMA), and chapter 10 (I2S);

2. read source code in board support library, intensively on the project 'AIC3204'

3. debug source codes in chip support library (version 3.04), intensively on the projects in DMA and I2S folders.

Now, I am still confused about how to code to implement the desired DMA ping-pong buffer for I2S.

My questions are:

1. on page 149 of TMS320C5535 technical reference manual, there is only a figure showing how to service the incoming I2S data,

what about the mechanism of servicing the outgoing data to I2S, and its detailed explanation?

2. It seems that I have to tailor the codes from example codes of CSL and BSL. For instance, use some codes in the project 'AIC3204' for configuration on the codec,  and combine the key ideas using in the project 'CSL_I2S_DMAExample' and 'CSL_DMA_PingPongExample'. Also, I should rewrite the ISR routine.

Am I right?

3. Do TI or some third party have an tested code to satisfy my needs?

4. Is there an alternative way instead of using DMA ping-pong buffer for I2S?