Rev. 2.50 202 June 22, 2017 Rev. 2.50 203 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
Interrupts
Interruptsareanimportantpartofanymicrocontrollersystem.Whenanexternaleventoran
internalfunctionsuchasaTimerModuleoranA/Dconverterrequiresmicrocontrollerattention,
theircorrespondinginterruptwillenforceatemporarysuspensionofthemainprogramallowingthe
microcontrollertodirectattentiontotheirrespectiveneeds.Thedevicecontainsseveralexternal
interruptandinternalinterruptsfunctions.Theexternalinterruptsaregeneratedbytheactionofthe
externalINT0~INT3andPINTpins,whiletheinternalinterruptsaregeneratedbyvariousinternal
functionssuchastheTMs,Comparators,TimeBase,LVD,EEPROM,SIMandtheA/Dconverter.
Interrupt Registers
Overallinterruptcontrol,whichbasicallymeansthesettingofrequestflagswhencertain
microcontrollerconditionsoccurandthesettingofinterruptenablebitsbytheapplicationprogram,
iscontrolledbyaseriesofregisters,locatedintheSpecialPurposeDataMemory,asshowninthe
accompanyingtable.Thenumberofregistersdependsuponthedevicechosenbutfallintothree
categories.TherstistheINTC0~INTC3registerswhichsetuptheprimaryinterrupts,thesecond
istheMFI0~MFI3registerswhichsetuptheMulti-functioninterrupts.FinallythereisanINTEG
registertosetuptheexternalinterrupttriggeredgetype.
Eachregistercontainsanumberofenablebitstoenableordisableindividualregistersaswellas
interruptflagstoindicatethepresenceofaninterruptrequest.Thenamingconventionofthese
followsaspecicpattern.Firstislistedanabbreviatedinterrupttype,thenthe(optional)numberof
thatinterruptfollowedbyeitheran"E"forenable/disablebitor"F"forrequestag.
Function Enable Bit Request Flag Notes
Global EMI — —
Comparator CPnE CPnF
n=0 or 1
INTn Pin INTnE INTnF n=0~3
A/D Converter ADE ADF —
Multi-function MFnE MFnF n=0~5
Time Base TBnE TBnF
n=0 or 1
SIM SIME SIMF —
LVD LVE LVF —
EEPROM DEE DEF —
PINT Pin XPE XPF —
TM
TnPE TnPF
n=0~3TnAE TnAF
TnBE TnBF
Interrupt Register Bit Naming Conventions