cancel
Showing results for 
Search instead for 
Did you mean: 

Is this correct about the RTC and the sub second counter

MSipo
Senior II

I'm using an STM32L051.

Is this how the sub second counter works in the RTC? The sub second counter always starts at PREDIV_S when a new second starts?

The graph shows a simplified example when PREDIV_S is 3.


_legacyfs_online_stmicro_images_0693W00000bkppKQAQ.png

3 REPLIES 3

Which STM32?

> Is this how the sub second counter works in the RTC?

Yes. However, note, that reading it out properly may be tricky.

JW

I'm using an STM32L051.

Thanks for your link. This was good information.