2019-04-09 04:43 AM
2019-04-09 05: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