Using RTC on STM32l4 as a fail safe monthly wake up?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-05 4:38 AM
Wondering if the STM32l4 RTC could be used to wake the processor from standby mode after 1 month.
Powered by the LSI, would the time drift beyond usability? Ie. It does not matter if the device wakes up 30 days or 31 days later. Just as long as its in the "ballpark".
Is a 30 day wakeup interval supported?
Thanks in advance!
Solved! Go to Solution.
- Labels:
-
Power
-
RTC
-
STM32L4 series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-05 5:02 AM
You can configure the RTC alarm to trigger on a specific day of the month for a monthly wakeup. Accuracy depends on using LSE or LSI oscillator for the RTCCLK. For LSI there is a cumulative error which will become significant over a long period. You can reduce the error by calibrating the LSI. For LSE with a low PPM crystal cumulative error is less of a problem.
Jack Peacock
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-05 5:02 AM
You can configure the RTC alarm to trigger on a specific day of the month for a monthly wakeup. Accuracy depends on using LSE or LSI oscillator for the RTCCLK. For LSI there is a cumulative error which will become significant over a long period. You can reduce the error by calibrating the LSI. For LSE with a low PPM crystal cumulative error is less of a problem.
Jack Peacock
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-05 5:35 AM
You can find the worst case LSI frequencies in the datasheet.
Does your definition of ballpark include 2 days earlier or 2.5 days later?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-05 5:49 AM
That's actually not bad at all, LSIs in other STM32 families tend to spread over tens of %.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-05 11:15 AM
Thanks for the responses! This helps a lot
