arm_cmplx_mag_q31() equivalent in PowerQuad?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

arm_cmplx_mag_q31() equivalent in PowerQuad?

跳至解决方案
759 次查看
gertvb
Contributor III

Goeiedag Almal!

 

Is there a PowerQuad instruction equivalent to the CMSIS-DSP arm_cmplx_mag_q31() function?

 

Like  PQ_TransformRFFT() is equivalent to the CMSIS-DSP function arm_rfft_q15()

 

Kind regards

 

Gert

A TechExplorer working with Embedded Software and Electronics in Agriculture and Alternative Energy
标签 (1)
0 项奖励
1 解答
735 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Gert Van Biljon,

As you know that the arm_cmplx_mag_q31() function provided by CMSIS platform can compute the power spectrum after FFT.

But I do not think the powerquad library provides the similar function to compute the power spectrum, the powerquad library provides FFT.

After FFT, you can get the real[i]/image[i] array, you can call the matrix product function and addition to compute power spectrum. for example,  after FFT, you get the FFT result FFTResutArrayA, which is 1*512 array for 128 points FFT, clone the FFTResutArrayA to another array FFTResutArrayB, then you can call the matric product function and add the real[i]**2+image[i]**2 yourself.

FFT based on powerquad module

https://www.nxp.com.cn/docs/en/application-note/AN12282.pdf

Hope it can help you

BR

XiangJun Rong

 

 

 

 

在原帖中查看解决方案

1 回复
736 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Gert Van Biljon,

As you know that the arm_cmplx_mag_q31() function provided by CMSIS platform can compute the power spectrum after FFT.

But I do not think the powerquad library provides the similar function to compute the power spectrum, the powerquad library provides FFT.

After FFT, you can get the real[i]/image[i] array, you can call the matrix product function and addition to compute power spectrum. for example,  after FFT, you get the FFT result FFTResutArrayA, which is 1*512 array for 128 points FFT, clone the FFTResutArrayA to another array FFTResutArrayB, then you can call the matric product function and add the real[i]**2+image[i]**2 yourself.

FFT based on powerquad module

https://www.nxp.com.cn/docs/en/application-note/AN12282.pdf

Hope it can help you

BR

XiangJun Rong