| Electronic Components Datasheet Search |
|
HT45F5Q Datasheet(PDF) 90 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F5Q Datasheet(HTML) 90 Page - Holtek Semiconductor Inc |
|
90 / 114 page ![]() Rev. 1.10 90 De�e��e� 1�� �01� Rev. 1.10 91 De�e��e� 1�� �01� HT45F5Q Charger Flash MCU HT45F5Q Charger Flash MCU Interrupt Operation Whentheconditionsforaninterrupteventoccur,suchasaTMComparatorPorComparatorA matchorA/Dconversioncompletionetc,therelevantinterruptrequestflagwillbeset.Whether therequestflagactuallygeneratesaprogramjumptotherelevantinterruptvectorisdeterminedby theconditionoftheinterruptenablebit.Iftheenablebitissethighthentheprogramwilljumpto itsrelevantvector;iftheenablebitiszerothenalthoughtheinterruptrequestflagissetanactual interruptwillnotbegeneratedandtheprogramwillnotjumptotherelevantinterruptvector.The globalinterruptenablebit,ifclearedtozero,willdisableallinterrupts. Whenaninterruptisgenerated,theProgramCounter,whichstorestheaddressofthenextinstruction tobeexecuted,willbetransferredontothestack.TheProgramCounterwillthenbeloadedwitha newaddresswhichwillbethevalueofthecorrespondinginterruptvector.Themicrocontrollerwill thenfetchitsnextinstructionfromthisinterruptvector.Theinstructionatthisvectorwillusually bea“JMP”whichwilljumptoanothersectionofprogramwhichisknownastheinterruptservice routine.Hereislocatedthecodetocontroltheappropriateinterrupt.Theinterruptserviceroutine mustbeterminatedwitha“RETI”,whichretrievestheoriginalProgramCounteraddressfrom thestackandallowsthemicrocontrollertocontinuewithnormalexecutionatthepointwherethe interruptoccurred. Thevariousinterruptenablebits,togetherwiththeirassociatedrequestflags,areshowninthe accompanyingdiagramswiththeirorderofpriority.Someinterruptsourceshavetheirown individualvectorwhileotherssharethesamemulti-functioninterruptvector.Onceaninterrupt subroutineisserviced,alltheotherinterruptswillbeblocked,astheglobalinterruptenablebit, EMIbitwillbeclearedautomatically.Thiswillpreventanyfurtherinterruptnestingfromoccurring. However,ifotherinterruptrequestsoccurduringthisinterval,althoughtheinterruptwillnotbe immediatelyserviced,therequestflagwillstillberecorded. Ifaninterruptrequiresimmediateservicingwhiletheprogramisalreadyinanotherinterruptservice routine,theEMIbitshouldbesetafterenteringtheroutine,toallowinterruptnesting.Ifthestack isfull,theinterruptrequestwillnotbeacknowledged,eveniftherelatedinterruptisenabled,until theStackPointerisdecremented.Ifimmediateserviceisdesired,thestackmustbepreventedfrom becomingfull.Incaseofsimultaneousrequests,theaccompanyingdiagramshowstheprioritythat isapplied.Alloftheinterruptrequestflagswhensetwillwake-upthedeviceifitisinSLEEPor IDLEMode,howevertopreventawake-upfromoccurringthecorrespondingflagshouldbeset beforethedeviceisinSLEEPorIDLEMode. |
|
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 |