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
Standby Current Considerations
AsthemainreasonforenteringtheSLEEPorIDLEModeistokeepthecurrentconsumptionofthe
devicetoaslowavalueaspossible,perhapsonlyintheorderofseveralmicro-ampsexceptinthe
IDLE1Mode,thereareotherconsiderationswhichmustalsobetakenintoaccountbythecircuit
designerifthepowerconsumptionistobeminimised.SpecialattentionmustbemadetotheI/Opins
onthedevice.Allhigh-impedanceinputpinsmustbeconnectedtoeitheraxedhighorlowlevelas
anyoatinginputpinscouldcreateinternaloscillationsandresultinincreasedcurrentconsumption.
Thisalsoappliestodeviceswhichhavedifferentpackagetypes,astheremaybeunbonbedpins.
Thesemusteitherbesetupasoutputsorifsetupasinputsmusthavepull-highresistorsconnected.
Caremustalsobetakenwiththeloads,whichareconnectedtoI/Opins,whicharesetupasoutputs.
Theseshouldbeplacedinaconditioninwhichminimumcurrentisdrawnorconnectedonlyto
externalcircuitsthatdonotdrawcurrent,suchasotherCMOSinputs.Alsonotethatadditional
standbycurrentwillalsoberequirediftheLIRCoscillatorhasenabled.
IntheIDLE1Modethesystemoscillatorison,ifthesystemoscillatorisfromthehighspeed
oscillator,theadditionalstandbycurrentwillalsobeperhapsintheorderofseveralhundredmicro-
amps.
Wake-up
TominimisepowerconsumptionthedevicecanentertheSLEEPoranyIDLEMode,wherethe
CPUwillbeswitchedoff.However,whenthedeviceiswokenupagain,itwilltakeaconsiderable
timefortheoriginalsystemoscillatortorestart,stabliseandallownormaloperationtoresume.
AfterthesystementerstheSLEEPorIDLEMode,itcanbewokenupfromoneofvarioussources
listedasfollows:
• AnexternalfallingedgeonPortA
• Asysteminterrupt
• AWDToverow
Whenthedevicesexecutethe“HALT”instruction,itwillenterthePowerdownmodeandthePDF
agwillbesetto1.ThePDFagwillbeclearedto0ifthedevicesexperienceasystempower-up
orexecutestheclearWatchdogTimerinstruction.IfthesystemiswokenupbyaWDToverow,a
WatchdogTimerresetwillbeinitiatedandtheTOagwillbesetto1.TheTOagissetifaWDT
time-outoccursandcausesawake-upthatonlyresetstheProgramCounterandStackPointer,other
agsremainintheiroriginalstatus.
EachpinonPortAcanbesetupusingthePAWUregistertopermitanegativetransitiononthepin
towakeupthesystem.WhenaPortApinwake-upoccurs,theprogramwillresumeexecutionat
theinstructionfollowingthe“HALT”instruction.Ifthesystemiswokenupbyaninterrupt,then
twopossiblesituationsmayoccur.Therstiswheretherelatedinterruptisdisabledortheinterrupt
isenabledbutthestackisfull,inwhichcasetheprogramwillresumeexecutionattheinstruction
followingthe“HALT”instruction.Inthissituation,theinterruptwhichwokeupthedeviceswillnot
beimmediatelyserviced,butwillratherbeservicedlaterwhentherelatedinterruptisnallyenabled
orwhenastacklevelbecomesfree.Theothersituationiswheretherelatedinterruptisenabledand
thestackisnotfull,inwhichcasetheregularinterruptresponsetakesplace.Ifaninterruptrequest
flagissethighbeforeenteringtheSLEEPorIDLEMode,thewake-upfunctionoftherelated
interruptwillbedisabled.