cancel
Showing results for 
Search instead for 
Did you mean: 

Question about SAI configuration with a MEMS microphone

EEnco.1
Associate III

I want to connect a MEMS microphone to my stm32 using its SAI interface.

I found a document called "Interfacing PDM digital microphones using STM32 MCUs and MPUs" which gives some examples about how to do it.

My question is about the configuration :

0693W00000KbdnIQAR.pngWhy is number of slots equal to 4 ? I dont understand what this parameter represents.

In this example, the data size is set to 16 bits and frame length to 64 bits (with free protocol mode).

0693W00000Kbds6QAB.png 

Sorry if this is a newbie question but why are these two parameters set with different sizes ? I would think that data size should be equal to frame length as I'd want to get all the data sent by my digital microphone. Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Eleon BORLINI
ST Employee

Hi @EEnco.1​ , @Bouraoui Chemli​ ,

this post should be solved, see this thread.

-Eleon

View solution in original post

2 REPLIES 2
Bouraoui Chemli
ST Employee

Hi,

What is the STM32 are going to use?

Please refer to dedicated section in the reference manual "Serial audio interface (SAI)"

Bouraoui

Eleon BORLINI
ST Employee

Hi @EEnco.1​ , @Bouraoui Chemli​ ,

this post should be solved, see this thread.

-Eleon