TC2 Interrupt Flag Register

When addressing I/O Registers as data space using LD and ST instructions, the provided offset must be used. When using the I/O specific commands IN and OUT, the offset is reduced by 0x20, resulting in an I/O address offset within 0x00 - 0x3F.

Name:
TIFR2
Offset:
0x37
Reset:
0x00
Access:
When addressing as I/O Register: address offset is 0x17
Bit76543210
OCFBOCFATOV
AccessR/WR/WR/W
Reset000

Bit 2 – OCFB: Timer/Counter2, Output Compare B Match Flag

Timer/Counter2, Output Compare B Match Flag

The OCFB bit is set (one) when a compare match occurs between the Timer/Counter2 and the data in OCRB – Output Compare Register2. OCFB is cleared by hardware when executing the corresponding interrupt handling vector. Alternatively, OCFB is cleared by writing a logic one to the flag. When the I-bit in SREG, OCIEB (Timer/Counter2 Compare match Interrupt Enable), and OCFB are set (one), the Timer/Counter2 Compare match Interrupt is executed.

Bit 1 – OCFA: Timer/Counter2, Output Compare A Match Flag

Timer/Counter2, Output Compare A Match Flag

The OCFA bit is set (one) when a compare match occurs between the Timer/Counter2 and the data in OCRA – Output Compare Register2. OCFA is cleared by hardware when executing the corresponding interrupt handling vector. Alternatively, OCFA is cleared by writing a logic one to the flag. When the I-bit in SREG, OCIEA (Timer/Counter2 Compare match Interrupt Enable), and OCFA are set (one), the Timer/Counter2 Compare match Interrupt is executed.

Bit 0 – TOV: Timer/Counter2, Overflow Flag

Timer/Counter2, Overflow Flag

The TOV bit is set (one) when an overflow occurs in Timer/Counter2. TOV is cleared by hardware when executing the corresponding interrupt handling vector. Alternatively, TOV is cleared by writing a logic one to the flag. When the SREG I-bit, TOIEA (Timer/Counter2 Overflow Interrupt Enable), and TOV are set (one), the Timer/Counter2 Overflow interrupt is executed. In PWM mode, this bit is set when Timer/Counter2 changes counting direction at 0x00.