1.

What is the use of the Interrupt Service Routine in an Arduino?(a) To automate functions(b) To boot up the arduino(c) To make more memory(d) To exit any code that is runningThe question was asked during an interview.Asked question is from Interrupt Service Routine in division Arduino Programming of Arduino

Answer»

Correct answer is (a) To automate FUNCTIONS

To explain I would say: The interrupt service routine can be used to automate a number of functions in an arduino. In a SITUATION where the entire focus of the code is bound to one function, the ISR can act as a pause for the arduino to stop the CURRENT function temporarily and divert MEMORY to ANOTHER function. That way, the entire memory of the arduino is used up in one function.



Discussion

No Comment Found

Related InterviewSolutions