@Darrel Taylor Interrupt ;-)


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Here's another reason ...,

    You can't turn GIE off. If you do, it jumps to the handler then turns GIE back on.
    Code:
    LED1  VAR PORTB.0
    
    ON INTERRUPT GOTO MyINT
    
    Main:
        PAUSE 500
        INTCON.7 = 0
    GOTO Main
    
    DISABLE
    MyINT:
        TOGGLE LED1
    RESUME
    That will flash the LED via the Interrupt handler, even though no interrupts have occured.
    <br>
    DT

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


    Did you find this post helpful? Yes | No

    Default

    One more reason to use DT-INTS ehh..;o}

    BTW: Nice work on the new interrupt routines Darrel. Most impressive.
    Regards,

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

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    BTW: Nice work on the new interrupt routines Darrel. Most impressive.
    Thanks Bruce,

    Let me know when you get the CAN module working. <hr>

    Oh, and Robson,

    I was just chit-chating with Bruce before.

    INTCON.7 = 0 should not be in your program.

    Sorry for the confusion.
    <br>
    DT

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