Ttelmah Guest
|
|
Posted: Sat Aug 20, 2005 2:34 am |
|
|
As described, no...
There will only be two possibilities. The line has been operated, in which case you interrupt, or the line is in it's idle state. If you are saying that you perhaps have a number of other buttons, connected to other inputs, and then use a seperate button connected to RB0, as a 'activate' button, then yes, of course.
You can do something along these lines, without a seperate button, using an 'AND' gate. If (for instance), you have a keypad, with four keys, pulling to 0v, and four pull-up resistors to keep these lines 'high' when no key is pressed. Then connect the four lines to four inputs on an AND gate, as well as four processor inputs, then connect the output of this gate, to the INT line, you will get an interrupt when any key is pressed, and can check in the interrupt handler, which key is involved.
Best Wishes |
|