Hello,
I am using nRF52840 DK, and SDK version 17.1.0
I dynamically and explicitly request and restart HFCLK clock source after I released HFCLK clock source while using BLE connection, and I noticed that RTC Counter is incremented by 12 to restart HFCLK clock source in the case of using 32.768 kHz RTC Counter increment frequency.
I want to know how I can explicitly restart HFCLK clock source earlier than within 12 RTC Counter increments ( within 367us ), after I released HFCLK source.
Is there any configuration requirement about sdk_config.h?
I release and restart HFCLK clock source by following way.
HFCLK release :
nrf_drv_clock_hfclk_release();
while(nrf_drv_clock_hfclk_is_runnnig()){
; // Just Waiting
}
HFCLK restart :
NRF_LOG_INFO(“Internal Counter Before = %d”, NRF_RTC2->COUNTER);
nrf_drv_clock_hfclk_request();
while( !(nrf_drv_clock_hfclk_is_runnnig()) ){
; // Just Waiting
}
NRF_LOG_INFO(“Internal Counter After = %d”, NRF_RTC2->COUNTER);
Thanks.
Shossy