Impulse response using TMS320C67XX/TMS320C6713 KIT
Aim:To find the impulse response using TMS320C67XX/TMS320C6713 KIT
SOFTARE REQUIREMENTS:
Operating System – Windows XP
Constructor - Simulator
Software – Code Composer Studio3.1v, 6713DSK Diagnostics.
HARDARE REQUIREMENTS:
TMS320C6713DSP KIT
USB cable
Power Supply +5v
Procedure:
? Open code composer studio, make sure the DSP kit is turned on. Start a new project using ‘project-new’ pull down menu, save it in a separate directory (c:\ccstudio\myprojects) with the name ‘file name. pjt’.
? Add the source file of linear convolution to the project using ‘project-add files to project’ pull down menu.
? Add the linker command file ‘hello. cmd’(c\ccstudio\tutorials\dsk6713\hello1\hello.cmd)
? Add the run time support library file rts6700.lib (c-ccstudio\c6000\cgtools\lib\rts6700.lib)
? Compile program using the ‘project-compile’ pull down menu or by clicking the short cut icon on the left side of program window.
? Build the program using ‘project-build’ pull down menu or by clicking the icon on the left side of the program window.
? Load the program in program memory of DSP chip using the ‘file-load program’ pull down menu.
? To view o/p graphically, select View -graph-time and frequency.
Program :
#include <stdio.h>
#define Order 2 /*Order of the system*/
#define Len 10 /*Length of the output pulses*/
float y[Len]={0,0,0},sum;
main()
{
int j,k;
float a[Order+1]={0.1311, 0.2622, 0.1311};
/* y coefficient may change in accordance with the difference equation */
float b[Order+1]={1, -0.7478, 0.2722};
/* x coefficients may change in accordance with the difference equation */
for(j=0;j<Len;j++)
{
sum=0;
for(k=1;k<=Order;k++)
{
if((j-k)>=0)
sum=sum+(b[k]*y[j-k]);
}
if(j<=Order)
{
y[j]=a[j]-sum;
}
else
{
y[j]=-sum;
}
printf("Respose[%d] = %f\n",j,y[j]);
}
}
Precautions:
? Switch ON the computer only after connecting USB cable and make sure the DSP kit is ON.
? Perform the diagnostic check before opening code composer studio.
? All the connections must be tight.
Result : The impulse response is obtained and the graphs are plotted.
Viva questions:
1. Define impulse response.
2. Give me one example for impulse response.
3. Write the Formula for impulse response.
4. What are major role in order & length?
-
UpdatedFeb 04, 2020
-
Views1,346
Generation of basic signals using MATLAB
Design of FIR filters of Low pass and high pass filter using Matlab commands
Find DFT / IDFT of given DT signal
Implementation of analog IIR low pass and high pass filter for a given sequence
Implementation of FFT of a given sequence
Find frequency response of a given system given in (Transfer Function/ Differential equation form