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 ?
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 ?
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
Hi, i dont understand too much about the nrf5-calendar-example, i just know that i can change RTC in marco. But I used app_timer as you said and time.h to create my own calender and it works well. Thank you for suggestion.
Hi, i dont understand too much about the nrf5-calendar-example, i just know that i can change RTC in marco. But I used app_timer as you said and time.h to create my own calender and it works well. Thank you for suggestion.
Good to hear you found a solution. I will close the case then