arm_cmplx_mag_q31() equivalent in PowerQuad?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

arm_cmplx_mag_q31() equivalent in PowerQuad?

ソリューションへジャンプ
1,423件の閲覧回数
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 解決策
1,399件の閲覧回数
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 返信
1,400件の閲覧回数
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