To Design Different Filters On DSK TMS320C6713
To Design Different Filters On DSK TMS320C6713
To Design Different Filters On DSK TMS320C6713
Q1) Implement the FIR filter with the following coefficients in Code Composer Studio v6.0
DSK TMS320C6713
Answer:
#include"stdafx.h"
#include<stdio.h>
#include<iostream>
#include<math.h>
#include<conio.h>
using namespace std;
void main()
{
int n, f = 5, f1 = 50;
Q1) Implement the FIR filter with the following coefficients in Code Composer Studio v
DSK TMS320C6713
Answer:
#include"stdafx.h"
#include<stdio.h>
#include<iostream>
#include<math.h>
#include<conio.h>
using namespace std;
void main()
{
int n, f = 5, f1 = 50;
Q1) Implement the FIR filter with the following coefficients in Code Composer Studio v6.0 and
DSK TMS320C6713
Answer:
#include"stdafx.h"
#include<stdio.h>
#include<iostream>
#include<math.h>
#include<conio.h>
using namespace std;
void main()
{
int n, f = 5, f1 = 50;
_getch();
}
Q2) Verify the FIR filter designed in Q1 in MATLAB R2018a
Answer:
50Hz highest frequency in given signal so, and are designing filter with fs of 100Hz.
Code:
clc
close all
t=0:1:length(Num);
f1= 5;
f2=50;
Input_signal=sin(2*pi*f1*t)+sin(2*pi*f2*t);
figure(1)% For using different plots
plot(t,Input_signal)% Plotting given signal
title('Input Signal')
legend('Input Signal')
xlabel('Time(sec)')% Labels
ylabel('Amplitude')
figure(2)% For using different plots
plot(Num)% Plotting filter data
title('Imported Filtered Data Signal')
legend('Imported Filtered Signal')
xlabel('Time(sec)')% Labels
ylabel('Amplitude')
output=filter(Num,1,Input_signal);
figure(3)% For using different plots
plot(t,Input_signal,t,output)% Plotting both signals
title('Input Signal Vs Filtered Signal')
legend('Input Signal','Filtered Signal')
xlabel('Time(sec)')% Labels
ylabel('Amplitude')
grid
Output: -
Question 3: Create coefficients for low pass, High pass and Band stop filter in MATLAB and
copy the coefficient of the filter into CCS and verify the result
Answer:
50Hz highest frequency in given signal so, and are designing filter with fs of 100Hz.
Output: -
LPF:
Exported MATLAB Coefficient for LPF:
HPF: