| Electronic Components Datasheet Search |
|
HT46R002 Datasheet(PDF) 59 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R002 Datasheet(HTML) 59 Page - Holtek Semiconductor Inc |
|
59 / 83 page ![]() Rev. 1.21 58 April 11, 2017 Rev. 1.21 59 April 11, 2017 HT46R002/HT46R003 Cost-Effective A/D 8-Bit OTP MCU HT46R002/HT46R003 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. Au to ma ti ca lly c l ear ed b y IS R m anual ly s et o r cl ear ed by s o ftw ar e Ex te rn al I nt er ru pt R eques t Fl ag IN TF Ti me r/ Ev ent C ount er 0 In te rr up t R eques t Fl ag T 0F IN TE T0 E EM I Pr io ri ty Hi gh Low In te rr upt Po llin g AD E A/ D C onv er si on In te rr upt R eques t Fl ag A DF Au to ma ti ca ll y di s abl ed by I SR c an be enabl ed m anua lly EM I EM I 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 |