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

3. The Seven-Segment Display

Hubert Ward1  
(1)
Leigh, UK
 

In this chapter, we will look at using the PIC to control the display on a seven-segment display. We will look at what the seven-segment display is and the principle upon which it works.

We will then write a program to display a count going from 0 to 9 and then showing the hexadecimal characters A, B, C, D, E, and F. We will look at creating an array and learn why and how we use them.

After reading this chapter, you will understand what a seven-segment display is. You will know the difference between ...

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.