Professional Documents
Culture Documents
Experiment # 10
Performed on:
Student Name:
Roll Number: Section: E
Marks Obtained
Experiment evaluated by
Signature:
Required Equipment:
Software: Code Composer studio 3.1 and 6713 DSK Diagnostic tool
Hardware: TMS320C6713 DSP starter Kit (DSK) and Headphones
TI DSP Families:
Low cost, Fixed-Point, 16-bit (for control):
o TMS320C1x, ’C2x, ’C20x, ’C24x
Power Efficient, Fixed-Point, 16-Bit (for wireless phones and modems):
o ’C5x, ’C54x, ’C55x
High Performance DSP’s (DSL, Imaging, Video…):
o ’C62x, ’C64x (16-bit fixed-point)
o ’C3x, ’C4x,’ C67x (32-bit floating-point)
TI DSP Application:
DSK Features
Has a TMS320C6713 DSP operating
at 225 MHz.
VLIW (Very Long Instruction
Word) CPU Core that
takes
advantage of parallelism (ILP).
Fetches 8 32-bit instructions at once
(total of 256 bits).
AIC32 stereo codec line with Line
In, Line Out, MIC and headphone
jacks to interface with analog audio
signals that are sampled and
digitized so it can be processed by
DSP.
Use the USB cable to connect the DSK board to the USB port on the PC. Use the 5V power
supply included with the DSK package to connect to the +5 -V power connector on the DSK
to turn it on. The CCS icon should be on the desktop as “C6713DSK CCS” and is used to
launch CCS. The code generation tools (C compiler, assembler, and linker) are used
with CCS version3.1.
Launch CCS from the icon on the desktop. Then CCS will be opened and the LEDs will turn
off. Click on GEL then Check DSK then Quick Test. The quick test can be used for
confirmation of correct operation and installation. The following message is then displayed:
Switches:15
BoardRevision:1
CPLDRevision:2
Support Files:
The following support files located in the folder support (except the library files) are used for
most
of the examples and projects discussed in this book:
1. C6713 dsk init.c: contains functions to initialize the DSK, the codec, the serial ports,
and for I/O. It is not included with CCS.
2. C6713 dsk init.h: header file with function prototypes. Features, such as those used to
select them microphone input in lieu of line input (by default), input gain, and soon are
obtained from this header file (modified from a similar file included with CCS).
3. C6713dsk.cmd: sample linker command file. This generic file can be changed when
using external memory in lieu of internal memory.
Example #01: (Generation of 8kHz Sine wave using single DIP switch)
Creating a Project
This experiment illustrates how to create a project, adding the necessary files to generate
an executable file sine8_LED.out. a file named sine8_LED.pjt is already exist at
c:\CCStudio_v3.1\MyProjects\sine8_LED. However, for the purposes of gaining
familiarity with CCS, this experiment will illustrate how to create that project file from
scratch.
1. Launch CCS by double - clicking on its desktop icon.
5. Add the source file c6713dskinit.c to the project. This source file is stored in the
folder c:\CCStudio_v3.1\Myprojects\Support. Select Project→ Add
Files to Project and look for Files of Type C Source Files ( * .c, * .ccc). Open , or
double - click on,c6713dskinit.c . It should appear in the Project View window in
the Source folder.
9. No header files will be shown in the Project View window at this stage.
Selecting Project→ Scan All File Dependencies will rectify this. You
should now be able to see header files c6713dskinit.h, dsk6713.h, and
dsk6713_aic23.h , in the Project View window.
10. The Project View window in CCS should look as shown in Figure 2.
Verify from the Project View window that the project ( .pjt ) file, the linker
command ( .cmd ) file, the three library ( .lib ) files, the two C source ( .c )
files, and the assembly ( .asm ) file have been added to the project.
Figure 3: CCS Build Option: Basic compiler setting Figure 4: CCS Build Option: Advanced
compiler settings
1. Connect to the DSK . Select Debug→ Connect and check that the symbol in the
bottom left - hand corner of the CCS window indicates connection to the DSK.
2. Select File→ Load Program in order to load sine8_LED.out. It should be stored in
the folder c:\CCStudio_v3.1\MyProjects\sine8_LED\Debug. Select Debug→ Run.
In order to verify that a sinusoidal output waveform with a frequency of 1 kHz is
present at both the LINE OUT and HEADPHONE sockets on the DSK, when DIP
switch #0 is pressed down, use an oscilloscope connected to the LINE OUT socket
and a pair of headphones connected to the HEADPHONE socket
Lab Task:
Generate sinusoidal signals having frequencies 16, 32 and 96kHz using all four DIP switches
Hear the tones in DSP kit and give your comments
Write a program in MATLAB to generate a sinusoidal signal having frequencies of 8,16,32 and
96KHz. Compare these signals (on the basis of hearing) with above signal which generated in the
lab task