This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

PDM Event handler not being fired

I am trying to interface the microphone with nrf52840 and using the PDM interface. After initializing the module (nrfx_pdm_init) and then set the buffer , I do see clock and data signals on the Saleae but the pdm event handler is not being fired. 

err = nrfx_pdm_init(&pdmConfig, nrfx_pdm_event_handler);
CHECK_ERR(err);
err = nrfx_pdm_start();

Both functions returns SUCCESS, 


On further digging into the function , I tried to check the status of PDM IRQ, using the api below and returns false each time.
I think thats the reason the event handler is not being called. irq_status = NRFX_IRQ_IS_ENABLED(PDM_IRQn);

 Any ideas why this would happen.

Related