8 WATCHDOG TIMER (WDT2)
S1C17M20/M21/M22/M23/M24/M25
Seiko Epson Corporation
8-3
TECHNICAL MANUAL (Rev. 1.0)
8.3.2 Operations in HALT and SLEEP Modes
During HALT mode
WDT2 operates in HALT mode. HALT mode is therefore cleared by an NMI or reset if it continues for more than the
NMI/reset generation cycle and the CPU executes the interrupt handler. To disable WDT2 in HALT mode, stop WDT2
by writing 0xa to the WDTCTL.WDTRUN[3:0] bits before executing the halt instruction. Reset WDT2 before re-
suming operations after HALT mode is cleared.
During SLEEP mode
WDT2 operates in SLEEP mode if the selected clock source is running. SLEEP mode is cleared by an NMI or reset if
it continues for more than the NMI/reset generation cycle and the CPU executes the interrupt handler. Therefore, stop
WDT2 by setting the WDTCTL.WDTRUN[3:0] bits before executing the slp instruction.
If the clock source stops in SLEEP mode, WDT2 stops. To prevent generation of an unnecessary NMI or reset after
clearing SLEEP mode, reset WDT2 before executing the slp instruction. WDT2 should also be stopped as required us-
ing the WDTCTL.WDTRUN[3:0] bits.
8.4 Control Registers
WDT2 Clock Control Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
WDTCLK
15–9 –
0x00
–
R
–
8
DBRUN
0
H0
R/WP
7–6 –
0x0
–
R
5–4 CLKDIV[1:0]
0x0
H0
R/WP
3–2 –
0x0
–
R
1–0 CLKSRC[1:0]
0x0
H0
R/WP
Bits 15–9 Reserved
Bit 8
DBRUN
This bit sets whether the WDT2 operating clock is supplied in DEBUG mode or not.
1 (R/WP): Clock supplied in DEBUG mode
0 (R/WP): No clock supplied in DEBUG mode
Bits 7–6
Reserved
Bits 5–4
CLKDIV[1:0]
These bits select the division ratio of the WDT2 operating clock (counter clock). The clock frequency
should be set to around 256 Hz.
Bits 3–2
Reserved
Bits 1–0
CLKSRC[1:0]
These bits select the clock source of WDT2.
Table 8.4.1 Clock Source and Division Ratio Settings
WDTCLK.
CLKDIV[1:0] bits
WDTCLK.CLKSRC[1:0] bits
0x0
0x1
0x2
0x3
IOSC
OSC1
OSC3
EXOSC
0x3
1/65,536
1/128
1/65,536
1/1
0x2
1/32,768
1/32,768
0x1
1/16,384
1/16,384
0x0
1/8,192
1/8,192
(Note) The oscillation circuits/external input that are not supported in this IC cannot be
selected as the clock source.