English
Language : 

ADUC7022_15 Datasheet, PDF (88/104 Pages) Analog Devices – Precision Analog Microcontroller, 12-Bit Analog I/O, ARM7TDMI MCU
ADuC7019/20/21/22/24/25/26/27/28/29
Table 186. T2CON MMR Bit Descriptions
Bit Value Description
31:11
Reserved.
10:9
Clock source.
00
External crystal.
01
External crystal.
10
Internal oscillator.
11
Core clock (41 MHz/2CD).
8
Count up. Set by user for Timer2 to count up.
Cleared by user for Timer2 to count down by
default.
7
Timer2 enable bit. Set by user to enable Timer2.
Cleared by user to disable Timer2 by default.
6
Timer2 mode. Set by user to operate in
periodic mode. Cleared by user to operate in
free-running mode. Default mode.
5:4
Format.
00
Binary.
01
Reserved.
10
Hr: min: sec: Hundredths (23 hours to 0 hour).
11
Hr: min: sec: Hundredths (255 hours to 0 hour).
3:0
Prescale.
0000 Source Clock/1 by default.
0100 Source Clock/16.
1000 Source Clock/256 expected for Format 2 and
Format 3.
1111 Source Clock/32,768.
Table 187. T2CLRI Register
Name
Address
T2CLRI
0xFFFF034C
Default Value
0xFF
Access
W
T2CLRI is an 8-bit register. Writing any value to this register
clears the Timer2 interrupt.
Timer3 (Watchdog Timer)
Timer3 has two modes of operation: normal mode and
watchdog mode. The watchdog timer is used to recover from
an illegal software state. Once enabled, it requires periodic
servicing to prevent it from forcing a processor reset.
Normal Mode
Timer3 in normal mode is identical to Timer0, except for the
clock source and the count-up functionality. The clock source
is 32 kHz from the PLL and can be scaled by a factor of 1, 16,
or 256 (see Figure 80).
Data Sheet
32.768kHz
PRESCALER
/1, 16 OR 256
16-BIT
LOAD
16-BIT
UP/DOWN
COUNTER
WATCHDOG
RESET
TIMER3 IRQ
TIMER3
VALUE
Figure 80. Timer3 Block Diagram
Watchdog Mode
Watchdog mode is entered by setting Bit 5 in the T3CON MMR.
Timer3 decreases from the value present in the T3LD register to 0.
T3LD is used as the timeout. The maximum timeout can be
512 sec, using the prescaler/256, and full scale in T3LD. Timer3
is clocked by the internal 32 kHz crystal when operating in
watchdog mode. Note that to enter watchdog mode success-
fully, Bit 5 in the T3CON MMR must be set after writing to the
T3LD MMR.
If the timer reaches 0, a reset or an interrupt occurs, depending
on Bit 1 in the T3CON register. To avoid reset or interrupt, any
value must be written to T3CLRI before the expiration period.
This reloads the counter with T3LD and begins a new timeout
period.
When watchdog mode is entered, T3LD and T3CON are write-
protected. These two registers cannot be modified until a reset
clears the watchdog enable bit, which causes Timer3 to exit
watchdog mode.
The Timer3 interface consists of four MMRs: T3LD, T3VAL,
T3CON, and T3CLRI.
Table 188. T3LD Register
Name
Address
T3LD
0xFFFF0360
Default Value
0x0000
T3LD is a 16-bit register load register.
Access
R/W
Table 189. T3VAL Register
Name
Address
T3VAL
0xFFFF0364
Default Value
0xFFFF
Access
R
T3VAL is a 16-bit read-only register that represents the current
state of the counter.
Table 190. T3CON Register
Name
Address
T3CON
0xFFFF0368
Default Value
0x0000
Access
R/W
T3CON is the configuration MMR described in Table 191.
Rev. F | Page 88 of 104