Rev. 1.50 58 August 28, 2017 Rev. 1.50 59 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
Reset and Initialisation
Aresetfunctionisafundamentalpartofanymicrocontrollerensuringthatthedevicecanbeset
tosomepredeterminedconditionirrespectiveofoutsideparameters.Themostimportantreset
conditionisafterpowerisrstappliedtothemicrocontroller.Inthiscase,internalcircuitrywill
ensurethatthemicrocontroller,afterashortdelay,willbeinawelldefinedstateandreadyto
executetherstprograminstruction.Afterthispower-onreset,certainimportantinternalregisters
willbesettodenedstatesbeforetheprogramcommences.OneoftheseregistersistheProgram
Counter,whichwillberesettozeroforcingthemicrocontrollertobeginprogramexecutionfromthe
lowestProgramMemoryaddress.
Inadditiontothepower-onreset,anotherresetexistsintheformofaLowVoltageReset,LVR,
whereafullresetisimplementedinsituationswherethepowersupplyvoltagefallsbelowa
certainthreshold.AnothertypeofresetiswhentheWatchdogTimeroverflowsandresetsthe
microcontroller.Alltypesofresetoperationsresultindifferentregisterconditionsbeingsetup.
Reset Functions
Therearefivewaysinwhichamicrocontrollerresetcanoccur,througheventsoccurringboth
internallyandexternally.
Power-on Reset
Themostfundamentalandunavoidableresetistheonethatoccursafterpowerisrstappliedto
themicrocontroller.AswellasensuringthattheProgramMemorybeginsexecutionfromtherst
memoryaddress,apower-onresetalsoensuresthatcertainotherregistersarepresettoknown
conditions.AlltheI/Oportandportcontrolregisterswillpowerupinahighconditionensuringthat
allpinswillberstsettoinputs.
V
DD
Power-on Reset
SST Time-out
t
RSTD
Note:t
RSTD
ispower-ondelaywithtypicaltime=50ms
Power-On Reset Timing Chart
Low Voltage Reset – LVR
Themicrocontrollercontainsalowvoltageresetcircuitinordertomonitorthesupplyvoltageof
thedevice.TheLVRfunctionisalwaysenabledwithaspecicLVRvoltage,V
LVR
.Ifthesupply
voltageofthedevicedropstowithinarangeof0.9V~V
LVR
suchasmightoccurwhenchanging
thebattery,theLVRwillautomaticallyresetthedeviceinternallyandtheLVRFbitintheCTRL
registerwillalsobesetto1.ForavalidLVRsignal,alowsupplyvoltage,i.e.,avoltageinthe
rangebetween0.9V~V
LVR
mustexistforatimegreaterthanthatspeciedbyt
LVR
intheLVD/LVR
characteristics.Ifthelowsupplyvoltagestatedoesnotexceedthisvalue,theLVRwillignorethe
lowsupplyvoltageandwillnotperformaresetfunction.TheactualV
LVR
valuecanbeselectedby
theLVSbitsintheLVRCregister.IftheLVS7~LVS0bitshaveanyothervalue,whichmayperhaps
occurduetoadverseenvironmentalconditionssuchasnoise,theLVRwillresetthedeviceafter2~3
f
LIRC
clockcycles.Whenthishappens,theLRFbitintheCTRLregisterwillbesetto1.Afterpower
ontheregisterwillhavethevalueof01010101B.NotethattheLVRfunctionwillbeautomatically
disabledwhenthedeviceentersthepowerdownmode.