Datasheet
ADuC7033
Rev. B | Page 83 of 140
Timer2 Control Register
Name: T2CON
Address: 0xFFFF0348
Default Value: 0x0000
Access: Read/write
Function: This 16-bit MMR configures the mode of operation of Timer2.
Table 55. T2CON MMR Bit Designations
Bit Description
15 to 11 Reserved.
10 to 9 Clock Source Select.
00 = core clock (default).
01 = low power (32.768 kHz) oscillator.
10 = external (32.768 kHz) watch crystal.
11 = precision (32.768 kHz) oscillator.
8 Count Up.
Set by user for Timer2 to count up.
Cleared by user for Timer2 to count down (default).
7 Timer2 Enable Bit.
Set by user to enable Timer2.
Cleared by user to disable Timer2 (default).
6 Timer2 Mode.
Set by user to operate in periodic mode.
Cleared by user to operate in free running mode (default).
5 to 4 Format.
00 = binary (default).
01 = reserved.
10 = hours:minutes:seconds:hundredths (23 hours to 0 hours). This is only valid with a 32 kHz clock.
11 = hours:minutes:seconds:hundredths (255 hours to 0 hours). This is only valid with a 32 kHz clock.
3 to 0 Prescaler.
0000 = source clock/1 (default).
0100 = source clock/16.
1000 = source clock/256. This setting should be used in conjunction with Timer2 in the format
hours:minutes:seconds:hundredths. See Format 10 and Format 11 listed with Bits[5:4] in this table.
1111 = source clock/32,768.