Seven Segment Display Operation by Using Atmega32 and CD4511B
Seven Segment Display Operation by Using Atmega32 and CD4511B
1. 7 pins act as the Vcc for the 7 LEDs (1 pin for each LED, assuming that we are dealing
with common cathode seven segment display)
2. 1 pin is the VCC for decimal point display at the lower right corner.
3. 2 pins represent a common ground to all the LEDs.
7
segment LED display
There are 2 types of seven-segment, that are “common anode” and “common
cathode”. In common anode seven segment, VCC is common for all the LEDs and
each has a different pin for the low voltage (that is ground). In the case of a common
cathode, all LEDs have a common ground and each has a different pin for the high
voltage (Vcc). In this tutorial, we will be using a common cathode 7 Segment display.
Fortunately, there is a better way to do it, using the CD4511B IC (BCD to 7 Segment
Decoder), shown in the below picture.
(Picture Missing)
This is an easy to use IC that takes the number you want to display as an input in BCD
(Binary Coded Decimal) format and outputs the 7 bits needed to illuminate the seven-
segment with the desired number. The below diagram clarifies the input and output to
the CD4511B.
The input pins (A, B, C, D) take the input number as BCD and the output pins (a, b, c, d,
e, f, g) are the 7 bits output that will be connected to the seven-segment as will be
demonstrated in the schematic.
For more clarity, the below table shows the inputs and corresponding outputs of the
CD4511B,you also can get more information from the data-sheet of CD4511B: