2023-05-10 09:31 AM
Hello,
I'm currently working in a project with the Nucleo-L476RG board. Basically, I have a MEMS microphone (AN-000048) connected to the board. The microphone (I pretend to work in stereo mode) sends PDM data and I use the DFSDM module get the microphone data in PCM format.
My problem comes with the DFSDM module configuration. By consulting documentation and videos about the module, I've arrived at some conclusions, which I use to configure the module:
The values I get in the buffer that DFSDM uses for storing the data aren't in this range. However, I've read that the resolution of the DFSDM is up to 31 bits but the resolution of the output data is only up to 24 bits. I really don't understand this, but I suppose that I haven't to be concerned about that because I use 13 bits. I also asume that the right bit shift option is for cases where the DFSDM resolution is grater than 24 bits. Am I correct?
Regardless, if I get rid of the 8 LSB of the buffer, so i get the 24 bits that are the actual data (not quite sure about that), I don't get the resolution I expect.
Can someone please help me to understand how to set the resolution of the DFSDM data and what is the right bit shift for? What should I expect to see in the buffer that DFSDM uses to write? I've searched but I can't find any resource that helps me to understand how does it work or that leads me to the error that I'm doing (because I assume that if the data is not in the +/- 4096 range is because I'm doing something wrong).
Any help is appreciated! Also forgive me if i've done one or several gramatical/ortographic errors, english is not my first language.
2024-04-22 10:19 PM
Hello,
I am facing the same problem as you. Did you get the solution?
2024-07-16 12:04 AM
Anyone any news on this topic?
FPalm did you get further with the project ?
How did you select the buffer size for the DFSDM DMA where the PCM is stored?