| Electronic Components Datasheet Search |
|
HT82B42R Datasheet(PDF) 38 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT82B42R Datasheet(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. |
|
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 |