Rev. 1.20 50 January 23, 2015 Rev. 1.20 51 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
System Operation Modes
Therearefivedifferentmodesofoperationforthemicrocontroller,eachonewithitsown
specialcharacteristicsandwhichcanbechosenaccordingtothespecificperformanceand
powerrequirementsoftheapplication.Therearetwomodesallowingnormaloperationofthe
microcontroller,theNORMALModeandSLOWMode.Theremainingthreemodes,theSLEEP,
IDLE0andIDLE1ModeareusedwhenthemicrocontrollerCPUisswitchedofftoconservepower.
Operating
Mode
Description
CPU f
SYS
f
SUB
NORMAL mode On f
H
~f
H
/64 On
SLOW mode On f
SUB
On
ILDE0 mode Off Off On
IDLE1 mode Off On On
SLEEP mode Off Off Off
NORMAL Mode
Asthenamesuggeststhisisoneofthemainoperatingmodeswherethemicrocontrollerhasallof
itsfunctionsoperationalandwherethesystemclockisprovidedbythehighspeedoscillator.This
modeoperatesallowingthemicrocontrollertooperatenormallywithaclocksourcewillcomefrom
thehighspeedoscillator,HIRC.Thehighspeedoscillatorwillhoweverrstbedividedbyaratio
rangingfrom1to64,theactualratiobeingselectedbytheCKS2~CKS0andHLCLKbitsinthe
SMODregister.Althoughahighspeedoscillatorisused,runningthemicrocontrolleratadivided
clockratioreducestheoperatingcurrent.
SLOW Mode
Thisisalsoamodewherethemicrocontrolleroperatesnormallyalthoughnowwithaslowerspeed
clocksource.Theclocksourceusedwillbefromf
SUB
.Runningthemicrocontrollerinthismode
allowsittorunwithmuchloweroperatingcurrents.IntheSLOWMode,thef
H
isoff.
SLEEP Mode
TheSLEEPModeisenteredwhenanHALTinstructionisexecutedandwhentheIDLENbitin
theSMODregisterislow.IntheSLEEPmodetheCPUwillbestopped,andthef
SUB
clockwillbe
stoppedtoo,theWatchdogTimerfunctionisautomaticallydisabledbyhardwareforpowersaving.
IDLE0 Mode
TheIDLE0ModeisenteredwhenaHALTinstructionisexecutedandwhentheIDLENbitinthe
SMODregisterishighandtheFSYSONbitintheCTRLregisterislow.IntheIDLE0Modethe
systemoscillatorwillbestopandwillthereforebeinhibitedfromdrivingtheCPU.
IDLE1 Mode
TheIDLE1ModeisenteredwhenaHALTinstructionisexecutedandwhentheIDLENbitin
theSMODregisterishighandtheFSYSONbitintheCTRLregisterishigh.IntheIDLE1Mode
thesystemoscillatorwillbeinhibitedfromdrivingtheCPUbutmaycontinuetoprovideaclock
sourcetokeepsomeperipheralfunctionsoperational.IntheIDLE1Mode,thesystemoscillatorwill
continuetorun,andthissystemoscillatormaybethehighspeedorlowspeedsystemoscillator.