Digital Signal Processing Lab Report 12 Fa19-Bee-106

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

DIGITAL SIGNAL PROCESSING

Name: AHMAR ARSHAD

Registration Number: FA19-BEE-106

TITLE: LAB REPORT 12

Instructor’s Name: MIAN AHMAD YASSER

FA18-BEE-046
Lab#12: To follow FIR and IIR filters implementation on DSP Kit
TMS320C6713 for real time processing
Objectives:

 To Assemble IIR filter (LPF & HPF) on DSP Starter Kit DSK671.

 To assemble FIR filter on DSP Starter Kit DSK6713 Requirements:


Software:
 Virtual Machine.
Hardware:
 DSP Starter Kit DSK6713.

Methodology:
 In this lab, I first understood the concepts about the IIR and FIR filters.
 Before starting the lab, we were again introduced with the DSP Starter Kit DSK6713. I
assembled the FIR and IIR filters on the kit provided and performed the real time processing on
it and connected the kit with the virtual machine.
 In the first task, I implemented an IIR filter and followed the steps discussed in Lab # 5 to build
a project. The C program was given for real time processing of audio signal such that signal from
audio-in will be filtered and send to audio-out.
 In this next task, we used the same code but made some changes to make an IIR Butterworth
high pass filter for which we defined different pass band frequencies which varied from 2.5kHz-
8KHz, 4kHz-8KHz and 7kHz-8Khz. Similarly, we used the same passband frequencies to make
an IIR Butterworth low pass filter.
 After performing the tasks that were related to the IIR filter, we assembled the kit to make FIR
filter and preformed for real time processing of audio signal such that signal from audio-in will
be filtered and send to audio-out.

Results and Conclusion:


In this lab, the DSP hardware kit has been introduced to us. I have developed my knowledge of C
programming and understand the flow and programming of the DSP kit. I learned how to use a header
file to perform the required features and also learned how to use the virtual machine with the DSP Starter
Kit DSK6713 to implement the IIR and FIR filters for real time processing.

FA18-BEE-046
Lab Tasks

Lab Task 2
Solution
% C PROGRAM IIR_BUTERWORTH_HP FILTER.

// IIR_BUTTERWORTH_HP FILTER pass band range 2.5kHz - 8kHz


Const signed int filter_coeff[] = {2663, 2663, 2663, 27367, -17981, 14603};

// IIR_BUTTERWORTH_HP FILTER pass band range 4kHz - 8kHz


Const signed int filter_coeff[] = {256, 256, 256, 27367, -39427, 46732};

// IIR_BUTTERWORTH_HP FILTER pass band range 7kHz - 8kHz


Const signed int filter_coeff[] = {1923, 1923, 1923, 12514, -24934, 13042};

Lab Task 4
Solution
% C PROGRAM IIR_BUTERWORTH_HP FILTER.

// IIR_BUTTERWORTH_HP FILTER pass band range 2.5kHz - 8kHz


Const signed int filter_coeff[] = {2366, 2366, 2366, 32767, -18179, 13046};

// IIR_BUTTERWORTH_HP FILTER pass band range 4kHz - 8kHz


Const signed int filter_coeff[] = {312, 312, 312, 32767, -27943, 24367};

// IIR_BUTTERWORTH_HP FILTER pass band range 7kHz - 8kHz


Const signed int filter_coeff[] = {3219, 3219, 3219, 41125, -34293, 24130};

FA18-BEE-046

You might also like