RX610 Group
15. 16-Bit Timer Pulse Unit (TPU)
R01UH0032EJ0120 Rev.1.20
Page 466 of 1006
Feb 20, 2013
Table 15.12 Bits CKEG[1:0]
Bits CKEG[1:0]
Input Clock
b4
b3
Internal Clock
External clock
0
0
Counted at falling edge
Counted at rising edge
0
1
Counted at rising edge
Counted at falling edge
1
0
Counted at both edges
Counted at both edges
1
1
Counted at both edges
Counted at both edges
Table 15.13 Bits CCLR[2:0] (TPU0, TPU3, TPU6, TPU9)
Channel
Bits CCLR[2:0]
Description
b7
b6
b5
(Unit 0)
TPU0, TPU3
(Unit 1)
TPU6, TPU9
0
0
0
TCNT counter clearing disabled
0
0
1
TCNT counter cleared by TGRA compare match/input capture
0
1
0
TCNT counter cleared by TGRB compare match/input capture
0
1
1
TCNT counter cleared by counter clearing for another channel performing synchronous
clearing/synchronous operation
*
1
1
0
0
TCNT counter clearing disabled
1
0
1
TCNT counter cleared by TGRC compare match/input capture
*
1
1
1
0
TCNT counter cleared by TGRD compare match/input capture
*
1
1
1
1
TCNT counter cleared by counter clearing for another channel performing synchronous
clearing/synchronous operation
*
2
Notes: 1. When TGRC or TGRD is used as a buffer register, TCNT counter is not cleared because the buffer register setting has
priority, and compare match/input capture does not occur.
2. Synchronous operation is selected by setting the SYNCi bit (i = 0, 3) bit in TSYRm (m = A, B) to 1.
Table 15.14 Bits CCLR[2:0] (TPU1, TPU2, TPU4, TPU5, TPU7, TPU8, TPU10, TPU11)
Channel
Bits CCLR[2:0]
*
1
Description
b7
b6
b5
(Unit 0)
TPU1, TPU2,
TPU4, TPU5
(Unit 1)
TPU7, TPU8,
TPU10, TPU11
0
0
0
TCNT counter clearing disabled
0
0
1
TCNT counter cleared by TGRA compare match/input capture
0
1
0
TCNT counter cleared by TGRB compare match/input capture
0
1
1
TCNT counter cleared by counter clearing for another channel performing synchronous
clearing/synchronous operation
*
2
1
0
0
Setting prohibited
1
0
1
Setting prohibited
1
1
0
Setting prohibited
1
1
1
Setting prohibited
Notes: 1. Bit 7 in TCR of TPU1, TPU2, TPU4, and TPU5 of unit 0 and bit 7 in TCR of TPU7, TPU8, TPU10, and TPU11 of unit 1 are
reserved. These bits are read as 0. The write value should always be 0.
2. Synchronous operation is selected by setting the SYNCi bit (i = 1, 2, 4, 5) bit in TSYRm (m = A, B) to 1.