| Electronic Components Datasheet Search |
|
HT66F4530 Datasheet(PDF) 194 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F4530 Datasheet(HTML) 194 Page - Holtek Semiconductor Inc |
|
194 / 224 page ![]() Rev. 1.00 194 De�e��e� �1� �01� Rev. 1.00 195 De�e��e� �1� �01� HT66F4530/HT66F4540/HT66F4550 A/D Flash MCU with Dual Operational Amplifiers HT66F4530/HT66F4540/HT66F4550 A/D Flash MCU with Dual Operational Amplifiers Toallowtheprogramtobranchtoitsrespectiveinterruptvectoraddress,theglobalinterruptenable bit,EMI,respectiveTMInterruptenablebit,andrelevantMulti-functionInterruptenablebit,MFnE, mustfirstbeset.Whentheinterruptisenabled,thestackisnotfullandaTMcomparatormatch situationoccurs,asubroutinecalltotherelevantMulti-functionInterruptvectorlocations,willtake place.WhentheTMinterruptisserviced,theEMIbitwillbeautomaticallyclearedtodisableother interrupts,howeveronlytherelatedMFnFflagwillbeautomaticallycleared.AstheTMinterrupt requestflagswillnotbeautomaticallycleared,theyhavetobeclearedbytheapplicationprogram. Interrupt Wake-up Function Eachoftheinterruptfunctionshasthecapabilityofwakingupthemicrocontrollerwheninthe SLEEPorIDLEMode.Awake-upisgeneratedwhenaninterruptrequestflagchangesfromlow tohighandisindependentofwhethertheinterruptisenabledornot.Therefore,eventhoughthese devicesareintheSLEEPorIDLEModeanditssystemoscillatorstopped,situationssuchas externaledgetransitionsontheexternalinterruptpinsoralowpowersupplyvoltagemaycause theirrespectiveinterruptflagtobesethighandconsequentlygenerateaninterrupt.Caremust thereforebetakenifspuriouswake-upsituationsaretobeavoided.Ifaninterruptwake-upfunction istobedisabledthenthecorrespondinginterruptrequestflagshouldbesethighbeforethesedevices entertheSLEEPorIDLEMode.Theinterruptenablebitshavenoeffectontheinterruptwake-up function. Programming Considerations Bydisablingtherelevantinterruptenablebits,arequestedinterruptcanbepreventedfrombeing serviced,however,onceaninterruptrequestflagisset,itwillremaininthisconditioninthe interruptregisteruntilthecorrespondinginterruptisservicedoruntiltherequestflagisclearedby theapplicationprogram. WhereacertaininterruptiscontainedwithinaMulti-functioninterrupt,thenwhentheinterrupt serviceroutineisexecuted,asonlytheMulti-functioninterruptrequestflags,MFnF,willbe automaticallycleared,theindividualrequestflagforthefunctionneedstobeclearedbythe applicationprogram. Itisrecommendedthatprogramsdonotusethe"CALL"instructionwithintheinterruptservice subroutine.Interruptsoftenoccurinanunpredictablemannerorneedtobeservicedimmediately. Ifonlyonestackisleftandtheinterruptisnotwellcontrolled,theoriginalcontrolsequencewillbe damagedonceaCALLsubroutineisexecutedintheinterruptsubroutine. EveryinterrupthasthecapabilityofwakingupthemicrocontrollerwhenitisinSLEEPorIDLE Mode,thewakeupbeinggeneratedwhentheinterruptrequestflagchangesfromlowtohigh.Ifitis requiredtopreventacertaininterruptfromwakingupthemicrocontrollerthenitsrespectiverequest flagshouldbefirstsethighbeforeenterSLEEPorIDLEMode. AsonlytheProgramCounterispushedontothestack,thenwhentheinterruptisserviced,ifthe contentsoftheaccumulator,statusregisterorotherregistersarealteredbytheinterruptservice program,theircontentsshouldbesavedtothememoryatthebeginningoftheinterruptservice routine.Toreturnfromaninterruptsubroutine,eitheraRETorRETIinstructionmaybeexecuted. TheRETIinstructioninadditiontoexecutingareturntothemainprogramalsoautomaticallysets theEMIbithightoallowfurtherinterrupts.TheRETinstructionhoweveronlyexecutesareturnto themainprogramleavingtheEMIbitinitspresentzerostateandthereforedisablingtheexecution offurtherinterrupts. |
|
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 |