Using an external signal to clear TIM counter
Posted on May 11, 2018 at 20:57I'm using TIM2 as a PWM. I have an (periodic) external signal that should reset the TIM2 counter to zero, so that the PWM is synchronized to the external signal. In a previous naive setup, I used the external signal to...