| Electronic Components Datasheet Search |
|
HT48R002 Datasheet(PDF) 47 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT48R002 Datasheet(HTML) 47 Page - Holtek Semiconductor Inc |
|
47 / 71 page ![]() Rev. 1.11 46 April 11, 2017 Rev. 1.11 47 April 11, 2017 HT48R002/HT48R003 Cost-Effective I/O 8-Bit OTP MCU HT48R002/HT48R003 Cost-Effective I/O 8-Bit OTP MCU Interrupt Operation ATimer/EventCounteroverfloworanactiveedgeontheexternalinterruptpinwillallgeneratean interruptrequestbysettingtheircorrespondingrequestflag,iftheirappropriateinterruptenablebit isset.Whenthishappens,theProgramCounter,whichstorestheaddressofthenextinstructionto beexecuted,willbetransferredontothestack.TheProgramCounterwillthenbeloadedwithanew addresswhichwillbethevalueofthecorrespondinginterruptvector.Themicrocontrollerwillthen fetchitsnextinstructionfromthisinterruptvector. 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 anua lly s et o r cl ea re d by s o ftw ar e Ex te rn al In te rr up t Re ques t F la g IN TF Ti me r/ Ev ent C oun te r 0 In te rr up t Re ques t Fl ag T 0F IN TE T0 E EM I Pr io ri ty Hi gh Low In te rr up t Po l lin g Au to ma ti ca ll y di sa bl ed by I SR ca n be e nabl ed ma nua ll y 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 |