2022-12-06 10:11 AM
I am using a STM32-NUCLEO-F401RE and expansion board x-NUCLEO-CCA02M1. I am not using the library provide by STM. I trying to understand which serial communication protocol is better for this type of application and why it is better.
Can someone help me?
Solved! Go to Solution.
2022-12-12 08:47 AM
Hi @ATeli.1 ,
usually the I2S interface is more suited for continuous streaming audio applications, since it is designed for audio, but you can use also SPI with a high-enough clock frequency (for example 10MHz), or at least sensibly higher than the microphone one (typically 1MHz to 3MHz for a PDM microphone).
-Eleon
2022-12-12 08:47 AM
Hi @ATeli.1 ,
usually the I2S interface is more suited for continuous streaming audio applications, since it is designed for audio, but you can use also SPI with a high-enough clock frequency (for example 10MHz), or at least sensibly higher than the microphone one (typically 1MHz to 3MHz for a PDM microphone).
-Eleon
2022-12-12 09:43 AM
Thank you! I am not understanding why if I use I2S, in the settings I can only sample at given frequency. In my case I am using a 2 PDM microphones that work between 1MHz and 3MHz. This mean that for this type of microphones I can only use SPI and not I2S?
2022-12-21 05:57 AM
Hi @ATeli.1 ,
no, those frequencies are compatible with the I2S interface (which I suggest you for audio stream).
-Eleon