FFT based on s12zvl32

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

FFT based on s12zvl32

4,202 次查看
jeffcharles
Contributor III

Hi,

I want to use FFT to process the audio signal(AUX interface), so as to get the amplitude of 7 fixed frequency points(63Hz, 160hz, 400Hz, 1kHz, 2.5KHz, 6.25khz, 12khz). Can s12zvl32 realize this application? Please provide the sample code if possible.

 

Thanks,

Jeff

0 项奖励
回复
9 回复数

4,176 次查看
lama
NXP TechSupport
NXP TechSupport

Hi,

I have contacted a few guys who will sent you their opinion on your request. Please be patient, they are in different time zones....

Best regards,

Ladislav

0 项奖励
回复

4,184 次查看
lama
NXP TechSupport
NXP TechSupport

Hi,

we are very sorry but we were not able to find anything for this MCU related to FFT.

I have contacted more department and guys and there is nothing everywhere...the reason is that this MCU was designed for different purpose than you want to use so application notes and libraries do not contain any support for FFT.

Best regards,

Ladislav

 

0 项奖励
回复

4,179 次查看
jeffcharles
Contributor III

Hi Ladislav,

Please recommend a MCU that can be used for this kind of application and share its notes and sample code about FFT.

 

Thanks,

Jeff

0 项奖励
回复

4,148 次查看
pachamatej
NXP Employee
NXP Employee

Hi,

I believe you can use whatever MCU, even S12Z, but unfortunately there is no of-the-shelf code to share. Once you find the right example in C, I believe it's not so difficult to port it.

Best regards,

Matej

0 项奖励
回复

4,138 次查看
Ludek
NXP Employee
NXP Employee

Hi,

There are 3 demo apps (meterlibFFTXph_test) in the SDK 2.9 that I mentioned below. The metering functions use the basic FFT functions. So, you can extract their API from headers and use them in your app.

Generally, you can use any other MCUs, but for example KM3x has MMAU unit which accelerates the FFT computing.

4,117 次查看
pachamatej
NXP Employee
NXP Employee

S12Z core is capable of MAC operations thanks to its instruction set: see CPU S12Z Reference Manual - Reference Manual

However, the core performance is basically given by the clock settings and S12ZVL is not one of those high-end MCUs. But this is up to you anyway.

The biggest challenge from my side would be to move the entire (e.g. MATLAB-based) FFT algorithm to Q1.15 fractional format. Therefore, I'd recommend to either look for Q1.15 implementation example or look for another MCU with hardware floating point unit (e.g. S32K14x). Then it would be mainly about the total system costs (discrete solution with more complex PCB vs integrated solution).

Regards,

Matej

0 项奖励
回复

4,169 次查看
Ludek
NXP Employee
NXP Employee

Hi Jeff,

the KM3x family can be used for the FFT processing too. It is Cortex-M0+ with MMAU processing unit. We used this MCU in the power metering applications.

0 项奖励
回复

4,165 次查看
jeffcharles
Contributor III

Hi,

Can you share the related notes and projects?

 

Thanks,

Jeff

0 项奖励
回复

4,154 次查看
Ludek
NXP Employee
NXP Employee

Appnote: AN4255 (basic), AN4847 (optional)

Projects: 1-and 2-phase FFT-based power meter RDs. Unfortunately, the application SW (including FFT library) was removed from the project web page several years ago, I don't know why: https://www.nxp.com/design/designs/two-phase-power-meter-reference-design:TWO-PHASE-POWER-METER

Anyway, you can obtain the FFT-library (binary form + API) from the latest SDK_2.9.0_MKM35Z256.

Be aware that:

  1. The library is targeted for the power metering applications. It means it contains plenty of "metering ballast" (power/energy computing, etc.) which are probably not usable by your audio app. So, you would have to extract the basic "FFT engine" from the API.
  2. We can support the library only (binary, headers, doc), not the source code. Because this is proprietary part of the code.
0 项奖励
回复