© 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_2

2. Header Files and Delays

Hubert Ward1  
(1)
Leigh, UK
 

In this chapter, we will create our first header file, which will be concerned with the configuration words we write for our projects. Later, we will write other useful header files.

We will also look at an important aspect of PIC programs, that of slowing the PIC down. We will create two delays that we will use in our programs.

We will then look at writing a program to control a set of traffic lights.

After reading this chapter, you will know how to create a header file and a delay.

What Are Header ...

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.