Chapter 9. Dealing with Interrupts
In all our previous projects, we have been constantly looking for events to occur. We have been polling, but looking for events to occur involves a relatively big effort and a waste of CPU cycles to only notice that nothing happened.
In this chapter, we will learn about interrupts as a totally new way to deal with events, being notified about them instead of looking for them constantly.
Interrupts may be really helpful when developing projects in which fast or unknown events may occur, and thus we will see a very interesting project that will lead us to develop a digital tachograph for a computer-controlled motor.
Are you ready? Here we go!