Page 1 of 1

Small interrupt problem :(

Posted: Mon May 18, 2015 8:59 pm
by lordhex
Image
How can i chose Trigger on rising edge? Or Trigger on falling edge?
I can only chose both edge :(
I think i am missing something :(

Re: Small interrupt problem :(

Posted: Tue May 19, 2015 10:13 am
by Benj
Hello,

As you click the pin it should toggle between the available states. If the only states that are appearing are for both edges then it is likely that this is all the chip supports.

In your interrupt macro you can read the pins and compare them with the last read using a variable to determine if the interrupt was triggered by a rising or falling edge.

Re: Small interrupt problem :(

Posted: Tue May 19, 2015 11:29 am
by lordhex
Thank's Ben you save me one more time.
This hobby is getting more fun when i learn much.