cancel
Showing results for 
Search instead for 
Did you mean: 

configuration of stm32f407(SAI/i2s)

Manikandanvalaguru
Associate

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

1 REPLY 1
Imen.D
ST Employee

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.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen