In this chapter, you are going to look at creating a square wave on one of the CCP outputs.
After reading this chapter, you should understand what the CCP module is. You should also appreciate why you would want to create a square wave output and how to use the PWM aspect of the CCP module to create a square wave.
In Chapter 6, you will look at an alternative approach to creating a square wave. The approach will involve using the compare aspect of the CCP module and using interrupts.
Why Create a Square Wave?
To answer this question, you are going to look at the ...