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); } }
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.