cancel
Showing results for 
Search instead for 
Did you mean: 

How to set SAI and enable DMA for pdm mic on STM32L476RG-Nucleo board

shenghua yang
Associate III

Hi All:
We have a project to receive pdm microphone based on the STM32L476RG-Nucleo board.

We hope to use the SAI to get PDM M1/M2 data vis PDM decoder.

The audio clk is 192KHz and the data size is 16 bits in the system.

shenghuayang_1-1716201719588.png

First we used the cube MX to generate the SAI_B function and its parameter is as the following.

shenghuayang_0-1716201173949.png

We can't see any sample codes in the stm32L476.

shenghuayang_2-1716201961066.png

 

How to enable the SAI signal to the PDM decoder in the HAL?
Which function is need to enable the SAI for PDM microphone?
How to use DMA to get the audio data then send to the PC by USB IF?
Is there sample codes for reference or any suggestion?

Best Regards,Sheng-Hua

0 REPLIES 0