Rev. 1.50 42 August 28, 2017 Rev. 1.50 43 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
Internal High Speed RC Oscillator – HIRC
TheinternalRCoscillatorisafullyintegratedsystemoscillatorrequiringnoexternalcomponents.
TheinternalRCoscillatorhasthreexedfrequenciesof8MHz,12MHz,16MHz.Devicetrimming
duringthemanufacturingprocessandtheinclusionofinternalfrequencycompensationcircuitsare
usedtoensurethattheinuenceofthepowersupplyvoltage,temperatureandprocessvariationson
theoscillationfrequencyareminimised.Asaresult,atapowersupplyofeither3Vor5Vandata
temperatureof25°Cdegrees,thexedoscillationfrequencyof8MHz,12MHzor16MHzwillhave
atolerancewithin2%.Notethatifthisinternalsystemclockoptionisselected,asitrequiresno
externalpinsforitsoperation,I/OpinsarefreeforuseasnormalI/Opins.
External 32.768 kHz Crystal Oscillator – LXT
TheExternal32.768kHzCrystalSystemOscillatorisoneofthelowfrequencyoscillatorchoices,
whichisselectedviacongurationoption.Thisclocksourcehasaxedfrequencyof32.768kHz
andrequiresa32.768kHzcrystaltobeconnectedbetweenpinsXT1andXT2.Theexternalresistor
andcapacitorcomponentsconnectedtothe32.768kHzcrystalarenecessarytoprovideoscillation.
Forapplicationswhereprecisefrequenciesareessential,thesecomponentsmayberequiredto
providefrequencycompensationduetodifferentcrystalmanufacturingtolerances.Duringpower-up
thereisatimedelayassociatedwiththeLXToscillatorwaitingforittostart-up.
WhenthemicrocontrollerenterstheSLEEPorIDLEMode,thesystemclockisswitchedofftostop
microcontrolleractivityandtoconservepower.However,inmanymicrocontrollerapplications
itmaybenecessarytokeeptheinternaltimersoperationalevenwhenthemicrocontrollerisin
theSLEEPorIDLEMode.Todothis,anotherclock,independentofthesystemclock,mustbe
provided.
However,forsomecrystals,toensureoscillationandaccuratefrequencygeneration,itisnecessary
toaddtwosmallvalueexternalcapacitors,C1andC2.TheexactvaluesofC1andC2should
beselectedinconsultationwiththecrystalorresonatormanufacturerspecification.Theexternal
parallelfeedbackresistor,R
P
,isrequired.
SomecongurationoptionsdetermineiftheXT1/XT2pinsareusedfortheLXToscillatororasI/O
orotherpin-sharedfunctionalpins.
• IftheLXToscillatorisnotusedforanyclocksource,theXT1/XT2pinscanbeusedasnormalI/
Oorotherpin-sharedfunctionalpins.
• IftheLXToscillatorisusedforanyclocksource,the32.768kHzcrystalshouldbeconnectedto
theXT1/XT2pins.
Foroscillatorstabilityandtominimisetheeffectsofnoiseandcrosstalk,itisimportanttoensure
thatthecrystalandanyassociatedresistorsandcapacitorsalongwithinterconnectinglinesareall
locatedasclosetotheMCUaspossible.
External LXT Oscillator