Hello, I am using a NRF5340 with an IM69D120 mic. I want to record the audio and send it while recording.
Majorly, I want to know: how should i configure my pdm clock to achieve this? How should I add my gain to it?
What should the connection speed be?currently mic is working at 1280khz frequency but audio seems to distorted?
How can I calculate the decimation ratio? ie., for 8 kHz sampling
How is the PDM clock genrated in the below calculation?
how can i set NRF_PDM0->PDMCLKCTRL & NRF_PDM0?
1280K |
0x0A000000 |
PDM_CLK = 32 MHz / 25 = 1.280 MHz. Nominal clock for RATIO=Ratio80. |
// set 1280kHz frequency
NRF_PDM0->PDMCLKCTRL = 0x0A000000;
// set factor of 80 to get 16kHz sampling frequency
NRF_PDM0->RATIO = 1
Manilkandan V