Rev. 1.20 46 January 23, 2015 Rev. 1.20 47 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
External 32.768kHz Crystal Oscillator – LXT
FortheBS82C16A-3andBS82D20A-3devices,theExternal32.768kHzCrystalSystemOscillator
isoneofthelowfrequencyoscillatorchoices,whichisselectedviaconfigurationoption.This
clocksourcehasaxedfrequencyof32.768kHzandrequiresa32.768kHzcrystaltobeconnected
betweenpinsXT1andXT2.Theexternalresistorandcapacitorcomponentsconnectedtothe
32.768kHzcrystalarenecessarytoprovideoscillation.Forapplicationswhereprecisefrequencies
areessential,thesecomponentsmayberequiredtoprovidefrequencycompensationduetodifferent
crystalmanufacturingtolerances.Duringpower-upthereisatimedelayassociatedwiththeLXT
oscillatorwaitingforittostart-up.
WhenthemicrocontrollerenterstheSLEEPorIDLEMode,thesystemclockisswitchedofftostop
microcontrolleractivityandtoconservepower.However,inmanymicrocontrollerapplications
itmaybenecessarytokeeptheinternaltimersoperationalevenwhenthemicrocontrollerisin
theSLEEPorIDLEMode.Todothis,anotherclock,independentofthesystemclock,mustbe
provided.
However,forsomecrystals,toensureoscillationandaccuratefrequencygeneration,itisnecessary
toaddtwosmallvalueexternalcapacitors,C1andC2.TheexactvaluesofC1andC2shouldbe
selectedinconsultationwiththecrystalorresonatormanufacturerspecication.Theexternalparallel
feedbackresistor,Rp,isrequired.Notethatthewireconnectedbetweenthe32.768kHzcrystaland
theXT1/XT2pinsshouldbekeptasshortaspossibletominimizethestraynoiseinterface.
ThecongurationoptiondeterminesiftheXT1/XT2pinsareusedfortheLXToscillatororasI/O
pinsorotherpin-sharedfunctions.
• IftheLXToscillatorisnotusedforanyclocksource,theXT1/XT2pinscanbeusedasnormalI/
Opinsorotherpin-sharedfunctions.
• IftheLXToscillatorisusedforanyclocksource,the32.768kHzcrystalshouldbeconnectedto
theXT1/XT2pins.
Foroscillatorstabilityandtominimizetheeffectsofnoiseandcrosstalk,itisimportanttoensure
thatthecrystalandanyassociatedresistorsandcapacitorsalongwithinterconnectinglinesareall
locatedasclosetotheMCUaspossible.
External LXT Oscillator
LXT Oscillator C1 and C2 Values
Crystal Frequency C1 C2
32.768kHz 10pF 10pF
Note: 1. C1 and C2 values are for guidance only.
2. R
P
=5MΩ~10MΩ is recommended.
32.768kHz Crystal Recommended Capacitor Values