Rev. 2.50 50 June 22, 2017 Rev. 2.50 51 June 22, 2017
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
Oscillators
Variousoscillatoroptionsoffertheuserawiderangeoffunctionsaccordingtotheirvarious
applicationrequirements.Theflexiblefeaturesoftheoscillatorfunctionsensurethatthebest
optimisationcanbeachievedintermsofspeedandpowersaving.Oscillatorselectionsandoperation
areselectedthroughacombinationofcongurationoptionsandregisters.
Oscillator Overview
Inadditiontobeingthesourceofthemainsystemclocktheoscillatorsalsoprovideclocksources
fortheWatchdogTimerandTimeBaseInterrupts.Externaloscillatorsrequiringsomeexternal
componentsaswellasfullyintegratedinternaloscillators,requiringnoexternalcomponents,
areprovidedtoformawiderangeofbothfastandslowsystemoscillators.Alloscillatoroptions
areselectedthroughtheconfigurationoptions.Thehigherfrequencyoscillatorsprovidehigher
performancebutcarrywithitthedisadvantageofhigherpowerrequirements,whiletheopposite
isofcoursetrueforthelowerfrequencyoscillators.Withthecapabilityofdynamicallyswitching
betweenfastandslowsystemclock,thedevicehastheexibilitytooptimizetheperformance/power
ratio,afeatureespeciallyimportantinpowersensitiveportableapplications.
Type Name Freq. Pins
External Crystal HXT 400kHz~20MHz
OSC1/OSC2
External RC ERC 8MHz OSC1
Internal High Speed RC HIRC 4, 8 or 12MHz —
External Low Speed Crystal LXT
32.768kHz XT1/XT2
Internal Low Speed RC LIRC 32kHz —
Oscillator Types
System Clock Congurations
Therearevemethodsofgeneratingthesystemclock,threehighspeedoscillatorsandtwolow
speedoscillators.Thehighspeedoscillatorsaretheexternalcrystal/ceramicoscillator,external
RCnetworkoscillatorandtheinternal4MHz,8MHzor12MHzRCoscillator.Thetwolowspeed
oscillatorsaretheinternal32kHzRCoscillatorandtheexternal32.768kHzcrystaloscillator.
Selectingwhethertheloworhighspeedoscillatorisusedasthesystemoscillatorisimplemented
usingtheHLCLKbitandCKS2~CKS0bitsintheSMODregisterandasthesystemclockcanbe
dynamicallyselected.
Theactualsourceclockusedforeachofthehighspeedandlowspeedoscillatorsischosen
viaconfigurationoptions.Thefrequencyoftheslowspeedorhighspeedsystemclockisalso
determinedusingtheHLCLKbitandCKS2~CKS0bitsintheSMODregister.Notethattwo
oscillatorselectionsmustbemadenamelyonehighspeedandonelowspeedsystemoscillators.Itis
notpossibletochooseano-oscillatorselectionforeitherthehighorlowspeedoscillator.