AnsweredAssumed Answered

Frequency shift

Question asked by Yanko on Aug 8, 2009
Latest reply on Jun 8, 2013 by wjliume123

Hi all,

In my project I must make frequency shift  of signal. I wrote program in C, but result is incorect. For example I use article Zoom-FFT Spectrum analyzer. I use this formula for shifting: y(n)=x(n).e^(j.N.fn).

My code is:

// input sin signal

void sinus (void)
{
   int i;
   //generirane na entry signal//
   for(i=0;i<256;i++)     
    input[i]=(50* sin(2*Pi*K*i/256));
}

// shifting

void shift(void)
{
   int i;
for(i=0;i<256;i++);
input[i]=(expf(fn*i*256))*input[i];
}
This algorithm don't work. Can you help me, I wrote this program for BF532.

Outcomes