You are on page 1of 8

USM

MAN IN
NSTITU
UTE OF T
TECHN
NOLOGY
Y
HA
AMDARD
D UNIVE
ERSITY
DEPARTMEN
NT OF EL
LECTRICA
AL ENGIINEERIN
NG
DIGITAL
D
L SIGNAL
L PROCES
SSING (E
EE 404)
Engr..Farooq Zia
Engr..Waseem Zeeeshan
Engr..Atif Fareed
Engr..Syed Kazim
m Ali
Engr..Areeb Ahm
med

LAB # 15: GE
ENERAT
TING SIN
NE STER
REO SIG
GNAL US
SING
TM
MS320C6
6713 (DSK
K)

Name of Student: ___


____________
___________
________________________________________

Roll No.: __________


____________
_______

E
Date of Experiment

Group: ________________________________

: ________
____________
_______________________________________

ubmitted on : ________
____________
_______________________________________
Report Su

Marks Obtained

: ______
______________________________________

Remarks if any

: ______
______________________________________

Signaturee

: ______
______________________________________

Objectiive:
To generaate a sinusoid
d stereo signaal and plottin
ng it with Coode Composeer Studio (sinne_stereo)

Requirements:

C6713
C
DSK(D
DSP Starter Kit)
K and its su
upport tools
Code
C
Composser Studio (C
CCS)
Head
H
phones/ Speaker

Procedure:

Connect
C
DSK
K C6713 boaard to the US
SB port of PC
C and give +
+5V supply tto the board.
Perform the diagnostic
d
an
nd quick testts of DSK.

QUICK TEST OF DSK


D

On
O power, a program
m post.c (Power On Self- Test), stored in onboard fl
flash
memory,
m
usees the boarrd supportt library (B
BSL) to test the DSK
K. It tests the
in
nternal, external, and flash memo
ories, the tw
wo multichaannel buffeered serial pports
(M
McBSP), diirect memo
ory access (DMA), thhe onboard
d codec, and the LED
Ds. If
alll tests are successful,
s
all
a four LED
Ds blink threee times andd stop (with
h all LEDs on).
During
D
the teesting of thee codec, a 1-kHz
1
tone iis generated
d for 1 sec.

Launch
L
CCS from the iccon on the desktop.
d
AU
USB enumeeration proceess takes pllace
Connect
C
the DSK
D
by seleccting Debug
Connect.

Then
T
CCS will
w be open
ned and thee LEDs w i l l turn off. Click on GE
EL t h e n Chheck
DSK
D
then Quick
Q
Test. The quick test can bbe used forr confirmation of corrrect
o peration an
nd installatiion. The following messsage is thenn displayed:
Switches: 15
Board
B
Revisiion: 1
CPLD
C
Revission: 2
Create
C
New Project
P
by Prroject New
w Project

A new windo
ow will open
n for creating
g a new projeect. Set the ttarget and naame the project
acccording to the
t task.

Now
N copy alll the provideed header, lib
brary files inn support ffolder (i.e.
C:\CCStudio_
C
_v3.1\MyPro
ojects\suppo
ort
Copy
C
the sourrce file sinee_stereo.c in
i the folder where the pproject is loccated (i.e.
C:\CCStudio_
C
_v3.1\MyPro
ojects\sine_sstereo).
Now
N create a folder Deb
bug in the same folder w
where sine__stereo projject is locateed
(ii.e. C:\CCSttudio_v3.1\M
MyProjects\ssine_stereo)..
Now,
N
add sou
urce file (*.cc) to source folder,
f
headeer files (*.h) to include ffolder, libraryy
fiiles (*.lib) to
o libraries folder.

Now
N go to Prroject Scan
n All File Dependenciess

Now
N go to Prroject Builld Options
Compiler aand set all thhe parameterrs according to
th
he picture beelow.

Now
N define th
he Include Search
S
Path (-i)
( where thhe entire headder files (*.hh) are locatedd and
define Pre-Deefine Symbo
ol (-d)

Now
N go to Prroject Builld Options
Linker andd set the paraameters as shhown in the
ab
bove picturee.
Now
N go to Prroject Builld.

Select File Load Prograam in order to load sinee_stereo.outt on the DSK.

Connect
C
a speeaker to the HEADPHONE/LINE O
OUT connecttor on the DS
SK.
Select Debug
g Run.
A sine stereo tone can be heard on thee speaker/heeadphones. IIf not, check the errors annd
reepeat the pro
ocess.
Now
N to plot the
t sine stereeo signal go to View G
Graph Tim
me/Frequenccy. Set the
parameters fo
or the graph.

Q.
Q.
Q.
Q.

ng the task how do u distinguish s ine and sinee stereo sign


nal?
Afteer performin
Is th
here any posssibility to plot
p a squarre wave usin
ng CSS?
Wha
at could hap
ppen if the library
l
path
hs are not d
defined in th
he linker?
Wheere is the sig
gnificance (*.out)
(
file?

You might also like