444
Chapter 13
16-bit Multi-Purpose Timer G (TMG)
Preliminary User’s Manual U17566EE1V2UM00
(2)
TMGCMn - Timer Gn channel mode register
This register specifies the assigned counter (TMGn0 or TMGn1) for the
GCCnm register.
Furthermore it specifies the edge detection for the TIGny-input-pins.
Access
This register can be read/written in 16-bit, 8-bit or 1-bit units.
The low byte TMGCMn.bit[7:0] is accessible separately under the name
TMGCMnL, the high byte TMGCMn.bit[15:8] under the name TMGCMnH.
Address
TMGCMn, TMGCMnL: <base> + 2
H
TMGCMnH:
<base> + 3
H
Initial Value
0000
H
. This register is cleared by any reset.
15
14
13
12
11
10
9
8
TBGn4
TBGn3
TBGn2
TBGn1
IEGn51
IEGn50
IEGn41
IEGn40
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
7
6
5
4
3
2
1
0
IEGn31
IEGn30
IEGn21
IEGn20
IEGn11
IEGn10
IEGn01
IEGn00
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Table 13-5
TMGCMn register contents
Bit position
Bit name
Function
15 to 12
TBGnm
Assigns Capture/Compare registers GCCn1 to GCCn4 to one of the 2 counters
TMGn0 or TMGn1:
0: Set TMGn0 as the corresponding counter to GCCnm register and TIGnm/
TOGnm-pin
1: Set TMGn1 as the corresponding counter to GCCnm register and TIGnm/
TOGnm-pin
11 to 0
IEGny1,
IEGny0
Specifies the valid edge of external capture signal input pin (TIGnm) for the capture
register performing capture-match with the assigned counter TMGn0 or TMGn1:
IEGny1
IEGny0
Valid edge
0
0
Falling
edge
0
1
Rising
edge
1
0
No edge detection performed
1
1
Both rising and falling edges
electronic components distributor