Rev. 1.71 38 April 11, 2017 Rev. 1.71 39 April 11, 2017
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
Internal RC Oscillator – HIRC
TheinternalRCoscillatorisafullyintegratedsystemoscillatorrequiringnoexternalcomponents.
Theinternal RCoscillatorhasafixedfrequencyof8MHz.Devicetrimmingduringthe
manufacturingprocessandtheinclusionofinternalfrequencycompensationcircuitsareusedto
ensurethattheinuenceofthepowersupplyvoltage,temperatureandprocessvariationsonthe
oscillationfrequencyareminimised.Asaresult,atapowersupplyof5Vandattemperatureof25°C
degrees,thexedoscillationfrequencyoftheHIRCwillhaveatolerancewithin2%.
Internal 32kHz Oscillator – LIRC
Theinternal32kHzSystemOscillatoristhelowfrequencyoscillator.Itisafullyintegrated
RCoscillatorwithatypicalfrequencyof32kHzat5V,requiringnoexternalcomponentsforits
implementation.Devicetrimmingduringthemanufacturingprocessandtheinclusionofinternal
frequencycompensationcircuitsareusedtoensurethattheinuenceofthepowersupplyvoltage,
temperatureandprocessvariationsontheoscillationfrequencyareminimised.
Supplementary Oscillator
Thelowspeed oscillator, inadditiontoprovidingasystemclock sourceisalsousedtoprovide
aclocksourcetotwootherdevicefunctions.ThesearetheWatchdogTimerandtheTimeBase
Interrupts.
Operating Modes and System Clocks
Presentdayapplicationsrequirethattheirmicrocontrollershavehighperformancebutoftenstill
demandthattheyconsumeaslittlepoweraspossible,conictingrequirementsthatareespecially
trueinbatterypoweredportableapplications.Thefastclocksrequiredforhighperformancewill
bytheirnatureincreasecurrentconsumptionandofcoursevice-versa,lowerspeedclocksreduce
currentconsumption.AsHoltekhasprovidedthesedeviceswithbothhighandlowspeedclock
sourcesandthemeanstoswitchbetweenthemdynamically,theusercanoptimisetheoperationof
theirmicrocontrollertoachievethebestperformance/powerratio.
System Clocks
ThesedeviceshavetwodifferentclocksourcesforboththeCPUandperipheralfunctionoperation.
Byprovidingtheuserwithclockoptionsusingregisterprogramming,aclocksystemcanbe
conguredtoobtainmaximumapplicationperformance.
Themainsystemclock,cancomefromeitherahighfrequency,f
H
,oralowfrequency,f
L
,andis
selectedusingtheHLCLKbitandCKS2~CKS0bitsintheSMODregister.Thehighspeedsystem
clockcanbesourcedfromHIRCoscillator.Thelowspeedsystemclocksourcecanbesourcedfrom
theinternalclockf
L
.Theotherchoice,whichisadividedversionofthehighspeedsystemoscillator
hasarangeoff
H
/2~f
H
/64.
Thereisoneadditionalinternalclockfortheperipheralcircuits,theTimeBaseclock,f
TBC
.f
TBC
is
sourcedfromtheLIRCoscillators.Thef
TBC
clockisusedasasourcefortheTimeBaseinterrupt
functionsandfortheTMs.