RL78/G1P
CHAPTER 6 TIMER ARRAY UNIT
R01UH0895EJ0100 Rev.1.00
141
Nov 29, 2019
Figure 6-10. Format of Timer Clock Select register m (TPSm) (2/2)
Address: F01B6H, F01B7H (TPS0) After reset: 0000H R/W
Symbol 15 14
13 12 11
10 9 8 7 6 5 4 3 2 1 0
TPSm 0
0
PRS
m31
PRS
m30
0 0
PRS
m21
PRS
m20
PRS
m13
PRS
m12
PRS
m11
PRS
m10
PRS
m03
PRS
m02
PRS
m01
PRS
m00
PRS
m21
PRS
m20
Selection of operation clock (CKm2)
Note
f
CLK
= 2 MHz f
CLK
= 5 MHz f
CLK
= 10 MHz f
CLK
= 20 MHz f
CLK
= 32 MHz
0 0
f
CLK
/2
1 MHz
2.5 MHz
5 MHz
10 MHz
16 MHz
0 1
f
CLK
/2
2
500 kHz
1.25 MHz
2.5 MHz
5 MHz
8 MHz
1 0
f
CLK
/2
4
125 kHz
312.5 kHz
625 MHz
1.25 MHz
2 MHz
1 1
f
CLK
/2
6
31.25 kHZ
78.1 kHz
156.2 kHz
312.5 kHz
500 kHZ
PRS
m31
PRS
m30
Selection of operation clock (CKm3)
Note
f
CLK
= 2 MHz f
CLK
= 5 MHz f
CLK
= 10 MHz f
CLK
= 20 MHz f
CLK
= 32 MHz
0 0
f
CLK
/2
8
7.81 kHz
19.5 kHz
39.1 kHz
78.1 kHz
125 kHz
0 1
f
CLK
/2
10
1.95 kHz
4.88 kHz
9.76 kHz
19.5 kHz
31.25 kHz
1 0
f
CLK
/2
12
488 Hz
1.22 kHz
2.44 kHz
4.88 kHz
7.81 kHz
1 1
f
CLK
/2
14
122 HZ
305 Hz
610 Hz
1.22 kHz
1.95 kHZ
Note
When changing the clock selected for f
CLK
(by changing the system clock control register (CKC) value),
stop timer array unit (TTm = 00FFH).
The timer array unit must also be stopped if the operating clock (f
MCK
) specified by using the CKSmn0, and
CKSmn1 bits or the valid edge of the signal input from the TImn pin is selected as the count clock (f
TCLK
).
Caution Be sure to clear bits 15, 14, 11, and 10 to “0”.
By using channels 1 and 3 in the 8-bit timer mode and specifying CKm2 or CKm3 as the operation clock, the
interval times shown in Table 6-3 can be achieved by using the interval timer function.
Table 6-3. Interval Times Available for Operation Clock CKSm2 or CKSm3
Clock Interval
Time
Note
(f
CLK
= 32 MHz)
10
s 100
s
1 ms
10 ms
CKm2 f
CLK
/2
f
CLK
/2
2
f
CLK
/2
4
f
CLK
/2
6
CKm3 f
CLK
/2
8
f
CLK
/2
10
f
CLK
/2
12
f
CLK
/2
14
Note
The margin is within 5 %.
Remarks
1.
f
CLK
: CPU/peripheral hardware clock frequency
2.
For details of a signal of f
CLK
/2
j
selected with the TPSm register, see
6.5.1 Count clock (f
TCLK
).