Can someone point me to example code for ping pong buffering of I2S data in and out from an external codec to internal memory? I do not want to use CSL or DSP/BIOS.
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.
Mike,
I don't have a ping pong example, but if you look at my posting towards the end of this thread: http://e2e.ti.com/support/dsp/tms320c5000_power-efficient_dsps/f/110/t/158443.aspx#580739 you'll find a zip file with a single-buffer example using the DMA to collect codec samples on the eZdsp5515. It might make starting point.
(Notice that James reported difficuties, but since he hasn't replied to my final posting its not clear if he solved them.)
Peter
Peter,
Thanks for the suggestion. Very nicely written code (lots of helpful comments..:). I played with the code for a bit but couldn't get a DMA transfer to happen. You might want to check the following:
// DMA0_CH0_TC_MSW = 0x00C0; // Fixed source address
DMA0_CH0_TC_MSW = 0x0080; // Fixed source address
Unfortunately, I really need a ping pong example.
******************************
MARK_M: CAN YOU GUYS PLEASE COME UP WITH A REGISTER-BASED PING PONG EXAMPLE?
This must be THE most common application for the C55xx family.
I am very surprised one doesn't exist.