Quote Originally Posted by Acetronics View Post
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?