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

implement nrf5-calendar-example in nrf51 and sdk12.3

Hello guys, i want to implement nrf5-calendar-example in nrf51822 with SDK 12.3. 

This library can use RTC0/RTC1/RTC2. But i have only RTC0 and this RTC0 is for SD (am i right?). How can i implement this library ?  

Parents
  • Hi 

    You mean you are using RTC1 for something else?

    Do you have the app_timer module in your example?
    If so you can setup a 1 second callback through the app_timer library, and use that to update the second counter in nrf_calendar. 

    It is also possible to use a TIMER module to trigger nrf_calendar every second, but doing this will increase the average current consumption significantly, so if you plan to run from battery this is not a good solution. 

    Best regards
    Torbjørn

Reply
  • Hi 

    You mean you are using RTC1 for something else?

    Do you have the app_timer module in your example?
    If so you can setup a 1 second callback through the app_timer library, and use that to update the second counter in nrf_calendar. 

    It is also possible to use a TIMER module to trigger nrf_calendar every second, but doing this will increase the average current consumption significantly, so if you plan to run from battery this is not a good solution. 

    Best regards
    Torbjørn

Children
Related