How can we write an interrupt servicing routine, Computer Engineering

Q. How can we write an Interrupt Servicing Routine?

The following are the fundamentalthough rigid sequence of steps:

1.  Save the system context (flags,registers etc. which will be modified by the ISR).

2. Disable the interrupts which may cause interference if allowed to take place during this ISR's processing 

3.  Enable those interrupts which may still be allowed to occur during this ISR processing.

4.  Determine cause of the interrupt.

5.  Take the suitable action for the interrupt like - receive and store data from serial port, set a flag to specify the completion of the disk sector transfer etc.

6.  Restore the system context.

7.  Re-enable any interrupt levels which were blocked during this ISR execution.

8.  Resume execution of the process which was interrupted on occurrence of the interrupt.

MS-DOS offers you facilities which enable you to install well-behaved interrupt handlers such that they won't interfere with the operating system function or other interrupt handlers. These functions are:

1676_How can we write an Interrupt Servicing Routine.png

Posted Date: 8/1/2013 3:54:53 AM | Location : United States







Related Discussions:- How can we write an interrupt servicing routine, Assignment Help, Ask Question on How can we write an interrupt servicing routine, Get Answer, Expert's Help, How can we write an interrupt servicing routine Discussions

Write discussion on How can we write an interrupt servicing routine
Your posts are moderated
Related Questions
State the term Organizational Structure. A business organization might be structured in many various ways, depending on the environment in that this operates. There are alwa

Subtraction of 0011.1001 - 0001.1110 using 2's complement method Ans. Firstly 1's complement of 0001.1110 is 1110.0001 and 2's complement is 1110.0010. If a last carry

What are the type of Internet connection When determining requirements for a VPN, carefully estimate the number of systems to be put behind the VPN, the number of concurrent u

Question: (a) (i) Explain properties of the WebService attribute. (ii) Discuss three properties of the WebMethod attribute. (b) What are WSDL documents used for? (c)

Explain the working of Assembler? An assembler is the computer program for translating assembly language fundamentally a mnemonic representation of machine language into object

A call processor in an exchange requires 120 ms to service a complete call. What is the BHCA rating for the processor? If the exchange is capable of carrying 700 Erlangs of traffic

What data structure is used by an operating system to keep track of process information? Explain A data structure termed as process control block (PCB ) is used by an operat

Name the fundamental kinds of memory used in microprocessor systems There are three fundamental kinds of memory used in microprocessor systems - generallyknown asRAM, ROM, and

Fuzzy logic is a form of various-valued logic; it deals with reasoning that is approximate rather than fixed & exact. In contrast with traditional logic theory, where binary sets h

How to pass data from list to report? ABAP/4 gives three ways of passing data: ---Passing data automatically using system fields ---Using statements in the program to tak