doubt regarding the working iof the kit .assisit for working the periodogram, adaptive filters, multirate processing.

doubt regarding the working iof the kit .assisit for working the periodogram, adaptive filters, multirate processing.

Silambarasan,

1. Regarding working of TMS320C6745 kit. we have lot of tutorials with working procedure in website. Kindly go to the link.

http://www.pantechsolutions.net/products/dsp-dsc-boards/tms320c6745-tyro

and in learning center follow any one of the tutorial documents.

2. Assist for working the periodogram, adaptive filters, multirate processing. will reply soon.

Feel free to post here if you have any further query.

Thanks and Regards,

Thiyagarajan.S

Silambarasan,

For periodogram, use the following program and general CCS procedure. To see output, follow these steps:

Upto debug step, use normal CCS procedure.

After Debug, follow the steps:

Debug – run .

Debug - halt .

Tools – graph – single time .

Acquisition Buffer Size - 7

Dsp Data Type - 32 bit floating point

Start Address - period

Display Data Size - 7

Ok . see the output at graph

Program:

#include <stdio.h>

#include <math.h>

#define N 7 //number of data values

#define xn 4

#define hn 4

float pi = 3.1416;

float rout[N],iout[N],out[2]={0,0},period[N];

short x[4] = {1,1,0,0},outval[8]; // Change Input for different o/p.

unsigned int j=0;

long t1,t2,t3,t4,c;

void dft(short *x, short k, float *out);

void main()

{

short j;

int n,k,i,t[100]={0};

for(i=0;i<(xn+hn-1);i++)

{

outval= 0;

t=0;

x[xn+i]=0;

}

for(i=0;i<N;i++)

{

rout= 0;

iout= 0;

}

for(i=0,j=(hn-1);i<(hn);i++,j--)

t= x[j];

for(n=0;n<(xn+hn-1);n++)

{

for(k=0;k<=n;k++)

outval[n] = (outval[n])+((x[k])*(t[n-k]));

}

for (j = 0; j < N; j++)

dft(outval, j, out);

//call DFT function

for(c=0;c<N;c++)

{

t1 = rout[c];

t2 = iout[c];

t1 = t1 * t1;

t2 = t2 * t2;

t3 = t1 + t2;

t4 = sqrt(t3);

period[c] = t4;

}

while(1);

}

void dft(short *x, short k, float *out) //DFT function

{

float sumRe = 0,sumIm = 0,cs = 0,sn = 0;

int i = 0;

for (i = 0; i < N; i++)

{

cs = cos(2*pi*(k)*i/N); //real component

sn = sin(2*pi*(k)*i/N); //imaginary component

sumRe = sumRe + x*cs; //sum of real components

sumIm = sumIm - x*sn; //sum of imaginary components

}

out[0] = sumRe;

out[1] = sumIm;

rout[j] = out[0];

iout[j] = out[1];

j++;

// printf("%f %f\n",out[0],out[1]);

}

Feel free to post here if you have any further query.

Thanks and Regards,

Thiyagarajan.S

i found the following error

Compilation failure

"../period.c", line 47: error: expression must be a modifiable lvalue

"../period.c", line 49: error: expression must be a modifiable lvalue

"../period.c", line 61: error: expression must be a modifiable lvalue

"../period.c", line 63: error: expression must be a modifiable lvalue

"../period.c", line 71: error: expression must be a modifiable lvalue

"../period.c", line 139: error: expression must have arithmetic type

"../period.c", line 141: error: expression must have arithmetic type

7 errors detected in the compilation of "../period.c".

C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [period.obj] Error 1

C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: Target `all' not remade because of errors.

assist me...

what about the linker file sir is that okay to use the same linker file, which is available with me .

Silambarasan,

You can use same linker file.

Feel free to post here if you have any further query.

Thanks and Regards,

Thiyagarajan.S

Silambarasan,

doubt regarding the working iof the kit .assisit for working the periodogram, adaptive filters, multirate processing.

Regarding your above request

We have plenty of tutorials with complete working procedure in our website itself. As per your request we updated the requested in the website. Kindly go to the link and follow.

https://www.pantechsolutions.net/dsp-dsc-boards/adaptive-filter-using-tms320c6745-dsp

https://www.pantechsolutions.net/dsp-dsc-boards/periodogram-using-tms320c6745-dsp

https://www.pantechsolutions.net/dsp-dsc-boards/interpolation-using-tms320c6745-dsp

https://www.pantechsolutions.net/dsp-dsc-boards/decimation-using-tms320c6745-dsp

or else In learning center of our website you can see these tutorial documents. This documents will help you to complete your lab.

Feel free to post here if you have any further query.

Thanks and Regards,

Thiyagarajan.S

Silambarasan,

Please find the attachment for requested program and work with normal procedure of code composer studio or else you can get complete working procedure tutorial of this project in learning center of TMS320C6745 product.

Feel free to post here if you have any further query.

Thanks and Regards,

Thiyagarajan.S