Skip to main content
Dat Tran
Senior II
August 9, 2023
Question

How to set RTC alarm wakeup longer than 7 days?

  • August 9, 2023
  • 2 replies
  • 1078 views

Seem to me RTC alarm allowes maximum 7 days.

Like when I set alarm to 6 days, the system wakeup after 6days. But if I set 8 days, the system will wake up after 1 day, it because 8%7 =1.

 

 

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
August 9, 2023

waclawekjan_0-1691615635500.png

If WDSEL=0 (and MSK4=0), you select on which date is the alarm supposed to fire, so you can have alarm in 28-31 days.

JW

Dat Tran
Dat TranAuthor
Senior II
August 10, 2023

That was what I think. But seems doesn't work to me, no sure what I am missing.

When I set alarm next 20 seconds, and set WDSEL=1 (weekday), the alarm fired well (MASK1,2,3,4 = 0).

Then I switched WDSEL to DATE, nothing else change, still set alarm next 20 seconds, no fired.

Do you know anything else should be set when WDSEL=DATE

Update: I got Date work. I forgot to set AlarmDateWeekDay to Date.

Thank you so much for helping.