Renesas M16C/64C User Manual page 347

Table of Contents

Advertisement

M16C/64C Group
18.3.1.3
Count Source
Internal clocks are counted in timer mode, pulse period measurement mode, and pulse width
measurement mode. Refer to Figure 18.1 "Timer A and B Count Sources" for details. Table 18.4 lists
Timer B Count Sources.
f1 is any of the clocks listed below. Refer to 8. "Clock Generator" for details.
Main clock divided by 1 (no division)
PLL clock divided by 1 (no division)
fOCO-S divided by 1 (no division)
When f1 or the main clock is used for the timer A and timer B count source, set the PCKSTP11 bit in the
PCLKSTP1 register to 0 (f1 supply enabled).
When the clock mode is PLL operating mode, high-speed mode, medium-speed mode, or wait mode,
the main clock can be used for the timer A and timer B count source instead of f1. Use the PCKSTP17
bit in the PCLKSTP1 register to select the clock (refer to 18.2.3 "Peripheral Clock Stop Register 1
(PCLKSTP1)").
When using wait mode, if the CM02 bit in the CM0 register is set to 1 (peripheral function clock f1 stops
in wait mode) before entering wait mode, the main clock is also stopped. Therefore, when the
PCKSTP17 bit is 1 and timer A or timer B is used while in wait mode, do not set the CM02 bit to 1.
Table 18.4
Timer B Count Sources
Count
Source
PCLK0
f1TIMAB
1
f2TIMAB
0
f8TIMAB
-
f32TIMAB
-
f64TIMAB
-
fOCO-S
-
fC32
-
PCLK0: Bit in the PCLKR register
TCS7 to TCS0: Bits in registers TBCS0 to TBCS3
TCK1 to TCK0: Bits in the TBiMR register (i = 0 to 5)
When in PLL operating mode, high-speed mode, medium-speed mode, or wait mode, the main clock
can be used for the timer A and timer B count source instead of f1. Use the PCKSTP17 bit in the
PCLKSTP1 register to select the clock (refer to 18.2.3 "Peripheral Clock Stop Register 1
(PCLKSTP1)").
R01UH0092EJ0110 Rev.1.10
Jul 31, 2012
Bit Setting Value
TCS3
TCS2 to TCS0
TCS7
TCS6 to TCS4
0
-
1
000b
0
-
1
000b
0
-
1
001b
0
-
1
010b
1
011b
1
101b
0
-
1
110b
TCK1 to
TCK0
00b
f1
-
00b
f1 divided by 2
-
01b
f1 divided by 8
-
10b
f1 divided by 32
-
-
f1 divided by 64
-
fOCO-S
11b
fC32
-
18. Timer B
Remarks
Page 314 of 807

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/60 seriesM16c series

Table of Contents