STM32F103 RTC Register problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-10 3:46 AM
Hi. I have a problem with the RTC on STM32F103C6T6A. I wanted to add the ability to set the time. I would like to have a 24h clock. When CNTL overflows, CNTH does not increase making the clock reset close to 18h.
- Labels:
-
RTC
-
STM32F1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-10 3:50 AM
Hello
Put or | like this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-10 4:02 AM - edited ‎2023-07-10 4:07 AM
Hi. Still nothing.
when I exceed the value of 18h (CNTL overflow) RTC resets leaving "garbage" as minutes. (18h->RESET->0:48h).
CNTH still 0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-10 5:38 AM
the main problem is CNT registers. When CNTL is overload CNTH isn't increment automatic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-10 6:18 AM
Do you use some of the low-power modes?
> while ((RTC->CRL, RTC_CRL_RTOFF) == 0 );
Did you want to use the comma expression here?
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-10 10:03 PM
The only thing I use is a Vbat power supply to back up the RTC when it shuts down
