adafruit / Adafruit_ZeroPDM

Arduino Library for using ATSAMD processors with PDM microphones (w/I2S)
MIT License
15 stars 5 forks source link

I2S_FRAME_SYNC_WIDTH_SLOT is not working. #3

Open pashinen opened 6 years ago

pashinen commented 6 years ago

I'm trying the same configuration in SAMD21 Xplianed pro through ASF and its not working with I2S_FRAME_SYNC_WIDTH_SLOT, its working with only I2S_FRAME_SYNC_WIDTH_BIT and still i'm not getting the expected data.

If uses I2S_FRAME_SYNC_WIDTH_SLOT then getting stuck below--- while(!(module_inst->hw->INTFLAG.reg & ready_bit)) { / Wait Rx ready / } Attached is the output when using I2S_FRAME_SYNC_WIDTH_BIT. But this output is constant and no fluctuation according to different frequencies played.

pdm_out