This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

combining two Interrupts

I want to detect positive and negative edges that are generated by
a limit switch.

1. I am using P89V51RD2 .
2. I want to do two different tasks upon these edges.
3. I am making use of capture module of p89v51rd2(for rising edge) and INT0 (for falling edge). since it will give rise to two different ISRs.

4. that's why I have shorted the two pins viz. INT0 & CEX0 (p1.3), and given to the switch.

but I am not getting the correct results.??

Is there any wrong in combining these two inputs(interrupts) ??

Parents Reply Children
No data