If an interrupt is requested while inside another interrupthandler and the interrupt is disabled at eh moment, how to prevent it from triggering as soon as the interrupt is reenabled?
Ex: INT1 triggers an interrupt. When inside the handler INT0 also triggers. Since INT0 is disabled, the program won't jump to the INT0-handler at once, but it does as soon as INT0 is enabled again. And I don't want it to do that...
I've tried to clear the INTF0 interrupt flag. The datasheet says that setting it to one will clear it, but that doesn't work either.
By the way, I'm using an ATMega8.