Errata Punkt 2 im Mega8 Datenblatt

Gast #1478718
Lesenswert?
• ▲
▼
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
Gast #1478734
Lesenswert?
• ▲
▼
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

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren