UG-549
REGISTER SUMMARY: GENERAL-PURPOSE TIMER 2
Table 240. Timer 2 Register Summary
Address
0x40000800
0x40000804
0x40000808
0x4000080C
0x40000810
0x4000081C
REGISTER DETAILS: GENERAL-PURPOSE TIMER 2
16-Bit Load Value Register
Address: 0x40000800, Reset: 0x0000, Name: T2LD
Table 241. Bit Descriptions for T2LD
Bits
Bit Name
[15:0]
LOAD
16-Bit Timer Value Register
Address: 0x40000804, Reset: 0x0000, Name: T2VAL
Table 242. Bit Descriptions for T2VAL
Bits
Bit Name
[15:0]
VAL
Control Register
Address: 0x40000808, Reset: 0x000A, Name: T2CON
Table 243. Bit Descriptions for T2CON
Bits
Bit Name
[15:13]
RESERVED
12
EVENTEN
[11:8]
EVENT
7
RLD
[6:5]
CLK
Name
Description
T2LD
16-bit load value register
T2VAL
16-bit timer value register
T2CON
Control register
T2CLRI
Clear interrupt register
T2CAP
Capture register
T2STA
Status register
Description
Load value. The up/down counter is periodically loaded with this value if
periodic mode is selected (T2CON[3] = 1). LOAD writes during up/down
counter timeout events are delayed until the event has passed.
Description
Current count. Reflects the current up/down counter value. Value delayed
two PCLK cycles due to clock synchronizers.
Description
Reserved.
Event select. This bit enables and disables the capture of events. Used in
conjunction with the EVENT select range: when a selected event occurs
the current value of the up/down counter is captured in T2CAP.
0: events are not captured.
1: events are captured.
Event select range. Timer event select range (0 to 15).
Reload control. RLD is only used for periodic mode; this bit allows the user
to select whether the up/down counter is reset only on a timeout event or
also when T2CLRI[0] is set.
1: up/down counter is reset when T2CLRI[0] is set.
0: up/down counter is only reset on a timeout event.
Clock select. These bits select a timer clock from the four available clock
sources.
00: PCLK.
01: HCLK.
10: LFOSC, 32 kHz oscillator.
11: HFXTAL, if CLKCON0[11] = 1.
11: HFOSC, if CLKCON0[11] = 0.
ADuCM310 Hardware Reference Manual
Rev. C | Page 166 of 192
Reset
RW
0x0000
RW
0x0000
R
0x000A
RW
0x0000
W
0x0000
R
0x0000
R
Reset
Access
0x0
RW
Reset
Access
0x0
R
Reset
Access
0x0
R
0x0
RW
0x0
RW
0x0
RW
0x0
RW
Need help?
Do you have a question about the ADuCM310 and is the answer not in the manual?