Rev. 1.50 172 August 28, 2017 Rev. 1.50 173 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
Interrupts
Interruptsareanimportantpartofanymicrocontrollersystem.Whenanexternaleventoran
internalfunctionsuchasaTimerModuleoranA/Dconverterrequiresmicrocontrollerattention,
theircorrespondinginterruptwillenforceatemporarysuspensionofthemainprogramallowingthe
microcontrollertodirectattentiontotheirrespectiveneeds.Thesedevicescontainseveralexternal
interruptandinternalinterruptsfunctions.Theexternalinterruptsaregeneratedbytheactionof
theexternalINT0andINT1pins,whiletheinternalinterruptsaregeneratedbyvariousinternal
functionssuchastheTMs,TimeBase,LVD,EEPROM,SIM,UARTandtheA/Dconverter,etc.
Interrupt Registers
Overallinterruptcontrol,whichbasicallymeansthesettingofrequestflagswhencertain
microcontrollerconditionsoccurandthesettingofinterruptenablebitsbytheapplicationprogram,
iscontrolledbyaseriesofregisters,locatedintheSpecialPurposeDataMemory,asshowninthe
accompanyingtable.Thenumberofregistersdependsuponthedevicechosenbutfallintothree
categories.TherstistheINTC0~INTC2registerswhichsetuptheprimaryinterrupts,thesecond
istheMFI0~MFI2registerswhichsetuptheMulti-functioninterrupts.FinallythereisanINTEG
registertosetuptheexternalinterrupttriggeredgetype.
Eachregistercontainsanumberofenablebitstoenableordisableindividualinterruptsaswell
asinterruptagstoindicatethepresenceofaninterruptrequest.Thenamingconventionofthese
followsaspecicpattern.Firstislistedanabbreviatedinterrupttype,thenthe(optional)numberof
thatinterruptfollowedbyeitheran“E”forenable/disablebitor“F”forrequestag.
Function Enable Bit Request Flag Notes
Global EMI — —
INTn Pins INTnE INTnF n = 0 ~ 1
Multi-function MFnE MFnF n = 0~2
A/D Converter ADE ADF —
Time Base TBnE TBnF n = 0 ~ 1
SIM SIME SIMF —
LVD LVE LVF —
EEPROM write operation DEE DEF —
TM
TnPE TnPF n = 0~1
TnAE TnAF n = 0~1
Interrupt Register Bit Naming Conventions – HT66F0175
Function Enable Bit Request Flag Notes
Global EMI — —
INTn Pins INTnE INTnF n = 0 ~ 1
Comparator CPE CPF —
Multi-function MFnE MFnF n = 0~2
A/D Converter ADE ADF —
Time Base TBnE TBnF n = 0 ~ 1
SIM SIME SIMF —
UART URE URF —
LVD LVE LVF —
EEPROM write operation DEE DEF —
TM
TnPE TnPF n = 0~2
TnAE TnAF n = 0~2
Interrupt Register Bit Naming Conventions – HT66F0185