Skip to main content
Visitor II
March 7, 2022
Solved

Question about SAI configuration with a MEMS microphone

  • March 7, 2022
  • 2 replies
  • 1756 views

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

    This topic has been closed for replies.
    Best answer by Eleon BORLINI

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

    this post should be solved, see this thread.

    -Eleon

    2 replies

    ST Employee
    March 7, 2022

    Hi,

    What is the STM32 are going to use?

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

    Bouraoui

    ST Employee
    March 10, 2022

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

    this post should be solved, see this thread.

    -Eleon