Anyway, it seems that I should be able to feed the pulses from all 4 lines to some sort of circuit which would then toggle its output when any of its inputs change. That way I only need one interrupt to call an ISR which then checks the state of four pins and calculates rotation. By the way, I may need the resolution provided by following all 4 transitions, so just interrupting on one of the quadrature lines might not do the trick.
As for the OR gate, I thought about that, but the problem is I need to trigger the interrupt not only on the change from 00 to 01, but also on the change from 01 to 11, or 11 to 10, and so on.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16