Quote:
Originally Posted by Qbranch
Make sure to && your interrupt flag with the interrupt enable bit. When interrupt enable is off there will be no jump to the interrupt vector, but the flag will still get set.
|
I've never understood the && with the enable bit in the interrupt handler. If the interrupt isn't enabled, there will be
no jump to the interrupt vector so that test will never be executed. Without the interrupt enabled, it's just an ordinary input pin.