sm59128 SyncMOS Technologies,Inc, sm59128 Datasheet - Page 16

no-image

sm59128

Manufacturer Part Number
sm59128
Description
8-bits Micro-controller Embedded 128kb Flash & 1kb Ram & Iic & Spwm
Manufacturer
SyncMOS Technologies,Inc
Datasheet
4. Watch Dog Timer
The Watch Dog Timer (WDT) is a 16-bit free-running counter that generate reset signal if the counter overflows. The
WDT is useful for systems, which are susceptible to noise, power glitches, or electronics discharge which causing
software dead loop or runaway. The WDT function can help user software recover from abnormal software condition.
The WDT is different from Timer0, Timer1 and Timer2 of general 8052. To prevent a WDT reset can be done by
software periodically clearing the WDT counter. User should check WDR bit of SCONF register whenever un-predicted
reset happened
The purpose of the secure procedure is to prevent the WDTC value from being changed when system runaway.
There is a 250KHz RC oscillator embedded in chip. Set WDTE = “1” will enable the RC oscillator and the frequency is
independent to the system frequency.
To enable the WDT is done by setting 1 to the bit 7 (WDTE) of WDTC. After WDTE set to 1, the 16-bit counter starts to
count with the RC oscillator. It will generate a reset signal when overflows. The WDTE bit will be cleared to 0
automatically when SM59128 been reset, either hardware reset or WDT reset.
To reset the WDT is done by setting 1 to the CLEAR bit of WDTC before the counter overflow. This will clear the
content of the 16-bit counter and let the counter re-start to count from the beginning.
4.1 Watch Dog Timer Registers:
Watch Dog Timer Registers - WDT Control Register (WDTC, $9F)
WDTE : Watch Dog Timer enable bit
CLEAR : Watch Dog Timer reset bit
PS[2:0] : Overflow period select bits
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M027Ver: B SM59128
Read / Write:
Reset value:
SyncMOS Technologies International, Inc.
WDTE
bit-7
R/W
0
PS [2:0]
Reserve
000
001
010
011
100
101
110
111
*
-
Clear
R/W
0
Unused
16
Embedded 128KB flash & 1KB RAM & IIC & SPWM
*
-
Overflow Period (ms)
Unused
*
-
131.072
262.144
16.384
32.768
65.536
2.048
4.096
8.192
R/W
PS2
0
8-Bits Micro-controller
PS1
R/W
0
SM59128
06/2009
bit-0
PS0
R/W
0

Related parts for sm59128