You'll need to have a BYTE variableAt this point the variable isn't used for anything.Code:dummy VAR BYTE
But by simply reading PORTA, it resets the Latches used to detect the change on the Port.
Without clearing the "Mismatch" condition, there's no way to reset the interrupt flag.
So as soon as you RESUME from the interrupt handler, it would jump right back into the interrupt again.
<br>
Bookmarks