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) ??
but I am not getting the correct results.?? what results were you expecting and what are you getting?