EasyManua.ls Logo

Holtek HT66F0175 - LVD Interr; EEPROM Interr; TM Interr

Default Icon
207 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
TheLowVoltageDetectorInterruptiscontainedwithintheMulti-functionInterrupt.AnLVD
InterruptrequestwilltakeplacewhentheLVDInterruptrequestflag,LVF,isset,whichoccurs
whentheLowVoltageDetectorfunctiondetectsalowpowersupplyvoltage.Toallowtheprogram
tobranchtoitsrespectiveinterruptvectoraddress,theglobalinterruptenablebit,EMI,LowVoltage
Interruptenablebit,LVE,andassociatedMulti-functioninterruptenablebit,mustrstbeset.When
theinterruptisenabled,thestackisnotfullandalowvoltageconditionoccurs,asubroutinecallto
theMulti-functionInterruptvector,willtakeplace.WhentheLowVoltageInterruptisserviced,the
EMIbitwillbeautomaticallyclearedtodisableotherinterrupts.However,onlytheMulti-function
interruptrequestagwillbealsoautomaticallycleared.AstheLVFagwillnotbeautomatically
cleared,ithastobeclearedbytheapplicationprogram.
EEPROM Interrupt
TheEEPROMWriteInterruptiscontainedwithintheMulti-functionInterrupt.AnEEPROM
WriteInterruptrequestwilltakeplacewhentheEEPROMWriteInterruptrequestag,DEF,isset,
whichoccurswhenanEEPROMWritecycleends.Toallowtheprogramtobranchtoitsrespective
interruptvectoraddress,theglobalinterruptenablebit,EMI,EEPROMWriteInterruptenablebit,
DEE,andassociatedMulti-functioninterruptenablebitmustfirstbeset.Whentheinterruptis
enabled,thestackisnotfullandanEEPROMWritecycleends,asubroutinecalltotherespective
Multi-functionInterruptvectorwilltakeplace.WhentheEEPROMWriteInterruptisserviced,the
EMIbitwillbeautomaticallyclearedtodisableotherinterrupts.However,onlytheMulti-function
interruptrequestflagwillbeautomaticallycleared.AstheDEFflagwillnotbeautomatically
cleared,ithastobeclearedbytheapplicationprogram.
TM Interrupt
TheCompact,StandardandPeriodicTMshavetwointerrupts,onecomesfromthecomparatorA
matchsituationandtheothercomesfromthecomparatorPmatchsituation.AlloftheTMinterrupts
arecontainedwithintheMulti-functionInterrupts.ForalloftheTMtypestherearetwointerrupt
requestagsandtwoenablecontrolbits.ATMinterruptrequestwilltakeplacewhenanyofthe
TMrequestagsareset,asituationwhichoccurswhenaTMcomparatorPorAmatchsituation
happens.
Toallowtheprogramtobranchtoitsrespectiveinterruptvectoraddress,theglobalinterruptenable
bit,EMI,respectiveTMInterruptenablebit,andrelevantMulti-functionInterruptenablebit,MFnE,
mustrstbeset.Whentheinterruptisenabled,thestackisnotfullandaTMcomparatormatch
situationoccurs,asubroutinecalltotherelevantMulti-functionInterruptvectorlocations,willtake
place.WhentheTMinterruptisserviced,theEMIbitwillbeautomaticallyclearedtodisableother
interrupts.However,onlytherelatedMFnFagwillbeautomaticallycleared.AstheTMinterrupt
requestagswillnotbeautomaticallycleared,theyhavetobeclearedbytheapplicationprogram.

Table of Contents