Question
STM32F0 input capture ( CCR1 stays 0)
Posted on July 30, 2015 at 14:17
Hello
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?