I'd like to manually reset the TOV0 bit for timer0 in an ATMega6450. The datasheet says to write a one to it. It seems to me the way to do this without affecting other bits is
TIFR0 |= 0x01
TIFR0 |= (1 << TOV0)
TIFR0 = 0x01
since the latter would overwrite other bits in the register. This discussion, however, maintains the opposite. Which approach is preferred, and why? Thanks.
* Title adjusted for clarity. *