| 전자부품 데이터시트 검색엔진 |
|
HT82B42R 데이터시트(PDF) 38 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT82B42R 데이터시트(HTML) 38 Page - Holtek Semiconductor Inc |
|
38 / 86 page ![]() Rev. 1.00 38 October 27, 2011 Rev. 1.00 39 October 27, 2011 HT82B42R/HT82B42RE I/O MCU with USB Interface Interrupt Priority Interrupts,occurringintheintervalbetweentherisingedgesoftwoconsecutiveT2pulses,willbe servicedonthelatterofthetwoT2pulses,ifthecorrespondinginterruptsareenabled.Incaseof simultaneousrequests,thefollowingtableshowstheprioritythatisapplied.Thesecanbemasked byresettingtheEMIbit. Interrupt Source Priority Vector USB Interrupt 1 0004H Timer/Event Counter 0 Overflow Interrupt 2 0008H Timer/Event Counter 1 Overflow Interrupt 3 000CH SPI Interrupt 4 0010H Incaseswherebothexternalandinternalinterruptsareenabledandwhereanexternalandinternal interruptoccurssimultaneously,theexternalinterruptwillalwayshavepriorityandwillthereforebe servicedfirst.Suitablemaskingoftheindividualinterruptsusingtheinterruptregisterscanprevent simultaneousoccurrences. Timer/Event Counter Interrupt ForaTimer/EventCounterinterrupttooccur,theglobalinterruptenablebit,EMI,andthe correspondingtimerinterruptenablebit,ET0I/ET1I,mustfirstbeset.AnactualTimer/Event CounterinterruptwilltakeplacewhentheTimer/EventCounterinterruptrequestflag,T0F/T1F, isset,asituationthatwilloccurwhentheTimer/EventCounteroverflows.Whentheinterruptis enabled,thestackisnotfullandaTimer/EventCounteroverflowoccurs,asubroutinecalltothe timerinterruptvectoratlocation08H/0CH,willtakeplace.Whentheinterruptisserviced,thetimer interruptrequestflag,T0F/T1F,willbeautomaticallyresetandtheEMIbitwillbeautomatically clearedtodisableotherinterrupts. Programming Considerations Bydisablingtheinterruptenablebits,arequestedinterruptcanbepreventedfrombeingserviced, however,onceaninterruptrequestflagisset,itwillremaininthisconditionintheinterruptcontrol registeruntilthecorrespondinginterruptisservicedoruntiltherequestflagisclearedbyasoftware instruction. Itisrecommendedthatprogramsdonotusethe"CALLsubroutine"instructionwithintheinterrupt subroutine.Interruptsoftenoccurinanunpredictablemannerorneedtobeservicedimmediately insomeapplications.Ifonlyonestackisleftandtheinterruptisnotwellcontrolled,theoriginal controlsequencewillbedamagedoncea"CALLsubroutine"isexecutedintheinterruptsubroutine. AlloftheseinterruptshavethecapabilityofwakinguptheprocessorwheninthePowerDown Mode. OnlytheProgramCounterispushedontothestack.Ifthecontentsoftheaccumulatororstatus registerarealteredbytheinterruptserviceprogram,whichmaycorruptthedesiredcontrol sequence,thenthecontentsshouldbesavedinadvance. |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |