What is the use of the Interrupt Service Routine in an Arduino?

Đăng Khánh

New member
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 running
 
Answer: A
Explanation: 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.
 

Tìm kiếm

Back
Top