| поискавой системы для электроныых деталей |
|
HT45F2020 датащи(PDF) 62 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F2020 датащи(HTML) 62 Page - Holtek Semiconductor Inc |
|
62 / 85 page ![]() Rev. 1.00 62 April 11, 2017 Rev. 1.00 63 April 11, 2017 HT45F2020/HT45F2022 Sound Effect Generator Flash MCU HT45F2020/HT45F2022 Sound Effect Generator Flash MCU Bit0 PTMPE:PTMComparatorPmatchinterruptcontrol 0:Disable 1:Enable Interrupt Operation Whentheconditionsforaninterrupteventoccur,suchasaTMComparatorPorComparatorA matchetc.,therelevantinterruptrequestflagwillbeset.Whethertherequestflagactuallygenerates aprogramjumptotherelevantinterruptvectorisdeterminedbytheconditionoftheinterruptenable bit.Iftheenablebitissethighthentheprogramwilljumptoitsrelevantvector,iftheenablebitis zerothenalthoughtheinterruptrequestflagissetanactualinterruptwillnotbegeneratedandthe programwillnotjumptotherelevantinterruptvector.Theglobalinterruptenablebit,ifclearedto zero,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. Time Base TBF TBE EMI 08H EMI 10H Interrupt Name Request Flags Enable Bits Master Enable Vector EMI auto disabled in ISR Priority High Low PTM P PTMPF PTMPE PTM A PTMAF PTMAE M. Funct MFF MFE Interrupts contained within Multi-Function Interrupts xxE Enable Bits xxF Request Flag, auto reset in ISR Legend xxF Request Flag, no auto reset in ISR Interrupt Scheme |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |