2023-07-10 03: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.
2023-07-10 03:50 AM
Hello
Put or | like this
2023-07-10 04:02 AM - edited 2023-07-10 04: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.
2023-07-10 05:38 AM
the main problem is CNT registers. When CNTL is overload CNTH isn't increment automatic.
2023-07-10 06: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
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