Programmatically generate a (false) interrupt?


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621


    Did you find this post helpful? Yes | No

    Default

    Hi,
    What "type" of interrupt are you using? ON INTERRUPT, DT-INTS or "true" ASM interrupts?

    By the sound of it you're using DT-INTS in which case my guess is that you can't GOSUB to the handler because the handler doesn't end with a corresponding RETURN (the @ INT_RETURN is not the same thing as a "normal" RETURN) which makes the PIC go off to la-la land.

    Have you tried, after enabling the interrupts, to simply write to the corresponding interrupt flag bit? I've never tried it my self but I can't se why that wouldn't trip the interrupt. For INT0, simply try INTCON.1 = 1

    /Henrik.

  2. #2
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Talking

    That works perfectly! Thank you.

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