8.2.9
Timer Control Registers (16TCR)
16TCR is an 8-bit register. The 16-bit timer has three 16TCRs, one in each channel.
Channel
Abbreviation
0
16TCR0
1
16TCR1
2
16TCR2
Bit
7
—
Initial value
1
Read/Write
—
Reserved bit
Each 16TCR is an 8-bit readable/writable register that selects the timer counter clock source,
selects the edge or edges of external clock sources, and selects how the counter is cleared.
16TCR is initialized to H'80 by a reset and in standby mode.
Bit 7—Reserved: This bit cannot be modified and is always read as 1.
242
Function
16TCR controls the timer counter. The 16TCRs in all
channels are functionally identical. When phase counting
mode is selected in channel 2, the settings of bits CKEG1
and CKEG0 and TPSC2 to TPSC0 in 16TCR2 are ignored.
6
5
CCLR1
CCLR0
CKEG1
0
0
R/W
R/W
Clock edge 1/0
These bits select external clock edges
Counter clear 1/0
These bits select the counter clear source
4
3
CKEG0
TPSC2
0
0
R/W
R/W
R/W
Timer prescaler 2 to 0
These bits select the timer
counter clock
2
1
0
TPSC1
TPSC0
0
0
0
R/W
R/W