Rev. 1.20 54 January 23, 2015 Rev. 1.20 55 January 23, 2015
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
SLOW Mode to NORMAL Mode Switching
InSLOWModethesystemuseseithertheLXTorLIRClowspeedsystemoscillator.Toswitch
backtotheNORMALMode,wherethehighspeedsystemoscillatorisused,theHLCLKbitshould
besethighorHLCLKbitislow,butCKS2~CKS0issetto"010","011","100","101","110"or
"111".Asacertainamountoftimewillberequiredforthehighfrequencyclocktostabilise,the
statusoftheHTObitischecked.Theamountoftimerequiredforhighspeedsystemoscillator
stabilizationis15~16clockcycles.
Entering the SLEEP Mode
ThereisonlyonewayforthedevicestoentertheSLEEPModeandthatistoexecutethe"HALT"
instructionintheapplicationprogramwiththeIDLENbitinSMODregisterequalto"0".Whenthis
instructionisexecutedundertheconditionsdescribedabove,thefollowingwilloccur:
• Thesystemclockandthef
SUB
clockwillbestoppedandtheapplicationprogramwillstopatthe
"HALT"instruction.
• TheDataMemorycontentsandregisterswillmaintaintheirpresentcondition.
• TheWDTwillbeclearedandstopcounting.
• TheI/Oportswillmaintaintheirpresentconditions.
• Inthestatusregister,thePowerDownag,PDF,willbesetandtheWatchdogtime-outag,TO,
willbecleared.