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
What is lookup table microcontroller?
How many hardware interrupts 8085 supports?
explain the flow of a typical instruction word
What is the function of ale and how does it works?
explain the difference between 8086 and 8088?
List some analog modulation techniques.
What is stack pointer?
What is non-maskable interrupts?
Explain why do you use two ground pins in microprocessor 8086?
Which interrupt has the highest priority?
Design a transmission gate based xor.
What is base segment address?
What location code memory space and data memory space begins?
Give example of bit address and byte address?
What is the purpose of clk signals of 8085?