Rev.6.00 Oct.28.2004 page 460
of 1016
REJ09B0138-0600H
13.3
Operation
13.3.1
Watchdog Timer Operation
To use the WDT as a watchdog timer, set the WT/
IT
and TME bits to 1. Software must prevent TCNT overflows by
rewriting the TCNT value (normally be writing H'00) before overflows occurs. This ensures that TCNT does not overflow
while the system is operating normally. If TCNT overflows without being rewritten because of a system crash or other
error, the
WDTOVF
signal*
1
is output. This is shown in figure 13-4. This
WDTOVF
signal*
1
can be used to reset the
system. The
WDTOVF
signal*
1
is output for 132 states when RSTE = 1, and for 130 states when RSTE = 0.
If TCNT overflows when 1 is set in the RSTE bit in RSTCSR, a signal that resets the H8S/2357 Group internally is
generated at the same time as the
WDTOVF
signal*
1
. This reset can be selected as a power-on reset or a manual reset*
2
,
depending on the setting of the RSTS bit in RSTCSR. The internal reset signal is output for 518 states.
If a reset caused by a signal input to the
RES
pin occurs at the same time as a reset caused by a WDT overflow, the
RES
pin reset has priority and the WOVF bit in RSTCSR is cleared to 0.
Notes: 1. In the F-ZTAT version, the H8S/2398, H8S/2394, H8S/2392, or H8S/2390, the
WDTOVF
pin function is not
available.
2. Manual reset is only supported in the H8S/2357 ZTAT.
TCNT count
H'00
Time
H'FF
WT/
IT
=1
TME=1
H'00 written
to TCNT
WT/
IT
=1
TME=1
H'00 written
to TCNT
132 states
*
2
518 states
WDTOVF
signal
*
3
Internal reset signal
*
1
WT/
IT:
TME:
Notes: 1.
The internal reset signal is generated only if the RSTE bit is set to 1.
2.
130 states when the RSTE bit is cleared to 0.
3.
The
WDTOVF
pin function is not available in the F-ZTAT version, the H8S/2398, H8S/2394,
H8S/2392, or H8S/2390.
Overflow
WDTOVF
*
3
and
internal reset are
generated
WOVF=1
Timer mode select bit
Timer enable bit
Legend:
Figure 13-4 Watchdog Timer Operation
Summary of Contents for ZTAT H8S/2357F
Page 4: ......
Page 28: ...Rev 6 00 Oct 28 2004 page xxiv of xxiv REJ09B0138 0600H...
Page 82: ...Rev 6 00 Oct 28 2004 page 54 of 1016 REJ09B0138 0600H...
Page 108: ...Rev 6 00 Oct 28 2004 page 80 of 1016 REJ09B0138 0600H...
Page 364: ...Rev 6 00 Oct 28 2004 page 336 of 1016 REJ09B0138 0600H...
Page 438: ...Rev 6 00 Oct 28 2004 page 410 of 1016 REJ09B0138 0600H...
Page 566: ...Rev 6 00 Oct 28 2004 page 538 of 1016 REJ09B0138 0600H...
Page 588: ...Rev 6 00 Oct 28 2004 page 560 of 1016 REJ09B0138 0600H...
Page 688: ...Rev 6 00 Oct 28 2004 page 660 of 1016 REJ09B0138 0600H...
Page 694: ...Rev 6 00 Oct 28 2004 page 666 of 1016 REJ09B0138 0600H...
Page 708: ...Rev 6 00 Oct 28 2004 page 680 of 1016 REJ09B0138 0600H...
Page 1044: ...Rev 6 00 Oct 28 2004 page 1016 of 1016 REJ09B0138 0600H...