Rev. 2.50 224 June 22, 2017 Rev. 2.50 225 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
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,howeveronlytheMulti-function
interruptrequestagwillbealsoautomaticallycleared.AstheLVFagwillnotbeautomatically
cleared,ithastobeclearedbytheapplicationprogram.
TM Interrupts
TheCompactandStandardTypeTMshavetwointerruptseach,whiletheEnhancedTypeTMhas
threeinterrupts.AlloftheTMinterruptsarecontainedwithintheMulti-functionInterrupts.Foreach
oftheCompactandStandardTypeTMstherearetwointerruptrequestagsTnPFandTnAFand
twoenablebitsTnPEandTnAE.FortheEnhancedTypeTMtherearethreeinterruptrequestags
TnPF,TnAFandTnBFandthreeenablebitsTnPE,TnAEandTnBE.ATMinterruptrequestwill
takeplacewhenanyoftheTMrequestagsareset,asituationwhichoccurswhenaTMcomparator
P,AorBmatchsituationhappens.
Toallowtheprogramtobranchtoitsrespectiveinterruptvectoraddress,theglobalinterruptenable
bit,EMI,respectiveTMInterruptenablebit,andrelevantMulti-functionInterruptenablebit,MFnE,
mustrstbeset.Whentheinterruptisenabled,thestackisnotfullandaTMcomparatormatch
situationoccurs,asubroutinecalltotherelevantMulti-functionInterruptvectorlocations,willtake
place.WhentheTMinterruptisserviced,theEMIbitwillbeautomaticallyclearedtodisableother
interrupts,howeveronlytherelatedMFnFagwillbeautomaticallycleared.AstheTMinterrupt
requestagswillnotbeautomaticallycleared,theyhavetobeclearedbytheapplicationprogram.