Section 11 Watchdog Timer (WDT)
Rev. 3.00 Mar. 14, 2006 Page 372 of 804
REJ09B0104-0300
11.3 Operation
11.3.1
Watchdog Timer Mode
To use the WDT in watchdog timer mode, set both the WT/
IT
and TME bits in TCSR to 1.
When TCNT overflows in watchdog timer mode, the WOVF bit in RSTCSR is set to 1.
When the watchdog timer mode is selected and the RSTE bit in RSTCSR is set to 1, if TCNT
overflows without being rewritten because of a system crash or other error, this LSI is initialized
internally. This ensures that TCNT does not overflow while the system is operating normally.
Software must prevent TCNT overflows by rewriting the TCNT value (normally H'00 is written)
before overflow occurs.
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 (TCNT has overflowed), the
RES
pin reset has priority and the WOVF bit in
RSTCSR is cleared to 0.
The internal reset signal is output for 519 cycles of P
φ
.
When RSTE = 1, a signal to initialize this LSI internally is generated. Since this signal initializes
the system click control register (SCKCR), the multiplication ratio of P
φ
clock is also initialized.
When RSTE = 0, the signal is not generated, meaning that the SCKCR value and multiplication
ratio of P
φ
clock remain unchanged.
TCNT value
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
519 cycles
Internal reset signal
*
Notes:
*
If TCNT overflows when the RSTE bit is set to 1, an internal reset signal is generated.
Overflow
WOVF = 1
Figure 11.2 Operation in Watchdog Timer Mode
electronic components distributor