Ma relativamente agli Atmega? O in generale?
Mi sembrava di ricordarmi che il professore ci disse che c'era un motivo perché viene fatto così,
There are basically two types of interrupts. The first type is triggered by an event that sets theInterrupt Flag. For these interrupts, the Program Counter is vectored to the actual Interrupt Vectorin order to execute the interrupt handling routine, and hardware clears the correspondingInterrupt Flag. Interrupt Flags can also be cleared by writing a logic one to the flag bit position(s)to be cleared. If an interrupt condition occurs while the corresponding interrupt enable bit iscleared, the Interrupt Flag will be set and remembered until the interrupt is enabled, or the flag iscleared by software. Similarly, if one or more interrupt conditions occur while the Global InterruptEnable bit is cleared, the corresponding Interrupt Flag(s) will be set and remembered until theGlobal Interrupt Enable bit is set, and will then be executed by order of priority.