Datasheet
Section 12 8-Bit Timers
Rev.6.00 Sep. 27, 2007 Page 563 of 1268
REJ09B0220-0600
When use of an external clock is selected, three types of count can be selected: at the rising edge,
the falling edge, and both rising and falling edges.
Some functions differ between channel 0 and channel 1.
Bit 2
CKS2
Bit 1
CKS1
Bit 0
CKS0
Description
0 0 0 Clock input disabled (Initial value)
1 Internal clock, counted at falling edge of φ/8
1 0 Internal clock, counted at falling edge of φ/64
1 Internal clock, counted at falling edge of φ/8192
1 0 0 For channel 0: count at TCNT1 overflow signal
*
For channel 1: count at TCNT0 compare match A
*
1 External clock, counted at rising edge
1 0 External clock, counted at falling edge
1 External clock, counted at both rising and falling edges
Note: * If the count input of channel 0 is the TCNT1 overflow signal and that of channel 1 is the
TCNT0 compare match signal, no incrementing clock is generated. Do not use this setting.
12.2.5 Timer Control/Status Registers 0 and 1 (TCSR0, TCSR1)
TCSR0
Bit : 7 6 5 4 3 2 1 0
CMFB CMFA OVF ADTE OS3 OS2 OS1 OS0
Initial value : 0 0 0 0 0 0 0 0
R/W : R/(W)
*
R/(W)
*
R/(W)
*
R/W R/W R/W R/W R/W
TCSR1
Bit : 7 6 5 4 3 2 1 0
CMFB CMFA OVF — OS3 OS2 OS1 OS0
Initial value : 0 0 0 1 0 0 0 0
R/W : R/(W)
*
R/(W)
*
R/(W)
*
— R/W R/W R/W R/W
Note: * Only 0 can be written to bits 7 to 5, to clear these flags.