TCR0—Timer Control Register 0
H'64
ITU0
Bit
Initial value
Read/Write
7
—
1
—
6
CCLR1
0
R/W
5
CCLR0
0
R/W
4
CKEG1
0
R/W
3
CKEG0
0
R/W
0
TPSC0
0
R/W
2
TPSC2
0
R/W
1
TPSC1
0
R/W
Timer prescaler 2 to 0
Clock edge 1 and 0
Counter clear 1 and 0
TCNT is not cleared
TCNT is cleared by GRB compare match or input capture
Synchronous clear: TCNT is cleared in synchronization
with other synchronized timers
Bit 6
0
1
Bit 5
0
0
1
TCNT Clear Source
CCLR1 CCLR0
TCNT is cleared by GRA compare match or input capture
1
Rising edges counted
Both edges counted
Bit 4
0
1
Bit 3
0
—
Counted Edges of External Clock
CKEG1 CKEG0
Falling edges counted
1
TPSC2
1
TCNT Clock Source
Internal clock: ø
Internal clock: ø/2
Internal clock: ø/4
Internal clock: ø/8
External clock A: TCLKA input
External clock B: TCLKB input
External clock C: TCLKC input
Bit 2
TPSC1
0
1
0
1
Bit 1
TPSC0
0
1
0
1
0
1
Bit 0
0
External clock D: TCLKD input
1
0
770
www.DataSheet4U.com