| Electronic Components Datasheet Search |
|
HT45F65 Datasheet(PDF) 182 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F65 Datasheet(HTML) 182 Page - Holtek Semiconductor Inc |
|
182 / 231 page ![]() Rev. 1.60 18� �ove��e� ��� �01� Rev. 1.60 183 �ove��e� ��� �01� HT45F65/HT45F66/HT45F67 Glucose Meter 8-Bit Flash MCU External Interrupt TheexternalinterruptsarecontrolledbysignaltransitionsonthepinsINT0~INT1.Anexternal interruptrequestwilltakeplacewhentheexternalinterruptrequestflags,INT0F~INT1F,areset, whichwilloccurwhenatransition,whosetypeischosenbytheedgeselectbits,appearsonthe externalinterruptpins.Toallowtheprogramtobranchtoitsrespectiveinterruptvectoraddress,the globalinterruptenablebit,EMI,andrespectiveexternalinterruptenablebit,INT0E~INT1E,must firstbeset.AdditionallythecorrectinterruptedgetypemustbeselectedusingtheINTEGregisterto enabletheexternalinterruptfunctionandtochoosethetriggeredgetype.Astheexternalinterrupt pinsarepin-sharedwithI/Opins,theycanonlybeconfiguredasexternalinterruptpinsiftheir externalinterruptenablebitinthecorrespondinginterruptregisterhasbeenset.Thepinmustalso besetupasaninputbysettingthecorrespondingbitintheportcontrolregister.Whentheinterrupt isenabled,thestackisnotfullandthecorrecttransitiontypeappearsontheexternalinterruptpin, asubroutinecalltotheexternalinterruptvector,willtakeplace.Whentheinterruptisserviced,the externalinterruptrequestflags,INT0F~INT1F,willbeautomaticallyresetandtheEMIbitwillbe automaticallyclearedtodisableotherinterrupts.Notethatanypull-highresistorselectionsonthe externalinterruptpinswillremainvalidevenifthepinisusedasanexternalinterruptinput. TheINTEGregisterisusedtoselectthetypeofactiveedgethatwilltriggertheexternalinterrupt. Achoiceofeitherrisingorfallingorbothedgetypescanbechosentotriggeranexternalinterrupt. NotethattheINTEGregistercanalsobeusedtodisabletheexternalinterruptfunction. Multi-function Interrupt WithinthedevicesthereareuptothreeorfourMulti-functioninterrupts.Unliketheother independentinterrupts,theseinterruptshavenoindependentsource,butratherareformedfrom otherexistinginterruptsources,namelytheTMInterrupts,UARTinterrupt,SIMInterrupt,SPI1 Interrupt,ExternalPeripheralInterruptandLVDinterrupt. AMulti-functioninterruptrequestwilltakeplacewhenanyoftheMulti-functioninterruptrequest flags,MFnFareset.TheMulti-functioninterruptflagswillbesetwhenanyoftheirincluded functionsgenerateaninterruptrequestflag.Toallowtheprogramtobranchtoitsrespectiveinterrupt vectoraddress,whentheMulti-functioninterruptisenabledandthestackisnotfull,andeitherone oftheinterruptscontainedwithineachofMulti-functioninterruptoccurs,asubroutinecalltooneof theMulti-functioninterruptvectorswilltakeplace.Whentheinterruptisserviced,therelatedMulti- FunctionrequestflagwillbeautomaticallyresetandtheEMIbitwillbeautomaticallyclearedto disableotherinterrupts. However,itmustbenotedthat,althoughtheMulti-functionInterruptflagswillbeautomatically resetwhentheinterruptisserviced,therequestflagsfromtheoriginalsourceoftheMulti-function interrupts,namelytheTMInterrupts,UARTinterrupt,SIMInterrupt,SPI1Interrupt,External PeripheralInterruptandLVDinterruptwillnotbeautomaticallyresetandmustbemanuallyresetby theapplicationprogram. A/D Converter Interrupt TheA/DConverterInterruptiscontrolledbytheterminationofanA/Dconversionprocess.AnA/D ConverterInterruptrequestwilltakeplacewhentheA/DConverterInterruptrequestflag,ADF,is set,whichoccurswhentheA/Dconversionprocessfinishes.Toallowtheprogramtobranchtoits respectiveinterruptvectoraddress,theglobalinterruptenablebit,EMI,andA/DInterruptenablebit, ADE,mustfirstbeset.Whentheinterruptisenabled,thestackisnotfullandtheA/Dconversion processhasended,asubroutinecalltotheA/DConverterInterruptvector,willtakeplace.Whenthe interruptisserviced,theA/DConverterInterruptflag,ADF,willbeautomaticallycleared.TheEMI bitwillalsobeautomaticallyclearedtodisableotherinterrupts. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |