Interrupts are the events that temporarily suspend the main program, pass the control to the external sources and execute their task.
Interrupts are the most powerful and important features in 8051 microcontroller. In most of the real-time processes, to handle certain conditions properly, the actual task must halt for some time, take the required action and then return to the main task. For executing such type of programs, interrupts are necessary.
No more boring lectures. Only awesome online courses that transform your learning experience.