One more suggestion...If you are using global volatiles shared between an interrupt and mainline code, interrupt handler performance may be improved by moving the volatile into a temporary variable.
galen volatile uint16_t counter; SIGNAL(TMR0_OVERFLOW) { uint16_t tmp; tmp = counter; tmp++; if (tmp == 100) tmp = 0; counter = tmp; } _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list