Dap 9
Dap 9
- f-l6
.....,., -'
,\'1; Dli O1-')_ ').. 0 o ~ ~
Experiment No. 09
Title: DSP Processor TMS320C67 l 3 DSK
Aim: To undentand the use of OSK 6713 kit for digital signal
processing.
Objective:
1. To write a code on the DSK board
2. To plot the sine wave and find its FTT using TMS320C6713 OSK
3. To calculate convolution using TMS320C6713 OSK
Hardware required: TMS320C6713 OSK Board
Software required: Code Composer Studio v6
Theory:
Students have to write the answers of the following questions.
Q1. Compare fixed point and floating-point DSP processor.
Q2. Distinguish between Harvard Architecture and Von Neum
ann Architecture
Q3. Explain Architecture ofTMS320CX fixed and floating DSP
processors with neat block
schematics
Procedure:
l. Connect power supply to the TMS320C67 l 3 OSK board
2. Connect J-TAG to USB cable to computer system (PC)
3. Start Code Compose Studio
~- --- --- --- --- --- --- --- --- -,
,.•~ C'CSldit•(o4 t(:mPMtrSw fte
- 0 X
Alt Ult 'J~ kMf'" Ptc:Jtct ~ S<f\J'U \lf1r1dcir. ~
,. • 1::3 . -:i~ 'I)•',,,. ·'·. ,;,• • [~.,,-.-,."·• ,• :c I ;zccsliil "9c~-.,
-6~b~ ~ ..{ 5 ~ 7 -. ~
~fhi_;,;,; -\j,;ttw • ~ - ':l
P'"''
.'!llltZ
.Jw
-
, -"- '·~
• I I
r'1 • I;) <I,.• t., Mf,C .0~1
- 0
'- .,.,1',d,,.,.., I b--. .
,,.... .,..1 ..11,,
W:0,..,.0
' " lf'J\
.,, .......
\; let2
u ... ......,~,
...-..w ~\ll
...... ~
.
, ,,.,..,..-·1;
~_......,
CIUJ\..
\
S>.. ..WI ~
.\
.Joli u
lfflC1otli •
;;;j 'fflPO'I CC\ P,Of«II-
. 1,,.,.,n....,.cci.1.l"-i,<\1-
, . i,.....l ft911 1~
--~""'.....~ · I
S. Select DSK6713 as Target. For
C,C"'• " -
Pr.,... .
I
' 1.ii, E.mF')I Astemblf·only Pnijtct
\ lo (mpty 1ml Project
v F. 811ic EXJmplts
tc, HtlloVlorld
\
\
!-- __ _ j
I
_____• ~~!t - - .. _.. ...
_ _,_ _~-f~ in _J_, _c_,n_ctl_
_
1
6. Write a code inc language
L ♦
• ·J
7. Add the necessary library files as right Click on the active project and select ..Show Built
Settings..". It will pop up properties windows. Browse c67 l3.cmd file for linker command
=
files.
,, ~... ,..,_ -· ----
. ·-
,..___
--
... ,_ ,. ·- -· -
• - • C
.r:-=·~-
:.,:. -·
,:.:;-, :~ ....-~
-·.
-~ r..•• -
.:. I
6-: --
8. Build the code using ..hammer'' symbol (the active project is build). Then click on ..bug"
symbol to debug the code and upload in the RAM oftbe DSK 6713 Board.
·r.
jc,,._._.:...:u j. n\WC.<.Sf• "CC\~
-- ::,
WI
I C)C,o,.., ;
c~~•~?..!._ --
~}:;K6'7lll:
- - --~
G!l OUt:~ut: 6f. StartUp
-
C~hte.
-
I
I
• C
! .•. ~~=c,..., ·:
~ c""c.rL; .-;•r"'·r;: V ct:h,e,,
I Ott:n,t,,cn (ncurn lC<rtl~n
• '11';,rnn91-,2it..-,11j
h from Tools menu. It will pop up
. gram choose tool as grap
'
10. To see the graphs for sme pro
window for graph properties.
I .... • - • - Q
.-..
I -
--·-
:-.:::- -
#-
• /
l ,--·I :. - •
I :.- •
-
Prcpt,ty V,lue
• v Data Properties
Acquisition Buffer Size 128
Dsp Dita Type 32 bit floating point
indu Increment I I
I
ClVll ut 0
S,mFling R,te Hz 11a
Sllrt Addrt il 0
" D11pl,y Properties
-tutoSult 0ttue
Allis D1spl1y l,d but
D,t, P101 Style
Displ,y Dau Sitt
Grid St}it No G •
Magnitude DiJpl1;1 Salt Lin r
Timt Oispl,y Unit I pie
r
I
I.
!
Expo,t OK C~n~el (
I lmpo,t
l
I, • .,. • • ,.T. •
Codes:
a_ Welcome program
"'mni11.c
#inclu~e< tdio.h>
int main -oid) {
r")·
rintft"Welcome to DSP Processo '
return O;
}
. .
#include<m ath.h>
#define Pl 3.14
#define PTS 128
float x[PTS];
void main() { -
int i;
for (i = 0; i<PTS; i++){
x[i] = sio(2*Pl*i*2 0/128.0);
-
-
c. Linear convolutio n -
/* -
• main.c
-
I
I
*/
#include< stdio.h>
#define LENGTH1 6
#define LENGTH2 4
int x[2*LENG TH1-1]={ 1,2,3,4,0,0 ,0,0,0};
int h[2*LENG TH1-1]={ 1,2,3,4,0,0 ,0,0,0};
/ r
int y[LENGTH1+LENGTH2-1];
int main(void ) {
int i,j;
for(i=0;i<( LENGTH1 +LENGTH 2-l);i++){
y[i]=0;
for(j=0;j <=i;j++)
y[i]+=x[ j]*h[i-j];
}
for(i=0;i<( LENGTH1 +LE GTH2-l);i ++){
printf("% d\n",y[i] );
}
}
L
• .-. CC'S°"""11'C•,ll-·-u..¼~. .-.:.c.tr.....,•~~.!t..1t~·,s," (-...,iU"•Ce<UC.~tt·~IIJ• --- -- - - ~'
[
Outputs for sine waYe and it's ffi are as
- - i, , ~ & • t$l • +, -=, &\ • I t~ ::/: er 1c ;ti: I 11 i .. ~H I ~
~~,~--· N'J\J'v~;VV\N\NV~i\
-
I - 1 eMtg"
1-..,t•
h.. r-_,. ·
~--J..,., h.. ··-~-
'1~-. , 'l
~
!• "' ;:•" ~ .., ..:,
/
I
I
I ! ' ' --, I
15 lO 25 45 so 55 EO
0 ! 10
J?Y O~ 8)-()~ Ct>-p ctl} lihteg i 1\ 'f CEA)- Hl'Yi.{. '5 Vi] 1'tlA 11 YO ~ i' ~
~ ,i~\-< N' MClGkh)
0 0008llJ.00 6'l
f-tao
f3-j_
' .
o C.o L
0~
~
FOR EDUCATIONAL USE
-'·----~----
-----------
0.1 .
0
+
' I
! "
-
~
-
- ()"('D_Crt. r,ro
QAH .I.,,
I I
,,
-
-
- /
7
'I 9
Ar-klY
- h,11..._
.
lYl}P'"tV1ri_l
- "V
-
/ 1',(r,.. \
......
C..1, l. a
-' !\,
~ \.\.-f\
u .......--a -,,
.._
/'\
~t)l 11,\
- - -
..I... ' I
\, J_
J
- ~
t:"..J.+
JJl n"' 4: 5eY'frtL ()N.( 1'"" . "'""
I ,- -
-
~/\r> f'LI Pi'- M, t1, th
- u -t..,. 'L ')
J
.. HA-,+ o/'.J.
-
-C.,4-n( _
u
/\tS - ~, -~ '
I
-. r;..o.1..m t 5' 1 '
- ~
I
/
V ....
nnn +-
,-/
1.f\ I j
-
/ -
LOnk- r1 t/~ C
- <, \JI I
,:;;-
',, 7 t\YY'\J .., a
-
I
-I
.'
-
. .
1.~
.....,
J
f'\ I' ,.\.l'J OAn\
I /
/
/
' I I I
'
I
'
FOR EDUCA TIONAL USE
~
D sdilllla