357
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
R/W
4
IIEGS
0
R/W
3
CCLR1
0
R/W
0
CKS0
0
R/W
2
CCLR0
0
R/W
1
CKS1
0
R/W
Timer overflow flag H
0
[Clearing condition]
After reading OVFH = 1, cleared by writing 0 to OVFH
1
[Setting condition]
When the value of TCG overflows from H'FF to H'00
Note: Only a write of 0 for flag clearing is possible.
*
*
*
Timer overflow interrupt enable
Timer overflow flag L
0
[Clearing condition]
After reading OVFL = 1, cleared by writing 0 to OVFL
1
[Setting condition]
When the value of TCG overflows from H'FF to H'00
0
TCG overflow interrupt disabled
1
TCG overflow interrupt enabled
Input capture interrupt edge select
0
Interrupts are requested at the rising edge of the input capture signal
1
Interrupts are requested at the falling edge of the input capture signal
Clock select
0
Internal clock:
Internal clock:
0
1
Internal clock:
Internal clock:
1 0
1
ø/64
ø/32
ø/2
ø /2
W
Counter clear
0
TCG is not cleared
TCG is cleared at the falling edge of the input capture signal
0
1
TCG is cleared at the rising edge of the input capture signal
TCG is cleared at both edges of the input capture signal
1 0
1