English
Language : 

TS80C58X2_14 Datasheet, PDF (32/62 Pages) ATMEL Corporation – Programmable Clock Out and Up/Down Timer/Counter 2
12.1.1
Table 12-2. WDTPRG Register
WDTPRG Address (0A7h)
7
6
5
4
3
2
1
0
T4
T3
T2
T1
T0
S2
S1
S0
Bit
Number
7
6
5
4
3
2
1
0
Bit
Mnemonic
Description
T4
T3
T2
Reserved
Do not try to set or clear this bit.
T1
T0
S2
WDT Time-out select bit 2
S1
WDT Time-out select bit 1
S0
WDT Time-out select bit 0
S2S1 S0
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
Selected Time-out
0
(214 - 1) machine cycles, 16.3 ms @ 12 MHz
1
(215 - 1) machine cycles, 32.7 ms @ 12 MHz
0
(216 - 1) machine cycles, 65.5 ms @ 12 MHz
1
(217 - 1) machine cycles, 131 ms @ 12 MHz
0
(218 - 1) machine cycles, 262 ms @ 12 MHz
1
(219 - 1) machine cycles, 542 ms @ 12 MHz
0
(220 - 1) machine cycles, 1.05 s @ 12 MHz
1
(221 - 1) machine cycles, 2.09 s @ 12 MHz
Reset value XXXX X000
WDT during Power Down and Idle
In Power Down mode the oscillator stops, which means the WDT also stops. While in Power
Down mode the user does not need to service the WDT. There are 2 methods of exiting Power
Down mode: by a hardware reset or via a level activated external interrupt which is enabled prior
to entering Power Down mode. When Power Down is exited with hardware reset, servicing the
WDT should occur as it normally should whenever the TS80C54/58X2 is reset. Exiting Power
Down with an interrupt is significantly different. The interrupt is held low long enough for the
oscillator to stabilize. When the interrupt is brought high, the interrupt is serviced. To prevent the
WDT from resetting the device while the interrupt pin is held low, the WDT is not started until the
interrupt is pulled high. It is suggested that the WDT be reset during the interrupt service routine.
To ensure that the WDT does not overflow within a few states of exiting of powerdown, it is best
to reset the WDT just before entering powerdown.
In the Idle mode, the oscillator continues to run. To prevent the WDT from resetting the
TS80C54/58X2 while in Idle mode, the user should always set up a timer that will periodically
exit Idle, service the WDT, and re-enter Idle mode.
32 AT/TS8xC54/8X2
4431E–8051–04/06