Configuring LPTIM Parameters with the STM32L4
I obtained the equation from a different Q&amp;A forum, and the update rate (in Hz) is:
\begin{equation}
UpdateRate_{LPTIM} = \frac{ClockSource}{(Prescaler)(ARR + 1)}
\end{equation}
Based on the equation above, I should be getting an update rate of 1.9Hz, so I will double-check my measurements with a Logic Analyzer (at 1.9Hz, DoRandomStuffHere() should be executing periodically and slower than 1 second in between each function execution).
In the code above, the only way to slow it down is to change the clock source's frequency or to use a different clock source that is slower (such as internal LSI).