UG-498
ADuCM320 Hardware Reference Manual
Rev. C | Page 158 of 196
Bits
Bit Name
Description
Reset
Access
3
MOD
Timer mode. This bit is used to control 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. Used to control 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. Controls the prescaler division factor applied to the timer's
selected clock. If CLK Source 0 (PCLK) or CLK Source 1 (HCLK) is selected,
then Prescaler Value 0 means divide by 4, else, 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 225. Bit Descriptions for T0CLRI
Bits
Bit Name
Description
Reset
Access
[15:2]
RESERVED
Reserved.
0x0
R
1
CAP
Clear captured event interrupt. This bit is used to clear a capture event
interrupt.
0x0
W1C
0: no effect
1: clear the capture event interrupt
0
TMOUT
Clear timeout interrupt. This bit is used to clear a timeout interrupt.
0x0
W1C
0: no effect
1: clears the timeout interrupt
Capture Register
Address: 0x40000010, Reset: 0x0000, Name: T0CAP
Table 226. 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 the T0CLRI[1].
0x0
R