Rev. 1.50 184 August 28, 2017 Rev. 1.50 185 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
LVD Interrupt
TheLowVoltageDetectorInterruptiscontainedwithintheMulti-functionInterrupt.AnLVD
InterruptrequestwilltakeplacewhentheLVDInterruptrequestflag,LVF,isset,whichoccurs
whentheLowVoltageDetectorfunctiondetectsalowpowersupplyvoltage.Toallowtheprogram
tobranchtoitsrespectiveinterruptvectoraddress,theglobalinterruptenablebit,EMI,LowVoltage
Interruptenablebit,LVE,andassociatedMulti-functioninterruptenablebit,mustrstbeset.When
theinterruptisenabled,thestackisnotfullandalowvoltageconditionoccurs,asubroutinecallto
theMulti-functionInterruptvector,willtakeplace.WhentheLowVoltageInterruptisserviced,the
EMIbitwillbeautomaticallyclearedtodisableotherinterrupts.However,onlytheMulti-function
interruptrequestagwillbealsoautomaticallycleared.AstheLVFagwillnotbeautomatically
cleared,ithastobeclearedbytheapplicationprogram.
EEPROM Interrupt
TheEEPROMWriteInterruptiscontainedwithintheMulti-functionInterrupt.AnEEPROM
WriteInterruptrequestwilltakeplacewhentheEEPROMWriteInterruptrequestag,DEF,isset,
whichoccurswhenanEEPROMWritecycleends.Toallowtheprogramtobranchtoitsrespective
interruptvectoraddress,theglobalinterruptenablebit,EMI,EEPROMWriteInterruptenablebit,
DEE,andassociatedMulti-functioninterruptenablebitmustfirstbeset.Whentheinterruptis
enabled,thestackisnotfullandanEEPROMWritecycleends,asubroutinecalltotherespective
Multi-functionInterruptvectorwilltakeplace.WhentheEEPROMWriteInterruptisserviced,the
EMIbitwillbeautomaticallyclearedtodisableotherinterrupts.However,onlytheMulti-function
interruptrequestflagwillbeautomaticallycleared.AstheDEFflagwillnotbeautomatically
cleared,ithastobeclearedbytheapplicationprogram.
TM Interrupt
TheCompact,StandardandPeriodicTMshavetwointerrupts,onecomesfromthecomparatorA
matchsituationandtheothercomesfromthecomparatorPmatchsituation.AlloftheTMinterrupts
arecontainedwithintheMulti-functionInterrupts.ForalloftheTMtypestherearetwointerrupt
requestagsandtwoenablecontrolbits.ATMinterruptrequestwilltakeplacewhenanyofthe
TMrequestagsareset,asituationwhichoccurswhenaTMcomparatorPorAmatchsituation
happens.
Toallowtheprogramtobranchtoitsrespectiveinterruptvectoraddress,theglobalinterruptenable
bit,EMI,respectiveTMInterruptenablebit,andrelevantMulti-functionInterruptenablebit,MFnE,
mustrstbeset.Whentheinterruptisenabled,thestackisnotfullandaTMcomparatormatch
situationoccurs,asubroutinecalltotherelevantMulti-functionInterruptvectorlocations,willtake
place.WhentheTMinterruptisserviced,theEMIbitwillbeautomaticallyclearedtodisableother
interrupts.However,onlytherelatedMFnFagwillbeautomaticallycleared.AstheTMinterrupt
requestagswillnotbeautomaticallycleared,theyhavetobeclearedbytheapplicationprogram.