Design of Code Converters: Objective

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 3

Experiment No. 6.

DESIGN OF CODE CONVERTERS


OBJECTIVE
• Design and build gray code to binary converter.
• Design and build BCD-to-7 segment converter.
EQUIPMENT
• Breadboard
• DC Power Supply 5V (or 9V Battery)
• Light Emitting Diode (LED) (4)
• Connecting wires
• Digital ICs:
o 7400 quad 2-input NAND gates (1)
o 7410 triple 3-input NAND gates (4)
o 7420 dual 4-input NAND gates (4)
o 7404 HEX inverter (1)
o 7447 BCD-to-seven segment decoder.
• 4 Switches (Toggle/Slide)
• 8 Resistors (330-500 ohms)
• Multitester
• Logic probe
• Seven segment display (common anode)

PROCEDURE

I. Gray code to Binary converter:


Gray code is one of the codes used in digital systems. It has the
advantage over binary numbers that only one bit in the code word
changes when going from one number to the next.

1. Design a combinational circuit with 4 inputs and 4 outputs that


converts a four bit gray code number into an equivalent four-bit
Binary number. Use Karnaugh map technique for simplification.
2. Simulate your design and construct your circuit to verify its
operation
II. BCD-to-seven Segment converter:
A seven segment LED display contains 7 LEDs. Each LED is called a segment and
they are identified as (a, b, c, d, e, f, g) segments. The display has 7 inputs each
connected to an LED segment. All anodes of LEDs are tied together and joined to 5
volts (this type is called common anode type). A limiting resistance network must
be used at the inputs to protect the 7-segment from overloading. BCD inputs are
converted into 7 segment inputs (a, b, c, d, e, f, g) by using a decoder.

A decoder is a combinational circuit that converts binary information from n input


lines to a maximum of 2n output lines. The input to the decoder is a BCD code and
the outputs of the systems are the seven segments a, b, c, d, e, f, and g. For further
information and pin connections, consult the specification sheet for decoder and 7-
segment units.

First design a combinational circuit which would simulate the decoder function for
only the segment “a”, of the display. This can be done in the following steps:
1. Write down the truth table with 4 inputs and 7 outputs. (Table 2)
2. For only the output “a”, obtain a minimum logic function. Realize this function
using NAND gates and inverters only. For example if decimal 9 is to be
displayed a, b, c, d, f, g must be 0 and the others must be 1 (For common
anode type display units), if decimal 5 is to be displayed then a, f, g, c, d
must be 0 and the others must be 1.
3. Connect the output “a” of your circuit to appropriate input of 7-segment
display unit. By applying BCD codes verify the displayed decimal digits for
that segment for “a” of the display.
4. Replace your circuit by a decoder IC 7447 for all of the seven segments.
Observe the display and record the segments that will light up for invalid
inputs sequence.
5. Comment on the design if you don’t want to see any digit for invalid input
sequence.
6. Make sure that you connect a 330 to 500 ohm resistor to each segment input
of the 7-segment display. Explain why this is necessary in your lab report.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy