Rev. 1.20 48 January 23, 2015 Rev. 1.20 49 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
LXT Oscillator Low Power Function
TheLXToscillatorcanfunctioninoneoftwomodes,theQuickStartModeandtheLowPower
Mode.ThemodeselectionisexecutedusingtheLXTLPbitintheCTRLregister.
LXTLP Bit LXT Mode
0
Quick Start
1 Low-power
Afterpoweron,theLXTLPbitwillbeautomaticallyclearedtozeroensuringthattheLXToscillator
isintheQuickStartoperatingmode.IntheQuickStartModetheLXToscillatorwillpowerup
andstabilisequickly.However,aftertheLXToscillatorhasfullypoweredupitcanbeplaced
intotheLow-powermodebysettingtheLXTLPbithigh.Theoscillatorwillcontinuetorunbut
withreducedcurrentconsumption,asthehighercurrentconsumptionisonlyrequiredduringthe
LXToscillatorstart-up.Inpowersensitiveapplications,suchasbatteryapplications,wherepower
consumptionmustbekepttoaminimum,itisthereforerecommendedthattheapplicationprogram
setstheLXTLPbithighabout2secondsafterpower-on.
Itshouldbenotedthat,nomatterwhatconditiontheLXTLPbitissetto,theLXToscillatorwill
alwaysfunctionnormally,theonlydifferenceisthatitwilltakemoretimetostartupifintheLow-
powermode.
Operating Modes and System Clocks
Presentdayapplicationsrequirethattheirmicrocontrollershavehighperformancebutoftenstill
demandthattheyconsumeaslittlepoweraspossible,conictingrequirementsthatareespecially
trueinbatterypoweredportableapplications.Thefastclocksrequiredforhighperformancewill
bytheirnatureincreasecurrentconsumptionandofcoursevice-versa,lowerspeedclocksreduce
currentconsumption.AsHoltekhasprovidedthesedeviceswithbothhighandlowspeedclock
sourcesandthemeanstoswitchbetweenthemdynamically,theusercanoptimisetheoperationof
theirmicrocontrollertoachievethebestperformance/powerratio.
System Clocks
Themainsystemclock,cancomefromeitherahighfrequency,f
H
,orlowfrequency,f
SUB
,source,
andisselectedusingtheHLCLKbitandCKS2~CKS0bitsintheSMODregister.Thehighspeed
systemclockissourcedfromtheHIRCoscillator.Thelowspeedsystemclocksourcecanbesourced
frominternalclockf
SUB
.Dependingonthedevices,iff
SUB
isselectedthenitissourcedbytheLIRC
oscillatororcanbesourcedbyeithertheLXTorLIRCoscillators,selectedviaaconfiguration
option.Theotherchoice,whichisadividedversionofthehighspeedsystemoscillatorhasarange
off
H
/2~f
H
/64.