2023-07-21 05:16 AM
I am using the RTC of the STM32L4 Discovery board and have noticed that the sub-seconds are counting down. Is there anyone with an idea on how to resolve this issue?
Solved! Go to Solution.
2023-07-21 06:20 AM
Why would that be an issue? It's a documented behaviour. Simply subtract the value read out from the subsecond register from the synchronous prescaler to obtain increasing value.
Note, that consistently reading out subseconds together with time/date may be challenging.
JW
2023-07-21 06:20 AM
Why would that be an issue? It's a documented behaviour. Simply subtract the value read out from the subsecond register from the synchronous prescaler to obtain increasing value.
Note, that consistently reading out subseconds together with time/date may be challenging.
JW
2023-07-21 06:26 AM
@KIbra.3 You could also take a look at this discussion on subseconds, where the (apparent) mystery is revealed a little.
Good luck
/Peter
2023-07-28 04:06 AM
Thank you for providing this information. I'd like to know if there is any configuration that may force the RTC to count up instead of subtracting the value.
2023-07-28 04:42 AM
> I'd like to know if there is any configuration that may force the RTC to count up instead of subtracting the value.
No.
JW