0% found this document useful (0 votes)
19 views10 pages

Dap 9

Uploaded by

nileshmachhi148
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views10 pages

Dap 9

Uploaded by

nileshmachhi148
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

~v-\ ~ ~ IV fl~ ;

- 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
-

4. Click on Project tab of the menu ➔


Project- New CCS Project. ••
i• ((\l~• ·ofll< ,.......-.,.(r ic(.-·
a x
,t1llv N
r<1e ,,. .,,.,, 1v..;• ,..,.:\
.._, ~ w,,,te- 1441P

, -"- '·~
• 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.,... .

connection, choose - Spectrum Dig


J
onboard USB Emulator and Compile ital DSK_EVM-eZdsp
r version should be TI v7.4.18. Give
(filename). the project name
r::P~t<t 0 x,
\ Cr..tu nrw CCS Pni~t.
"c~' I
Tw9(t \ <IAltdcrtyptfobrtat>
v \.DSU71l
COl'ntt 1lon: , s,.ci ,-o,~ - VM•~ onbolrd US1 ~ '
- · . . _.... Dg(•E ,. - . .... - V••if:
C C67~( ICOOOCI
Projt<\ name: W_IAbVJ
-···- ----- ----- · -- - - - - - - - - -==
0 t'1e Jrfau~ lctrtic>n - i

Ccmpi!ti ,wo11 : ~ .1,.u


;;r.:~·,, - \
11'1"1.l MoJt..
• t.d-i1n<td slltin ll ,1,: IS

• Pnijtct tcmpllltS and tumpl u



1 l
r(J't '•11t1 '.N~ _ _ ___
v f'.c &npty PrcJtcb
,_ lo Empty Projt:t
·-· _ ···- ... ...• \
••,
Crt1tu 1n ·tmpl'! p•oj«t fuR; initi11i.:
tl,t wlt<ltd dc,.,c~ lht p<ojt<l
c,if~1 - •
WII cct!lJ,n
I
I ,n tmf'tr'rnain.,· JOUfct..filL
\ le Empty Project (.,..h m,,n.c)

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.

9. Run the code and observe the output in console


□ X

·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 :.- •
-

ting point, sampling rate Hz


as 128, dsp data type as 32 bit floa
11. Choose acquisition butter size
e 'x '. Use display datasize as 128
128 and start address as variable nam X
G11r~ Properties

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

Use De Value For Graph 1!J false

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;
}

b. Sine wave plot and its fft


# include <stJio.h>

. .
#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] );
}
}

Output of the welcome program


·-·----.--····--· ----·-·•--·-----·-· ··----:.X...C.:C.CJ:t_. - _ _ _ ,_¢_,,_,, - ----- ----

L
• .-. CC'S°"""11'C•,ll-·-u..¼~. .-.:.c.tr.....,•~~.!t..1t~·,s," (-...,iU"•Ce<UC.~tt·~IIJ• --- -- - - ~'

lift (;i,t :.:,._.. ~~,,,..-. .feel, g...,. k,-;:,ts 2{"~-


- 0 X L
~
\
~ i! '"' e ,Ir,, • ~• :• ' 7 '\'._ _3 - ... • ~ • - :-. ='""' '\, '"' " I;/; ~ • ,,• • 1

I .., :. ~.Lm.1:c:HC.~'!Q::-,u~ -~'-=·C-•.-.;c.e~,."Jl


.., ,.~ ~~1r.:r,o 0:;1tll CS4-l'tLA•tt.:I~ o,...p,;a,C ...~(r,,1,11,to.-:-..SIK<:4•:,- !\ulf..-ik~•
;;i. al,c;,t•):<:,,1\,alC,.C.¢00();:,.1 6 !..... Mocl'IC\~--f•.,_.,._ .~,
1 ,u•~•Jw] ·, ;;mu.-~.::...... !I
- ,
;.:•
.
I_
~ , - · :<JO
~:.~~;-. :s• ,-~ius~-~-
·'·"•····" · 1

[
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\
-

.90 •90 ·100 •110 •I"'


"'
.,. •SO .6()
-.,It •i'D
0 •lG '-'
•~• •.'O ...,

' Fl'lt lic11111 . LE

~• ~• ft..· I ,:,,:. ,;.f'-!j- 1$( 1:' " ~ • :.JI j h '<> "' ..


U

I - 1 eMtg"
1-..,t•
h.. r-_,. ·
~--J..,., h.. ··-~-
'1~-. , 'l
~
!• "' ;:•" ~ .., ..:,

/
I
I
I ! ' ' --, I
15 lO 25 45 so 55 EO
0 ! 10

·-- -~-- ------


Output of Linear Convolution:
-- -- -- -- --
e,on~ :~
llbl-00
---- -
1 ---
4
u
2e
25
2•
lf

1•

•• ······ . •••••• •······


L _ _....___ ·.,;riloblc
----.:..._
jsnunln,e<t 109:1

Cb n Jl--1£;...., : Th 11;, ei:x:p ev 1l'Yl ~ pv ov ,~ hu-n ~-o n v ep nie.n.u


w~~h 06K 5~CJ>clex, • ~;..i O:n ci Th 53lQCX, p-r o ~ Y /oy DS P

o.pr)rc.ul l'o~ . ~J ~~ vr \j w ~ '_, p \o\+1~ FFT.


an J • PC:T .fo '0'1 1' ~ ~ /Ul.vt., Conv~ lW to() J 've eocr,tor~
t

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
+

FOR EDUCATIONAL USE


wr

' I

FOR EDUCATIONAL USE


I
l
~ 'w
-

! "
-
~

-
- ()"('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

- - r-.. "'" 1'Jn, ,, .,.-J--f. t 1f\ \A. .1n


, . 1 . -
-J
'; I

.'
-
. .
1.~
.....,
J
f'\ I' ,.\.l'J OAn\
I /
/
/

' I I I
'
I
'
FOR EDUCA TIONAL USE
~
D sdilllla

You might also like