442
Chapter 13
16-bit Multi-Purpose Timer G (TMG)
Preliminary User’s Manual U17566EE1V2UM00
(1)
TMGMn - Timer Gn mode register
Access
This register can be read/written in 16-bit, 8-bit or 1-bit units.
The low byte TMGMn.bit[7:0] is accessible separately under the name
TMGMnL, the high byte TMGMn.bit[15:8] under the name TMGMnH.
Address
TMGMn, TMGMnL:
<base>
TMGMnH:
<base> + 1
H
Initial Value
0000
H
. This register is cleared by any reset.
15
14
13
12
11
10
9
8
POWERn
OLDEn
CSEn12
CSEn11
CSEn10
CSE002
CSEn01
CSEn00
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
7
6
5
4
3
2
1
0
CCSGn5
CCSGn0
0
0
CLRGn1
TMGn1E
CLRGn0
TMGn0E
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Table 13-4
TMGMn register contents (1/2)
Bit
position
Bit name
Function
15
POWERn
Timer Gn Operation control.
0: operation Stop
the capture registers and TMGSTn register are cleared
the TOGnm pins are inactive all the time
1: operation enable
Note:
At least 7 peripheral clocks (
f
SPCLK0
) are needed to start the timer function
14
OLDEn
Set Output Delay Operation.
0: Don’t perform output delay operation
1: Set output delay to n count-clocks
Caution:
When the POWERn bit is set, the rewriting of this bit is prohibited!
Simultaneously writing with the POWERn bit is allowed.
Note:
The delay operation is used for EMI counter measures.
13 to 8
CSEnx[2:0]
Selects internal count clock of TMG
CSEnx2
CSEnx1
CSEnx0
Count clock
0
0
0
f
SPCLK0
0
0
1
f
SPCLK0
/2
0
1
0
f
SPCLK0
/4
0
1
1
f
SPCLK0
/8
1
0
0
f
SPCLK0
/16
1
0
1
f
SPCLK0
/32
1
1
0
f
SPCLK0
/64
1
1
1
f
SPCLK0
/128
Caution:
When the POWERn bit is set, the rewriting of this bits are prohibited!
Simultaneously writing with the POWERn bit is allowed.
electronic components distributor