This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

求助C5000中DSPLIB的FFT的用法中的问题



先接收512个点在buffer_left中,

然后对其进行倒序和FFT,然后将得到的FFT后的值赋给buffer left out数组(long),进行求模的运算:

 cbrev(buffer_left,buffer_left,256);
  rfft(buffer_left,512,1);
for(i=0;i<512;i++)
{
  buffer_left_out=buffer_left;
}
  for(i=0;i<256;i++)
{
    buffer_left_out=10*sqrt(buffer_left_out[i<<1]*buffer_left_out[i<<1]+buffer_left_out[(i<<1)+1]*buffer_left_out[(i<<1)+1]);


然后通过观察buffer_left_out来看结果“:



得到是这样的结果,请问是为什么?
我用8000HZ的FS采样1000HZ的正弦波。
在刚接收buffer left时,用ccs的graph中的fft图看是这样的