Rev. 1.71 50 April 11, 2017 Rev. 1.71 51 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
MoreinformationregardingexternalresetcircuitsislocatedinApplicationNoteHA0075Eonthe
Holtekwebsite.
PullingtheRESPinlowusingexternalhardwarewillalsoexecuteadevicereset.Inthiscase,asinthe
caseofotherresets,theProgramCounterwillresettozeroandprogramexecutioninitiatedfromthispoint.
Note:t
RSTD
ispower-ondelay,typicaltime=16.7ms
RES Reset Timing Chart
• RSTC External Reset Register – HT66F002/HT66F003
Bit 7 6 5 4 3 2 1 0
Name RSTC7 RSTC6 RSTC5 RSTC4 RSTC3 RSTC2 RSTC1 RSTC0
R/W R/W R/W R/W R/W R R R/W R/W
POR 0 1 0 1 0 1 0 1
Bit7~0 RSTC7 ~ RSTC0:PA7/RESselection
01010101:conguredasPA7pinorotherfunction
10101010:conguredasRESpin
OtherValues:Inhibittouse
AllresetwillresetthisregisterasPORvalueexceptWDTtimeoutHardwarewarmreset.
• RSTC External Reset Register – HT66F004
Bit 7 6 5 4 3 2 1 0
Name RSTC7 RSTC6 RSTC5 RSTC4 RSTC3 RSTC2 RSTC1 RSTC0
R/W R/W R/W R/W R/W R R R/W R/W
POR 0 1 0 1 0 1 0 1
Bit7~0 RSTC7 ~ RSTC0:PC2/RESselection
01010101:ConguredasPC2pinorotherfunction
10101010:Conguredas
RES
pin
OtherValues:Inhibittouse
AllresetwillresetthisregisterasPORvalueexceptWDTtimeoutHardwarewarmreset.
Low Voltage Reset – LVR
Themicrocontrollercontainsalowvoltageresetcircuitinordertomonitorthesupplyvoltageof
thedeviceandprovideanMCUresetshouldthevaluefallbelowacertainpredenedlevel.The
LVRfunctionisalwaysenabledduringthenormalandslowmodeswithaspecicLVRvoltage
V
LVR
.Ifthesupplyvoltageofthedevicedropstowithinarangeof0.9V~V
LVR
suchasmightoccur
whenchangingthebattery,theLVRwillautomaticallyresetthedeviceinternallyandtheLVRF
bitintheSMOD1registerwillalsobesetto1.ForavalidLVRsignal,alowvoltage,i.e.,avoltage
intherangebetween0.9V~V
LVR
mustexistforgreaterthanthevaluet
LVR
specifiedintheA.C.
characteristics.Ifthelowvoltagestatedoesnotexceedthisvalue,theLVRwillignorethelow
supplyvoltageandwillnotperformaresetfunction.TheactualV
LVR
is2.1V,theLVRwillresetthe
deviceafter2~3LIRCclockcycles.NotethattheLVRfunctionwillbeautomaticallydisabledwhen
thedeviceenterstheSLEEP/IDLEmode.
Note:t
RSTD
ispower-ondelay,typicaltime=50ms
Low Voltage Reset Timing Chart