© Hubert Henry Ward 2020
H. H. WardIntermediate C Programming for the PIC Microcontrollerhttps://doi.org/10.1007/978-1-4842-6068-5_2

2. Controlling a Seven-Segment Display

Hubert Henry Ward1 
(1)
Leigh, UK
 

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

You will then write a program to display a count going from 0 to 9. In Chapter 3, you will extend this program to control a series of seven-segment displays to run a 24-hour clock counting in minutes.

After reading this chapter, you will understand what a seven-segment display is. You will know the difference between the common anode and common cathode and how to ...

Get Intermediate C Programming for the PIC Microcontroller: Simplifying Embedded Programming 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.