
Originally Posted by
Acetronics
Hi,
Just check if corresponding interrupt flags are set ... before clearing them !
that's all !
Alain
LOL so simple ! thank you.
-something like:
Code:
...
ON INTERRUPT GOTO IntHandler
...
...
IntHandler:
If PIR1.0=1 then
PIR1.0=0 'Clear flag
..do my thing...
RESUME
EndIF
If INTCON.0=1 then
INTCON.0=0 'Clear flag
..do my thing...
RESUME
EndIF
but.. if I have 10 interrupts enabled and the last interrupt checking ('If' statement) was the triggered, will I always have to check the previous 9 each??, sounds like it will.
PD: ENABLE & DISABLE are optional, am I ok?
"Beethoven had his critics too, see if you can name 3 of them"
Bookmarks