PDM / DMIC not giving any sensible output

I'm trying to capture audio data from a PDM microphone.
Using the dmic sample I output the captured buffer via serial. Though the captured PCM data is 8x the same data. So each time the dmic sample captures one "block" is receives the same data though this is not what I see in my logic analyser.
What is even more puzzling is that I keep getting successful data reads when I disconnect the microphone. That happens with the unmodified dmic sample.

The issue sounds very similar to this old ticket: RE: Trouble extracting data using DMIC 

Used hardware:
nrF5340DK
Microphone: https://www.adafruit.com/product/4346 ( https://cdn-learn.adafruit.com/assets/assets/000/049/977/original/MP34DT01-M.pdf)

Software:
NCS2.5.0 via VSCode Extension
Windows 10

The received output. 1. Zoomed in 2. Full capture

Parents Reply
  • not sure if the system is weird or if you deleted your reply. I'm currently doing a start, read and stop cycle in a loop. Mostly the dmic sample but moved the configuration out of the transfer function.
    I'm not quite sure what the proper way is to do a continues read stream. I've been going through the Thingy:53 firmware but its quite abstracted and verbose so hard to track down how exactly that is handled for audio streaming.

Children
Related