Rev. 1.71 48 April 11, 2017 Rev. 1.71 49 April 11, 2017
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
Themaximumtime-outperiodiswhenthe2
15
divisionratioisselected.Asanexample,witha32
kHzLIRCoscillatorasitssourceclock,thiswillgiveamaximumwatchdogperiodofaround1
secondforthe2
15
divisionratio,andaminimumtimeoutof7.8msforthe2
8
divisionration.
“CLR WDT”Instruction
11-stage Divider
7-stage Divider
WE4~WE0 bitsWDTC Register
Reset MCU
LIRC
f
LIRC
8-to-1 MUX
CLR
WS2~WS0
(f
LIRC
/2
1
~ f
LIRC
/2
11
)
WDT Time-out
(2
8
/f
LIRC
~ 2
15
/f
LIRC
)
RES pin reset
“HALT”Instruction
Watchdog Timer
Reset and Initialisation
Aresetfunctionisafundamentalpartofanymicrocontrollerensuringthatthedevicescanbeset
tosomepredeterminedconditionirrespectiveofoutsideparameters.Themostimportantreset
conditionisafterpowerisrstappliedtothemicrocontroller.Inthiscase,internalcircuitrywill
ensurethatthemicrocontroller,afterashortdelay,willbeinawelldefinedstateandreadyto
executetherstprograminstruction.Afterthispower-onreset,certainimportantinternalregisters
willbesettodenedstatesbeforetheprogramcommences.OneoftheseregistersistheProgram
Counter,whichwillberesettozeroforcingthemicrocontrollertobeginprogramexecutionfromthe
lowestProgramMemoryaddress.
Inadditiontothepower-onreset,situationsmayarisewhereitisnecessarytoforcefullyapply
aresetconditionwhenthemicrocontrollerisrunning.Oneexampleofthisiswhereafterpower
hasbeenappliedandthemicrocontrollerisalreadyrunning,theRESlineisforcefullypulledlow.
Insuchacase,knownasanormaloperationreset,someofthemicrocontrollerregistersremain
unchangedallowingthemicrocontrollertoproceedwithnormaloperationaftertheresetlineis
allowedtoreturnhigh.
AnothertypeofresetiswhentheWatchdogTimeroverflowsandresetsthemicrocontroller.All
typesofresetoperationsresultindifferentregisterconditionsbeingsetup.Anotherresetexistsinthe
formofaLowVoltageReset,LVR,whereafullresetisimplementedinsituationswherethepower
supplyvoltagefallsbelowacertainthreshold.