What is the difference detween ISR & function call
Answer Posted / boss
If an interviewer asks this question. i would first say, it doesn't make a lot of sense in comparing these 2.
However, we can compare an ISR and a Function in terms of the do's and don'ts while writing them.
function can have anythings. there is no restriction. But ISR has some restrictions.
1. It should be as small as possible
2. Hence no large functin calls allowed (NO to printf())
3. No blocking function calls from an ISR. It should not
try to take a semaphore. but can release a
semaphore(counting/binary)
There may be few more. Pls google and collect all
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
If the crystal oscillator is operating at 15 MHz. What will be the PCLK output of 8284?
Explain the different modes of operations of the 8086?
Explain architecture of 8051 microcontroller?
Give truth table for a half adder, give a gate level implementation of the same?
What all does a microprocessor comprise of?
Give example for non-maskable interrupts?
What is the width of address bus?
Explain the 8051 microcontroller architecture?
Define microprocessor?
What are the flags used in 8086?
The operation being performed by the 8085 can be checked by which pins?
Given a circuit, draw its exact timing response?
What is the difference between a microprocessor and a microcontroller?
What happens when call instruction is executed?
Why stack is used in program?