LoopBack Application
LoopBack Application
LoopBack Application
The loop back or pass through application consists of sending an audio file
from a PC to the C6713 DSP via the analogue to digital converter (Codec)
and then getting it back through the digital to analogue converter (Codec).
Two peripherals of the C6713 DSP are used for this purpose; the Multichannel
Buffered Serial Port (MCBSP) and the Enhanced Direct Memory Access. This
application will be used as the basis for implementing a three band equalizer.
The implementation will be embedded between the receive side of the EDMA
(gBufferRcv) and the transmit side of the EDMA (gBufferXmt), using
hardware events.
CODEC
Page 1
The available codec on the DSK 6713 board is the TLV320AIC23 (AIC23) 16bit stereo coder/decoder (CODEC) device. The CODEC interfaces to the 6713
DSP via the MCBSP serial interface.
Your project explorer should look something like the one in figure 3. Make
sure to delete C6713.cmd if it has been automatically added to the project.
Page 3
main.c
edma.c
codec.c
sine.c
mcbsp.c
At the end of this process, the project explorer should look like the one of
figure 4.
Target Configuration
The target configuration has been defined at the beginning when providing
all the settings for the project. The configuration can be modified by double
clicking on it. Otherwise, a new one can be created by the user. Check that
you have the right configuration by double clicking on your configuration file.
Make sure that DSK6713 is selected (See figure 5).
Page 4
Page 5
Page 6
Page 7
Page 8
Setting up CSL
Initially, some changes have to be made in order to use CSL. To get the
project working, the search path for CSL header files has to be manually
added. To do so, right click on the project name and select properties
(alternatively, from the menu, select Project Properties). Under C6000
Compiler, choose Include Options and click on the green + sign
to add the C:\Program Files\C6xCSL\include.
We will take the opportunity to add some other header files that required by
the project. The path represents a working directory. In figure 12, it is
pointing to my working directory.
Page 10
When the process is completed, the Project Properties window should look
like the one of figure 13.
CSL will also need to know what DSP platform is to be used. This can be
specified in the Project Properties window (figure 10) by selecting
Predefined Symbols and then clicking on the green + sign
name of the chip CHIP_6713.
. Add the
To add the CSL6713 library to the runtime environment, you will have to
select C6000 Linker and then File Search Path. At the bottom, add the
path to the library and at the the top add the library itself csl6713.lib as
illustrated in figure 14.
Page 11
Run Code. You should hear audio playing from your headphones. If there
is any distortion, adjust the volume level on your PC. If you get noise, go
back and debug your code. Follow the data from the input/receive side to
the output/transmit side.
Page 12