DT's Instant Interrupts trouble


Closed Thread
Results 1 to 8 of 8

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    For interrupt-on-change you need to read the port to allow the interrupt flag bit to be
    cleared. This takes a snap-shot of the port logic, and triggers the interrupt-on-change
    again once the value on the port changes after the last read.

    To prevent it from interrupting if you hold a button down too long, then release it, just
    use a while/wend to wait for the button to be released. I.E. wait until the switch is
    released before exiting your interrupt handler. Then only the change when your switch is
    pressed should generate the interrupt.
    Regards,

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

  2. #2
    Join Date
    Oct 2008
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    Thanks Bruce that did it!
    By the way, your website is very informative.

Similar Threads

  1. Instant Interrupts - Revisited
    By Darrel Taylor in forum Code Examples
    Replies: 772
    Last Post: - 17th February 2016, 22:14
  2. Clock using Instant Interrupts
    By PICpocket in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th February 2009, 21:43
  3. DT instant interrupts with mister_e keypad
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th November 2008, 20:02
  4. DTs instant Interrupts
    By Mugelpower in forum PBP Wish List
    Replies: 5
    Last Post: - 22nd February 2008, 17:26
  5. Keypad and DT's Instant Interrupts
    By Homerclese in forum General
    Replies: 11
    Last Post: - 27th April 2007, 06:32

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