© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
H. WardIntroductory Programs with the 32-bit PIC Microcontrollerhttps://doi.org/10.1007/978-1-4842-9051-4_14

14. Creating a Square Wave

Hubert Ward1  
(1)
Leigh, UK
 

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 ...

Get Introductory Programs with the 32-bit PIC Microcontroller: A Line-by-Line Code Analysis and Reference Guide for Embedded Programming in C now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.