A linear RTC seconds counter on STM32F4
Hi folks,
I have been RTC on STM32F1 for a very long time. I have been using the RTC seconds counter (and subsecond counter) to calibrate RTC continuously (i.e. every day) on-the fly against a reference time (derived from 50-Hz mains).
Now I want to move on to newer MCUs like F3 or F4, which come with a different RTC module that no longer support RTC counter register.
The question is, what would be a proper/best way to emulate/simulate or replace RTC counter function on those newer chips?
Sincerly,
Rob
PS: 1) Have LSE with nominal freq 32768hz. 2) And I want to avoid a counter derivation from calendar module if possible.
#counter #rtc