STM32U5 2 MEMS Microphones
Hello,
2 MEMS microphones share a common Clock (PB3, ADF1_CCK0) and Data (PB4, ADF1_SDI0) of a STM32U585QI.
Using ADF the PDM signal is processed successfully. It processes either the data of the either falling or rising edge depending on setting Init.FilterBistream to MDF_BITSTREAM0_FALLING or MDF_BITSTREAM0_RISING.
For the second microphone an MDF1_Filter0 instance is used. It is used with the same Init and Config data as the ADF instance.
For ADF an MDF the calls to HAL_MDF_Init HAL_MDF_AcqStart are both successful.
But then HAL_MDF_PollForAcq is only sucessful or ADF, but for the MDF instance it always returns HAL_TIMEOUT.
Does the MDF need to be configured differently? How must the ADF and MDF be configured to use both MEMS microphones with shared data and clock?
Does the MDF require other clock divisors?
I checked the examples in
https://github.com/STMicroelectronics/STM32CubeU5
There is only 1 example using rising and falling edge. Both filter are MDF in this case.
Projects/STM32U575I-EV/Demonstrations/Modules/audio_filtering/sig_filtering.c
Many thanks for any help!
