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

How to enable and use RTC0, RTC1, and RTC2 -- nRF52832

I am currently using nRF52832 with SDK v11.0.0 and S132 v2.0.0. I'd like to enable either RTC2 or RTC0 as a dedicated counter for the keeping track of time (LFCLK). RTC1 is already designated for general purpose timings on LFCLK with prescaler => 0. Is it possible to have all three instances of RTC0/1/2 enabled for time keeping, each with it's own unique respective prescaler value? As mentioned before, I'd like a fully dedicated instance of RTC for keeping track of time where the prescaler value if maxed out at 4095.

Parents
  • FormerMember
    0 FormerMember

    When using the softdevice, RTC0 is blocked blocked by the softdevice, see this chapter in the softdevice specification. So your application is free to use RTC 1 and RTC 2. It should be possible to have three different instances of the RTC running.

    For how to use and declare an instance of the RTC, you can have a look at the rtc example in the SDK.

Reply
  • FormerMember
    0 FormerMember

    When using the softdevice, RTC0 is blocked blocked by the softdevice, see this chapter in the softdevice specification. So your application is free to use RTC 1 and RTC 2. It should be possible to have three different instances of the RTC running.

    For how to use and declare an instance of the RTC, you can have a look at the rtc example in the SDK.

Children
Related