18.11.2014 Views

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 8<br />

Figure 8-3. A 7-segment display can show numbers from 0 to 9, plus hex<br />

digits A-F. In a common-cathode LED display, all of the cathodes connect<br />

together, while in a common-anode display, all of the anodes connect.<br />

<strong>The</strong> displays come in two types: common-anode or common-cathode. In a common-anode<br />

display, the anodes of each segment connect internally. To use the display, you connect the<br />

anodes to a voltage source and turn on individual segments by grounding them through a<br />

current-limiting resistor. A common-cathode display is the opposite: the cathodes connect<br />

internally, so you ground the cathodes and apply voltages through current-limiting resistors<br />

at the segments you want to light.<br />

Deciphering pinouts<br />

Unfortunately, there isn’t much standardization for pinouts of 7-segment displays. If you<br />

don’t know the pinout for a display, you can find it by experimenting. You’ll need a 330-ohm<br />

resistor and a 5-volt supply.<br />

Sometimes you’ll find CC or CA stamped on the package to indicate common cathode or<br />

common anode. If even this information is lacking, begin by connecting one lead of the<br />

130 <strong>The</strong> <strong>Microcontroller</strong> <strong>Idea</strong> <strong>Book</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!