2025-01-07 03:30 PM - edited 2025-01-07 03:44 PM
RM0360 (STM32F030x4/x6/x8/xC and STM32F070x6/xB) says:
"The ALRAF is set to 1 if the calendar subseconds, seconds, minutes, hours, date or (sic?) day match the values programmed in the alarm registers RTC_ALRMASSR and RTC_ALRMAR"
But, surely, that should be AND - not or ?
ALRAF is set to 1 if the calendar subseconds, seconds, minutes, hours, date and day match the values programmed in the alarm registers RTC_ALRMASSR and RTC_ALRMAR
RM0091 (STM32F0x1/STM32F0x2/STM32F0x8) is the same:
2025-01-07 03:48 PM
hello @Andrew Neil
Thank you so much for your feedback. I Will take a look internally and i Will get back to you with an answer ASAP.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-01-08 12:24 AM
"date or day" is correct, as you can select (using RTC_ALRMAR.WDSEL), whether you want to wake up say on 15th of each month, or say Wednesday on each week. In other words, "date" here means "date-of-month", and "day" here means "day-of-week".
But I see where are you coming from: the conditions for seconds, minutes, etc. are indeed ANDed together (after being individually masked) to provide the alarm. This is IMO quite hard to formulate clearly in a narrative; perhaps something such as an equation or a schematics would be more illustrative here.
JW
2025-01-08 01:17 AM
@waclawek.jan wrote:"date or day" is correct, as you can select (using RTC_ALRMAR.WDSEL), whether you want to wake up say on 15th of each month, or say Wednesday on each week.
Ah - I hadn't realised that.
So the alarm is actually triggered on:
(subseconds AND seconds AND minutes AND hours) AND (date OR day)
@waclawek.jan wrote:This is IMO quite hard to formulate clearly in a narrative; perhaps something such as an equation or a schematics would be more illustrative here.
Indeed.
2025-01-08 01:19 AM
@waclawek.jan wrote:"date" here means "date-of-month", and "day" here means "day-of-week".
I think those terms are generally used poorly & confusingly throughout.
Good Naming Is Key!