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.

DSP 6727 dsp67x.lib使用问题 fft与ifft结果不一致



关于SPRU657B知道文档里的第67页的相关代码,如下

How To Use

void main(void)
{
gen_w_r2(w, N); // Generate coefficient table
bit_rev(w, N>>1); // Bit−reverse coefficient table
DSPF_sp_cfftr2_dit(x, w, N);
// radix−2 DIT forward FFT
// input in normal order, output in order bit−reversed coefficient table in bit−reversed order
DSPF_sp_icfftr2_dif(x, w, N);
// Inverse radix 2 FFT
// input in bit−reversed order,order output in normal coefficient table in bit−reversed order
divide(x, N); // scale inverse FFT output
// result is the same as original  input
}

程序执行之后(即傅立叶变换和反变换后),获得的输出结果与一开始的输入结果不一样,我输入的是余弦信号。