You are on page 1of 3

DIGITAL SIGNAL PROCESSING LAB

Lab # 10

Computation of Linear Convolution using DSK6713


AIM: To perform and verify linear convolution of two sequences using DSK6713.
SOFTWARE USED: C & CCSTUDIO IDE.
PROJECT NAME & PATH: J:/ece4a/XXXX/exp10
COMMANDS/FILES USED and their PATH:
1. rts6700.lib: C:\CCStudio_v3.1\C6000\cgtools\lib
2. hello1.cmd: C:\CCStudio_v3.1\tutorial\dsk6713\hello1
PROCEDURE:
1. Create the New Project: Project New (File Name. pjt , Eg: exm10.pjt)
2. Create a Source file: File New Type the code (Save & give file name, Eg:
linconv.c).
3. Add Source files to Project: Project Add files to Project linconv.c
4. Add rts.lib file: Project Add files to Project rts6700.lib
Path: C:\CCStudio_v3.1\c6000\cgtools\lib\rts6700.lib
Note: Select Object & Library in (*.o,*.l) in Type of files
5. Add hello.cmd file: Project Add files to Project hello.cmd
Path: C:\CCStudio_v3.1\tutorial\dsk6713\hello1\hello.cmd
Note: Select Linker Command file (*.cmd) in Type of files
6. Compile: To Compile: Project Compile
7. Build: Project build all,
which will create the final .out executable file.(Eg. exm10.out).
8. Load the program to DSK: File Load program exp10.out
9. Execute project: Debug Run.
10. Display the result as graph: View Graph Time/Frequency...
Set the various properties in the Graph Property Dialog Box as follows.

VVIT

ELECTRONICS & COMMUNICATION ENGINEERING

Page 1

DIGITAL SIGNAL PROCESSING LAB

PROGRAM:
/* prg to implement linear convolution */
#include<stdio.h>
int y[10]={0};
main()
{
int m,n,i,j,x[10]={0},h[10]={0};
printf("enter the input sequence n:");
scanf("%d",&n);
printf("enter the input sequence m:");
scanf("%d",&m);
for (i=0;i<n;i++)
{
printf("enter the values of x[%d]",i);
scanf("%d",&x[i]);
}
for (j=0;j<m;j++)
{
printf("enter the values of h[%d]",j);
scanf("%d",&h[j]);
}
for(i=0;i<m+n-1;i++)
{
y[i]=0;
for(j=0;j<=i;j++)
y[i]+=x[j]*h[i-j];
}
for(i=0;i<m+n-1;i++)
printf("%d\n",y[i]);
}

VVIT

ELECTRONICS & COMMUNICATION ENGINEERING

Page 2

DIGITAL SIGNAL PROCESSING LAB


RESULT:
1
4

VVIT

10

20

25

24

16

ELECTRONICS & COMMUNICATION ENGINEERING

Page 3

You might also like