1.

Will the delay() function work inside an interrupt routine?(a) Yes(b) NoI got this question in an internship interview.My doubt is from Interrupt Service Routine in chapter Arduino Programming of Arduino

Answer»

Correct choice is (b) No

For EXPLANATION: The delay function will not work inside any Interrupt and it will not be ABLE to function properly in any way. So, no programmer should use it inside the code DEDICATED for running as INTERRUPTS. However delayMicroseconds() will work as it normally would.



Discussion

No Comment Found

Related InterviewSolutions