Watchdog Timer (Wdt2); Overview; Clock Settings; Wdt2 Operating Clock - Epson S1C17M12 Technical Manual

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

8 Watchdog Timer (WDT2)

8.1 Overview

WDT2 restarts the system if a problem occurs, such as when the program cannot be executed normally.
The features of WDT2 are listed below.
• Includes a 10-bit up counter to count NMI/reset generation cycle.
• A counter clock source and clock division ratio are selectable.
• Can generate a reset or NMI in a cycle given via software.
• Can generate a reset at the next NMI generation cycle after an NMI is generated.
Figure 8.1.1 shows the configuration of WDT2.
WDT2
MOD[1:0]
WDTRUN[3:0]
WDTCNTRST
CLK_WDT2
CLKSRC[1:0]
Clock generator
CLKDIV[1:0]
DBRUN

8.2 Clock Settings

8.2.1 WDT2 Operating Clock

When using WDT2, the WDT2 operating clock CLK_WDT2 must be supplied to WDT2 from the clock generator.
The CLK_WDT2 supply should be controlled as in the procedure shown below.
1. Write 0x0096 to the MSCPROT.PROT[15:0] bits. (Remove system protection)
2. Enable the clock source in the clock generator if it is stopped (refer to "Clock Generator" in the "Power Supply,
Reset, and Clocks" chapter).
3. Set the following WDTCLK register bits:
WDTCLK.CLKSRC[1:0] bits
WDTCLK.CLKDIV[1:0] bits
4. Write a value other than 0x0096 to the MSCPROT.PROT[15:0] bits. (Set system protection)

8.2.2 Clock Supply in DEBUG Mode

The CLK_WDT2 supply during DEBUG mode should be controlled using the WDTCLK.DBRUN bit.
The CLK_WDT2 supply to WDT2 is suspended when the CPU enters DEBUG mode if the WDTCLK.DBRUN
bit = 0. After the CPU returns to normal mode, the CLK_WDT2 supply resumes. Although WDT2 stops operating
when the CLK_WDT2 supply is suspended, the register retains the status before DEBUG mode was entered.
If the WDTCLK.DBRUN bit = 1, the CLK_WDT2 supply is not suspended and WDT2 will keep operating in DE-
BUG mode.
S1C17M12/M13 TECHNICAL MANUAL
(Rev. 1.2)
Mode setting circuit
10-bit counter
Comparator
CMP[9:0]
Figure 8.1.1 WDT2 Configuration
(Clock source selection)
(Clock division ratio selection = Clock frequency setting)
Seiko Epson Corporation
8 WATCHDOG TIMER (WDT2)
NMI
STATNMI
Reset
request
8-1

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c17m13

Table of Contents