F0 RTC Alarm matching - documentation typo?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-07 3:30 PM - edited ‎2025-01-07 3: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:
A complex system designed from scratch never works and cannot be patched up to make it work.
- Labels:
-
Documentation
-
RTC
-
STM32F0 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-07 3: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-08 1: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.
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-08 1: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!
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-09 3:50 AM
@STTwo-32 Here's another:
The description of ALRAF here omits that it also depends on RTC_ALRMSSR and, thus, RTC_SSR.
Again, RM0091 is the same.
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-09 4:37 AM - edited ‎2025-01-09 4:40 AM
This problem is present probably across all RMs, both RTCv2 and RTCv3 (and of course also for ALRBF where available).
Maybe at that point, it would be more appropriate not to try to explain the mechanism leading to ALRAF in detail, but to give a pointer to the respective subchapter in the narrative
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-20 2:38 AM
Hello @Andrew Neil @waclawek.jan
Sorry for my late replay. I've escalated the clarifications request to our teams internally (under internal ticket 200777). They may consider it on the coming revisions of the DOCs. Thank you for your contribution.
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.
