Quote:
|
Originally Posted by Mike
Phase A would be connected to the appropriate interrupt. Kevin's code is set to interrupt on a low to high logical change of phase A, which will indicate that the wheel is turning. Once you know that the wheel is turning, you can read phase B to find out in which direction it is going.
|
Unless you are using interrupts 3-6, which are triggered on any change in state by default.
