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

How to config NRF51822's CLOCK to 32MHz

Hi: I come across a problem when I debug NRF51822. I don't know how to config its clock.My board XTAL is 16MHz, and I want config is to 32MHz,Is the method below OK? NRF_CLOCK->EVENTS_HFCLKSTARTED = 0;
NRF_CLOCK->XTALFREQ = UICR_XTALFREQ_XTALFREQ_32MHz; NRF_CLOCK->TASKS_HFCLKSTART = 1;
while (NRF_CLOCK->EVENTS_HFCLKSTARTED == 0) ;

Is there a PLL in this IC?

thanks

Related