You are on page 1of 6

DIGITAL LOGIC DESIGN [MCT-241L]

LAB 3: BCD-TO-SEVEN SEGMENT CONVERTERS

Name : Date :
Regd-No :
OBJECTIVES:
▪ To construct and investigate the operation of combination logic circuits.
▪ To create logic diagrams from a Boolean expression.
CLO:
▪ CLO-6: Implement different logic circuits (Combinational & Sequential) on
the electronic trainer board (Psy-2)
▪ CLO-7: Administer the implemented logic circuits through test instruments
e.g digital palmscope (Psy-2)
▪ CLO-8: Contribute effectively during lab experiments/group project (Aff-2)
SUGGESTED READING:
▪ Chapter 2: Boolean Algebra and Logic Gates, Digital Logic Design by M.
Morris Mano & Michael D. Ciletti.
▪ Chapter 3: Logic Gates, Digital Fundamentals by Floyd.

EQUIPMENT AND TOOLS:


▪ 74LS47 IC: BCD to Seven Segment Decoder/Driver
▪ 74LS04 IC – Hex Inverters
▪ 74LS08 IC – Quadruple 2-Input AND Gates
▪ 74LS32 IC – Quadruple 2-Input Positive-OR Gates
▪ Common Anode Seven Segment Display
▪ Digital Trainer Board
▪ 220 Ohms Resistances
▪ DMM / Palm Scope
▪ Logic probe
▪ Proteus ISIS®
---------------------------------------------------------------------------------------------------------------------

Introduction
1. SEVEN SEGMENT DISPLAY
A seven-segment display (abbreviation: "7-
seg(ment) display"), is a form of electronic display
device for displaying decimal and hexadecimal
numbers. Seven-segment displays are widely used
in digital clocks, electronic meters, and other
electronic devices for displaying numerical
information. A seven-segment display, as its name
indicates, is composed of seven elements.

1|Page
Individually on or off, they can be combined to produce simplified representations
of the numbers. The segments of a 7-segment display are referred to by the letters
‘A to G’, as shown to the right, where the optional DP decimal point (an "eighth
segment") is used for the display of non-integer numbers. The seven elements
present in a display are basically seven LED’s having cathode and anode terminal.
And individual led gets on when a positive terminal of dc (3-5 Volts with
resistance of R > 100 ohms in series with led to limit the current) is applied to
anode and negative to cathode.
Seven segments are available in two
different schemes i.e.
1) Common cathode
2) Common anode
In a common cathode the cathode
terminal of all LEDs are common and
a separate anode terminal of all LEDs
are available whereas it’s vice versa
for common anode. Fig.3.2 shows the
internal structure and pin diagram of a
seven-segment display made from
LEDs.

TASK 1: Complete the truth table for a Common Anode seven-segment to display
the decimal digits. (NOTE: For a common anode, logic 1 at input of seven-segment
display means LED=OFF)
Hex BCD Seven Segment Conversion
Number Equivalent Dot g f e d c b a
0
1
2
3
4
5
6
7
8
9

2|Page
2. BCD-to Seven Segment Decoder
A BCD-to-seven-segment decoder accepts a decimal digit in BCD
and generates the corresponding seven-segment code. The 7447 IC is
a BCD-to-seven-segment decoder/driver with open collector
outputs. It has four inputs ( 𝑨𝟑 − 𝑨𝟎 ) for the BCD digit. The 4-bit
BCD digit is converted to a seven segment code with outputs 𝒂
through 𝒈 . Fig.3.3 shows the pin description for the BCD to seven
segment decoder.

TASK 2: Configure the BCD-to-seven-segment decoder (7447) such that it takes inputs from
four switches and drives the seven-segment display. The 7447 is designed to properly control a
common anode type of seven-segment display.
[1] Provide +5 volt on pin 16 and ground on pin 8 to the 7447 chip.
[2] Connect 220-ohm resistors to pins 13, 12, 11, 10, 9, 15 and 14 of the 7447, and
connect those resistors to the a, b, c, d, e, f, and g segments of the 7-segment
display.
[3] Connect the common anode of the 7-segment display to +5 volts. (with 220 ohm
resistance in series)

TASK 3: Formulate the gate level diagram of BCD to seven segment decoder.

3|Page
TASK 4: Design a circuit for a car chime based upon the following system
requirements.
A car chime or bell will sound if the output of the logic circuit (X) is set to a logic
‘1’. The chime is to be sounded for either of the following conditions:
▪ If the headlights are left on when the engine is turned off.
▪ If the engine is off and the key is in the ignition when the door is opened.
Use the following input names and nomenclature in the design process:
▪ ‘E’ – Engine. ‘1’ if the engine is ON and ‘0’ if the engine is OFF
▪ ‘L’ – Lights. ‘1’ if the lights are ON and ‘0’ if the lights are OFF
▪ ‘K’ – Key. ‘1’ if the key is in the ignition and ‘0’ if the key is not in the
ignition
▪ ‘D’ – Door. ‘1’ the door is open and ‘0’ if the door is closed
▪ ‘X’ – Output to Chime. ‘1’ is chime is ON and ‘0’ if chime is OFF

a) Create the truth table for given system requirements.

E L K D X
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0
1 1 0 1
1 1 1 0
1 1 1 1
b) Write a sum-of-products expression for the output (X)

4|Page
c) Use Boolean theorems or a K-map to simplify the expression. Show all of
the steps used in the selected simplification process.

d) Draw the circuit diagram for the simplified expression in procedure c and
implement it.

5|Page
REVIEW QUESTION:

Q1. The inputs of a 2-input OR gate are connected to a door and window sensor of an alarm
system. When the door or window is opened, the input lines go HIGH. When the output of the
OR goes HIGH, the alarm sounds. A technician decides to replace the OR gate with an EX-OR
component. Explain the problem(s) this will cause to the operation of the alarm.

6|Page

You might also like