cancel
Showing results for 
Search instead for 
Did you mean: 

Enabling timer compare interrupt only on rising edges or falling edges

CTabo.1
Senior

Hello,
I have programmed one of the advanced timers in up/down mode and I have used one of the compare units to generate a PWM signal.

I would also like to generate an interrupt on compare events, but only on the falling edges.
Is it possible to specify the edge directon when enabling the compare event interrupt?
Or I have to distingush the edge direction only after the interrupt has been triggered on compare event, by checking the counter direction?

Thank you,
Carlo

 

1 ACCEPTED SOLUTION

Accepted Solutions

> Is it possible to specify the edge directon when enabling the compare event interrupt?

 

waclawekjan_0-1715016721699.png

JW

View solution in original post

2 REPLIES 2

> Is it possible to specify the edge directon when enabling the compare event interrupt?

 

waclawekjan_0-1715016721699.png

JW

Thank you very much!

Regards,
Carlo