RX610 Group
17. 8-Bit Timer (TMR)
R01UH0032EJ0120 Rev.1.20
Page 570 of 1006
Feb 20, 2013
Table 17.5 Clock Input to TCNT and Count Condition
Channel
TCCR Register
Description
CSS[1:0]
CKS[2:0]
b4
b3
b2
b1
b0
TMR0
(TMR2)
0
0
0
0
Clock input prohibited
1
Uses external clock. Counts at rising edge
*
1
.
1
0
Uses external clock. Counts at falling edge
*
1
.
1
Uses external clock. Counts at both rising and falling edges
*
1
.
0
1
0
0
0
Uses internal clock. Counts at PCLK.
1
Uses internal clock. Counts at PCLK/2.
1
0
Uses internal clock. Counts at PCLK/8.
1
Uses internal clock. Counts at PCLK/32.
1
0
0
Uses internal clock. Counts at PCLK/64.
1
Uses internal clock. Counts at PCLK/1024.
1
0
Uses internal clock. Counts at PCLK/8192.
1
Clock input prohibited
1
0
Setting prohibited
1
1
Counts at TMR1.TCNT (TMR3.TCNT) overflow signal
*
2
.
TMR1
(TMR3)
0
0
0
0
Clock input prohibited
1
Uses external clock. Counts at rising edge
*
1
.
1
0
Uses external clock. Counts at falling edge
*
1
.
1
Uses external clock. Counts at both rising and falling edges
*
1
.
0
1
0
0
0
Uses internal clock. Counts at PCLK.
1
Uses internal clock. Counts at PCLK/2.
1
0
Uses internal clock. Counts at PCLK/8.
1
Uses internal clock. Counts at PCLK/32.
1
0
0
Uses internal clock. Counts at PCLK/64.
1
Uses internal clock. Counts at PCLK/1024.
1
0
Uses internal clock. Counts at PCLK/8192.
1
Clock input prohibited
1
0
Setting prohibited
1
1
Counts at TMR0.TCNT (TMR2.TCNT) compare match A
*
2
.
Notes: 1. To use an external clock, set the Pn.DDR.Bi bit for the corresponding pin to "0" and the Pn.ICR.Bi bit to "1". For details, see
section 14, I/O Ports.
2. If the clock input of TMR0 (TMR2) is the overflow signal of the TMR1.TCNT (TMR3.TCNT) counter and that of TMR1 (TMR3)
is the compare match signal of the TMR0.TCNT (TMR2.TCNT) counter, no incrementing clock is generated. Do not use this
setting.