Rev. 1.50 54 August 28, 2017 Rev. 1.50 55 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
Programming Considerations
ThehighspeedandlowspeedoscillatorsbothusethesameSSTcounter.Forexample,ifthesystem
iswokenupfromtheSLEEP0ModeandboththeHIRCandLXToscillatorsneedtostart-upfrom
anoffstate.TheLXToscillatorusestheSSTcounteraftertheHIRCoscillatorhasnisheditsSST
period.
• IfthedevicesarewokenupfromtheSLEEP0ModetotheNORMALMode,thehighspeed
systemoscillatorneedsanSSTperiod.ThedeviceswillexecuterstinstructionafterHTOis
“1”.Atthistime,theLXToscillatormaynotbestabilityiff
SUB
isfromLXToscillator.The
samesituationoccursinthepower-onstate.TheLXToscillatorisnotreadyyetwhentherst
instructionisexecuted.
• IfthedevicesarewokenupfromtheSLEEP1ModetoNORMALMode,andthesystemclock
sourceisfromtheHXToscillatorandFSTENis“1”,thesystemclockcanbeswitchedtothe
LIRCoscillatorafterwakeup.
• Thereareperipheralfunctions,suchasWDTandTMs,forwhichthef
SYS
isused.Ifthesystem
clocksourceisswitchedfromf
H
tof
SUB
,theclocksourcetotheperipheralfunctionsmentioned
abovewillchangeaccordingly.
• Theon/offconditionoff
SUB
andf
S
dependsuponwhethertheWDTisenabledordisabledasthe
WDTclocksourceisselectedfromf
SUB
.
Watchdog Timer
TheWatchdogTimerisprovidedtopreventprogrammalfunctionsorsequencesfromjumpingto
unknownlocations,duetocertainuncontrollableexternaleventssuchaselectricalnoise.
Watchdog Timer Clock Source
TheWatchdogTimerclocksourceisprovidedbytheinternalclock,f
SUB
,whichisinturnsupplied
bytheLIRCorLXToscillator.TheLXToscillatorissuppliedbyanexternal32.768kHzcrystal.
TheLIRCinternaloscillatorhasanapproximatefrequencyof32kHzatasupplyvoltageof
5V.However,itshouldbenotedthatthisspecifiedinternalclockfrequencycanvarywithV
DD
,
temperatureandprocessvariations.TheWatchdogTimersourceclockisthensubdividedbyaratio
of2
8
to2
18
togivelongertimeouts,theactualvaluebeingchosenusingtheWS2~WS0bitsinthe
WDTCregister.
Watchdog Timer Control Register
Asingleregister,WDTC,controlstherequiredtimeoutperiodaswellastheenable/disable
operation.ThisregistercontrolstheoveralloperationoftheWatchdogTimer.