| Electronic Components Datasheet Search |
|
HT45F5R Datasheet(PDF) 115 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F5R Datasheet(HTML) 115 Page - Holtek Semiconductor Inc |
|
115 / 138 page ![]() Rev. 1.10 114 De�e��e� 1�� �01� Rev. 1.10 115 De�e��e� 1�� �01� HT45F5R Charger ASSP Flash MCU HT45F5R Charger ASSP Flash MCU External Interrupt TheexternalinterruptsarecontrolledbysignaltransitionsonthepinsINT0~INT1.Anexternal interruptrequestwilltakeplacewhentheexternalinterruptrequestflags,INT0F~INT1F,areset, whichwilloccurwhenatransition,whosetypeischosenbytheedgeselectbits,appearsonthe externalinterruptpins.Toallowtheprogramtobranchtoitsrespectiveinterruptvectoraddress, theglobalinterruptenablebit,EMI,andrespectiveexternalinterruptenablebit,INT0E~INT1E, mustfirstbeset.AdditionallythecorrectinterruptedgetypemustbeselectedusingtheINTEG registertoenabletheexternalinterruptfunctionandtochoosethetriggeredgetype.Astheexternal interruptpinsarepin-sharedwithI/Opins,theycanonlybeconfiguredasexternalinterruptpinsif theirexternalinterruptenablebitinthecorrespondinginterruptregisterhasbeensetandtheexternal interruptpinisselectedbythecorrespondingpin-sharedfunctionselectionbits.Thepinmustalso besetupasaninputbysettingthecorrespondingbitintheportcontrolregister.Whentheinterrupt isenabled,thestackisnotfullandthecorrecttransitiontypeappearsontheexternalinterruptpin, asubroutinecalltotheexternalinterruptvector,willtakeplace.Whentheinterruptisserviced,the externalinterruptrequestflags,INT0F~INT1F,willbeautomaticallyresetandtheEMIbitwillbe automaticallyclearedtodisableotherinterrupts.Notethatanypull-highresistorselectionsonthe externalinterruptpinswillremainvalidevenifthepinisusedasanexternalinterruptinput.The INTEGregisterisusedtoselectthetypeofactiveedgethatwilltriggertheexternalinterrupt.A choiceofeitherrisingorfallingorbothedgetypescanbechosentotriggeranexternalinterrupt. NotethattheINTEGregistercanalsobeusedtodisabletheexternalinterruptfunction. OCVP Interrupt TheOCVPinterruptiscontrolledbythetwointernalcomparators.AnOCVPinterruptrequestwill takeplacewhentheOCVPinterruptrequestflag,OCVPF,isset,asituationthatwilloccurwhen thecomparatorsoutputchangesstate.Toallowtheprogramtobranchtoitsrespectiveinterrupt vectoraddress,theglobalinterruptenablebit,EMI,andOCVPinterruptenablebit,OCVPE,must firstbeset.Whentheinterruptisenabled,thestackisnotfullandthecomparatorinputgeneratesa comparatoroutputtransition,asubroutinecalltotheOCVPinterruptvector,willtakeplace.When theOCVPInterruptisserviced,theEMIbitwillbeautomaticallyclearedtodisableotherinterrupts, andtheOCVPinterruptrequestflag,OCVPF,willalsobeautomaticallycleared. Time Base Interrupts ThefunctionoftheTimeBaseInterruptsistoprovideregulartimesignalintheformofaninternal interrupt.Theyarecontrolledbytheoverflowsignalsfromtheirrespectivetimerfunctions.When thesehappenstheirrespectiveinterruptrequestflags,TB0ForTB1Fwillbeset.Toallowthe programtobranchtotheirrespectiveinterruptvectoraddresses,theglobalinterruptenablebit,EMI andTimeBaseenablebits,TB0EorTB1E,mustfirstbeset.Whentheinterruptisenabled,thestack isnotfullandtheTimeBaseoverflows,asubroutinecalltotheirrespectivevectorlocationswill takeplace.Whentheinterruptisserviced,therespectiveinterruptrequestflag,TB0ForTB1F,will beautomaticallyresetandtheEMIbitwillbeclearedtodisableotherinterrupts. ThepurposeoftheTimeBaseInterruptistoprovideaninterruptsignalatfixedtimeperiods.Their clocksourcesoriginatefromtheinternalclocksourcefTB.ThisfTBinputclockpassesthrougha divider,thedivisionratioofwhichisselectedbyprogrammingtheappropriatebitsintheTBC registertoobtainlongerinterruptperiodswhosevalueranges.TheclocksourcethatgeneratesfTB, whichinturncontrolstheTimeBaseinterruptperiod,canoriginatefromseveraldifferentsources, asshownintheSystemOperatingModesection. |
|
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 |