Gast
#145760
OCR0 = 155; // Timer Reload auf 155
TCCR0 = 0x47; // Autoreload und Prescaler
setbit(TIMSK,OCIE0); // Interrupt enable Timer
sei();
}
SIGNAL(SIG_OUTPUT_COMPARE0)
{
static char sec;
if (++sec % 5 == 0)
{
sec = 0;
if (checkbit(PINC,PC6)) clearbit(PORTC,PC6); else setbit(PORTC,PC6);
}
}