Reset timer prescaler counter
In my STM32H7 application I start a timer, stop it in an update interrupt handler (by setting ARR to 0), then when appropriate I set a new ARR value thus restarting the timer. This happens very frequently. During each such period I execute a number of compare interrupts. They happen say every 10 us. The timer prescaler is set so one timer count is one microsecond.
I observe some jitter between the timer start and the first compare event time. I suspect a reason for this is that the timer doesn't really start from 0 (even if I write 0 to CNT after restarting the timer, just in case). My guess is then, that the prescaler counter, that counts the actual 240 cycles before incrementing CNT, doesn't get cleared when I stop or restart the timer, or when I clear CNT.
Am I correct? And if so, is there a way to clear the prescaler counter so I'd be able to restart the timer from a REAL zero?
