2019-05-13 09:08 AM
Please let me know if ST had example or link to STM32L4 and SAI Audio Codec and Microphone control
Thanks
2019-05-20 02:15 AM
Hello,
Can you please explain more your needs, your request seems not clear because SAI is not an audio codec but could be interfaced with an audio codec for audio playback/record feature.
For playback usage, you can review the SAI_AudioPlay example, which is deployed on some STM32L4 board as STM32L476G-EVAL and 32L476GDISCOVERY, STM32L4R9I-EVAL and 32L4R9IDISCOVERY :
STM32Cube_FW_L4_V1.14.0\Projects\STM32L476G-EVAL\Examples\SAI\SAI_AudioPlay
STM32Cube_FW_L4_V1.14.0\Projects\32L476GDISCOVERY\Examples\SAI\SAI_AudioPlay
STM32Cube_FW_L4_V1.14.0\Projects\32L4R9IDISCOVERY\Examples\SAI\SAI_AudioPlay
STM32Cube_FW_L4_V1.14.0\Projects\STM32L4R9I-EVAL\Examples\SAI\SAI_AudioPlay
For record usage, there is no example, but BSP Audio for some boards has been implemented to perform record from headset microphone (analog microphone connected to audio codec, audio codec connected to SAI). So, you can have look on BSP AUDIO record functions for L496 and L4R9I discovery boards.
Regards,
Imen
2019-05-21 09:42 AM
Hi Imen Dahmen,
I would like to use STM32L4 and SAI Audio Codec and Microphone for controlling the HALF Duplex communication in USB connection.
Any hint or example available?
2019-05-21 10:22 AM
Are these what you mean using PDM mics ?
https://www.st.com/resource/en/user_manual/dm00393676.pdf
https://www.st.com/resource/en/application_note/dm00367673.pdf
2019-05-21 10:27 AM
Hi MikeDB,
We have to use the Dynamic Microphone as an input of the CODEC and STM32L4 will communicate and control audio data via I2S.
(Not the PDM)
Thanks