Datasheet

Section 9 Timers
Rev. 6.00 Aug 04, 2006 page 323 of 680
REJ09B0145-0600
Bit 7: Counter overflow flag H (OVH)
Bit 7 is a status flag indicating that ECH has overflowed from H'FF to H'00. This flag is set when
ECH overflows. It is cleared by software but cannot be set by software. OVH is cleared by
reading it when set to 1, then writing 0.
When ECH and ECL are used as a 16-bit event counter with CH2 cleared to 0, OVH functions as a
status flag indicating that the 16-bit event counter has overflowed from H'FFFF to H'0000.
Bit 7
OVH Description
0 ECH has not overflowed
Clearing condition:
After reading OVH = 1, cleared by writing 0 to OVH
(initial value)
1 ECH has overflowed
Setting condition:
Set when ECH overflows from H'FF to H'00
Bit 6: Counter overflow flag L (OVL)
Bit 6 is a status flag indicating that ECL has overflowed from H'FF to H'00. This flag is set when
ECL overflows. It is cleared by software but cannot be set by software. OVL is cleared by
reading it when set to 1, then writing 0.
Bit 6
OVL Description
0 ECL has not overflowed
Clearing condition:
After reading OVL = 1, cleared by writing 0 to OVL
(initial value)
1 ECL has overflowed
Setting condition:
Set when ECL overflows from H'FF to H'00 while CH2 is set to 1
Bit 5: Reserved bit
Bit 5 is reserved; it can be read and written, and is initialized to 0 upon reset.