| Electronic Components Datasheet Search |
|
HT45F12 Datasheet(PDF) 82 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F12 Datasheet(HTML) 82 Page - Holtek Semiconductor Inc |
|
82 / 104 page ![]() Rev. 0.00 8� �e�te��e� ��� �01� Rev. 0.00 83 �e�te��e� ��� �01� HT45F12 8-Bit Flash MCU with Op Amps & Comparators HT45F12 8-Bit Flash MCU with Op Amps & Comparators interruptenablebit,ECI,mustfirstbeset.Whentheinterruptisenabled,thestackisnotfulland thecomparatorinputgeneratesacomparatoroutputtransition,asubroutinecalltothecomparator interruptvector,willtakeplace.WhentheComparatorInterruptisserviced,theEMIbitwillbe automaticallyclearedtodisableotherinterrupts,howeveronlytheMulti-functioninterruptrequest flagwillbealsoautomaticallycleared.AstheCFflagwillnotbeautomaticallycleared,ithastobe clearedbytheapplicationprogram. EEPROM Interrupt TheEEPROMinterrupt,iscontainedwithintheMulti-functionInterrupt.AnEEPROMInterrupt requestwilltakeplacewhentheEEPROMInterruptrequestflag,E2F,isset,whichoccurswhen anEEPROMWriteorReadcycleends.Toallowtheprogramtobranchtoitsrespectiveinterrupt vectoraddress,theglobalinterruptenablebit,EMI,EEPROMInterruptenablebit,E2I,andthe Multi-functioninterruptenablebit,mustfirstbeset.Whentheinterruptisenabled,thestackisnot fullandanEEPROMWritecycleends,asubroutinecalltotherespectiveMulti-functionInterrupt vector,willtakeplace.WhentheEEPROMInterruptisserviced,theEMIbitwillbeautomatically clearedtodisableotherinterrupts,howeveronlytheMulti-functioninterruptrequestflagwillbe alsoautomaticallycleared.AstheE2Fflagwillnotbeautomaticallycleared,ithastobeclearedby theapplicationprogram. Interrupt Wake-up Function Eachoftheinterruptfunctionshasthecapabilityofwakingupthemicrocontrollerwheninthe SLEEPorIDLEMode.Awake-upisgeneratedwhenaninterruptrequestflagchangesfromlowto highandisindependentofwhethertheinterruptisenabledornot.Therefore,eventhoughthedevice isintheSLEEPorIDLEModeanditssystemoscillatorstopped,situationssuchasexternaledge transitionsontheexternalinterruptpins,alowpowersupplyvoltageorcomparatorinputchange maycausetheirrespectiveinterruptflagtobesethighandconsequentlygenerateaninterrupt.Care mustthereforebetakenifspuriouswake-upsituationsaretobeavoided.Ifaninterruptwake-up functionistobedisabledthenthecorrespondinginterruptrequestflagshouldbesethighbeforethe deviceenterstheSLEEPorIDLEMode.Theinterruptenablebitshavenoeffectontheinterrupt wake-upfunction. Programming Considerations Bydisablingtherelevantinterruptenablebits,arequestedinterruptcanbepreventedfrombeing serviced,however,onceaninterruptrequestflagisset,itwillremaininthisconditioninthe interruptregistersuntilthecorrespondinginterruptisservicedoruntiltherequestflagisclearedby theapplicationprogram. Itisrecommendedthatprogramsdonotusethe“CALL”instructionwithintheinterruptservice subroutine.Interruptsoftenoccurinanunpredictablemannerorneedtobeservicedimmediately. Ifonlyonestackisleftandtheinterruptisnotwellcontrolled,theoriginalcontrolsequencewillbe damagedonceaCALLsubroutineisexecutedintheinterruptsubroutine. AlloftheseinterruptshavethecapabilityofwakinguptheprocessorwheninthePowerDown Mode.OnlytheProgramCounterispushedontothestack.Ifthecontentsofthestatusorother registersarealteredbytheinterruptserviceprogram,whichmaycorruptthedesiredcontrol sequence,thenthecontentsshouldbesavedinadvance. |
|
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 |