Timer Mode Register G (TMG)
Bit
OVFH
Initial value
Read/Write
R/W*
Note: * Only 0 can be written, to clear flag.
TMG is an 8-bit read/write register. It controls the choice of four internal clocks, counter clear
selection, and edge selection for input capture interrupt requests. It also indicates overflow status
and enables or disables overflow interrupt requests.
Upon reset, TMG is initialized to H'00.
Bit 7—Timer Overflow Flag H (OVFH): Bit 7 is a status flag indicating that TCG overflowed
(from H'FF to H'00) when the input capture signal was high. This flag is set by hardware and
cleared by software. It cannot be set by software.
Bit 7: OVFH
0
1
Bit 6—Timer Overflow Flag L (OVFL): Bit 6 is a status flag indicating that TCG overflowed
(from H'FF to H'00) when the input capture signal was low, or in interval timer operation. This
flag is set by hardware and cleared by software. It cannot be set by software.
Bit 6: OVFL
0
1
Bit 5—Timer Overflow Interrupt Enable (OVIE): Bit 5 enables or disables TCG overflow
interrupts.
Bit 5: OVIE
0
1
7
6
OVFL
OVIE
0
0
R/W*
R/W
Description
[Clearing conditions]
After reading OVFH = 1, cleared by writing 0 to OVFH
[Setting conditions]
Set when the value of TCG overflows from H'FF to H'00
Description
[Clearing conditions]
After reading OVFL = 1, cleared by writing 0 to OVFL
[Setting conditions]
Set when the value of TCG overflows from H'FF to H'00
Description
TCG overflow interrupt disabled
TCG overflow interrupt enabled
5
4
IIEGS
CCLR1
0
0
R/W
R/W
3
2
CCLR0
CKS1
0
0
R/W
R/W
1
0
CKS0
0
0
R/W
(initial value)
(initial value)
(initial value)
185