| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
HT45F4MA bảng dữ liệu(PDF) 124 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F4MA bảng dữ liệu(HTML) 124 Page - Holtek Semiconductor Inc |
|
124 / 145 page ![]() Rev. 1.20 12� De�e��e� 1�� 201� Rev. 1.20 125 De�e��e� 1�� 201� HT45F4MA/HT45FH4MA/HT45FH4MA-1 Power Bank Flash MCU HT45F4MA/HT45FH4MA/HT45FH4MA-1 Power Bank Flash MCU 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 interruptregisteruntilthecorrespondinginterruptisservicedoruntiltherequestflagisclearedby theapplicationprogram. WhereacertaininterruptiscontainedwithinaMulti-functioninterrupt,thenwhentheinterrupt serviceroutineisexecuted,asonlytheMulti-functioninterruptrequestflags,MF0F~MF2F,will beautomaticallycleared,theindividualrequestflagforthefunctionneedstobeclearedbythe applicationprogram. Itisrecommendedthatprogramsdonotusethe“CALL”instructionwithintheinterruptservice subroutine.Interruptsoftenoccurinanunpredictablemannerorneedtobeservicedimmediately. Ifonlyonestackisleftandtheinterruptisnotwellcontrolled,theoriginalcontrolsequencewillbe damagedonceaCALLsubroutineisexecutedintheinterruptsubroutine. EveryinterrupthasthecapabilityofwakingupthemicrocontrollerwhenitisinSLEEPorIDLE Mode,thewakeupbeinggeneratedwhentheinterruptrequestflagchangesfromlowtohigh.Ifitis requiredtopreventacertaininterruptfromwakingupthemicrocontrollerthenitsrespectiverequest flagshouldbefirstsethighbeforeenterSLEEPorIDLEMode. AsonlytheProgramCounterispushedontothestack,thenwhentheinterruptisserviced,ifthe contentsoftheaccumulator,statusregisterorotherregistersarealteredbytheinterruptservice program,theircontentsshouldbesavedtothememoryatthebeginningoftheinterruptserviceroutine. Toreturnfromaninterruptsubroutine,eitheraRETorRETIinstructionmaybeexecuted.TheRETI instructioninadditiontoexecutingareturntothemainprogramalsoautomaticallysetstheEMI bithightoallowfurtherinterrupts.TheRETinstructionhoweveronlyexecutesareturntothemain programleavingtheEMIbitinitspresentzerostateandthereforedisablingtheexecutionoffurther interrupts. |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |