424
TMG—Timer mode register G
H'BC
Timer G
Bit
Initial value
Read/Write
7
OVFH
0
R/(W)
*
6
OVFL
0
R/(W)
*
5
OVIE
0
W
3
CCLR1
0
W
0
CKS0
0
W
2
CCLR0
0
W
1
CKS1
0
W
4
IIEGS
0
W
Timer overflow flag H
Counter clear
TCG clearing is disabled
TCG cleared by falling edge of input capture input signal
TCG cleared by rising edge of input capture input signal
TCG cleared by both edges of input capture input signal
0
1
0
1
0
0
1
1
Timer overflow interrupt enable
TCG overflow interrupt request is disabled
TCG overflow interrupt request is enabled
0
1
0
Clearing conditions:
After reading OVFH = 1, cleared by writing 0 to OVFH
1
Setting conditions:
Set when TCG overflows from H'FF to H'00
Note:
*
Bits 7 and 6 can only be written with 0, for flag clearing.
Timer overflow flag L
0
Clearing conditions:
After reading OVFL = 1, cleared by writing 0 to OVFL
1
Setting conditions:
Set when TCG overflows from H'FF to H'00
Input capture interrupt edge select
0
Interrupt generated on rising edge of input capture input signal
1
Interrupt generated on falling edge of input capture input signal
Clock select
0
Internal clock: counting on ø/64
0
Internal clock: counting on ø/32
0
1
1
Internal clock: counting on ø/2
1
Internal clock: counting on øw/4
0
1