10 years, 5 months ago.

How to detect PWM falling edge

Hi,

i have Pwmout (which is running continuously) on one pin and i would like read some data right after the falling edge of PWM but only in one function which i call somewhere else in my program. I don´t know how to do it. i was thinking about interruptin (on same pin as PWM) but it would stop my program all the time not only in one function.

Thanks for help.

Be the first to answer this question.