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
Which interrupt has highest priority in microcontroller ?
Define the types of memory used in 8085 microprocessor?
What are issues related to stack and bank 1.?
Define what the sop does with the help of an example.
Explain the different types of data transfers possible in the 8085.
What is the purpose of the ale pin?
Which register handles the arithmetic operations in the 8085?
What are the different types of arithmetic operations that can be performed by the 8085 microprocessor? Explain with an example?
If a1M1× DRAM requires 4 ms for a refresh and has 256 rows to be refreshed, no more than __________ of time must pass before another row is refreshed.
Can single bit of a port be accessed in 8051?
What happens when the intr signal goes high in the 8085?
Explain briefly the string addressing mode with the help of an example?
The input/output signals are related to which pins?
What are the sources of an interrupt?
What are the four distinct types of memory in 8051?