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.

TMS320C6748: TMS320C6748的C674x DSPLIB库函数的DSPF_sp_fftSPxSP函数点的输入个数N不是2的幂该怎么办

Part Number: TMS320C6748
Other Parts Discussed in Thread: FFTLIB

7年前有人问过同样的问题,但是没有完全解决

之前的技术贴链接

https://e2echina.ti.com/support/processors/f/processors-forum/70423/dspf_sp_fftspxsp-n-2?tisearch=e2e-sitesearch&keymatch=%25252525252520user%2525252525253A30822#

Jack Dong 

不是2的幂,应该采用末端补零,计算fft之后把补零位置处的计算结果舍弃就行了

 

Jack Dong 谢谢你的回答

这种补零的方法如果用DFT的公式来说的话肯定是行的,但是对TI的dsplib库中的DSPF_sp_fftSPxSP函数来讲貌似不行,我做了个实验,matlab中输入的是505个复数,我把这些复数导出到CCS中进行验证,如图,一个是matlab中的输入数据,一个数CCS中的,CCS中的数据做了补零操作,由于是复数,所以补了14个0,这样输入的复数个数就是512个,