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

Waiting for stability of HFCLK

When HFCLK was changed to "64 MHz crystal oscillator (HFXO)", the following code was implemented.

    NRF_CLOCK->EVENTS_HFCLKSTARTED = 0;
    NRF_CLOCK->TASKS_HFCLKSTART = 1;


    while (NRF_CLOCK->EVENTS_HFCLKSTARTED == 0);

I am aware that "while (NRF_CLOCK->EVENTS_HFCLKSTARTED == 0);" is waiting for oscillation stability of "64 MHz crystal oscillator (HFXO)".
Is this idea correct?

Parents Reply Children
No Data
Related