In this chapter, we will look at creating a square wave. This might seem a simple exercise, but it can be a very useful aspect of electronics and microcontrollers. There are many instances when a square wave can be useful, such as producing sound or signals of different frequencies or controlling the speed of a DC motor. In this chapter, we will look at creating a square wave of different frequencies and controlling the speed of a DC motor.
After reading this chapter, you will be able to use the ...