On Jul 14, 2006, at 1:07 PM, jose m wrote:
If the ATMega128's interrupts are
disabled and enabled again, what happens with the
interrups signalled when they were disabled?
The interrupt sets the interrupt pending flag.
If interrupts are enabled and the interrupt pending flag is 1, the
atmega128 clears the flag and executes the interrupt handler.
So, if interrupts are disabled, the interrupt sets the flag. Then,
when interrupts are reenabled, the processor issues the interrupt.
Note that for periodic (e.g., not the TX) interrupts, this behavior
means you can "miss" interrupts. If interrupts are disabled for
longer than the interval between two interrupts, then the status
flag is set twice with the same effect as being set once: the
interrupt fires one time.
Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help