
LH75400/01/10/11 (Preliminary) User’s Guide
Timers
6/17/03
15-11
15.2.2.2 Timer 0 Compare/Capture Control Register
CMP_CAP_CTRL is the Timer 0 Compare / Capture Control Register.
Table 15-6. CMP_CAP_CTRL Register
BIT
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
FIELD
///
RESET
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
RW
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
FIELD
PWM
TC
CMP1
CMP0
CAP4
CAP3
CAP2
CAP1
CAP0
RESET
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
ADDR
0xFF 0x04
Table 15-7. CMP_CAP_CTRL Register Definitions
BITS
FIELD
NAME
DESCRIPTION
31:16
///
Reserved Read as zero.
15
PWM
PWM Output
Allows CTCMP0A to be used as a PWM output. This is done by
properly setting up this bit as well as other bits in this register. Refer to
Section 15.1.1 for a complete explanation.
0 = Outputs CTCMP0A is normal and works only with the CMP0 Register.
1 = Outputs CTCMP0A is in PWM Mode.
14
TC
Timer 0 Counter Operation
Determines whether the Timer 0 counter is to
operate as either a free running counter or as an interval timer. When set, the
counter clears upon matching the CMP1 Register for Timer 0. This operation is
only available with the CMP1 Register. Refer to Section 15.1.1 for a complete
explanation.
0 = Inhibits counter clear (operates as free running counter).
1 = Clears counter when CNT for Timer 0 and CMP1 for Timer 0 match.
13:12
CMP1
Output Value Select
Sets the reference value (at which compare match
should occur) that is to be output to CTCMP0B when the CNT Register for Timer
0 matches the CMP1 Register for Timer 0.
00 = No change occurs to the output CTCMP0B.
01 = Output 0 to CTCMP0B.
10 = Output 1 to CTCMP0B.
11 = Toggle the output to CTCMP0B.
11:10
CMP0
Output Value Select
Sets the reference value (at which compare match
should occur) that is to be output to CTCMP0A when the CNT Register for Timer
0 matches the CMP0 Register for Timer 0.
00 = No change occurs to the output CTCMP0A.
01 = Output 0 to CTCMP0A.
10 = Output 1 to CTCMP0A.
11 = Toggle the output to CTCMP0A.