Interupts - can two switches share the 'INT' Pin?


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    HankMcSpank , Exactly...

    Dave Purola,
    N8NTA

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    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....

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Here's one example with 13 switches using just 2 interrupt input pins.
    Attached Images Attached Images
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  4. #4
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default

    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!)

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts