8/12/2019 Aim Theory Procedure
1/17
IR ULAR ONVULUTIONAIM:
To find circular convolution of two sequence by TMS320C6713 DSP it usin! code co"#oser studio
REQUIREMENT
CCS v 3$3
TMS320C6713 KIT
%S& Cable
'( )da#ter
Circular convolution b conc!ntric circl! "!t#o$:
1$ *ra#+ , sa"#les of -1.n/ as equally s#aced #oints around an outer circle in counter clocwise direction$
2$ Start at t+e sa"e #oint as -1.n/ !ra#+ , sa"#les of -2.n/ as equally s#aced #oints around an inner circle inclocwise direction
3$ Multi#ly corres#ondin! sa"#les on t+e 2 circles and su" t+e #roducts to #roduce out#ut
$ otate t+e inner circle one sa"#le at a ti"e in counter clocwise direction$ )nd !oto to ste#3 to obtain ne-t value
of out#ut$
'$ e#eat ste# until t+e inner circle 1stsa"#le lines u# wit+ t+e 1 stsa"#le on e-terior circle once a!ain$
%R&CE'URE:
#en Code Co"#oser Studio "ae sure t+e DSP it is turned on$
Start a new #ro4ect usin! 5Pro4ectnew 5 #ull down "enu save it in a se#arate directory.c8ti8"y#ro4ects/ wit+
na"e cir conv()*t(
)dd t+e source files Circular Convolution(C to t+e #ro4ect usin! 5Pro4ect add files to #ro4ect9 #ull down "enu$
)dd t+e liner co""and file #!llo(c"$ $.Pat+ c8ti8tutorial8ds67138+ello18+ello$c"d/
)dd t+e run ti"e su##ort library file rt+6700(lib .Pat+ c8ti8c60008c!tools8lib8rts6700$lib/
Co"#ile t+e #ro!ra" usin! t+e 5Pro4ectco"#ile9 #ull down "enu or by clicin! t+e s+ortcut icon on t+e left side
of #ro!ra" window$
&uild t+e #ro!ra" usin! t+e 5Pro4ect&uild9 #ull down "enu or by clicin! t+e s+ortcut icon on t+e left side of
#ro!ra" window$
8/12/2019 Aim Theory Procedure
2/17
:oad t+e #ro!ra".cir conv$out/ in #ro!ra" "e"ory of DSP c+i# usin! t+e 5;ileload #ro!ra"9 #ull down "enu$
C&NC,USI&N
T+us t+e circular convolution out#ut sequence is obtained usin! DSP c+i# TMS320C6713 usin!
code co"#oser studio
8/12/2019 Aim Theory Procedure
3/17
AUTO ORRELATIONAIM
To #erfor" t+e Auto Corr!lationof a !iven discrete sequence inTMS320C6713 KIT(
REQUIREMENT
CCS v 3$3
TMS320C6713 KIT
%S& Cable
'( )da#ter
T-E&R.
Auto corr!lationis t+e cross correlation of a si!nal wit+ itself$
8/12/2019 Aim Theory Procedure
4/17
%R&CE'URE:
#en Code Co"#oser Studio "ae sure t+e DSP it is turned on$
Start a new #ro4ect usin! 5Pro4ectnew 5 #ull down "enu save it in a se#arate directory.c8ti8"y#ro4ects/ wit+
na"e autocorr()*t(
)dd t+e source files autocorr(C to t+e #ro4ect usin! 5Pro4ect add files to #ro4ect9 #ull down "enu$
)dd t+e liner co""and file #!llo(c"$ $.Pat+ c8ti8tutorial8ds67138+ello18+ello$c"d/
)dd t+e run ti"e su##ort library file rt+6700(lib .Pat+ c8ti8c60008c!tools8lib8rts6700$lib/
Co"#ile t+e #ro!ra" usin! t+e 5Pro4ectco"#ile9 #ull down "enu or by clicin! t+e s+ortcut icon on t+e left side
of #ro!ra" window$
&uild t+e #ro!ra" usin! t+e 5Pro4ect&uild9 #ull down "enu or by clicin! t+e s+ortcut icon on t+e left side of
#ro!ra" window$
:oad t+e #ro!ra".autocorr$out/ in #ro!ra" "e"ory of DSP c+i# usin! t+e 5;ileload #ro!ra"9 #ull down "enu$
C&NC,USI&N
T+us t+e autocorrelation out#ut sequence is obtained usin! DSP c+i# TMS320C6713 usin! code
co"#oser studio
8/12/2019 Aim Theory Procedure
5/17
ROSS ORRELATIONAIM
To #erfor" t+e Cro++ Corr!lation o/ to iv!n $i+cr!t! +!u!nc! in TMS320C6713 it$
REQUIREMENT
CCS v3$3
TMS320C6713 KIT
%S& Cable
'( )da#ter
T-E&R.
?+ere f @ denotes t+e co"#le- con4u!ate of f$
Si"ilarly for discrete functions t+e cro++4corr!lationis defined as
T+e cro++4corr!lationis si"ilar in nature to t+e convolution of two functions$
ss
8/12/2019 Aim Theory Procedure
6/17
%R&CE'URE:
#en Code Co"#oser Studio "ae sure t+e DSP it is turned on$
Start a new #ro4ect usin! 5Pro4ectnew 5 #ull down "enu save it in a se#arate directory.c8ti8"y#ro4ects/ wit+
na"e cro++corr()*t(
)dd t+e source files Cro++corr(C to t+e #ro4ect usin! 5Pro4ect add files to #ro4ect9 #ull down "enu$
)dd t+e liner co""and file #!llo(c"$ $.Pat+ c8ti8tutorial8ds67138+ello18+ello$c"d/
)dd t+e run ti"e su##ort library file rt+6700(lib .Pat+ c8ti8c60008c!tools8lib8rts6700$lib/
Co"#ile t+e #ro!ra" usin! t+e 5Pro4ectco"#ile9 #ull down "enu or by clicin! t+e s+ortcut icon on t+e left side
of #ro!ra" window$
&uild t+e #ro!ra" usin! t+e 5Pro4ect&uild9 #ull down "enu or by clicin! t+e s+ortcut icon on t+e left side of#ro!ra" window$
:oad t+e #ro!ra".crosscorr$out/ in #ro!ra" "e"ory of DSP c+i# usin! t+e 5;ileload #ro!ra"9 #ull down "enu$
C&NC,USI&N
T+us t+e crosscorrelation out#ut sequence is obtained usin! DSP c+i# TMS320C6713 usin! code
co"#oser studio
8/12/2019 Aim Theory Procedure
7/17
GENERATION OF SQUARE WAVEAIM
To *enerate a Suar! av! /or" u+in TMS320C6713 'S% KIT$
REQUIREMENT
CCS v
TMS320C6713 KIT
%S& Cable
'( )da#ter
T-E&R.
Suar! av!++ave an interestin! "i- of #ractice and t+eory$
8/12/2019 Aim Theory Procedure
8/17
%R&CE'URE:
#en Code Co"#oser Studio "ae sure t+e DSP it is turned on$
Start a new #ro4ect usin! 5Pro4ectnew 5 #ull down "enu save it in a se#arate directory.c8ti8"y#ro4ects/ wit+
na"e +uar!()*t(
)dd t+e source files +uar!(C to t+e #ro4ect usin! 5Pro4ect add files to #ro4ect9 #ull down "enu$
)dd t+e liner co""and file #!llo(c"$ $.Pat+ c8ti8tutorial8ds67138+ello18+ello$c"d/
)dd t+e run ti"e su##ort library file rt+6700(lib .Pat+ c8ti8c60008c!tools8lib8rts6700$lib/
Co"#ile t+e #ro!ra" usin! t+e 5Pro4ectco"#ile9 #ull down "enu or by clicin! t+e s+ortcut icon on t+e left side
of #ro!ra" window$
&uild t+e #ro!ra" usin! t+e 5Pro4ect&uild9 #ull down "enu or by clicin! t+e s+ortcut icon on t+e left side of
#ro!ra" window$
:oad t+e #ro!ra".square$out/ in #ro!ra" "e"ory of DSP c+i# usin! t+e 5;ileload #ro!ra"9 #ull down "enu$
C&NC,USI&N
T+us a square wave is !enerated usin! DSP c+i# TMS320C6713 usin! code co"#oser studio
8/12/2019 Aim Theory Procedure
9/17
8/12/2019 Aim Theory Procedure
10/17
%R&CE'URE:
#en Code Co"#oser Studio "ae sure t+e DSP it is turned on$
Start a new #ro4ect usin! 5Pro4ectnew 5 #ull down "enu save it in a se#arate directory.c8ti8"y#ro4ects/ wit+
na"e lconv()*t(
)dd t+e source files ,in!arConvolution(C to t+e #ro4ect usin! 5Pro4ect add files to #ro4ect9 #ull down "enu$
)dd t+e liner co""and file #!llo(c"$ $.Pat+ c8ti8tutorial8ds67138+ello18+ello$c"d/
)dd t+e run ti"e su##ort library file rt+6700(lib .Pat+ c8ti8c60008c!tools8lib8rts6700$lib/
Co"#ile t+e #ro!ra" usin! t+e 5Pro4ectco"#ile9 #ull down "enu or by clicin! t+e s+ortcut icon on t+e left side
of #ro!ra" window$
&uild t+e #ro!ra" usin! t+e 5Pro4ect&uild9 #ull down "enu or by clicin! t+e s+ortcut icon on t+e left side of#ro!ra" window$
:oad t+e #ro!ra".lconv$out/ in #ro!ra" "e"ory of DSP c+i# usin! t+e 5;ileload #ro!ra"9 #ull down "enu$
C&NC,USI&N
T+us t+e linear convolution out#ut sequence is obtained usin! DSP c+i# TMS320C6713 usin!
code co"#oser studio
8/12/2019 Aim Theory Procedure
11/17
DFTAIM
To #erfor" t+e ; )oint '
8/12/2019 Aim Theory Procedure
12/17
%R&CE'URE:
#en Code Co"#oser Studio "ae sure t+e DSP it is turned on$
Start a new #ro4ect usin! 5Pro4ectnew 5 #ull down "enu save it in a se#arate directory.c8ti8"y#ro4ects/ wit+
na"e $/t()*t(
)dd t+e source files $/t(C to t+e #ro4ect usin! 5Pro4ect add files to #ro4ect9 #ull down "enu$
)dd t+e liner co""and file #!llo(c"$ $.Pat+ c8ti8tutorial8ds67138+ello18+ello$c"d/
)dd t+e run ti"e su##ort library file rt+6700(lib .Pat+ c8ti8c60008c!tools8lib8rts6700$lib/
Co"#ile t+e #ro!ra" usin! t+e 5Pro4ectco"#ile9 #ull down "enu or by clicin! t+e s+ortcut icon on t+e left side
of #ro!ra" window$
&uild t+e #ro!ra" usin! t+e 5Pro4ect&uild9 #ull down "enu or by clicin! t+e s+ortcut icon on t+e left side of
#ro!ra" window$
:oad t+e #ro!ra".dft$out/ in #ro!ra" "e"ory of DSP c+i# usin! t+e 5;ileload #ro!ra"9 #ull down "enu$
C&NC,USI&N
T+us t+e D;T out#ut sequence is obtained usin! DSP c+i# TMS320C6713 usin! code co"#oser
studio
8/12/2019 Aim Theory Procedure
13/17
IDFTAIM
To #erfor" t+e I'
8/12/2019 Aim Theory Procedure
14/17
%R&CE'URE:
#en Code Co"#oser Studio "ae sure t+e DSP it is turned on$
Start a new #ro4ect usin! 5Pro4ectnew 5 #ull down "enu save it in a se#arate directory.c8ti8"y#ro4ects/ wit+
na"e I$/t()*t(
)dd t+e source files I'
8/12/2019 Aim Theory Procedure
15/17
C&NC,USI&N
T+us t+e s
i"#ulse res#onse we can i""ediately now +ow it will react to any i"#ulse$
8/12/2019 Aim Theory Procedure
16/17
%R&CE'URE:
#en Code Co"#oser Studio "ae sure t+e DSP it is turned on$
Start a new #ro4ect usin! 5Pro4ectnew 5 #ull down "enu save it in a se#arate directory.c8ti8"y#ro4ects/ wit+na"e i")ul+!=r!+)on+!()*t(
)dd t+e source files i")ul+!=r!+)on+!(C to t+e #ro4ect usin! 5Pro4ect add files to #ro4ect9 #ull down "enu$
)dd t+e liner co""and file #!llo(c"$ $.Pat+ c8ti8tutorial8ds67138+ello18+ello$c"d/
)dd t+e run ti"e su##ort library file rt+6700(lib .Pat+ c8ti8c60008c!tools8lib8rts6700$lib/
Co"#ile t+e #ro!ra" usin! t+e 5Pro4ectco"#ile9 #ull down "enu or by clicin! t+e s+ortcut icon on t+e left side
of #ro!ra" window$
&uild t+e #ro!ra" usin! t+e 5Pro4ect&uild9 #ull down "enu or by clicin! t+e s+ortcut icon on t+e left side of
#ro!ra" window$
:oad t+e #ro!ra".i"#ulseres#onse$out/ in #ro!ra" "e"ory of DSP c+i# usin! t+e 5;ileload #ro!ra"9 #ull
down "enu$
8/12/2019 Aim Theory Procedure
17/17
C&NC,USI&N
T+us t+e i"#ulse res#onse out#ut sequence is obtained usin! DSP c+i# TMS320C6713 usin!
code co"#oser studio