BAT32G1x9 user manual | Chapter 10 Timer M
336 / 1149
Rev.1.02
10.3.13
Timer M I/O control register Ci (TMIORCi) (i=0, 1).
Figure 10-22 Format of the timer M I/O control register Ci (TMIORCi) (i=0, 1) [ Input Capture Function].
Address: 0x40042A72
(TMIORC0),
0x40042A82
(TMIORC1) after reset:
88H R/W
symbol
TMIORCi
IOD3
Selection of TMGRD register function
When using the input capture function, a "1"
(general purpose register or buffer register) must be set.
IOD2
Choice of TMGRD mode
Note
1
When using the input capture function, you must set "1"
(input capture).
IOD1
IOD0
TMGRD control
0
0
The input is captured to the TMGRDi
on the rising edge.
0
1
The input is captured to the TMGRDi
on the falling edge.
1
0
The input is captured on both sides to the TMGRDi.
Other than the above
Prohibit settings.
IOC3
Selection of TMGRC register function
When using the input capture function, a "1"
(general purpose register or buffer register) must be set.
IOC2
TMGRC mode selection
note
2
When using the input capture function, you must set "1"
(input capture).
IOC1
IOC0
TMGRC control
0
0
The input is captured to the TMGRCi
on the rising edge.
0
1
The input is captured to the TMGRCi
on the falling edge.
1
0
The input is captured on both sides to the TMGRCi.
Other than the above
Prohibit settings.
Note
1. If you
select
"1"
(
buffer
register of
the TMGRBi
register) by the
TMBFDi
bit of the
TMMR
register, you must
give the
TMIORAi
register
The IOB2
bit and
the
IOD2
bit
of the
TMIORCi
register
are set to the same value.
2. If you
select
"1"
(
the buffer
register of the
TMGRAi
register) by the
TMBFCi
bit of the
TMMR
register, you must
give the
TMIORAi
register
The IOA2
bit and
the
IOC2
bit
of the
TMIORCi
register
are set to the same value.
7
6
5
4
3
2 1
0
ID3
IOD2
IOD1
IOD0
IOC3
IOC2
IOC1
IOC0