| Electronic Components Datasheet Search |
|
HT45F39 Datasheet(PDF) 85 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F39 Datasheet(HTML) 85 Page - Holtek Semiconductor Inc |
|
85 / 102 page ![]() Rev. 1.10 84 July 01, 2016 Rev. 1.10 85 July 01, 2016 HT45F39/HT45F391 Ultrasonic Distance Measurement 8-bit Flash MCU HT45F39/HT45F391 Ultrasonic Distance Measurement 8-bit Flash MCU Interrupt Wake-up Function Eachoftheinterruptfunctionshasthecapabilityofwakingupthemicrocontrollerwheninthe SLEEPMode.Awake-upisgeneratedwhenaninterruptrequestflagchangesfromlowtohighand isindependentofwhethertheinterruptisenabledornot.Therefore,eventhoughthedevicesarein theSLEEPModeanditssystemoscillatorstopped,situationssuchasexternaledgetransitionon theexternalinterruptpin,FIFO10setsdataarereceivedortransmittedmaycausetheirrespective interruptflagtobesethighandconsequentlygenerateaninterrupt.Caremustthereforebetaken ifspuriouswake-upsituationsaretobeavoided.Ifaninterruptwake-upfunctionistobedisabled thenthecorrespondinginterruptrequestflagshouldbesethighbeforethedevicesentertheSLEEP Mode.Theinterruptenablebitshavenoeffectontheinterruptwake-upfunction. Programming Considerations Bydisablingtherelevantinterruptenablebits,arequestedinterruptcanbepreventedfrombeing serviced,however,onceaninterruptrequestflagisset,itwillremaininthisconditioninthe interruptregisteruntilthecorrespondinginterruptisservicedoruntiltherequestflagisclearedby theapplicationprogram. Itisrecommendedthatprogramsdonotusethe"CALL"instructionwithintheinterruptservice subroutine.Interruptsoftenoccurinanunpredictablemannerorneedtobeservicedimmediately. Ifonlyonestackisleftandtheinterruptisnotwellcontrolled,theoriginalcontrolsequencewillbe damagedonceaCALLsubroutineisexecutedintheinterruptsubroutine. EveryinterrupthasthecapabilityofwakingupthemicrocontrollerwhenitisinSLEEPMode,the wakeupbeinggeneratedwhentheinterruptrequestflagchangesfromlowtohigh.Ifitisrequired topreventacertaininterruptfromwakingupthemicrocontrollerthenitsrespectiverequestflag shouldbefirstsethighbeforeenterSLEEPMode. AsonlytheProgramCounterispushedontothestack,thenwhentheinterruptisserviced,ifthe contentsoftheaccumulator,statusregisterorotherregistersarealteredbytheinterruptservice program,theircontentsshouldbesavedtothememoryatthebeginningoftheinterruptservice routine. Toreturnfromaninterruptsubroutine,eitheraRETorRETIinstructionmaybeexecuted.TheRETI instructioninadditiontoexecutingareturntothemainprogramalsoautomaticallysetstheEMI bithightoallowfurtherinterrupts.TheRETinstructionhoweveronlyexecutesareturntothemain programleavingtheEMIbitinitspresentzerostateandthereforedisablingtheexecutionoffurther interrupts. |
|
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 |