Datasheet

171
ATmega640/1280/1281/2560/2561
2549K–AVR–01/07
OCFnA is automatically cleared when the Output Compare Match A Interrupt Vector is
executed. Alternatively, OCFnA can be cleared by writing a logic one to its bit location.
Bit 0 – TOVn: Timer/Countern, Overflow Flag
The setting of this flag is dependent of the WGMn3:0 bits setting. In Normal and CTC
modes, the TOVn Flag is set when the timer overflows. Refer to Table 82 on page 149
for the TOVn Flag behavior when using another WGMn3:0 bit setting.
TOVn is automatically cleared when the Timer/Countern Overflow Interrupt Vector is
executed. Alternatively, TOVn can be cleared by writing a logic one to its bit location.