216
3.
Input capture register GR (ICRGR)
ICRGR is an 8-bit read-only register. When a rising edge of the input capture input signal is
detected, the current TCG value is transferred to ICRGR. If IIEGS in TMG is 1 at this time,
IRRTG is set to 1 in IRR2, and if IENTG in IENR2 is 1, an interrupt request is sent to the CPU.
For details of the interrupt, see 3.3, Interrupts.
To ensure dependable input capture operation, the pulse width of the input capture input signal
must be at least 2ø or 2ø
SUB
(when the noise canceler is not used).
ICRGR is initialized to H'00 upon reset.
4.
Timer mode register G (TMG)
TMG is an 8-bit read/write register that performs TCG clock selection from four internal clock
sources, counter clear selection, and edge selection for the input capture input signal interrupt
request, controls enabling of overflow interrupt requests, and also contains the overflow flags.
TMG is initialized to H'00 upon reset.
OVFH
CCLR0
CKS1
CKS0
OVFL
OVIE
IIEGS
CCLR1
7
6
5
4
3
2
1
0
0
0
0
0
0
0
0
0
R/W
*
R/W
R/W
R/W
R/W
*
R/W
R/W
R/W
Bit:
Initial value:
Read/Write:
Note:
*
Bits 7 and 6 can only be written with 0, for flag clearing.
ICRGR7
ICRGR2
ICRGR1
ICRGR0
ICRGR6
ICRGR5
ICRGR4
ICRGR3
7
6
5
4
3
2
1
0
0
0
0
0
0
0
0
0
R
R
R
R
R
R
R
R
Bit:
Initial value:
Read/Write: