I am new to MEMS digital microphone world. Currently, we are using built in PDM to PCM converter available in microcontroller.
The problem that is troubling me is how to choose the PCM buffer size, for the below configuration. Once we get the PCM data, I would like to store it into an output file using some terminal program and then use audacity to plot it to compare with input signal. Input signal I am using for testing purpose is 1Khz sine wave.
- Clock to Microphone = 3MHz.
- PDM to PCM data = 48kHz @ 24 bits.
- PDM Data sampling = 48 kHz.
Current selection of buffer size = 48000/ 32bits = 1500 samples. Since Sampling rate is 48Khz and 32 bits since the output of PDM to PCM module provides 24bits.
Please let me know if my assumption is correct.