I'm using the Nucleo32L031K6 and the PWM on TIM2 is working fine except when the signal goes to zero. The input capture interrupt is called when the input changes but if it never changes how can I determine that? In my application I need to know the on time of the pulse which is captured in TIM2->CCR2. If the input is removed quickly enough the TIM2->CCR2 register retains the old value and never goes to zero. Is there a "standard" way to solve this issue?
Thanks in advance,