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
what are the output deice

Vector-Scalar Instructions : In this type, when the combination of vector and scalar are fetched and saved in vector register. These instructions are denoted with the many function


shell script to find whether the given number is Armstrong or not

Advntages of parallel processing oversequential computation Parallel computing has the following benefits over sequential computing: i)    Accumulate time ii)   Solves b

Think about call of two intrinsic functions discussed above for a 32-Processor (4×8) Multicomputer:    The function call NUMBER_OF_PROCESORS () will return 32.

Classify computer systems according to capacity. How they are different from computers according to the classification of technology. Provide comparative study also.

Define dynamic linking.  Dynamic linking is same to dynamic loading, rather that loading being postponed unless execution time, linking is postponed. This feature is usually us

Q. What is the conclude of the force of gravity on an object? Answer:- Force is the vector product of mass as well as acceleration F = ma. Weight is an unusual case of t

Techno hype - Obstacle to Information System New technology has always been accompanied by a certain amount of euphoria that inevitably leads to unrealistic expectations place