ccstudio intr0duction
TRANSCRIPT
-
8/17/2019 ccstudio intr0duction
1/16
INTRODUCTION TO DSP PROCESSORS
A digital signal processor (DSP) is an integrated circuit designed for high-speed
data manipulations, and is used in audio, communications, image manipulation, and other data-
acquisition and data-control applications. The microprocessors used in personal computers are
optimized for tasks inoling data moement and inequalit! testing. The t!pical applications
requiring such capa"ilities are #ord processing, data"ase management, spread sheets, etc. $hen
it comes to mathematical computations the traditional microprocessor are deficient particularl!
#here real-time performance is required. Digital signal processors are microprocessors
optimized for "asic mathematical calculations such as additions and multiplications.
Fixed versus Floating Point:
Digital Signal Processing can "e diided into t#o categories, fi%ed po int and
floating point #hich refer to the format used to store and manipulate num"ers #ithin the deices.
&i%ed point DSPs usuall! represent each num"er #ith a minimum of ' "its, although a different
length can "e used. There are four common #a!s that these ' i,e., *,*+ possi"le "it patterns
can represent a num"er. n unsigned integer, the stored num"er can take on an! integer alue
from to *,*+*, signed integer uses t#os complement to include negatie num"ers from -
+,/0 to +,//. $ith unsigned fraction notation, the *,*+ leels are spread uniforml!
"et#een and ' and the signed fraction format allo#s negatie num"ers, equall! spaced
"et#een -' and '.
The floating point DSPs t!picall! use a minimum of + "its to store each alue. This 12S34Ts
in man! more "it patterns than for fi%ed point, + i,e., 5,65,6/,6 to "e e%act. All floating
point DSPs can also handle fi%ed point num"ers, a necessit! to implement counters, loops, and
signals coming from the AD7 and going to the DA7. 8o#eer, this doesnt mean that fi%ed point
math #ill "e carried out as quickl! as the floating point operations9 it depends on the internal
architecture.
C versus Assembly:
DSPs are P1:;1A
-
8/17/2019 ccstudio intr0duction
2/16
usuall! assem"l! or 7. P1:;1A
-
8/17/2019 ccstudio intr0duction
3/16
C$x: The 7% deices feature @elociT , an adanced er! long instruction #ord (@4$)
architecture deeloped "! Te%as nstruments. 2ight functional units, including t#o multipliers
and si% arithmetic logic units (A43s), proide '
-
8/17/2019 ccstudio intr0duction
4/16
INTRODUCTION TO TMS 320 C6713 DSK
The highBperformance "oard features the T
-
8/17/2019 ccstudio intr0duction
5/16
The DSC is 3S? port interfaced platform that allo#s to efficientl! deelop and testapplications for the 7/'+. $ith e%tensie host P7 and target DSP soft#are support, the DSC
proides ease-of- use and capa"ilities that are attractie to DSP engineers.
The /'+ DSP Starter C it (DSC) is a lo#-cost platform #hich lets customers ealuate and
deelop applications for the Te%as nstruments 7/ DSP famil!.
The primar! features of the DSC are=
E*
-
8/17/2019 ccstudio intr0duction
6/16
and data on-chip. 2%ternal accesses are done through the 2
-
8/17/2019 ccstudio intr0duction
7/16
The DSC has 5 light emitting diodes (42Ds) and 5 DP s#itches that allo# users to interact #ith
P1:;1A
-
8/17/2019 ccstudio intr0duction
8/16
E$hen !ou connect !our DSC through 3S? for the first time on a $indo#s loaded P7 the ne#
hard#are found #izard #ill come up. So, nstall the driers (The 77S 7D contains the require
driers for 7/'+ DSC). Enstall the 77S soft#are for 7/'+ DSC.
Trou"leshooting DSC 7onnectiit! f 7ode 7omposer Studio D2 fails to configure !our port
correctl!, perform the follo#ing steps=Test the 3S? port "! running DSC Port test from the start menu
3se Start EP1:;1A
-
8/17/2019 ccstudio intr0duction
9/16
INTRODUCTION TO CODE COMPOSER STUDIO
7ode 7omposer is the DSP industr!s first full! integrated deelopment enironment (D2) #ith
DSP-specific functionalit!. $ith a familiar enironment liked
-
8/17/2019 ccstudio intr0duction
10/16
ntegrated editor
&ile G:, Pro"e Points, and graphical A4;:1T8< scope pro"es
Adanced graphical signal anal!sis
nteractie profilingAutomated testing and customization ia scripting
@isual proHect management s!stem
7ompile in the "ackground #hile editing and de"ugging
-
8/17/2019 ccstudio intr0duction
11/16
Now *e *r!e* i. +o* co++ec*e, i+ or,er *o co++ec* De/!co++ec*
. To create proHect, ProHect K >e#
3' ;ie proHect name and click on finish.
-
8/17/2019 ccstudio intr0duction
12/16
5. 7lick on &ile E >e# ESource &ile, To #rite the Source 7ode
2nter the source code and sae the file #ith L.7M e%tension.
*. To add the c P1:;1A< to the proHect
ProHect K Add files to proHectK Nsource fileO
. To add rts/.li" to the proHect
ProHect K Add files to proHect K rts/.li"Path = 7=77studiocli"rts/.li"
>ote= Select :"Hect Q li"rar! files (R.o, R.l) in T!pe of file
-
8/17/2019 ccstudio intr0duction
13/16
/. To add hello.cmd to the proHect
ProHect K Add files to proHect K hello.cmd
Path= 7=77studiotutorialdsk/'+hello'hello.cmd
>ote= Select 4inker command file (R.cmd) in T!pe of file
0. To compile ProHect K 7ompile file ( or use icon or ctrlJ&/ )
6. To "uild or link ProHectK "uild (or use &/ ) (#hich #ill create a .out file in proHect folder)
'. To load the P1:;1A
-
8/17/2019 ccstudio intr0duction
14/16
This #ill load our P1:;1A< into the "oard.
''.To run the P1:;1A<
De"ug K 1un
'. :"sere the :3TP3T in :3TP3T #indo#.
'+. To see the ;raph go to @ie# and select timeGfrequenc! in the ;raph,
And gie the correct Start address proided in the P1:;1Ae# pull do#n menu, sae it in a separate director!
(7=
+. 7reate a ne# source file using
&ileE-O >e#-O Source file menu and sae it in the proHect folder (linearcon.c)
5. Add the source file (linearcon.c) to the proHect
ProHectE-O Add files to ProHect-O Select linearcon.c
*. Add the linker command file hello.cmd
ProHectE-OAdd files to ProHect (path= 7=77studiotutorialdsk/'+hellohello.cmd)
. Add the run time support li"rar! file rts/.li" ProHectE-OAdd files to ProHect (path=
777Studiocgtoolsli"rts/.li")
/. 7ompile the P1:;1A< using
proHect-O 7ompile menu or "! 7trlJ&/
0. ?uild the P1:;1A< using
proHectE-O ?uild menu or "! &/
6. 4oad the linearcon.out file (from proHect folder lcconDe"ug) using &ile-O 4oad
P1:;1A<
'. 1un the P1:;1A< using
-
8/17/2019 ccstudio intr0duction
15/16
De"ug-O 1un or &*
''. To ie# the :3TP3T graphicall!
Select @ie#-O ;raphE-O Time and &requenc!
'. 1epeat the steps to '' for square #ae
GG 4inear conolution P1:;1A< in c language using 77 Studio
UincludeNstdio.hO
int%V'*W,hV'*W,!V'*W9
main()
X
int i,H,m,n9
printf(Yn enter alue for mY)9
scanf(YZdY,Qm)9
printf(Yn enter alue for nY)9
scanf(YZdY,Qn)9
printf(Y2nter alues for iGp %(n)=nY)9
for(i[9iNm9iJJ)scanf(YZdY,Q%ViW)9
printf(Y2nter @alues for iGp h(n) nY)9
for(i[9iNn9 iJJ)scanf(YZdY,QhViW)9
GG padding of zeros for(i[m9iN[mJn-9iJJ)%ViW[9
for(i[n9iN[mJn-'9iJJ)hViW[9
GR conolution operation RG
for(i[9iNmJn-'9iJJ)X
!ViW[9
-
8/17/2019 ccstudio intr0duction
16/16
for(H[9HN[i9HJJ)
X
!ViW[!ViWJ(%VHWRhVi-HW)9\
\
GGdispla!ing the oGp for(i[9iNmJn-'9iJJ)
printf(Yn The @alue of :3TP3T !VZdW[ZdY,i,!ViW)9
\
/,TP,T:
enter alue for m 5enter alue for n 52nter alues for iGp '+5 2nter @alues for n '+5
The @alue of :3TP3T !VW['The @alue of :3TP3T !V'W[5The @alue of :3TP3T !VW['The @alue of :3TP3T !V+W[The @alue of :3TP3T !V5W[*The @alue of :3TP3T !V*W[5The @alue of :3TP3T !VW['
PRECAUTIONS:
') S#itch :> the computer onl! after connecting 3S? ca"le and make sure the DSP kit is :>.
) Perform the diagnostic check "efore opening code composer studio.+) All the connections must "e tight.
.*S,(T:- Thus linear conolution of sequences is erified using 77 Studio.