I am requesting the softdevice to start/keep the 16Mhz crystal oscilator running with the following code:
// Request 16 MHz crystal oscillator err_code = sd_clock_hfclk_request(); APP_ERROR_CHECK(err_code); // Wait for the external oscillator to start up do { sd_clock_hfclk_is_running (&p_is_running); }while(p_is_running==0);
From the nRF51822 Product Specification v2.0, I can see that the Total Startup time for the 16Mhz is up to 800us. I would like to know if the sd_clock_hfclk_is_running only returns true when the 16Mhz crystal oscillation is stable or do I have to introduce a 800us delay after this function?
Please let me know if you need more info.
Thanks.