AnsweredAssumed Answered

STM32F0 input capture ( CCR1 stays 0)

Question asked by kostorz.lukas on Jul 30, 2015
Latest reply on Jul 31, 2015 by Amel N

I generated code using CubeMX in order to measure a pulse (20µs - 100ms).
TIM2 is what I am using for that.

In the HAL_TIM_IC_CaptureCallback I am checking the value in the CCR1 register.
I am expecting that inside CCR1 the captured value will reside.
Unfortunately there is always the preload value as it was configured during initialization of TIM2.

Is there something I messed up? I assume that the timer is not counting at all.
Is there a way to proof this?