I am trying to sample data from PDM microphones using DFSDM and then output the audio using SAI setup as a master PCM interface. Is there a way to synchronize the data coming from the DFSDM with the SAI setup in Master mode?
I can get the frequencies close but not exact. I currently have a circular DMA buffer that I put the data in as I receive it from the DFSDM which feeds the SAI. I have this working but since they aren't exactly the same frequency there is underrun or overrun issues. Is there a way to do this without an elastic buffer I'm missing? I'm using the STM32L476RG and currently developing with the Nucleo L476RG and the X-Nucleo-CCA02M development boards.
