Rev. 2.50 68 June 22, 2017 Rev. 2.50 69 June 22, 2017
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
Watchdog Timer
TheWatchdogTimerisprovidedtopreventprogrammalfunctionsorsequencesfromjumpingto
unknownlocations,duetocertainuncontrollableexternaleventssuchaselectricalnoise.
Watchdog Timer Clock Source
TheWatchdogTimerclocksourceisprovidedbytheinternalclock,f
S
,whichisinturnsuppliedby
oneoftwosourcesselectedbycongurationoption:f
SUB
orf
SYS
/4.Thef
SUB
clockcanbesourced
fromeithertheLXTorLIRCoscillators,againchosenviaaconguration option.TheWatchdog
Timersourceclockisthensubdividedbyaratioof2
8
to2
15
togivelongertimeouts,theactualvalue
beingchosenusingtheWS2~WS0bitsintheWDTCregister.TheLIRCinternaloscillatorhasan
approximateperiodof32kHzatasupplyvoltageof5V.
However,itshouldbenotedthatthisspeciedinternalclockperiodcanvarywithV
DD
,temperature
andprocessvariations.TheLXToscillatorissuppliedbyanexternal32.768kHzcrystal.Theother
WatchdogTimerclocksourceoptionisthef
SYS
/4clock.TheWatchdogTimerclocksourcecan
originatefromitsowninternalLIRCoscillator,theLXToscillatororf
SYS
/4.Itisdividedbyavalue
of2
8
to2
15
,usingtheWS2~WS0bitsintheWDTCregistertoobtaintherequiredWatchdogTimer
time-outperiod.
Watchdog Timer Control Register
Asingleregister,WDTC,controlstherequiredtimeoutperiodaswellastheenable/disable
operation.Thisregistertogetherwithseveralcongurationoptionscontroltheoveralloperationof
theWatchdogTimer.
WDTC Register
Bit 7 6 5 4 3 2 1 0
Name FSYSON WS2
WS1 WS0 WDTEN3 WDTEN2 WDTEN1 WDTEN0
R/W R/W R/W R/W R/W R/W R/W R/W R/W
POR 0
1 1 1 1 0 1 0
Bit7 FSYSON:f
SYS
ControlinIDLEMode
0:Disable
1:Enable
Bit6~4 WS2, WS1, WS0:WDTtime-outperiodselection
000:256/f
S
001:512/f
S
010:1024/f
S
011:2048/f
S
100:4096/f
S
101:8192/f
S
110:16384/f
S
111:32768/f
S
ThesethreebitsdeterminethedivisionratiooftheWatchdogTimersourceclock,
whichinturndeterminesthetimeoutperiod.
Bit3~0 WDTEN3, WDTEN2, WDTEN1, WDTEN0:WDTSoftwareControl
1010:Disable
Other:Enable