HankMcSpank , Exactly...
Dave Purola,
N8NTA
HankMcSpank, I spoke too quickly.... The pin used for the interrupt should have the cathodes of the two diodes connected to it with a pulldown ONLY... The other two anodes should be connected to each of the resistors and individually connected connected to the port pins to be read as well as the push buttons..
Dave Purola,
N8NTA
Last edited by Dave; - 17th May 2010 at 18:24. Reason: Bad spelling....
Here's one example with 13 switches using just 2 interrupt input pins.
Thanks guys - I have my two switches working sweet onto the one INT pin now (once I figured out that OPTION_REG.6 = 1 wasn't set that is !)
http://www.darreltaylor.com/DT_INTS-14/hello.html
On that above URL, I see Darrel is using a cap to debounce the switches - going that route is there any win over & above using a short pause in the interupt handling routine (200ms seems to be debouncing fine & it save me a couple of caps - I'm not a tightwad, but space is going to be limited on my pcb!)
Bookmarks