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

NRF52840 PDM Clock Control Value for Stereo Application

Hi:

I am working on a stereo microphone application using the NRF52840.  I would like to have the 2 microphones output 16K samples per second (8K samples each for left and right microphones). I can set the PDMCLKCTRL register for 32K samples per second (16K samples per microphone, using PDMCLKCTRL value 0x0A00 0000) but cannot find any reference for setting it to a lower value.

I found a formula for the NRF53x PDM for setting the PDMCLKCTRL but it does not seem to apply to the NRF52x  (PDMCLKCTRL = 4096 * [(Fpdm * 1048576) / (Fsrc + (Fpdm/2))] ) .

Could I get the formula for setting the PDMCLKCTRL register (or a value for 8K per channel output)?  Either divisor (64 or 80) value would be fine.


Thanks,

Joe

Related