2019-04-09 4:43 AM
2019-04-09 5:34 AM
On some STM32s the RTC has a subseconds register. You can configure one of the RTC Alarms to generate a periodic interrupt based on the subseconds count, which is the prescaler count for the 1Hz RTC seconds tick.
I use it to create a one second timebase, setting the alarm at all subseconds bits on. Turn off day, hour, minute and second masks, and enable subseconds alarm mask.
Jack Peacock
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.