Question about PDM library source code

Hi,
I am using PlatformIO (on VSCode) to develope a audio recognition project on NANO 33 BLE.
I just have a look into the PDM library source code(under framework-arduino-mbed@3.5.4) and found that somewhere of the begin and IrqHandler function is beyond my understanding.

In begin, nrf_pdm_enable is called but SAMPLE.PTR/SAMPLE.MAXCOUNT are not well set, will this leads to an error that data incoming from PDM interface be fed to an unexpected place?

in IrqHandler, while STARTED_EVENT is received, SAMPLE.PTR is set to the other buffer and index is swapped, but why the comment is "// make the current one available for reading"?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.