1.

What is the use of the interrupt mode?(a) Decides which type of transition to trigger on(b) Decides when to turn off interrupts(c) Decides which pin to turn off(d) Decides when to turn off the Arduino BoardThe question was asked in class test.My question comes from Interrupt Service Routine in portion Arduino Programming of Arduino

Answer»

Correct ANSWER is (a) Decides which type of transition to trigger on

Best explanation: There are different types of transition, RISING, FALLING, and CHANGE.

RISING – Triggers interrupt when PIN transitions from LOW to HIGH.

FALLING – Triggers interrupt when pin transitions from HIGH to LOW.

CHANGE – Triggers interrupt when pin transitions from LOW to HIGH or HIGH to LOW.



Discussion

No Comment Found

Related InterviewSolutions