![](http://datasheet.mmic.net.cn/30000/M32196F8UFP_datasheet_2359476/M32196F8UFP_458.png)
10-154
10.8 TOU (Output-Related 24-Bit Timer)
MULTIJUNCTION TIMERS
10
32192/32195/32196 Group Hardware Manual
Rev.1.10 REJ09B0123-0110 Apr.06.07
b0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
b15
TOU1
PRS4
TOU1 TOU10 TOU11 TOU12 TOU13 TOU14 TOU15 TOU16 TOU17
CKS
SHEN
M1
0
000
00
000
00
b0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
b15
TOU10M0
TOU11M0
TOU12M0
TOU13M0
TOU14M0
TOU15M0
TOU16M0
TOU17M0
0
00
000
0000
00
TOU1 Control Register 0 (TOU1CR0)
<Address: H’0080 0BDA>
<Upon exiting reset: H’0000>
b
Bit Name
Function
R
W
0, 1
TOU10M0 (TOU1_0 operation mode select 0 bit)
00: Single-shot output mode
R
W
2, 3
TOU11M0 (TOU1_1 operation mode select 0 bit)
01: Single-shot PWM output mode
4, 5
TOU12M0 (TOU1_2 operation mode select 0 bit)
or delayed single-shot output mode (Note 1)
6, 7
TOU13M0 (TOU1_3 operation mode select 0 bit)
10: Continuous output mode
8, 9
TOU14M0 (TOU1_4 operation mode select 0 bit)
11: PWM output mode
10, 11
TOU15M0 (TOU1_5 operation mode select 0 bit)
12, 13
TOU16M0 (TOU1_6 operation mode select 0 bit)
14, 15
TOU17M0 (TOU1_7 operation mode select 0 bit)
Note 1: Use TOU1 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.
TOU1 Control Register 1 (TOU1CR1)
<Address: H’0080 0BD8>
<Upon exiting reset: H’0000>
b
Bit Name
Function
R
W
0
TOU1CKS
0: Use prescaler 4
R
W
TOU1 clock source select bit
1: Use external clock (TIN26)
1
PRS4CKS
0: BCLK/4
R
W
Prescaler 4 supplied clock select bit
1: BCLK
2–6
No function assigned. Fix to "0."
00
7
TOU1SHEN
0: Disable shorting prevention function
R
W
TOU1 shorting prevention function enable bit
1: Enable shorting prevention function
8
TOU10M1 (TOU1_0 operation mode select 1 bit)
0: Single-shot PWM output mode
R
W
9
TOU11M1 (TOU1_1 operation mode select 1 bit)
1: Delayed single-shot output mode
10
TOU12M1 (TOU1_2 operation mode select 1 bit)
11
TOU13M1 (TOU1_3 operation mode select 1 bit)
12
TOU14M1 (TOU1_4 operation mode select 1 bit)
13
TOU15M1 (TOU1_5 operation mode select 1 bit)
14
TOU16M1 (TOU1_6 operation mode select 1 bit)
15
TOU17M1 (TOU1_7 operation mode select 1 bit)
Note 1: This register must always be accessed in halfwords.
Note: Operation mode and shorting prevention function can only be set or changed while the counter is inactive.
TOU1 Control Registers 0 and 1 are used to select operation modes of TOU1_0–7.
To select prescaler 4 as the clock source for TOU1, make sure the TID1 Control & Prescaler 4 Enable Register’s
prescaler 4 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.