PDM2PCM and I2S Data Frame relation
Dear @Eleon BORLINI ,
I’m currently using the I2S peripheral to acquire from a digital microphone.
The I2S is configured as:
- 24bits on 32bit data frame
- 22kHz sampling frequency
and the pdm library is correctly configured and I’m able to convert a single sample (uint16 m) at a time and stream it. The pdm buffer is 16 (uint16) used as circular buffer by the dma.
My question is where is the relation between the 24bits in 32bit data frame and the pcm converted sample, which is always on 16bits (uint16). Am I loosing precision in this way?
I don’t see any difference in setting the i2s with 24/32 on 32bit data frame since I’m only obtaining 16bit pcm samples.
is there some configuration that I’m missing?
Could it be the pInternalMemory[…] variable in the pdm configuration struct?
thanks a lot
