how to set target time for specific days

Hello ,

hi everyone, in my project i am using internal RTC timer for calendar concept like when i set a target time via UART for every day the internal RTC  timer should compare with target time and it should ring the buzzer by the way its working fine now , but i need to set target time for specific days as well as every day so i am bit confused to implement this thing if anybody have  idea or any  reference  please let me know.

thank you. 

Parents Reply Children
  • Hello,

    The RTC on the nRF52810 is not a "Real Time Clock", but a "Real Time Counter". The difference is that the Real Time Counter doesn't tick once every second, but a lot quicker (in this case 32768Hz). Unlike a Real Time Clock, the Real Time Counter doesn't keep count when you power off the device, and it actually doesn't have any sense of the "real time". Only the relative time since you started the real time counter. 

    Yes, your right its a real time counter like i am going to set the real time and its just counting the values parallelly with real time but is it possible to set a time for specific days time as well as every day ??. the link what you shared is contains calendar application so is that possible to implement my requirement as above states.

    thank you.

  • sagarnayakm said:
    is it possible to set a time for specific days time as well as every day

    The samples asks you for a date and time, and then it starts counting up from that. I see that there are no project files for the nRF52810 in that github (it was published before the nRF52810 was announced), but you can probably just take the main.c and nrf_calendar.c/h files and add it to any example from the SDK.

    Best regards,

    Edvin

Related