1.

When does the Interrupt Handler execute it’s assigned code?(a) After all the codes executed in the program(b) Before any code is executed in the program(c) Blocks the code from getting executed at any time in the program(d) When the interrupt is in effectI have been asked this question in examination.My doubt is from Interrupt Service Routine in chapter Arduino Programming of Arduino

Answer»

The correct option is (d) When the INTERRUPT is in effect

Easy explanation: The Interrupt Handler is an event by NATURE which, when raised, stops any code that is executing and first executes the code that is assigned to it, then RETURNS the control BACK to the normal EXECUTION.



Discussion

No Comment Found

Related InterviewSolutions