Mukul,
Per your suggestion (http://e2e.ti.com/support/dsp/tms320c6000_high_performance_dsps/f/115/p/374275/1323792.aspx#1323792) I am starting a new thread on my request for sample code. I appreciate your willingness to consider providing this example code. I see this request often on the Forum and believe it would be useful to many people that want to use the C6748 for audio manipulation (self included).
The goal of the code would be to demonstrate how to configure the C6748 on the LCDK to loop incoming analog stereo audio from the audio input connector through a pseudo audio compression algorithm, to a pseudo decompression algorithm, back to the analog output connector, using EDMA3 and ping-pong buffers and NO OS (no DSP/BIOS). I need to measure the performance of the audio compression algorithm on the C6748.
Here are the specifics of what I would like to see.
1. No DSP/BIOS. No Linux. No OS.
2. Use a CSL or PSP if available (please take a look at the MSP430Ware (http://www.ti.com/tool/MSP430Ware) package as an example of what would be most helpful).
3. Include chip setup (PLLs, clocks, cache (very important for this application), EDMA, McASP, etc).
1. Send stereo analog audio to/from AIC3106. A/D and D/A set for 16 bit samples at 48000 samples/sec.
2. McASP configured similar with similar settings (16/48k stereo). Event triggers used by EDMA3.
3. Configure Ping-Pong buffers for 150 stereo samples of 16bit samples at 48k samples/sec (show that these actually need to be 32bit/sample buffers and are larger than the actual 150 sample transfer size).
3. EDMA3 input from AIC configured for transfers of 150 stereo samples to/from a ping-pong buffer with interleaved Left & Right samples (do not de-interleave).
4. If the input Ping buffer is actively receiving an EDMA transfer, send Pong samples to a pseudo audio compression algorithm (do nothing).
5. Else if input Pong buffer is actively receiving an EDMA transfer, send Ping samples to a pseudo audio compression algorithm (do nothing).
5. After compression transfer compressed samples to a pseudo audio decompression algorithm (do nothing).
7. After decompression, if output Ping buffer is actively sending an EDMA transfer to the AIC, move 150 stereo samples to output Pong buffer. Trigger on McASP Tx Event.
8. Else if output Pong buffer is actively sending an EDMA transfer to the AIC, move 150 stereo samples to output Ping buffer. Trigger on McASP Tx Event.
Please let me know if you have any questions about these requirements.