Watchdog Timer Operation - Fujitsu MB90480 Series Hardware Manual

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

10.4 Watchdog Timer Operation

The watchdog timer generates a watchdog reset for an overflow of the watchdog
counter.
Operation of watchdog timer
Figure 10.4-1 shows the settings required for operation of the watchdog timer.
Address
0000A8
: Bits being used
0 : Set to "0"
❍ Starting the watchdog timer
After a reset, the watchdog timer starts operation when the first "0" is written to the watchdog
control bit (WTE) in the watchdog timer control register (WDTC). The interval time is then
specified at the same time on the interval time selection bits (WT1, WT0) in the WDTC register.
❍ Clearing of the watchdog timer
The 2-bit counter of the watchdog timer is cleared when the second or subsequent "0" is written
to the WTE bit. If the counter is not cleared within the interval time, the counter overflows to
generate a watchdog reset.
The watchdog counter is cleared when a reset occurs and by a transition to the sleep mode,
stop mode, timebase timer mode, or clock mode.
Notes:
• When a transition to the timebase timer mode or watch mode occurs, the watchdog counter is
cleared once, but be careful because the watchdog counter does not stop after being cleared.
• When the clock timer is set as watchdog's clock with single clock products, the watchdog timer
cannot be used.
❍ Interval time of the watchdog timer
Figure 10.4-2 shows the relationship between the clear timing and interval time of the watchdog
timer. The interval time varies depending on the timing when the watchdog timer is cleared,
which takes 3.5 to 4.5 times as much time as the count clock cycle.
❍ Check of reset causes
After a reset, the reset cause can be found by checking the reset cause bits (PONR, WRST,
ERST, and SRST) in the WDTC register.
Figure 10.4-1 Watchdog timer settings
bit15
bit8
WDTC
(TBTC)
PONR
H
CHAPTER 10 WATCHDOG TIMER
bit7
bit6
bit5
bit4
bit3
Re-
WRST ERST SRST WTE WT1 WT0
served
bit2
bit1
bit0
0
205

Advertisement

Table of Contents
loading

Table of Contents