Rev. 1.71 44 April 11, 2017 Rev. 1.71 45 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
SLOW Mode to NORMAL Mode Switching
InSLOWModethesystemusesLIRClowspeedsystemoscillator.ToswitchbacktotheNORMAL
Mode,wherethehighspeedsystemoscillatorisused,theHLCLKbitshouldbesetto“1”or
HLCLKbitis“0”,butCKS2~CKS0issetto“010”,“011”,“100”,“101”,“110”or“111”.Asa
certainamountoftimewillberequiredforthehighfrequencyclocktostabilise,thestatusofthe
HTObitischecked.
Entering the SLEEP0 Mode
ThereisonlyonewayforthedevicestoentertheSLEEP0Modeandthatistoexecutethe“HALT”
instructionintheapplicationprogramwiththeIDLENbitinSMODregisterequalto“0”andthe
WDToff.Whenthisinstructionisexecutedundertheconditionsdescribedabove,thefollowingwill
occur:
•
Thesystemclock,WDTclockandTimeBaseclockwillbestoppedandtheapplicationprogram
willstopatthe“HALT”instruction.
• TheDataMemorycontentsandregisterswillmaintaintheirpresentcondition.
• TheWDTwillbeclearedandstopped.
• TheI/Oportswillmaintaintheirpresentconditions.
• Inthestatusregister,thePowerDownag,PDF,willbesetandtheWatchdogtime-outag,TO,
willbecleared.