In this chapter, you are going to look at interrupts. You will look at the importance of the fetch and execute cycle and the program counter.
Also, as stated in Chapter 4, you will use the compare aspect of the CCP module to create a square wave.
After reading this chapter, you will know what the program counter (PC) is and its importance. You will also learn what interrupts are, what they can be used for, and how to use them. You will appreciate what the compare aspect of the CCP module can do.
What Are Interrupts?
Interrupts are a very useful aspect of a microcontroller. ...