Rev. 1.20 44 January 23, 2015 Rev. 1.20 45 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
Oscillator
Variousoscillatoroptionsoffertheuserawiderangeoffunctionsaccordingtotheirvarious
applicationrequirements.Theflexiblefeaturesoftheoscillatorfunctionsensurethatthebest
optimisationcanbeachievedintermsofspeedandpowersaving.Oscillatorselectionsandoperation
areselectedthroughacombinationofcongurationoptionsandregisters.
Oscillator Overview
Allthedevicesincludetwointernaloscillatorsandthesomedevicesalsoincludeanexternal
oscillator.Inadditiontobeingthesourceofthemainsystemclocktheoscillatorsalsoprovideclock
sourcesfortheWatchdogTimer,TimeBasesandTMs.Externaloscillatorrequiringsomeexternal
componentsaswellasfullyintegratedinternaloscillatorsrequiringnoexternalcomponents,are
providedtoformawiderangeofbothfastandslowsystemoscillators.FortheBS82C16A-3and
BS82D20A-3devices,thelowspeedoscillatorsareselectedthroughthecongurationoption.The
higherfrequencyoscillatorsprovidehigherperformancebutcarrywithitthedisadvantageofhigher
powerrequirements,whiletheoppositeisofcoursetrueforthelowerfrequencyoscillators.With
thecapabilityofdynamicallyswitchingbetweenfastandslowsystemclock,thedeviceshavethe
exibilitytooptimizetheperformance/powerratio,afeatureespeciallyimportantinpowersensitive
portableapplications.
Device Type Name Freq. Pins
BS82B12A-3
BS82C16A-3
BS82D20A-3
Internal High Speed RC HIRC 8/12/16MHz —
Internal Low Speed RC LIRC 32kHz —
BS82C16A-3
BS82D20A-3
External Low Speed Crystal LXT 32768Hz XT1/XT2
Oscillator Types
System Clock Congurations
Therearethreemethodsofgeneratingthesystemclock,ahighspeedoscillatorandtwolowspeed
oscillators.Thehighspeedoscillatoristheinternal8MHz,12MHz,16MHzRCoscillator.Thetwo
lowspeedoscillatorsaretheinternal32kHzoscillator,LIRC,andtheexternal32.768kHzcrystal
oscillator,LXT.Selectingwhethertheloworhighspeedoscillatorisusedasthesystemoscillatoris
implementedusingtheHLCLKbitandCKS2~CKS0bitsintheSMODregisterandasthesystem
clockcanbedynamicallyselected.
Fortwoofthethreedevices,theactualsourceclockusedforthelowspeedoscillatorischosenvia
congurationoption.Thefrequencyoftheslowspeedorhighspeedsystemclockisalsodetermined
usingtheHLCLKbitandCKS2~CKS0bitsintheSMODregister.Notethattwooscillator
selectionsmustbemadenamelyonehighspeedandonelowspeedsystemoscillators.Itisnot
possibletochooseano-oscillatorselectionforeitherthehighorlowspeedoscillator.