Skip to main content
Visitor II
January 16, 2024
Question

configuration of stm32f407(SAI/i2s)

  • January 16, 2024
  • 1 reply
  • 1103 views

hello,

I am using Stm32f407 with an IM69D120 mic. I have couple of questions regarding the interface and configuration of the mic.

1) Is it possible to configure the audio codec with a 4 kHz sampling frequency and a 16-bit resolution?

2) Which interface should I use for configuration: i2S or SAI? (Which interface gives more control while configuring the clock and OSR?)

 

Regards,

Manikandan V

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    January 16, 2024

    Hello @Manikandanvalaguru and welcome to the Community :)

    SAI is not applied to the STM32F407 (It is applied for STM32F42xxx and STM32F43xxx family).

    I2S can be configured to operate audio class with a 16-/32-bit resolution.

    ImenD_0-1705417825573.png

    ImenD_1-1705418597353.png

    The audio sampling frequency can be 192 kHz, 96 kHz, or 48 kHz. In order to reach the desired frequency, the linear divider needs to be programmed according to the formulas mentioned in the RM0090 reference manual.

    Check also the I2S interface characteristics in the STM32F405xx, STM32F407xx Datasheet.