#include <avr/io.h>
#include <util/delay.h>
#include <avr/interrupt.h>

#define LED PE7


#if 0
volatile unsigned long timer0;

ISR(TIMER0_OVF_vect)
{
 timer0++;

 if ((timer0 % 100) == 0)  //???
  PORTE^= 1<<LED;  //???

 TCNT0 =     //???
}
#endif


unsigned char Arr[10] = {
 0x77, 0x41, 0x3B, 0x5B, 0x4D,
 0x5E, 0x7C, 0x43, 0x7F, 0x4F
 };

int main(void)
{
 int i;

 DDRB = 0xFF;
 DDRC = 0xFF;

 while (1) {
  for (i=0; i<60; i++) {
   PORTB = Arr[i / 10];
   PORTC = Arr[i % 10]; 
   _delay_ms(1000);
  }
 }

#if 0
 DDRE |= 1 << LED;

 TCCR0 |= 1<<CS02 | 1<<CS01;  //???
 TIMSK |= 1<TOIE0;   //???

 timer0 = 0;    //???

 sei();     //???

 while (1) {
  ;
 }
#endif

 return 0;
}


소스가 구동은 되는데 초시계의 기능을 못해요

세븐 세그먼트2개로 00초부터 59초까지 구현하는건데 뭐가문제인가요..