Swapnendu's SP Lab EXP 6
Swapnendu's SP Lab EXP 6
Section ETC-03
EXPERIMENT-6:- Over view of DSP processor Kit and Code Composer Studio (CCS
v-5) & generation of various types of signals using (analysis plots using AIC-23 Codec)
DSK-TMSC6713 processor Kit.
(Design Problem: Generate different signals and analyze them in simulator of CCS v-5
and DSK-6713
Processor Kit)
TMS320C6713 DSK:
The C6713™ DSK builds on TI's industry-leading line of low cost, easy-to-use DSP Starter Kit (DSK) development
boards. The high-performance board features the TMS320C6713 floating-point DSP. Capable of performing 1350
million floating -point operations per second (MFLOPS), the C6713 DSP makes the C6713 DSK the most powerful
DSK development board. The DSK is USB port interfaced platform that allows to efficiently develop and test
applications for the C6713. The DSK consists of a C6713-based printed circuit board that will serve as a hardware
reference design for TI‟s customers‟ products. With extensive host PC and target DSP software support, including
bundled TI tools, the DSK provides ease-of-use and capabilities that are attractive to DSP engineers.
The C6713 DSK has a TMS320C6713 DSP onboard that allows full-speed verification of code with Code
Composer Studio. The C6713 DSK provides:
A USB Interface.
SDRAM and ROM.
An analog interface circuit for Data conversion (AIC).
An I/O port.
Embedded JTAG emulation support.
Connectors on the C6713 DSK provide DSP external memory interface (EMIF) and peripheral signals that
enable its functionality to be expanded with custom or third party daughter boards.
The 6713 DSK is a low-cost standalone development platform that enables customers to evaluate and develop
applications for the TI C67XX DSP family. The DSK also serves as a hardware reference design for the
TMS320C6713 DSP. Schematics, logic equations and application notes are available to ease hardware
development and reduce time to market. The DSK uses the 32-bit EMIF for the SDRAM (CE0) and daughter
card expansion interface (CE2 and CE3). The Flash is attached to CE1 of the EMIF in 8-bit mode. An on- board
AIC23 codec allows the DSP to transmit and receive analog signals. McBSP0 is used for the codec control
interface and McBSP1 is used for data. Analog audio I/O is done through four 3.5mm audio jacks that
correspond to microphone input, line input, line output and headphone output. The codec can select the
microphone or the line input as the active input. The analog output is driven to both the line out (fixed gain) and
headphone (adjustable gain) connectors. McBSP1 can be re-routed to the expansion connectors in software. A
programmable logic device called a CPLD is used to implement glue logic that ties the board components
together. The CPLD has a register based user interface that lets the user configure the board by reading and
writing to the CPLD registers. The registers reside at the midpoint of CE1. The DSK includes 4 LEDs and 4 DIP
switches as a simple way to provide the user with interactive feedback. Both are accessed by reading and writing
to the CPLD registers. An included 5V external power supply is used to power the board. On-board voltage
regulators provide the 1.26V DSP core voltage, 3.3V digital and 3.3V analog voltages. A voltage supervisor
monitors the internally generated voltage, and will hold the board in reset until the supplies are within operating
specifications and the reset button is released. If desired, JP1 and JP2 can be used as power test points for the
core and I/O power supplies. Code Composer communicates with the DSK through an embedded JTAG
emulator with a USB host interface. The DSK can also be used with an external emulator through the external
JTAG connector.
Code Composer is the DSP industry's first fully integrated development environment (IDE) with DSP-specific
functionality. With a familiar environment liked MS-based C++TM, Code Composer lets you edit, build , debug,
profile and manage projects from a single unified environment. Other unique features include graphical signal
analysis, injection/extraction of data signals via file I/O, multi-processor debugging, automated testing and
customization via a C interpretive scripting language and much more.
Before opening the CCS make sure that the hardware setup is ready. Connect the JTAG emulator to the board
to the pin J6 and other end of the cable to your host system give the power supply using that adaptor which
comes with the board. Double Click the icon.
CREATING THE TARGET:
If any .ccxml file already exists delete it then right click on the created target SET AS DEFAULT and click
on LAUNCH SELECTED CONFIGURATION.
After launching click on the CONNECT TARGET icon which is shown in above Fig. Wait some movement it
automatically opens the console window there it shows some message about the target, memory map,
pll and frequency. Now the target is ready for programming.
The above Fig shows after click of Finish, Now type your C program in the main.c workspace If you want to
add any other files to your project right click on SUM in the left side PROJECT EXPLORER window then
NEW – SOURCE, HEADER, FILES
TO BUILD
PROJECT – BUILD PROJECT
TO LOAD AND RUN
RUN – LOAD – LOAD PROGRAM – BROWSE PROJECT
After clicking browse project expand the SUM – DEBUG – SUM. out the click OK and OK To run the
Program RUN – RESUME
The console window shows the output.
To generate impulse response using DSK-6713 processor Kit:
'C’ Program to Implement Impulse response:
#include <stdio.h>
#define Order 2
#define Len 10
float y[Len]={0,0,0},sum;
main()
{
int j,k;
float a[Order+1]={0.1311, 0.2622, 0.1311};
float b[Order+1]={1, -0.7478, 0.2722};
for(j=0;j<Len;j++)
{
sum=0;
for(k=1;k<=Order;k++)
{
if((j-k)>=0) sum=sum+(b[k]*y[jk]);
}
if(j<=Order)
{
y[j]=a[j]-sum;
}
else
{
y[j]=-sum;
}
printf("Response[%d] = %f\n",j,y[j]);
}
}
PROCEDURE:
Open Code Composer Studio, make sure the DSP kit is turned on.
Make the target configuration from FILE – NEW – TARGET CONFIG
Launch and connect the target with your pc.
To make a project FILE – NEW – PROJECT create the project by the way which given previously.
Type the C program in the project work space and save.
After creating the source file build the project.
Then load the (.OUT) file.
Run the program using the menu RUN – RESUME.
To view the graph TOOLS – GRAPH – SINGLE TIME and vie