Question

In: Electrical Engineering

1:Explain what is an interrupt and its process.                                  &nbs

1:Explain what is an interrupt and its process.                                                                  

2:State any three difference between top-down and bottom-up design strategies

3:What is the difference between Interrupt and polling technique? Which one is preferable

and why?

Solutions

Expert Solution

1)

Interrupt is a special condition which stops the working of the processor, when an interrupt occurs processor suspends it's curtain working task and executes a sub-routine of that interrupt which defines purpose of that interrupt called Interrupt service routine (ISR)

Interrupt generally occurs when an external device wants to interact with processor

When an interrupt occurs:

- when an interrupt is occured, the processor stores the address of current program into stack(by pushing the Program counter (PC) value) as return address

-Then goes to ISR of interrupt and executes the sub-routine

-After that loads the PC with return address from stack(by using POP) and continues from where it is suspended.

2)

  1. Top-down approach decomposes the bigger task into subtasks whereas bottom-up approach first solves the different basic parts of the task directly then combine those parts into a complete program.
  2. Every submodule is separately processed in a top-down designing. In bottom-up designing implements the concept of the information hiding by examining the data to be encrypted .
  3. The different modules in top-down designing don’t require much communication among themselves. Whereas in bottom-up designing needs communication between basic modules
  4. There may be chance of redundancy in in top-bottom. There is no redundancy in bottom-top

3)

When Interrupt occurs it enables some status bits and the processor when it is free goes to excute those interrupts.

Where as polling is a protocol that cpu has to keep on checking whether the external device is ready for data transfer.

In case polling , lot of processor time is wasted which we cannot allow as it is very critical

So definitely interrupt technique is better


Related Solutions

What is an exception? What is an interrupt? What is a non-maskable interrupt and why is...
What is an exception? What is an interrupt? What is a non-maskable interrupt and why is it used?
Explain the main purpose of an interrupt signal. Give an example of how the interrupt is...
Explain the main purpose of an interrupt signal. Give an example of how the interrupt is used.
What is an exception? What is an interrupt? What is a non-maskable interrupt and why is it used?
What is an exception? What is an interrupt? What is a non-maskable interrupt and why is it used?
What is an interrupt vector table. How do I create an interrupt vector table in Arm...
What is an interrupt vector table. How do I create an interrupt vector table in Arm Architecture . Please include as much information as you can, including pictures, examples etc. Thank you very much.
V. How does ARM processor differentiate between a timer interrupt and an A/D interrupt? VI. What...
V. How does ARM processor differentiate between a timer interrupt and an A/D interrupt? VI. What does privileged mode mean and what is the major difference between this mode and non-privileged mode? VII. There are two interrupt pins on ARM microprocessor: IRQ and FIQ. Which one can interrupt the other one and why?
When is an external interrupt recognized by the CPU?  When more than one interrupt occurs, what approaches...
When is an external interrupt recognized by the CPU?  When more than one interrupt occurs, what approaches would you use to service them? What approaches should be taken when an interrupt occurs within an interrupt service routine Consider a hypothetical microprocessor having 64-bit instructions composed of two fields: the first 16-bits contains the op-code and the remainder the immediate operand or an operand address.  Assume memory is organized in 32-bit words, i.e. one r/w access can yield a maximum of 32 bits.  ...
.What is the role of interrupt vector table during interrupt processing? b. How does OS make...
.What is the role of interrupt vector table during interrupt processing? b. How does OS make sure that a user process cannot access I/O devices or any other process’ memory areas? c. How is data parallelism different from task parallelism? Which one of these approaches would you use if you had to compute the average of an array of million numbers? Why? d. What kind of events can cause a process to leave CPU? e. What is the main different...
Explain how the avoidance of cognitive dissonance can affect the investor‘s decision making process.                          &nbs
Explain how the avoidance of cognitive dissonance can affect the investor‘s decision making process.                                                                                              [6 marks]
1. Explain what a process is and how activities in a process function as a system....
1. Explain what a process is and how activities in a process function as a system. Find an example of a process, and identify the different activities involved. How would you improve this process? What would that involve? 2. Find an example of a business, and identify the processes needed to deliver the product to the final customer. What do you think is the bottleneck in this process? How Would you suggest it be managed? Please explain this in great...
What is an interrupt vector? What is polling used for? What are the disadvantages of polling?
What is an interrupt vector? What is polling used for? What are the disadvantages of polling? What is a better way to perform the same job?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT