Summary: You will implement a feedback-echo effect and adjust its parameters in real time with a MATLAB graphical user interface.
Note: You are viewing an old version of this document. The latest version is available here.
For this exercise, you will extend the system from Audio Effects: Using External Memory to generate a feedback-echo effect. You will then extend this echo effect to use the serial port on the DSP EVM. The serial interface will receive data from a MATLAB GUI that allows the two system gains and the echo delay to be changed using on-screen sliders.
![]() |
First, modify code from Audio Effects: Using External Memory to create the feedback-echo system shown in Figure 1. A one-tap feedback-echo is a simple audio effect that sounds remarkably good. You will use both channels of input by summing the two inputs so that either or both may be used as an input to the system. Also, send several test signals to the six-channel board's D/A converters:
You will also need to set both the
input gain
As you implement this code, ensure that the delay
n and the gain values
To test your echo, connect a CD player or microphone to the input of the DSP EVM, and connect the output of the DSP EVM to a loudspeaker. Verify that an input signal echoes multiple times in the output and that the spacing between echoes matches the delay length you have chosen.
After studying the MATLAB interface outlined in Core File: Serial Port Communication
Between MATLAB and TI TMS320C54x, write MATLAB code
to send commands to the serial interface based on three
sliders: two gain sliders (for
n). Then
modify your code to accept those commands and change the
values for
n. Make sure that n
can be set to values spanning the full range of 0 to
131,072, although it is not necessary that every number in
that range be represented.