Question
Timer interrupt works immediately
Posted on June 21, 2016 at 10:52
Hello.
I have configured the timer 6 to interrupt every 3s, but immediately after initialize the timer the interrupt occurs.Why?1 - HAL_TIM_Base_Init (&htim6);2 - HAL_TIM_Base_Start_IT(&htim6);3 - ''immediately'' (almost) it goes to interrupt handler...How can I resolve this problem?Thank you.