Hello. I am looking to get expert answers for this study guide to make sure that
ID: 2083185 • Letter: H
Question
Hello. I am looking to get expert answers for this study guide to make sure that mine is correct and complete. The study guide is for a microcomputers class that focuses mainly on the PIC24 series of microcomputers and its assembly instructions. Thank you.
Name: ECE383: Microcomputers 12/12/2013 Final Exam 1. Write your name on the exam 2. Completely show all of your work to insure partial credit for problems. Note: the answers to the questions on this page should not be long. All of these can be answered with 10 words or less. l. (2pts) Provide definition of an interrupt service routine 2. (2pts) Provide definition of an interrupt vector 3. (2pts) Describe how interrupt priority is used in serving of the interrupts 4. (2pts) What is an interrupt flag? 5. (2pts) How a trap is different from other interrupts?Explanation / Answer
(1) we know assembly program is a sequence of instructions. Any hardware or softtware interrupt occurs When CPU or Microcontroller excuteing these sequence of instructions, The microcontroller stops the excution of the program and the Program Counter(PC) jumps to a specific Address given by interrupt vector table , the adress is called Interrupt Service Routine (ISR) and it is also called as interrupt Handller.
After ISR excution done, The controller back to the Main program
(2). Interrupt Vector :
Interrupt Vector is a memory adress and it is apart of microcontroller memory.
When interrupt occurs, The controller goes to Specific program memory to get the Adress location of ISR , the program memory called Interrupt vector.
In microController every interrupt have it's own Adress, These are formed as a table is called Interrupt vector table.
(3). Interrupt Priority is important in microController, Suppose we have 2 interrupts INT1 and INT2
if INT1 = Higher Priority and INT2 = LOwer Priority
Two interrupts are occurs at a same time When excuteing the program, The microcontroller stops the main program and starts excution of the Higer priority interrupt ISR. and also Higer priority interrupt occurs, when controller excuting lower priority interrupt ISR then stops the lower Priority task and starts the excution of Higher priority ISR.
(4). Inerrupt flag is '1', it reacts the CPU to handle the interrupt . When CPU starts handle the interrupt it is automatically clear .
(5) Normal interrupts are generated by hardware but the trap interrpt is generated when DIVIDE BY ZERO Operation in the program.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.