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

pdm clock can't gernerate,

i use nrf52_DK to debug PDM with a digital MIC, and select the P0.09 for the PDM clk, but i have not see any clock signal output, is it right? and i also haven't see the convet date, what's wrong?

  • FormerMember
    0 FormerMember

    What does your code look like?

    When I test here, the following code will generate a clock output:

    #define PIN_CLK_OUTPUT 4
    
    
    int main(void)
    { 	
    		NRF_PDM->PSEL.CLK = (PIN_CLK_OUTPUT << PDM_PSEL_CLK_PIN_Pos) | (PDM_PSEL_CLK_CONNECT_Connected << PDM_PSEL_CLK_CONNECT_Pos);
    			
    		NRF_PDM->PDMCLKCTRL = (PDM_PDMCLKCTRL_FREQ_Default << PDM_PDMCLKCTRL_FREQ_Pos);
    		
    		NRF_PDM->ENABLE = (PDM_ENABLE_ENABLE_Enabled << PDM_ENABLE_ENABLE_Pos);
        
    		NRF_PDM->TASKS_START = 1;
    		
        while (true)
        {
    
        }
    }
    
Related