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

For nRF51822, can I use both RTC and Watchdog simultaneously?

In my application, I would need to use both RTC(function as a timer) and Watchdog(as watchdog). Is it OK? I saw in the manual "the watchdog will automatically force the 32.768 kHz RC oscillator on as long as no other 32.768 kHz clock source is running and generating the 32.768 kHz system clock". What does that mean? In my hardware board, no 32.768 LPCLK clock source. Only the HPCLK 16MHz clock.

Thanks for any answer.

  • Hi,

    If you are using the SoftDevice stack, you will have a 32k source running, as this is required by the stack. The internal 32k RC oscillator can be used by all peripherals that require a 32k source, including the watchdog.

    If there is no 32k clock source running in your system when enabling the WDT, the WDT will start the 32k RC oscillator to keep its timing to ensure the operation of the WDT.

    Cheers, Håkon

Related