Rev. 2.50 70 June 22, 2017 Rev. 2.50 71 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
Reset and Initialisation
Aresetfunctionisafundamentalpartofanymicrocontrollerensuringthatthedevicecanbeset
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.Anotherresetexistsin
theformofaLowVoltageReset,LVR,whereafullreset,similartotheRESresetisimplementedin
situationswherethepowersupplyvoltagefallsbelowacertainthreshold.
Reset Functions
Therearefivewaysinwhichamicrocontrollerresetcanoccur,througheventsoccurringboth
internallyandexternally:
• Power-onReset
Themostfundamentalandunavoidableresetistheonethatoccursafterpowerisrstappliedto
themicrocontroller.AswellasensuringthattheProgramMemorybeginsexecutionfromtherst
memoryaddress,apower-onresetalsoensuresthatcertainotherregistersarepresettoknown
conditions.AlltheI/Oportandportcontrolregisterswillpowerupinahighconditionensuring
thatallpinswillberstsettoinputs.
Note:t
RSTD
ispower-ondelay,typicaltime=100ms
Power-on Reset Timing Chart