PDM MEMS microphone using I2S interface... unexpected PDM clock rate messing up converted frequency
Hello,
I have a PDM MEMS microphone that I am reading in via I2S. The following parameters are set.
I2S config
-----------------
Master Mode Receiver
MSB First
24 Bits Data on 32 Bits Frame
48KHz Sample rate
The PDM 2 PCM settings are as follows
PDM2PCM
------------------
PDM Filt order MSB
Endianness BE
1 input channel
1 output channel
Decimation factor 64
Output samples 16
With these parameters I would expect a PDM clock rate of 3.072Mhz @ 48Khz PCM sample rate.
I am measuring 3.135Mhz on my PDM clock, and I am also receiving results that are slightly off frequency.
Does anyone have any idea why this would happen? I am using I2S3 on the STM32F401RE nucelo board.
Thanks for any ideas and help.
