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

Which HF clock will be chosen by BLE stack?

Hi, In my code, I have not started the HF clock. I call the ble_stack_init where "SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL);" is called. Which HF clock will be chosen at what PPM by the micro if I don't deliberately start the HF clock like this:

	NRF_CLOCK->EVENTS_HFCLKSTARTED = 0;

	NRF_CLOCK->TASKS_HFCLKSTART = 1;


     while(NRF_CLOCK->EVENTS_HFCLKSTARTED == 0);
Parents Reply
  • Hi Stian, Thanks for the reply. I need to generate pulses as low as 30usec(on time = 30usec and off time = 70 usec) width in my project. I calculate 1 second = 10000 cycles (1 cycle = 30usec on and 70usec off). I use gpiote+ppi to output the pulses. I have used driver apis (not directly register write) for all the functions used. Since they all use softdevice for the driver, I thought the HF Xtal clock started by softdevice would be used for all those driver functions.

Children
No Data
Related