Continuous Interrupts when using DT_INTS and an INCLUDE file


Results 1 to 9 of 9

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Can anyone tell me why it would create continuous INT2 interrupts?
    My crystal ball's in for repairs, so you'll need to post all your code....;o}

    Code:
    AlarmHdlr:
        Goto Alarm     ' Call Alarm handler subroutine in INCLUDE file
    @ INT_RETURN
    With your interrupt handler jumping to AlarmHdlr, what happens in your Alarm routine
    to send it back to the proper place to return from the interrupt, to land on your
    @ INT_RETURN?

    @ INT_RETURN clears the interrupt flag bit (& handles GIE), which keeps it from
    returning to your int handler.

    Your GOTO Alarm is probably leaving the interrupt flag bits set, and it simply returns assuming
    the interrupt is still pending.
    Last edited by Bruce; - 14th January 2010 at 23:12.
    Regards,

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

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