BAT32G1x9 user manual | Chapter 14 Watchdog timer
480 / 1149
Rev.1.02
When running on the X1 oscillating clock after deactivating deep sleep mode, the CPU starts running after the
oscillation settling time has elapsed.
If the time from the time from the release of deep sleep mode to the timepiece overflow of the watchdog timer is
short, a return will occur during the oscillation stabilization time. Therefore, after de-deep sleep mode by interval
interrupt, if you want to run with the X1 oscillation clock and clear the watchdog timer, because the watchdog timer
is cleared after the oscillation stabilization time has elapsed, you must consider this situation to set the overflow
time.
14.4.2
Setting of the watchdog timer overflow timer
Set the overflow time of the watchdog timer by bit3~1 (WDCS2~WDCS0) of the option byte (000C0H).
In the event of an overflow, an internal reset signal is generated. If you write "ACH" to the watchdog timer's
allow register (WDTE) during window opening before the overflow time, the count is cleared and the count is
restarted. The overflow time that can be set is as follows.
Table 14-3
Watchdog timer overflow timer settings
WDCS2
WDCS1
WDCS0
Overflow time of the watchdog timer
(f
IL
=20kHz(MAX.)
case).
0
0
0
2
6
/f
IL
(3.2ms)
0
0
1
2
7
/f
IL
(6.4ms)
0
1
0
2
8
/f
IL
(12.8ms)
0
1
1
2
9
/f
IL
(25.6ms)
1
0
0
2
11
/f
IL
(102.4ms)
1
0
1
2
13
/f
IL
(409.6ms)
1
1
0
2
14
/f
IL
(819.2ms)
1
1
1
2
16
/f
IL
(3276.8ms)
Note: f
IL
: The clock frequency of the low-speed internal oscillator.