Rainbow-electronics ATmega8515L Uživatelský manuál Strana 91

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 223
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 90
91
ATmega8515(L)
2512A–AVR–04/02
Timer/Counter Interrupt Flag
Register – TIFR
Bit 1 – TOV0: Timer/Counter0 Overflow Flag
The bit TOV0 isset (one)when an overflow occurs in Timer/Counter0. TOV0 iscleared
by hardware when executing the corresponding interrupt handling vector.Alternatively,
TOV0 isclearedbywriting a logic one to the flag. When the SREG I-bit, TOIE0
(Timer/Counter0 OverflowInterrupt Enable), and TOV0 are set (one), the
Timer/Counter0 Overflow interruptis executed. In phase correctPWM mode, thisbit is
set when Timer/Counter0 changescounting direction at $00.
Bit0–OCF0:OutputCompareFlag0
The OCF0 bit isset (one)when a comparematch occurs between theTimer/Counter0
and the data in OCR0 Output CompareRegister0. OCF0isclearedbyhardware when
executing the corresponding interrupt handling vector.Alternatively, OCF0isclearedby
writing a logic one to the flag. When the I-bit in SREG, OCIE0 (Timer/Counter0 Com-
parematch Interrupt Enable), andOCF0are set (one), theTimer/Counter0 Compare
match Interruptis executed.
Bit 76543 210
TOV1 OCF1A OCF1B ICF1 –TOV0OCF0 TIFR
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial Value00000000
Zobrazit stránku 90
1 2 ... 86 87 88 89 90 91 92 93 94 95 96 ... 222 223

Komentáře k této Příručce

Žádné komentáře