Not knowing what chip you are using... Look for "Interrupt on rising edge", it might be in INTCON2 .
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.
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
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.
Bookmarks