Question
Input Capture Rising Edge IRQ Triggers A Update Event IRQ
Posted on February 04, 2015 at 17:46
Hello
I'm using the Update Event (UEV) of TIM1 to count the CNT overflows (CNT > ARR). I'm using the capture compare IRQ of TIM1 on channel 1 to catch the rising edges of an input signal. Now I've got a strange thing: On each time the TIM1 captures a rising edge it triggers the capture compare interrupt and the UEV interrupt. The input signal and the CNT overflow are not syncron so this can not be a reason. This behaviour is not mentioned at the manual and the register description. Has anyone an idea why this happens and if possible how divide this two interrupts? Thanks #input-capture #update-event #stm32-input-capture-update-even