Interrupt Newb Question:


Closed Thread
Results 1 to 2 of 2
  1. #1
    Tear's Avatar
    Tear Guest

    Default Interrupt Newb Question:

    Hello Everyone,

    I was wondering where I can find some good example code of using interrupts in PBP?

    What I am trying to do is have 2 push buttons one for increasing a delay and the other for decreasing the delay. When the button is pushed it will jump to the interrupt and increase/decrease the delay depending on the button. Since I will be using delays as long as 30 sec I dont want to have to hold the button the whole time waiting for the PIC to see that the button is pressed while it is in it NOP delay loop. I have the 2 buttons attached to I/O Port B line 4 and 7 on the PIC16F84. This is according to the PIC16F84 datasheet. Also, on the datasheet they talk about how the change on the I/O pin sets the RBIF flag on interrupt. With PBP do I need to worry about this?

    Since I am brand new to the PIC and PBP world I really am not sure where to look for help on this.

    Thanks,
    MIchael
    Last edited by Tear; - 27th June 2005 at 18:16.

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


    Did you find this post helpful? Yes | No

    Default

    Regards,

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

Similar Threads

  1. Interrupt question
    By ultiblade in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 26th November 2009, 20:12
  2. Can't ID interrupt source with this IntHandler??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd June 2009, 02:35
  3. Help with Analog Interrupt
    By brid0030 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th February 2008, 18:14
  4. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01:07
  5. Interrupt question
    By stone in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th January 2005, 23:11

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