cancel
Showing results for 
Search instead for 
Did you mean: 

How to recognize which edge lead to EXTI

matic
Associate III
Posted on January 12, 2016 at 22:06

How do you recognize, which edge lead to EXTI, if it is configured for rising and falling edges?

Now, I look a state of that pin in IDR register, immediately when EXTI occurs. But in that time, between cause of interrupt and my reading, pin could already be toggled. Is there any other, more secure way?

Thanks
10 REPLIES 10
matic
Associate III
Posted on January 13, 2016 at 22:26

OK, understand now. :) Thanks to both of you.