Operations Of Watchdog Timer - Fujitsu F2MC-16LX Hardware Manual

16-bit microcontroller mb90330 series
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

CHAPTER 10 WATCHDOG TIMER
10.4

Operations of Watchdog Timer

The watchdog timer generates a watchdog reset upon an overflow of the watchdog
counter.
Operations of Watchdog Timer
Figure 10.4-1 shows the setting required to operate the watchdog timer.
Address
0000A8
Activating watchdog timer
• The watchdog timer is activated at the first write of "0" to the watchdog control bit (WTE) of the
watchdog timer control register (WDTC) after reset. In this case, specify the interval time at the same
time by the interval time selection bits (WT1, WT) of the WDTC register.
• Once the watchdog time is activated, it cannot stop until power-on or a watchdog reset occurs.
Clearing watchdog timer
• The 2-bit counter of the watchdog timer is cleared by the second write of "0" to the WTE bit. If the
counter is not cleared within the interval time, the counter overflows and the watchdog is reset.
• The watchdog counter is cleared when a reset operation occurs or when a change to sleep mode, stop
mode or timebase timer mode is made.
• When a change to timebase timer mode or watch mode is made, the watchdog counter is once cleared.
However, be careful that the watchdog counter does not stop after being cleared.
• When watch mode is used (sub clock), do not use the watchdog timer.
Interval Time of Watchdog Timer
Figure 10.4-2 shows the relationship between watchdog timer clear timing and interval time. The interval
time varies depending on the timing of clearing the watchdog timer and takes 3.5 to 4.5 times of the count
clock cycle.
Checking reset factors
By checking the reset factor bit (PONR, WRST, ERST, SRST) of the WDTC register after reset, the factor
of the reset can be identified.
226
Figure 10.4-1 Setting of Watchdog Timer
bit15
bit8
WDTC
(TBTC)
H
Used bit
Unused bit
0
Set to "0".
bit7
bit6 bit5 bit4
bit3 bit2 bit1
PONR
WRST ERST SRST
bit0
WTE
WT1
WT0
0

Advertisement

Table of Contents
loading

Table of Contents