| Electronic Components Datasheet Search |
|
HT66F019 Datasheet(PDF) 152 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F019 Datasheet(HTML) 152 Page - Holtek Semiconductor Inc |
|
152 / 175 page ![]() Rev. 1.00 15� De�e��e� 01� �01� Rev. 1.00 153 De�e��e� 01� �01� HT66F019 A/D Flash MCU with EEPROM HT66F019 A/D Flash MCU with EEPROM External Interrupts 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. Comparator Interrupt Thecomparatorinterruptiscontrolledbytheinternalcomparator.Acomparatorinterruptrequest willtakeplacewhenthecomparatorinterruptrequestflag,CPF,isset,asituationthatwilloccur whenthecomparatoroutputbitchangesstate.Toallowtheprogramtobranchtoitsrespective interruptvectoraddress,theglobalinterruptenablebit,EMI,andcomparatorinterruptenablebit, CPE,mustfirstbeset.Whentheinterruptisenabled,thestackisnotfullandthecomparatorinputs generateacomparatoroutputtransition,asubroutinecalltothecomparatorinterruptvector,will takeplace.Whentheinterruptisserviced,thecomparatorinterruptrequestflagwillbeautomatically resetandtheEMIbitwillbeautomaticallyclearedtodisableotherinterrupts. Multi-function Interrupts WithinthedevicetherearethreeMulti-functioninterrupts.Unliketheotherindependentinterrupts, theseinterruptshavenoindependentsource,butratherareformedfromotherexistinginterrupt sources,namelytheTMinterrupts,LVDinterruptandEEPROMwriteoperationinterrupt. AMulti-functioninterruptrequestwilltakeplacewhenanyoftheMulti-functioninterruptrequest flagsMFnFareset.TheMulti-functioninterruptflagswillbesetwhenanyoftheirincluded functionsgenerateaninterruptrequestflag.WhentheMulti-functioninterruptisenabledandthe stackisnotfull,andeitheroneoftheinterruptscontainedwithineachofMulti-functioninterrupt occurs,asubroutinecalltooneoftheMulti-functioninterruptvectorswilltakeplace.Whenthe interruptisserviced,therelatedMulti-functionrequestflagwillbeautomaticallyresetandtheEMI bitwillbeautomaticallyclearedtodisableotherinterrupts. However,itmustbenotedthat,althoughtheMulti-functionInterruptrequestflagswillbe automaticallyresetwhentheinterruptisserviced,therequestflagsfromtheoriginalsourceof theMulti-functioninterruptswillnotbeautomaticallyresetandmustbemanuallyresetbythe applicationprogram. |
|
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 |