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


Please Help Members By Posting Answers For Below Questions

Which interrupt has highest priority in microcontroller ?

691


Define the types of memory used in 8085 microprocessor?

551


What are issues related to stack and bank 1.?

788


Define what the sop does with the help of an example.

565


Explain the different types of data transfers possible in the 8085.

629






What is the purpose of the ale pin?

644


Which register handles the arithmetic operations in the 8085?

592


What are the different types of arithmetic operations that can be performed by the 8085 microprocessor? Explain with an example?

703


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.

784


Can single bit of a port be accessed in 8051?

637


What happens when the intr signal goes high in the 8085?

625


Explain briefly the string addressing mode with the help of an example?

566


The input/output signals are related to which pins?

626


What are the sources of an interrupt?

626


What are the four distinct types of memory in 8051?

1232