0% found this document useful (0 votes)
31 views3 pages

Lab Task

The document describes two tasks for designing FIR filters using code composer on a TMS320C6745 processor. Task 1 involves designing a high pass FIR filter by inputting the order and cutoff frequency, calculating transfer function values, building and debugging the program, and observing the output waveform. Task 2 similarly involves designing a low pass FIR filter. Both tasks calculate transfer function values in a loop and output them to evaluate the filters.

Uploaded by

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

Lab Task

The document describes two tasks for designing FIR filters using code composer on a TMS320C6745 processor. Task 1 involves designing a high pass FIR filter by inputting the order and cutoff frequency, calculating transfer function values, building and debugging the program, and observing the output waveform. Task 2 similarly involves designing a low pass FIR filter. Both tasks calculate transfer function values in a loop and output them to evaluate the filters.

Uploaded by

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

DSP LAB TASK

TASK1:
Aim: To design an FIR High Pass Filter using code composer on
TMS320C6745.
Algorithm:
1. Input the order and cutoff frequency of the filter.
2. Find the values of the transfer function at every interval.
3. Build & debug the program and run it.
4. Add the required Expression and observe the waveform on graph.
CODE :
#include<stdio.h>
#include<math.h>
inti,w,wc,c,N;
float H[100];
floatmul(float , int );
void main()
{
printf("\n Enter order of IIR hpf Filter:");
scanf("%d",&N);
printf("\n Enter the CutoffFreq ");
scanf("%d",&wc);
for(w=0;w<100;w++)
{
H[w]=1/sqrt(1+mul(((float)wc/w),2*N));
printf("H[%d]=%f\n",w,H[w]);
}
}
floatmul(float a,int x)
{
for(i=0;i<x-1;i++)
a*=a;
return(a);
}

OUTPUT :

TASK2 :
Aim: To design a FIR Low Pass Filter.
Algorithm:
1. Input the order and cut off frequency of the filter.
2. Find the values of the transfer function at every interval.
3. Build & debug the program and run it.
4. Add the required Expression and observe the waveform on graph.
CODE:
#include<stdio.h>
#include<math.h>
inti,w,wc,c,N;
float H[100];
floatmul(float, int);
void main()
{
printf("\n Enter order of IIR LP Filter:");
scanf("%d",&N);
printf("\n Enter the CutoffFreq ");
scanf("%d",&wc);
for(w=0;w<100;w++)
{
H[w]=1/sqrt(1+mul((w/(float)wc),2*N));
printf("H[%d]=%f\n",w,H[w]);
}
}
floatmul(float a,int x)
{
for(i=0;i<x-1;i++)
a*=a;
return(a);
}

OUTPUT:

You might also like