10.2.3
Timer Control Register (TCR)
Bit
7
OE
0
6
OS
0
5
—
1
4
—
1
3
—
1
2
CKS2
0
1
CKS1
0
0
CKS0
0
Initial value
Read/Write
R/W
R/W
—
—
—
R/W
R/W
R/W
TCR is an 8-bit readable/writable register that selects the clock input to TCNT and controls PWM
output.
TCR is initialized to H'38 by a reset and in standby mode.
Bit 7—Output Enable (OE): This bit enables the timer counter and the PWM output.
Bit 7: OE
Description
0
1
PWM output is disabled. TCNT is cleared to H'00 and stopped.
PWM output is enabled. TCNT runs.
(Initial value)
Bit 6—Output Select (OS): This bit selects positive or negative logic for the PWM output.
Bit 6: OS
Description
0
1
Positive logic; positive-going PWM pulse, 1 = high
Negative logic; negative-going PWM pulse, 1 = low
(Initial value)
Bits 5 to 3—Reserved: These bits cannot be modified and are always read as 1.
217