
Timers
LH75400/01/10/11 (Preliminary) User’s Guide
15-18
6/17/03
15.2.2.8 Timer 1 Control Register
Table 15-18. 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
CAP1
CAP0
SEL
CS
CCL
RESET
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
RW
R
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
ADDR
0xFF 0x30
Table 15-19. CTRL Register Definitions
BITS
FIELD
NAME
DESCRIPTION
31:15
///
Reserved
Read as zero.
14
PWM
PWM Output
This bit allows the use of CTCMP1A 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 = Output CTCMP1A is normal and works only with the CMP1 Register.
1 = Output CTCMP1A is in PWM Mode.
13
TC
Timer 1 Operation
This bit determines whether Timer 1 counter is to operate
as either a free running counter or as an interval timer. When set, the counter
clears upon matching CMP1 for Timer 1. This operation is only available with the
CMP1 Register for Timer 1. Refer to Section 15.1.1 for a complete explanation.
0 = Inhibit counter clear (operates as free running counter).
1 = Clear counter when CNT for Timer 1 matches CMP1 for Timer 1.
12:11
CMP1
Output Value Select
Sets the reference value (at which compare match
should occur) that is to be output to CTCMP1B when CNT for Timer 1 matches
the CMP1 Register for Timer 1.
00 = No change occurs to the output CTCMP1B.
01 = Output ‘0’ to CTCMP1B.
10 = Output ‘1’ to CTCMP1B.
11 = Toggle the output to CTCMP1B.
10:9
CMP0
Output Value Select
Sets the reference value (at which compare match
should occur) that is to be output to CTCMP1A when the CNT Register for Timer
1 matches the CMP0 Register for Timer 1.
00 = No change occurs to the output CTCMP1A.
01 = Output 0 to CTCMP1A.
10 = Output 1 to CTCMP1A.
11 = Toggle the output to CTCMP1A.