Skip to main content
MSipo
Senior II
May 25, 2023
Question

Is this correct about the RTC and the sub second counter

  • May 25, 2023
  • 3 replies
  • 1668 views

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

This topic has been closed for replies.

3 replies

waclawek.jan
Super User
May 25, 2023

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

MSipo
MSipoAuthor
Senior II
May 25, 2023

I'm using an STM32L051.