#include #include #include //Variablen für die Zeit volatile unsigned char sekunde; volatile unsigned char minute; volatile unsigned char stunde; int main(void) { // Timer 2 konfigurieren GTCCR |= (1 << TSM) | (1 << PSRASY); //Timer anhalten, Prescaler Reset ASSR = (1 << AS2); //Asynchron Mode einschalten TCCR2A = (1 << WGM21); //CTC Modus TCCR2B = (1 << CS22) | (1 << CS21); //Prescaler 256 // 32768 / 256 / 1 = 128 Intervall = 1s OCR2A = 128 - 1; while(ASSR & ((1<