|
Re: interupts 3-6??
3-6 are interrupt-on-change, so they interrupt when anything on there changes. Kevin's code determines which pin changed by saving the old state of the port. You XOR the old port state with the current port state to see which bits have flipped and act accordingly. Then you save the current port state as the old port state (that you'll use the next time it interrupts).
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.
Lone Star Regional Troubleshooter
|