| Electronic Components Datasheet Search |
|
HT45F4MA Datasheet(PDF) 120 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F4MA Datasheet(HTML) 120 Page - Holtek Semiconductor Inc |
|
120 / 145 page ![]() Rev. 1.20 120 De�e��e� 1�� 201� Rev. 1.20 121 De�e��e� 1�� 201� HT45F4MA/HT45FH4MA/HT45FH4MA-1 Power Bank Flash MCU HT45F4MA/HT45FH4MA/HT45FH4MA-1 Power Bank 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.The INTEGregisterisusedtoselectthetypeofactiveedgethatwilltriggertheexternalinterrupt.A choiceofeitherrisingorfallingorbothedgetypescanbechosentotriggeranexternalinterrupt. NotethattheINTEGregistercanalsobeusedtodisabletheexternalinterruptfunction. OVP Interrupt AnOVPInterruptrequestwilltakeplacewhentheOverVoltageProtectionInterruptrequestflag, OVPF,isset,whichoccurswhentheOverVoltageProtectionfunctiondetectsanovervoltage condition.Toallowtheprogramtobranchtoitsrespectiveinterruptvectoraddress,theglobal interruptenablebit,EMI,andOverVoltageProtectionInterruptenablebit,mustfirstbeset.When theinterruptisenabled,thestackisnotfullandanovervoltageconditionoccurs,asubroutinecall totheOVPInterruptvector,willtakeplace.WhentheOverVoltageProtectionInterruptisserviced, theEMIbitwillbeautomaticallyclearedtodisableotherinterruptsandtheinterruptrequestflag willbealsoautomaticallycleared. OCP Interrupt AnOCPInterruptrequestwilltakeplacewhentheOverCurrentProtectionInterruptrequestflag, OCPF,isset,whichoccurswhentheOverCurrentProtectionfunctiondetectsanovercurrent condition.Toallowtheprogramtobranchtoitsrespectiveinterruptvectoraddress,theglobal interruptenablebit,EMI,andOverCurrentProtectionInterruptenablebit,mustfirstbeset.When theinterruptisenabled,thestackisnotfullandanovercurrentconditionoccurs,asubroutinecall totheOCPInterruptvector,willtakeplace.WhentheOverCurrentProtectionInterruptisserviced, theEMIbitwillbeautomaticallyclearedtodisableotherinterruptsandtheinterruptrequestflag willbealsoautomaticallycleared. |
|
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 |