Help! My 'interupt', erhm ...only interupts the one time?!!!


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default

    Many thanks Jerson

    (btw I used your ISR - much easier on the eye & it works a treat!)


    One other quick question (to the forum in general) - I have the need for two more external momentary push switches to interface with my program ...I'd also like to use interupts with these - what other input pins can I use? (I've now used the INT_INT pin ...which is an external interupt), but to my untrained eye, it's not easy to establish which other PIC pins would be good contenders.

    I'm using a 16F690.

  2. #2
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by HankMcSpank View Post
    Many thanks Jerson

    (btw I used your ISR - much easier on the eye & it works a treat!)


    One other quick question (to the forum in general) - I have the need for two more external momentary push switches to interface with my program ...I'd also like to use interupts with these - what other input pins can I use? (I've now used the INT_INT pin ...which is an external interupt), but to my untrained eye, it's not easy to establish which other PIC pins would be good contenders.

    I'm using a 16F690.
    You could use the PORTB change interrupt which will trigger any time PORTB is changed, and have code in the interrupt handler that checks to see which pin(s) were pulled low (or high depending on if you are using pull up or pull down resistors).

    Is it extremely time dependant that you need an interrupt? I almost never use interrupts for buttons because polling is generally just as good because of the fact that a human is pushing the button and therefore exact timing is out the window anyway.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

Similar Threads

  1. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  2. I don't understand this code!
    By Russ Kincaid in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 13th February 2008, 02:55
  3. Serout2/serin2 Pbp Problem
    By SOMRU in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th December 2006, 19:55
  4. Time between interupts
    By modifyit in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th April 2006, 18:02
  5. Timer in real time
    By martarse in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th July 2005, 14:24

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