Help with interupts


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Help with interupts

    Not knowing what chip you are using... Look for "Interrupt on rising edge", it might be in INTCON2 .
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Aug 2008
    Posts
    39


    Did you find this post helpful? Yes | No

    Default Re: Help with interupts

    It is a PIC18f8722

  3. #3
    Join Date
    Aug 2008
    Posts
    39


    Did you find this post helpful? Yes | No

    Default Re: Help with interupts

    OK INTCON2 fixed the problem. Thanks.

    NowI think really need to impliment an interupt on a timer. I need to do several things at ones.

    1) Check condition on a multiple pins(Buttons) and do something on other pins(LED) based on what the button status is.
    2) Keep a count of how long since an action occured. (I.E. I wnat to run a sub routine every X Minutes

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Help with interupts

    ON INTERRUPT works fine if you do not care if the event is not acted upon instantly. ON INTERRUPT is pretty easy to use.

    If a interrupt is time sensitive you will want to use ASM interrupts, there is an example in the manual, but ASM interrupts can be tricky.

    The best of both, easy and fast are brought together here.
    http://darreltaylor.com/DT_INTS-18/home.html

    You will still need to have your data sheet open...
    Dave
    Always wear safety glasses while programming.

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