![](http://datasheet.mmic.net.cn/110000/M32186F8VFP_datasheet_3496152/M32186F8VFP_449.png)
10.8 TOU (Output-Related 24-Bit Timer)
MULTIJUNCTION TIMERS
10
10-153
32185/32186 Group Hardware Manual
Rev.1.10 REJ09B0235-0110 May 15, 07
b0
12
34
56
78
9
10
11
12
13
14
b15
TOU00M0
TOU01M0
TOU02M0
TOU03M0
TOU04M0
TOU05M0
TOU06M0
TOU07M0
00
0
00
0
b0
12
34
56
78
9
10
11
12
13
14
b15
TOU0
PRS3
TOU0 TOU00 TOU01 TOU02 TOU03 TOU04 TOU05 TOU06 TOU07
CKS
SHEN
M1
00
0
00
0
10.8.4 TOU Control Registers
TOU0 Control Register 0 (TOU0CR0)
<Address: H’0080 07DA>
<Upon exiting reset: H’0000>
b
Bit Name
Function
R
W
0, 1
TOU00M0 (TOU0_0 operation mode select 0 bit)
00: Single-shot output mode
R
W
2, 3
TOU01M0 (TOU0_1 operation mode select 0 bit)
01: Single-shot PWM output mode
4, 5
TOU02M0 (TOU0_2 operation mode select 0 bit)
or delayed single-shot output mode (Note 1)
6, 7
TOU03M0 (TOU0_3 operation mode select 0 bit)
10: Continuous output mode
8, 9
TOU04M0 (TOU0_4 operation mode select 0 bit)
11: PWM output mode
10, 11
TOU05M0 (TOU0_5 operation mode select 0 bit)
12, 13
TOU06M0 (TOU0_6 operation mode select 0 bit)
14, 15
TOU07M0 (TOU0_7 operation mode select 0 bit)
Note 1: Use TOU0 Control Register 1 to select between these two modes.
Notes: This register must always be accessed in halfwords.
Operation mode can only be set or changed while the counter is inactive.
TOU0 Control Register 1 (TOU0CR1)
<Address: H’0080 07D8>
<Upon exiting reset: H’0000>
b
Bit Name
Function
R
W
0
TOU0CKS
0: Use prescaler 3
R
W
TOU0 clock source select bit
1: Use external clock (TIN24)
1
PRS3CKS
0: BCLK/4
R
W
Prescaler 3 supplied clock select bit
1: BCLK
2–6
No function assigned. Fix to "0."
0–
7
TOU0SHEN
0: Disable shorting prevention function
R
W
TOU0 shorting prevention function enable bit
1: Enable shorting prevention function
8
TOU00M1 (TOU0_0 operation mode select 1 bit)
0: Single-shot PWM output mode
R
W
9
TOU01M1 (TOU0_1 operation mode select 1 bit)
1: Delayed single-shot output mode
10
TOU02M1 (TOU0_2 operation mode select 1 bit)
11
TOU03M1 (TOU0_3 operation mode select 1 bit)
12
TOU04M1 (TOU0_4 operation mode select 1 bit)
13
TOU05M1 (TOU0_5 operation mode select 1 bit)
14
TOU06M1 (TOU0_6 operation mode select 1 bit)
15
TOU07M1 (TOU0_7 operation mode select 1 bit)
Notes: This register must always be accessed in halfwords.
Operation mode and the short preventiion function can only be set or changed while the counter is inactive.
TOU0 Control Registers 0 and 1 are used to select operation modes of TOU0_0–7.
To select prescaler 3 as the clock source for TOU0, make sure the TID0 Control & Prescaler 3 Enable Register’s
prescaler 3 enable bit is set to "1." For details, see Section 10.7.3, “TID Control & Prescaler Enable Registers.”
Note: Before setting up or modifying the TOU control register, be sure to stop the relevant timer by
writing "0" to its count enable bit.