Hardware manual
Rev. 3.0, 09/98, page 167 of 361
Bit 5Timer Overflow Flag (OVF): This status flag is set to “1” when the timer count
overflows (changes from H'FF to H'00). OVF must be cleared by software. It is set by hardware,
however, and cannot be set by software.
Bit 5
OVF Description
0 To clear OVF, the CPU must read OVF after it has been set to “1,” (Initial value)
then write a “0” in this bit.
1 This bit is set to 1 when TCNT changes from H'FF to H'00.
Bit 4Reserved: This bit is always read as “1.” It cannot be written.
Bits 3 to 0Output Select 3 to 0 (OS3 to OS0): These bits specify the effect of compare-match
events on the timer output signal (TCOR or TCNT). Bits OS3 and OS2 control the effect of
compare-match B on the output level. Bits OS1 and OS0 control the effect of compare-match A
on the output level.
If compare-match A and B occur simultaneously, any conflict is resolved as explained in item (4)
in section 8.6, “Application Notes.”
After a reset, the timer output is “0” until the first compare-match event.
When all four output select bits are cleared to “0” the timer output signal is disabled.
Bit 3
OS3
Bit 2
OS2 Description
0 0 No change when compare-match B occurs. (Initial value)
0 1 Output changes to “0” when compare-match B occurs.
1 0 Output changes to “1” when compare-match B occurs.
1 1 Output inverts (toggles) when compare-match B occurs.
Bit 1
OS1
Bit 0
OS0 Description
0 0 No change when compare-match A occurs. (Initial value)
0 1 Output changes to “0” when compare-match A occurs.
1 0 Output changes to “1” when compare-match A occurs.
1 1 Output inverts (toggles) when compare-match A occurs.