Rev. 2.50 58 June 22, 2017 Rev. 2.50 59 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
• IDLE0Mode
TheIDLE0ModeisenteredwhenaHALTinstructionisexecutedandwhentheIDLENbitin
theSMODregisterishighandtheFSYSONbitintheWDTCregisterislow.IntheIDLE0Mode
thesystemoscillatorwillbeinhibitedfromdrivingtheCPUbutsomeperipheralfunctionswill
remainoperationalsuchastheWatchdogTimer,TMsandSIM.IntheIDLE0Mode,thesystem
oscillatorwillbestopped.IntheIDLE0ModetheWatchdogTimerclock,f
S
,willeitherbeonor
offdependinguponthef
S
clocksource.Ifthesourceisf
SYS
/4thenthef
S
clockwillbeoff,andif
thesourcecomesfromf
SUB
thenf
S
willbeon.
• IDLE1Mode
TheIDLE1ModeisenteredwhenanHALTinstructionisexecutedandwhentheIDLENbit
intheSMODregisterishighandtheFSYSONbitintheWDTCregisterishigh.IntheIDLE1
ModethesystemoscillatorwillbeinhibitedfromdrivingtheCPUbutmaycontinuetoprovidea
clocksourcetokeepsomeperipheralfunctionsoperationalsuchastheWatchdogTimer,TMsand
SIM.IntheIDLE1Mode,thesystemoscillatorwillcontinuetorun,andthissystemoscillator
maybehighspeedorlowspeedsystemoscillator.IntheIDLE1ModetheWatchdogTimer
clock,f
S
,willbeon.Ifthesourceisf
SYS
/4thenthef
S
clockwillbeon,andifthesourcecomes
fromf
SUB
thenf
S
willbeon.
Control Register
Asingleregister,SMOD,isusedforoverallcontroloftheinternalclockswithinthedevice.
SMOD Register
Bit 7 6 5 4 3 2 1 0
Name CKS2
CKS1 CKS0 FSTEN LTO HTO IDLEN HLCLK
R/W R/W R/W R/W R/W R R R/W R/W
POR 0 0 0 0 0 0
1 1
Bit7~5 CKS2~CKS0:ThesystemclockselectionwhenHLCLKis"0"
000:f
L
(f
LXT
orf
LIRC
)
001:f
L
(f
LXT
orf
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.In
additiontothesystemclocksource,whichcanbeeithertheLXTorLIRC,adivided
versionofthehighspeedsystemoscillatorcanalsobechosenasthesystemclock
source.
Bit4 FSTEN:FastWake-upControl(onlyforHXT)
0:Disable
1:Enable
ThisistheFastWake-upControlbitwhichdeterminesifthef
SUB
clocksourceis
initiallyusedafterthedevicewakesup.Whenthebitishigh,thef
SUB
clocksourcecan
beusedasatemporarysystemclocktoprovideafasterwakeuptimeasthef
SUB
clock
isavailable.