#include "at90s8515.h" int count; int main (void) { DDRB = 0xff; // configure as output PORTB = 0xff; // turn all leds off SREG |= 1<<7; // Global Interrupt enable TIMSK |= 1<<1; // Timer/Counter0 Overflow Interrupt enable TCCR0 = 0x05; // start Timer0 with prescale CLK/1024 count = 0; while (1) {} return 0; } void TIM0_OVF (void) SIGNAL; void TIM0_OVF (void) { count++; if (count == 140) { PORTB = ~PORTB; count = 0; } }