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
Explain db?
How many hardware interrupts 8085 supports?
State the total number of pins in the 8085 microprocessor?
The input/output signals are related to which pins?
What is the purpose of clk signals of 8085?
Indicate different machine cycles of 8085?
What is the maximum internal clock frequency of 8086?
Give example for non-maskable interrupts?
What are the widths of data bus (db) and address bus (ab) of 8085?
Give an example of a combined addressing mode instruction?
What is the purpose of Program Counter in a Micro - Processor?
What does 8088 microprocessor have?
Define the types of bus used in the 8085?
If the crystal oscillator is operating at 15 MHz. What will be the PCLK output of 8284?
Explain what is sim and rim instructions?