AnsweredAssumed Answered

STM32F103 timer compare match interrupt while downcounting

Question asked by Inductive on Nov 5, 2014
Latest reply on May 7, 2015 by salam.mark
Hi,

Consider this situation:

TimerX is counting down from 1000 to 0 and it will up-count from 0 to 1000 afterwards (center aligned PWM).

If I set a CC to something like 200, and enabled CC interrupt, the interrupt would happen when the timer was upcounting from 0 to 1000 and it crosses 200. 

But... I want an interrupt while it's down counting, in other words, when it's going from 201 to 200. Not when it's counting up from 199 to 200.

Is there any solutions?

Thanks

Outcomes