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.

[参考译文] MSP430FR5994:使用 LEA 的 FFT 结果

Guru**** 2618455 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/673976/msp430fr5994-fft-results-using-lea

器件型号:MSP430FR5994
主题中讨论的其他器件:MSP430WARE

大家好、

有关 MSP_cmplx_FFT_auto_Q15结果的问题。 我使用 TI 的 DSPLibrary、似乎无法理解 MSP_cmplx_FFT_auto_Q15的结果、后者调用 MSPFR5994上的 LEA。 具体而言、如果我指定:

静态 DSPLIB_DATA (src1、MSP_ALIGIN_CMPLX_FFT_Q15 (SAMPLES)) unsigned int src1[SAMPLES * 2];

静态 MSP_FFT_Q15_params 参数={.length = SAMPLES};
静态 MSP_STATUS 状态;

...

uint16_t shift = 0;
for (unsigned int i = 0;i < sples * CMPLX_increment;i += CMPLX_increment){
CMPLX_REAL (&src1[i])= 1;
CMPLX_IMAG (&src1[i])= 0;
}
status = MSP_cmplx_FFT_params (&qc15);parcshift (&c15) 

我没有得到我预期的结果。  

而不是:实数:16、0、0、0、0、 0、0、0、0、0、 0、0、0、0、0、 0 Imag:0、0、0、0、0、 0、0、0、0、0、 0、0、0、0、0、 0

我得到:实数:1、0、1、1、1、 1、1、2、1、2、 1、1、1、1、1、 0 Imag: 0、-7、-3、-3、-1、 -1、-1、-1、0、1、 1、1、1、3、3、 7.

且 SHIFT = 0

我认为这可能是几件事。 1) 1)我需要输入 Twiddle 表2) LEA 不会得到整数数据类型、而需要其他一些东西3)结果需要以不同的方式进行缩放或解释  

如果有任何帮助,将不胜感激。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Graham、

    您可以参考官方示例代码以获取帮助。 您可以在以下链接中找到示例和文档:

    文件://C:/ti/msp/MSP430Ware_3_80_01_01/dsplib/html/transform_ex2_cmplx_fft_auto_q15_8c-example.html

    如果我的帖子有助于解决您的问题、请单击  验证答案    按钮 

    冬季、

    搜索 E2E! 您的问题可能已经得到解答!