|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
|||||
|
|||||
|
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).
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Interupts/sec | cprogrammer | Programming | 9 | 12-10-2006 12:46 |
| Interupts on Vex in MPLab | Andrew Schreiber | FIRST Tech Challenge | 1 | 24-05-2006 08:32 |
| Interupts on the Pic18 | Andrew Schreiber | Programming | 10 | 21-01-2006 22:54 |
| Interupts? | Validius | Programming | 6 | 11-01-2006 18:29 |
| Need interupts help, and another question... | Kevin Karan | Programming | 7 | 22-02-2004 11:20 |