Rev. 2.50 56 June 22, 2017 Rev. 2.50 57 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
Operating Modes and System Clocks
Presentdayapplicationsrequirethattheirmicrocontrollershavehighperformancebutoftenstill
demandthattheyconsumeaslittlepoweraspossible,conictingrequirementsthatareespecially
trueinbatterypoweredportableapplications.Thefastclocksrequiredforhighperformancewill
bytheirnatureincreasecurrentconsumptionandofcoursevice-versa,lowerspeedclocksreduce
currentconsumption.AsHoltekhasprovidedthesedeviceswithbothhighandlowspeedclock
sourcesandthemeanstoswitchbetweenthemdynamically,theusercanoptimisetheoperationof
theirmicrocontrollertoachievethebestperformance/powerratio.
System Clock
ThedevicehasmanydifferentclocksourcesforboththeCPUandperipheralfunctionoperation.
Byprovidingtheuserwithawiderangeofclockoptionsusingcongurationoptionsandregister
programming,aclocksystemcanbeconguredtoobtainmaximumapplicationperformance.
Themainsystemclock,cancomefromeitherahighfrequency,f
H
,orlowfrequency,f
L
,source,
andisselectedusingtheHLCLKbitandCKS2~CKS0bitsintheSMODregister.Thehigh
speedsystemclockcanbesourcedfromeitheranHXT,ERCorHIRCoscillator,selectedviaa
congurationoption.Thelowspeedsystemclocksourcecanbesourcedfrominternalclockf
L
.Iff
L
isselectedthenitcanbesourcedbyeithertheLXTorLIRCoscillators,selectedviaaconguration
option.Theotherchoice,whichisadividedversionofthehighspeedsystemoscillatorhasarange
off
H
/2~f
H
/64.
Therearetwoadditionalinternalclocksfortheperipheralcircuits,thesubstituteclock,f
SUB
,and
theTimeBaseclock,f
TBC
.EachoftheseinternalclocksaresourcedbyeithertheLXTorLIRC
oscillators,selectedviacongurationoptions.Thef
SUB
clockisusedtoprovideasubstituteclockfor
themicrocontrollerjustafterawake-uphasoccurredtoenablefasterwake-uptimes.
Togetherwithf
SYS
/4itisalsousedasoneoftheclocksourcesfortheWatchdogtimer.ThefTBC
clockisusedasasourcefortheTimeBaseinterruptfunctionsandfortheTMs.