Rev. 1.00, 09/03, page 420 of 704
15.3 Operation
15.3.1
Watchdog Timer Mode
To use the WDT as a watchdog timer, set the WT/
IT
bit and the TME bit in TCSR to 1. While the
WDT is used as a watchdog timer, if TCNT overflows without being rewritten because of a
system malfunction or another error, an internal reset or NMI interrupt request is generated. TCNT
does not overflow while the system is operating normally. Software must prevent TCNT
overflows by rewriting the TCNT value (normally writing H'00) before overflows occurs.
If the RST/
NMI
bit in TCSR is set to 1, when the TCNT overflows, an internal reset signal for this
LSI is issued for 518 system clocks as shown in figure 15.2. If the RST/
NMI
bit is cleared to 0,
when the TCNT overflows, an NMI interrupt request is generated.
An internal reset request from the watchdog timer and a reset input from the
RES
pin are
processed in the same vector. A reset source can be identified by the state of the XRST bit in
SYSCR. 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 XRST bit in SYSCR is set to 1.
An NMI interrupt request from the watchdog timer and an interrupt request from the NMI pin are
processed in the same vector. Do not handle an NMI interrupt request from the watchdog timer
and an interrupt request from the NMI pin at the same time.
TCNT value
H'00
Time
H'FF
WT/ = 1
TME = 1
Write H'00 to
TCNT
WT/ = 1
TME = 1
Write H'00 to
TCNT
518 system clocks
Internal reset signal
WT/ :
TME:
OVF:
Overflow
OVF = 1
*
Timer mode select bit
Timer enable bit
Overflow flag
Note:
*
After the OVF bit becomes 1, it is cleared to 0 by an internal reset.
The XRST bit is also cleared to 0.
[Legend]
Figure 15.2 Watchdog Timer Mode (RST/
NMI
NMI
NMI
NMI
= 1) Operation
Summary of Contents for H8S/2437
Page 2: ...Rev 1 00 09 03 page ii of xxxviii ...
Page 8: ...Rev 1 00 09 03 page viii of xxxviii ...
Page 32: ...Rev 1 00 09 03 page xxxii of xxxviii ...
Page 38: ...Rev 1 00 09 03 page xxxviii of xxxviii ...
Page 168: ...Rev 1 00 09 03 page 130 of 704 ...
Page 336: ...Rev 1 00 09 03 page 298 of 704 ...
Page 402: ...Rev 1 00 09 03 page 364 of 704 ...
Page 454: ...Rev 1 00 09 03 page 416 of 704 ...
Page 512: ...Rev 1 00 09 03 page 474 of 704 ...
Page 562: ...Rev 1 00 09 03 page 524 of 704 ...
Page 648: ...Rev 1 00 09 03 page 610 of 704 ...
Page 672: ...Rev 1 00 09 03 page 634 of 704 ...
Page 732: ...Rev 1 00 09 03 page 694 of 704 ...
Page 742: ...Rev 1 00 09 03 page 704 of 704 ...
Page 745: ......
Page 746: ...H8S 2437 Group Hardware Manual REJ09B0059 0100Z ...