Saturday, 6 April 2013

What Are the Difference's Between ISR and Function Call

Difference's Between  Interrupt Service Routine(ISR) and Function Call are Follows:-

                    ISR 
                   Function call
1, ISR will be executed only when the system is interrupted.

1. Function call meant for any operation to perform ,even thought when there is no interrupt.
2. ISR is the priority oriented.

2. Function calls are waiting to complete they routines whenever we call.

3. ISR has no return value.

3. Function has a return value.

4. ISR has no parameter.

4.Function has a parameter or not ,Decide by the Programmer.

5. ISRis triggered by hardware event.

5. Function call is triggered by function caller.


6. ISR is only executed when the interrupt is triggered .



6. Function is only executed when the function caller called the function .

7 function call the arguments, local  variable and return address is stored in the stack .


7. ISR after execution the current instruction the context is saved with no return value .



0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More