Need help with interrupt


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Lightbulb

    Quote Originally Posted by gadelhas View Post
    Hi,

    I only can see one button connected to External Interrupt RB0. PIC16F628, only haves 1 External Interrupt, that is the RB0 Pin. The other butons that you add to the circuit, will not work as interruopt.
    Hi, Folks

    I think something has to be cleared ...

    You also can get " interrupt on change " interrupt with Port B.4 to B.7 ... or ' comparator interrupts" from the Comparator inputs ...

    so, the 3 buttons can generate their own interrupt ...

    Obviously the scheme has to be modified to place the buttons on the right pins ....

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    Hi, Folks

    I think something has to be cleared ...

    You also can get " interrupt on change " interrupt with Port B.4 to B.7 ... or ' comparator interrupts" from the Comparator inputs ...

    so, the 3 buttons can generate their own interrupt ...

    Obviously the scheme has to be modified to place the buttons on the right pins ....

    Alain
    Not only the sheme but also the interrupt source on PBP code. Instead of INT_INT, must put RBC_INT, to make it Interrupt on PortB Change.
    Thanks and Regards;
    Gadelhas

  3. #3
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default

    so you need two buttons to generate an interrupt?

    I've just been through all this pain & rx'ed a lot of help on my recent thread...

    http://www.picbasic.co.uk/forum/showthread.php?t=13558

    To summarise....you can have two switches connected to just the one PIC 'INT' pin - but you'll need to connect some diodes if going that way (I posted a schematic on the above thread).
    Else, as Bruce kindly informed me on that very thread, you can use Interrupt on Change...which was a little more involved (but not a whole lot more)...& which doesn't need diodes & gives you a whole lot more options wrt which PIC pins you can connect your switches to.

  4. #4
    Join Date
    Oct 2008
    Posts
    65


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by HankMcSpank View Post
    so you need two buttons to generate an interrupt?

    I've just been through all this pain & rx'ed a lot of help on my recent thread...

    http://www.picbasic.co.uk/forum/showthread.php?t=13558

    To summarise....you can have two switches connected to just the one PIC 'INT' pin - but you'll need to connect some diodes if going that way (I posted a schematic on the above thread).
    Else, as Bruce kindly informed me on that very thread, you can use Interrupt on Change...which was a little more involved (but not a whole lot more)...& which doesn't need diodes & gives you a whole lot more options wrt which PIC pins you can connect your switches to.
    Thanks guys for the support, I will explore more on this when I get home...

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