Question
STM32L100 RTC
Hello!
In my design, I want to use the STM32L100 series microcontroller. How can I get a clock frequency RTC of 1 Hz if I use a highly stable external oscillator with a frequency of 30 MHz to clock the microcontroller.
PREDIV_A can be 1,2,3, ..., or 127
PREDIV_S can be 0,1,2, ..., or 8191
HSE_RTC = 30 MHz / 16
ck_spre = RTCCLK / ((PREDIV_A + 1) * (PREDIV_S + 1))
ck_spre = 1875000 / ((127 + 1) * (8191 + 1)) = 255 Hz
How do I get a RTC 1Hz frequency?
