Datasheet
Data Sheet ADuC7124/ADuC7126
Rev. C | Page 95 of 108
Timer2 Value Register
Name: T2VAL
Address: 0xFFFF0344
Default Value: 0x0000
Access: Read only
T2VAL is a 32-bit register that holds the current value of Timer2.
Timer2 Control Register
Name: T2CON
Address: 0xFFFF0348
Default Value: 0x0000
Access: Read/write
This 32-bit MMR configures the mode of operation for Timer2.
Table 144. T2CON MMR Bit Descriptions
Bit Value Description
[31:11]
Reserved.
10:9] Clock source select.
00 External 32.768 kHz watch crystal (default).
01 External 32.768 kHz watch crystal.
10 Internal 32.768 kHz oscillator.
11 HCLK.
8 Count up.
Set by the user for Timer2 to count up.
Cleared by the user for Timer2 to count down (default).
7 Timer2 enable bit.
Set by the user to enable Timer2.
Cleared by the user to disable Timer2 (default).
6 Timer2 mode.
Set by the user to operate in periodic mode.
Cleared by the user to operate in free-running mode (default).
[5:4] Format.
00 Binary (default).
01 Reserved.
10 Hr: min: sec: hundredths (23 hours to 0 hours).
11 Hr: min: sec: hundredths (255 hours to 0 hours).
[3:0] Prescaler.
0000 Source clock/1 (default).
0100 Source clock/16.
1000 Source clock/256.
1111 Source clock/32,768.