Why do I hear noise when I run the generated code for the Reverberation demo in the Embedded Target for TI C6000 DSP 1.0(R13)?

1 view (last 30 days)
Why do I hear noise when I run the generated code for the Reverberation demo in the Embedded Target for TI C6000 DSP 1.0(R13)?
I am generating code to run on the DSP board starting from a Simulink model via Real-Time Workshop and the Embedded Target For TI DSP. I am trying to build the demo model c6711dskafxr, which takes an audio input using the ADC block, does some processing and generates output through the DAC block. If I run the generated code from the Code Composer Studio and then stop the CPU, without first stopping the audio input, I get a noisy output signal. I did not have this problem while running it in MATLAB 6.1(R12.1).

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
The problem is that when you click on Debug => Halt in Code Composer Studio to stop program execution, the DMA continues to send data to the codec output and recycles whatever is in the buffer. Resetting the CPU will halt the DMA. The data recycling in the buffer is what generates the noise.

More Answers (0)

Categories

Find more on Code Generation and Deployment in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!