Rev. 1.71 40 April 11, 2017 Rev. 1.71 41 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
SLOW Mode
Thisisalsoamodewherethemicrocontrolleroperatesnormallyalthoughnowwithaslower
speedclocksource.TheclocksourceusedwillbefromthelowspeedoscillatorLIRC.Running
themicrocontrollerinthismodeallowsittorunwithmuchloweroperatingcurrents.IntheSLOW
Mode,thef
H
isoff.
SLEEP0 Mode
TheSLEEPModeisenteredwhenanHALTinstructionisexecutedandwhentheIDLENbitinthe
SMODregisterislow.IntheSLEEP0modetheCPUwillbestopped,andthef
LIRC
clockwillbe
stoppedtoo,andtheWatchdogTimerfunctionisdisabled.
SLEEP1 Mode
TheSLEEPModeisenteredwhenanHALTinstructionisexecutedandwhentheIDLENbitinthe
SMODregisterislow.IntheSLEEP1modetheCPUwillbestopped.Howeverthef
LIRC
clockswill
continuetooperateiftheWatchdogTimerfunctionisenabled.
IDLE0 Mode
TheIDLE0ModeisenteredwhenaHALTinstructionisexecutedandwhentheIDLENbitinthe
SMODregisterishighandtheFSYSONbitintheSMOD1registerislow.IntheIDLE0Modethe
systemoscillatorwillbeinhibitedfromdrivingtheCPUbutsomeperipheralfunctionswillremain
operationalsuchastheWatchdogTimerandTMs.IntheIDLE0Mode,thesystemoscillatorwillbe
stopped.
IDLE1 Mode
TheIDLE1ModeisenteredwhenaHALTinstructionisexecutedandwhentheIDLENbitinthe
SMODregisterishighandtheFSYSONbitintheSMOD1registerishigh.IntheIDLE1Modethe
systemoscillatorwillbeinhibitedfromdrivingtheCPUbutmaycontinuetoprovideaclocksource
tokeepsomeperipheralfunctionsoperationalsuchastheWatchdogTimerandTMs.IntheIDLE1
Mode,thesystemoscillatorwillcontinuetorun,andthissystemoscillatormaybehighspeedorlow
speedsystemoscillator.IntheIDLE1Mode,theWatchdogTimerclock,f
LIRC
,willbeon.
Control Register
Asingleregister,SMOD,isusedforoverallcontroloftheinternalclockswithinthedevice.
SMOD Register
Bit 7 6 5 4 3 2 1 0
Name CKS2 CKS1 CKS0 — LTO HTO IDLEN HLCLK
R/W R/W R/W R/W — R R R/W R/W
POR 0 0 0 — 0 0 1 1
B
it7~5 CKS2 ~ CKS0:ThesystemclockselectionwhenHLCLKis“0”
000:f
L
(f
LIRC
)
001:f
L
(f
LIRC
)
010:f
H
/64
011:f
H
/32
100:f
H
/16
101:f
H
/8
110:f
H
/4
111:f
H
/2
Thesethreebitsareusedtoselectwhichclockisusedasthesystemclocksource.Inaddition
tothesystemclocksource,whichcanbetheLIRC,adividedversionofthehighspeedsystem
oscillatorcanalsobechosenasthesystemclocksource.