Rev. 2.50 222 June 22, 2017 Rev. 2.50 223 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
Serial Interface Module Interrupt
TheSerialInterfaceModuleInterrupt,alsoknownastheSIMinterrupt,iscontainedwithinthe
Multi-functionInterrupt.ASIMInterruptrequestwilltakeplacewhentheSIMInterruptrequest
ag,SIMF,isset,whichoccurswhenabyteofdatahasbeenreceivedortransmittedbytheSIM
interface.Toallowtheprogramtobranchtoitsrespectiveinterruptvectoraddress,theglobal
interruptenablebit,EMI,andtheSerialInterfaceInterruptenablebit,SIME,andMuti-function
interruptenablebits,mustrstbeset.Whentheinterruptisenabled,thestackisnotfullandabyte
ofdatahasbeentransmittedorreceivedbytheSIMinterface,asubroutinecalltotherespective
Multi-functionInterruptvector,willtakeplace.WhentheSerialInterfaceInterruptisserviced,the
EMIbitwillbeautomaticallyclearedtodisableotherinterrupts,howeveronlytheMulti-function
interruptrequestagwillbealsoautomaticallycleared.AstheSIMFagwillnotbeautomatically
cleared,ithastobeclearedbytheapplicationprogram.
External Peripheral Interrupt
TheExternalPeripheralInterruptoperatesinasimilarwaytotheexternalinterruptandiscontained
withintheMulti-functionInterrupt.APeripheralInterruptrequestwilltakeplacewhentheExternal
PeripheralInterruptrequestag,XPF,isset,whichoccurswhenanegativeedgetransitionappears
onthePINTpin.Toallowtheprogramtobranchtoitsrespectiveinterruptvectoraddress,the
globalinterruptenablebit,EMI,externalperipheralinterruptenablebit,XPE,andassociated
Multi-functioninterruptenablebit,mustrstbeset.Whentheinterruptisenabled,thestackisnot
fullandanegativetransitionappearsontheExternalPeripheralInterruptpin,asubroutinecallto
therespectiveMulti-functionInterrupt,willtakeplace.WhentheExternalPeripheralInterruptis
serviced,theEMIbitwillbeautomaticallyclearedtodisableotherinterrupts,howeveronlythe
Multi-functioninterruptrequestagwillbealsoautomaticallycleared.
AstheXPFagwillnotbeautomaticallycleared,ithastobeclearedbytheapplicationprogram.
Theexternalperipheralinterruptpinispin-sharedwithseveralotherpinswithdifferentfunctions.It
mustthereforebeproperlyconguredtoenableittooperateasanExternalPeripheralInterruptpin.
EEPROM Interrupt
TheEEPROMInterrupt,iscontainedwithintheMulti-functionInterrupt.AnEEPROMInterrupt
requestwilltakeplacewhentheEEPROMInterruptrequestag,DEF,isset,whichoccurswhenan
EEPROMWriteorReadcycleends.Toallowtheprogramtobranchtoitsrespectiveinterruptvector
address,theglobalinterruptenablebit,EMI,EEPROMInterruptenablebit,DEE,andassociated
Multi-functioninterruptenablebit,mustrstbeset.Whentheinterruptisenabled,thestackisnot
fullandanEEPROMWriteorReadcycleends,asubroutinecalltotherespectiveMulti-function
Interruptvector,willtakeplace.WhentheEEPROMInterruptisserviced,theEMIbitwillbe
automaticallyclearedtodisableotherinterrupts,howeveronlytheMulti-functioninterruptrequest
agwillbealsoautomaticallycleared.AstheDEFagwillnotbeautomaticallycleared,ithastobe
clearedbytheapplicationprogram.