EasyManua.ls Logo

Holtek HT66F30 - Page 223

Default Icon
294 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. 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
TheSerialInterfaceModuleInterrupt,alsoknownastheSIMinterrupt,iscontainedwithinthe
Multi-functionInterrupt.ASIMInterruptrequestwilltakeplacewhentheSIMInterruptrequest
ag,SIMF,isset,whichoccurswhenabyteofdatahasbeenreceivedortransmittedbytheSIM
interface.Toallowtheprogramtobranchtoitsrespectiveinterruptvectoraddress,theglobal
interruptenablebit,EMI,andtheSerialInterfaceInterruptenablebit,SIME,andMuti-function
interruptenablebits,mustrstbeset.Whentheinterruptisenabled,thestackisnotfullandabyte
ofdatahasbeentransmittedorreceivedbytheSIMinterface,asubroutinecalltotherespective
Multi-functionInterruptvector,willtakeplace.WhentheSerialInterface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SIMFagwillnotbeautomatically
cleared,ithastobeclearedbytheapplicationprogram.
External Peripheral Interrupt
TheExternalPeripheralInterruptoperatesinasimilarwaytotheexternalinterruptandiscontained
withintheMulti-functionInterrupt.APeripheralInterruptrequestwilltakeplacewhentheExternal
PeripheralInterruptrequestag,XPF,isset,whichoccurswhenanegativeedgetransitionappears
onthePINTpin.Toallowtheprogramtobranchtoitsrespectiveinterruptvectoraddress,the
globalinterruptenablebit,EMI,externalperipheralinterruptenablebit,XPE,andassociated
Multi-functioninterruptenablebit,mustrstbeset.Whentheinterruptisenabled,thestackisnot
fullandanegativetransitionappearsontheExternalPeripheralInterruptpin,asubroutinecallto
therespectiveMulti-functionInterrupt,willtakeplace.WhentheExternalPeripheral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XPFagwillnotbeautomaticallycleared,ithastobeclearedbytheapplicationprogram.
Theexternalperipheralinterruptpinispin-sharedwithseveralotherpinswithdifferentfunctions.It
mustthereforebeproperlyconguredtoenableittooperateasanExternalPeripheralInterruptpin.
EEPROM Interrupt
TheEEPROMInterrupt,iscontainedwithintheMulti-functionInterrupt.AnEEPROMInterrupt
requestwilltakeplacewhentheEEPROMInterruptrequestag,DEF,isset,whichoccurswhenan
EEPROMWriteorReadcycleends.Toallowtheprogramtobranchtoitsrespectiveinterruptvector
address,theglobalinterruptenablebit,EMI,EEPROMInterruptenablebit,DEE,andassociated
Multi-functioninterruptenablebit,mustrstbeset.Whentheinterruptisenabled,thestackisnot
fullandanEEPROMWriteorReadcycleends,asubroutinecalltotherespectiveMulti-function
Interruptvector,willtakeplace.WhentheEEPROM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DEFagwillnotbeautomaticallycleared,ithastobe
clearedbytheapplicationprogram.

Table of Contents

Other manuals for Holtek HT66F30

Related product manuals