For my project I'm using an RV-8564-C2 RTC module. In the datasheet I see that alarm registers up to a month. How do I work it out if I want an alarm after for example 40 days or 2 months?
How to achieve an RTC alarm more than one month?
830 views Asked by Ghani AtThere are 2 answers
My interpretation of the datasheet is that you cannot set an alarm for more than a month in advance. You can set an alarm for a specific day of the month (or day of the week) and a specific time of day, but not a specific month. If want to set an alarm for a specific month then I guess you'll have to check for the month in software. For example, set the day of the month alarm so that the RTC alarms every month on the desired day and time. Then the software handler for the alarm should check the month. If the software handler determines that it is not the correct month yet then it should ignore the alarm (or, if necessary, reset RTC alarm so that it occurs again next month). If it is the correct month then the software handler should promote the alarm to the application.
The device RV-8564-C2 only supports maximum of 5 bits number of days for an alarm.
The device you're are working with only supports 8 bit timer. However, if you choose one with 16 bit timer (e.g. RV-3029-C2) you could use the timer to be able to set an alarm approx 45 days in the future.