2023-10-16 07:17 AM
We are trying to configure TIM1 and an internal comparator to turn-off the TIM1 complimentary PWM outputs on a falling edge event and generate a TIM1 break interrupt.
I was successful to do this with a comparator with Rising Edge event.
But when TIM1 connected to a comparator with Falling Edge event, I just get the break interrupt fired prematurely!!
How should I configure the TIM1 break? Either through Cube-MX or by code?