I'm confused about the language in the (Atmega8A) OCF2: Output Compare Flag 2 description:
• Bit 7 – OCF2: Output Compare Flag 2
The OCF2 bit is set (one) when a Compare Match occurs between the Timer/Counter2 and the data in OCR2 –
Output Compare Register2. OCF2 is cleared by hardware when executing the corresponding interrupt Handling
Vector. Alternatively, OCF2 is cleared by writing a logic one to the flag.
Is that not the same thing? How can it be cleared by writing a 1 to the bit?