sduino icon indicating copy to clipboard operation
sduino copied to clipboard

prescaler updates - forcing these to be picked up

Open dirkx opened this issue 1 year ago • 0 comments

Calling the TIMx_TimeBaseInit(... does not immediately change the prescaler - but waits for a fill cycle/UEV event.

May be useful to add a TIM2->EGR = 1; to trigger an update event to change the prescaler (See note 17.7.17 in the reference manual) in that function. Or have a flag for this.

dirkx avatar Feb 19 '25 18:02 dirkx