Correct way to clear TIM_SR_UIF after setting TIM_EGR_UG?
Hello,to update e,g. PSC before starting a timer, an update event has to be generated. This update event will set UIF and to avoid an interrupt from the update event, the UIF flag needs to be cleared. A sequence TIM1->EGR = TIM_EGR_UG; TI...