Hello,
I am currently trying to record audio using a PDM microphone on the nrf52840 using the nordic PDM library. I have configured the PDM with the default settings, enabled the PDM with nrf_pdm_enable(), initialized the PDM using nrfx_pdm_init(&config,drv_pdm_hand) where config is the config created with the default settings and the drv_pdm_hand is a defined handler, and ran nrfx_pdm_start() to begin data collection. When I follow these steps, I notice that a clock signal is not generated on the pin I define so the data is not being recorded. Are these the correct steps to follow and is this order correct? If not, what are the steps I should be following to begin PDM recording. Thank you.
static void audio_init()
{
ret_code_t err;
nrfx_pdm_config_t config1 = NRFX_PDM_DEFAULT_CONFIG(18, 16);
nrf_pdm_enable();
err = nrfx_pdm_init(&config1, drv_pdm_hand);
APP_ERROR_CHECK(err);
err = nrfx_pdm_start();
APP_ERROR_CHECK(err);