timer reset by clearing counter register
Hi,
I'm resetting the timer without disabling it, i clear the counter register by
__HAL_TIM_SET_COUNTER(&htim2, 0);this will reset the htim2.Instance->CNT, which is the counter period,
however the timer was set to be count up to (prescalar) * (counter period)
I only clear the latter.
In my opinion, I should also clear the former, or may causes an small inaccuracy, but I don't know how to clear it, I can't find the counter register of prescalar, any help??
Thanks!
