Is it a correct way to deal with an interrupt?


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Question

    Thanks Dave..........but this question will still be there in my mind if it is a correct way or not. I know there are many ways to do one thing so I wanted to have an opinion about if the way I choose above is a reliable one. I have never written any code having interrupts myself before.
    Last edited by financecatalyst; - 15th November 2009 at 20:53.
    ___________________
    WHY things get boring when they work just fine?

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    Whichever chip you choose, I would never use the

    ON INTERRUPT GOTO structure.

    This statement not only adds to your code size, it makes it run more slowly
    as well, because it has to check (very often) if any of the interrupt flag bits are set. The interrupt response time can also be longer than you expect, since it can only jump to the interrupt routine at the points where it checks for the flags.

    On the other hand, Darrel Taylor's Instant Interrupts uses REAL interrupts. Check out that thread. MUCH better than O-I-G, and easy to use as well.
    Charles Linquist

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. Interrupt Problem
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 16th November 2005, 20:58
  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