Hallo, der Punkt 2 Interrupts may be lost when writing the timer registers. kann dann ein beliebiger Interrupt verloren gehen oder 'nur' der Timer interrupt? Ich schreibe TIMSK in der Interruptroutine neu um die zeit einzustellen und dort ist er jedenfalls 0. Danke für Informationen Helmut
Der Text geht ja nun noch weiter: >Interrupts may be lost when writing the timer registers in the asynchronous >timer >If one of the timer registers which is synchronized to the asynchronous timer2 >clock is written >in the cycle before a overflow interrupt occurs, the interrupt may be >lost. >Problem Fix / Workaround >Always check that the Timer2 Timer/Counter register, TCNT2, does not have the >value 0xFF >before writing the Timer2 Control Register, TCCR2, or Output Compare Register, >OCR2 Da steht doch alles wissenswerte drin. Es kann der Timer2-Overflow-Interrupt verloren gehen, wenn du TCNT2 beschreibst, UND dieses den Wert 0xFF hat. Oliver
Edit: Es muß heissen: Es kann der Timer2-Overflow-Interrupt verloren gehen, wenn du ein Timerregister beschreibst, während TCNT2 den Wert 0xFF hat.
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.