| Electronic Components Datasheet Search |
|
HT46R004 Datasheet(PDF) 59 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R004 Datasheet(HTML) 59 Page - Holtek Semiconductor Inc |
|
59 / 84 page ![]() Rev. 1.30 58 �an�a�� ��� �01� Rev. 1.30 5� �an�a�� ��� �01� HT46R004 Cost-Effective A/D 8-Bit OTP MCU Interrupt Operation ATimer/EventCounteroverflow,acompletionofA/Dconversionoranactiveedgeontheexternal interruptpinwillallgenerateaninterruptrequestbysettingtheircorrespondingrequestflag,if theirappropriateinterruptenablebitisset.Whenthishappens,theProgramCounter,whichstores theaddressofthenextinstructiontobeexecuted,willbetransferredontothestack.TheProgram Counterwillthenbeloadedwithanewaddresswhichwillbethevalueofthecorresponding interruptvector.Themicrocontrollerwillthenfetchitsnextinstructionfromthisinterruptvector. TheinstructionatthisvectorwillusuallybeaJMPstatementwhichwilljumptoanothersection ofprogramwhichisknownastheinterruptserviceroutine.Hereislocatedthecodetocontrolthe appropriateinterrupt.TheinterruptserviceroutinemustbeterminatedwithaRETIinstruction, whichretrievestheoriginalProgramCounteraddressfromthestackandallowsthemicrocontroller tocontinuewithnormalexecutionatthepointwheretheinterruptoccurred. Thevariousinterruptenablebits,togetherwiththeirassociatedrequestflags,areshowninthe followingdiagramwiththeirorderofpriority. Interrupt Scheme Onceaninterruptsubroutineisserviced,alltheotherinterruptswillbeblocked,astheEMIbitwill beclearedautomatically.Thiswillpreventanyfurtherinterruptnestingfromoccurring.However, ifotherinterruptrequestsoccurduringthisinterval,althoughtheinterruptwillnotbeimmediately serviced,therequestflagwillstillberecorded.Ifaninterruptrequiresimmediateservicingwhilethe programisalreadyinanotherinterruptserviceroutine,theEMIbitshouldbesetafterenteringthe routine,toallowinterruptnesting.Ifthestackisfull,theinterruptrequestwillnotbeacknowledged, eveniftherelatedinterruptisenabled,untiltheStackPointerisdecremented.Ifimmediateservice isdesired,thestackmustbepreventedfrombecomingfull. Whenaninterruptrequestisgeneratedittakes2or3instructioncyclesbeforetheprogramjumpsto theinterruptvector.IfthedeviceisintheSleepModeandiswokenupbyaninterruptrequestthen itwilltake3cyclesbeforetheprogramjumpstotheinterruptvector. |
|
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 |