Interfacing with MEMS digital microphone
Hello,
I'm using an stm32l151re to interface with mp34dt05-a mems microphone. I'm using it to determine noise level. The communication between smt32 mcu and the sensor is based on I2S protocol with dma. My issue is that my project consists of multiple tasks and I added an audio task to process data in order to determine the noise level but the dma buffer keeps updating the dma buffer before I finish processing the first half buffer.
The dma interrupt occurs each 1ms and the process function takes 800us to process the data from the sensor. How can I make sure that I process new data before receiving a new one.
thanks in advance for your suggestions
