ADuCM310 Hardware Reference Manual
UG-549
Rev. C | Page 161 of 192
Bits
Bit Name
Description
Reset
Access
4
ENABLE
Timer enable. This bit enables and disables the timer. Clearing this bit
resets the timer, including the T0VAL register.
0x0
RW
0: DIS. Timer is disabled (default).
1: EN. Timer is enabled.
3
MOD
Timer mode. This bit controls whether the timer runs in periodic or free
running mode. In periodic mode, the up/down counter starts at the defined
LOAD value (T0LD); in free running mode, the up/down counter starts at
0x0000 or 0xFFFF depending on whether the timer is counting up or down.
0x1
RW
0: FREERUN. Timer runs in free running mode.
1: PERIODIC. Timer runs in periodic mode (default).
2
UP
Count up. This bit controls whether the timer increments (counts up) or
decrements (counts down) the up/down counter.
0x0
RW
0: DIS. Timer is set to count down (default).
1: EN. Timer is set to count up.
[1:0]
PRE
Prescaler. These bits control the prescaler division factor applied to the
selected clock of the timer. If CLK Source 0 or CLK Source 1 are selected, a
prescaler value of 0 means divide by 4; otherwise, it means divide by 1.
0x2
RW
00: Source Clock/[1 or 4].
01: Source Clock/16.
10: Source Clock/256.
11: Source Clock/32,768.
Clear Interrupt Register
Address: 0x4000000C, Reset: 0x0000, Name: T0CLRI
Table 230. Bit Descriptions for T0CLRI
Bits
Bit Name
Description
Reset
Access
[15:2]
RESERVED
Reserved.
0x0
R
1
CAP
Clear captured event interrupt. This bit clears a capture event interrupt.
0x0
W1C
0: no effect.
1: clears the capture event interrupt.
0
TMOUT
Clear timeout interrupt. This bit clears a timeout interrupt.
0x0
W1C
0: no effect.
1: clears the timeout interrupt.
Capture Register
Address: 0x40000010, Reset: 0x0000, Name: T0CAP
Table 231. Bit Descriptions for T0CAP
Bits
Bit Name
Description
Reset
Access
[15:0]
CAP
16-bit captured value. T0CAP holds its value until T0CLRI[1] is set by user
code. T0CAP is not overwritten even if another event occurs without writing
to T0CLRI[1].
0x0
R