I would like to add FFT algorithms in the "AMICAM1\Microphones_Streaming" based on NUCLEO-STM32L476RG ?
From the document of UM1901, we can get audio data in the callback function(AMICAM1_AUDIO_IN_TransferComplete_CallBack) per 1 msec with 192KHz of samping rate as below.
We hope to save 6 msec of audio data in the PCM_Buffer(192*6=1152, 24 bits of data) from AD1974 for FFT analysis.
When finishing the 1152 bytes of audio data collection, we normalize transfer 24 bits audio data into the range of +/- 1 audio signal for implementing FFT analysis.
We also can find the fft.c in the library of middle ware as below.
There are some FFT API in a compiled HTML file located in the Documentation folder.
How to implement the 1024 point of FFT algorithms step by step?
X-CUBE-MEMSMIC1 already provides an example using FFT.
Is it called UltrasoundFFT and it is placed here: Projects\STM32L476RG-Nucleo\Demonstration\AMICAM1\UltrasoundFFT\.
Start looking at this code example, that is fully working and already provides what you need.
Best regards
Simone
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.