2024-01-16 02:32 AM
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
2024-01-16 07:38 AM
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.
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.