EasyManua.ls Logo

Renesas M32R/ECU Series

Renesas M32R/ECU Series
839 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
10
10-160
MULTIJUNCTION TIMERS
10.8 TOU (Output-Related 24-Bit Timer)
32180 Group Users Manual (Rev.1.0)
TOU2 Control Register 0 (TOU2CR0) <Address: H0080 0CDA>
b01234567891011121314b15
TOU20M0 TOU21M0 TOU22M0 TOU23M0 TOU24M0 TOU25M0 TOU26M0 TOU27M0
0000000000000000
<After reset: H0000>
b Bit Name Function R W
0, 1 TOU20M0 (TOU2_0 operation mode select 0 bit) 00: Single-shot output mode R W
2, 3 TOU21M0 (TOU2_1 operation mode select 0 bit) 01: Single-shot PWM output mode
4, 5 TOU22M0 (TOU2_2 operation mode select 0 bit) or delayed single-shot output mode (Note 1)
6, 7 TOU23M0 (TOU2_3 operation mode select 0 bit) 10: Continuous output mode
8, 9 TOU24M0 (TOU2_4 operation mode select 0 bit) 11: PWM output mode
10, 11 TOU25M0 (TOU2_5 operation mode select 0 bit)
12, 13 TOU26M0 (TOU2_6 operation mode select 0 bit)
14, 15 TOU27M0 (TOU2_7 operation mode select 0 bit)
Note 1: Use TOU2 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.
TOU2 Control Register 1 (TOU2CR1) <Address: H0080 0CD8>
b01234567891011121314b15
TOU2CKS TOU20M1 TOU21M1 TOU22M1 TOU23M1 TOU25M1 TOU26M1 TOU27M1TOU24M1
0
0
0
0
0
0
0
0
00000000
<After reset: H0000>
b Bit Name Function R W
0 TOU2CKS 0: Use prescaler 5 R W
TOU2 clock source select bit 1: Use external clock (TIN28)
1–7 No function assigned. Fix to "0". 00
8 TOU20M1 (TOU2_0 operation mode select 1 bit) 0: Single-shot PWM output mode R W
9 TOU21M1 (TOU2_1 operation mode select 1 bit) 1: Delayed single-shot output mode
10 TOU22M1 (TOU2_2 operation mode select 1 bit)
11 TOU23M1 (TOU2_3 operation mode select 1 bit)
12 TOU24M1 (TOU2_4 operation mode select 1 bit)
13 TOU25M1 (TOU2_5 operation mode select 1 bit)
14 TOU26M1 (TOU2_6 operation mode select 1 bit)
15 TOU27M1 (TOU2_7 operation mode select 1 bit)
Notes: This register must always be accessed in halfwords.
Operation mode can only be set or changed while the counter is inactive.
TOU2 Control Registers 0 and 1 are used to select operation modes of TOU2_07.
To select prescaler 5 as the clock source for TOU2, make sure the TID2 Control & Prescaler 5 Enable Register’s
prescaler 5 enable bit is set to "1". For details, see Section 10.7.3, TID Control & Prescaler Enable Registers.

Table of Contents

Related product manuals