Using interrupt as an input


Closed Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Posts
    20

    Default Using interrupt as an input

    If I disable the external interrupt on 16F876A, can I use the pin as an input before I re-enable the interrupt? I have an application that has 2 push buttons, and I do not want to add a third just to trigger the interrupt.

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


    Did you find this post helpful? Yes | No

    Default

    If I understand this... the pin is usually used say with a Sensor triggering an Interrupt when the device is operating (say counting pulses from a weather-vane)... but when in SETUP Mode you also have a Button on the same pin for user entry (presetting Alarms and things)... In that kind of scenario, absolutely no problem. The only thing you have to worry about is somebody inadvertantly pressing the button during normal operation and potentially screwing that up by triggering your interrupt.

Similar Threads

  1. Won't go back to SLEEP after 1st Interrupt
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 29th June 2009, 09:00
  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. NEWBIE: Some basic questions using interrupts
    By JackPollack in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 8th March 2006, 02:59
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01:07

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