LINEAR CONVOLUTION
#1

Code:
/* prg to implement linear convolution */
#include<stdio.h>
#include<math.h>
int y[20];    
main()
{    int m=6;                    /*Length of i/p samples sequence*/
    int n=6;            /*Length of impulse response Co-efficients */
    int i=0,j;
    int x[15]={1,2,3,4,5,6,0,0,0,0,0,0};    /*Input Signal Samples*/
    int h[15]={1,2,3,4,5,6,0,0,0,0,0,0};    /*Impulse Response Co-efficients*/

    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]);
}
PROCEDURE:
 Open Code Composer Studio, make sure the DSP kit is turned on.
 Use the Debug  Connect menu option to open a debug connection to the DSK board
 Start a new project using ‘Project-new ‘ pull down menu, save it in a
separate directory(C:\CCStudio_v3.1\myprojects) with name lconv.pjt.
 Add the source files conv.c
 to the project using ‘Projectadd files to project’ pull down menu.
 Add the linker command file hello.cmd .
(Path: C:\CCStudio_v3.1\tutorial\dsk6713\hello1\hello.cmd)
 Add the run time support library file rts6700.lib
(Path: C:\CCStudio_v3.1\c6000\cgtools\lib\rts6700.lib)
 Compile the program using the ‘Project-compile’ pull down menu or by
clicking the shortcut icon on the left side of program window.
 Build the program using the ‘Project-Build’ pull down menu or by
clicking the shortcut icon on the left side of program window.
 Load the program(lconv.out) in program memory of DSP chip using the
‘File-load program’ pull down menu.
 To View output graphically
Select view  graph  time and frequency

Configure the graphical window as shown below
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: linear convolution using vedic maths, linear convolution of 2 sequence using idft and dft, linear convolution using java, convolution in android, convolution x n h n, circular convolution c programm, find linear convolution of sequences,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Messages In This Thread
LINEAR CONVOLUTION - by seminar class - 06-05-2011, 03:52 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  CIRCULAR CONVOLUTION OF TWO SEQUENCES seminar class 1 4,776 21-11-2012, 12:18 PM
Last Post: seminar details
  CIRCULAR CONVOLUTION OF TWO FINITE LENGTH SEQUENCES USING DFT AND IDFT seminar class 1 9,459 21-11-2012, 12:18 PM
Last Post: seminar details
  CIRCULAR CONVOLUTION seminar class 0 1,991 06-05-2011, 03:52 PM
Last Post: seminar class
  LINEAR CONVOLUTION OF TWO FINITE LENGTH SEQUENCES USING DFT AND IDFT seminar class 0 3,324 06-05-2011, 03:40 PM
Last Post: seminar class
  3. LINEAR CONVOLUTION OF TWO SEQUENCES seminar class 0 1,971 06-05-2011, 03:29 PM
Last Post: seminar class
  Algebraic Methods of solving simultaneous pair Linear Equations in Two Variables seminar class 0 2,845 26-04-2011, 10:40 AM
Last Post: seminar class

Forum Jump: