7segment Decoder, and Multiplexer...

5

Click here to load reader

Transcript of 7segment Decoder, and Multiplexer...

Page 1: 7segment Decoder, and Multiplexer circuitssite.iugaza.edu.ps/aaldali/files/2014/11/DD_lab_6.pdfExperiment# 6 Decoder & Multiplexer Circuits 2 Fig. 6.1: BCD-to-7segment decoder device

Experiment# 6 Decoder & Multiplexer Circuits

1

Experiment # 6

7segment Decoder, and Multiplexer circuits

OBJECTIVES

1. Understanding the construction and operational principles of digital BCD-

to-7segment decoder, and Multiplexer circuits.

2. Understanding how to implement functions using multiplexers.

BACKGROUND

BCD-to-7segment decoder

the idea of a seven-segment indicator for representing decimal numbers. Each

segment of a seven-segment display is a small light-emitting diode (LED) or

liquid-crystal display (LCD), and - as is shown below - a decimal number is

indicated by lighting a particular combination of the LED's or LCD's elements:

Binary-coded-decimal (BCD) is a common way of encoding decimal numbers

with 4 binary bits as shown below:

Decimal digit 0 1 2 3 4

BCD code 0000 0001 0010 0011 0100

Decimal digit 5 6 7 8 9

BCD code 0101 0110 0111 1000 1001

One of your jobs for this lab is to design and test a circuit to convert a 4-bit BCD

signal into a 7-bit control signal according to the following figure and table:

Page 2: 7segment Decoder, and Multiplexer circuitssite.iugaza.edu.ps/aaldali/files/2014/11/DD_lab_6.pdfExperiment# 6 Decoder & Multiplexer Circuits 2 Fig. 6.1: BCD-to-7segment decoder device

Experiment# 6 Decoder & Multiplexer Circuits

2

Fig. 6.1: BCD-to-7segment decoder device

Notice that the truth-table corresponds to a seven-segment device whose display

elements are active high. That is, each element will be active when its

corresponding input is '1', the 7448 IC is of this type. There is another type of

seven-segment device whose display elements are active low, That is, each

element will be active when its corresponding input is '0', the 7447 IC is of this

type .

Multiplexer Circuit

Multiplexer, or MUX, is a logic circuit that select and route any number of

inputs to single output. One of the multiple inputs is selected by the selector

inputs and routed to the single output. The number of selector inputs

determines the capacity of multiplexer. For example, if a certain MUX has

only one selector input, it is referred as a “2 line-to-1 line MUX” because one

selector can only select one from two inputs. A MUX with 3 selector inputs is

called “8 line-to-1 line MUX”, since 3 selectors a capable of selecting an

output from 8 inputs (23=8). MUX is also referred to as “Data Selector”

because it selects one output from many inputs.

Function expression, such as F(CBA)=∑ (0, 1, 2, 6, 7), can be easily executed

on MUX. Refer to the 4 line-to-1 line MUX in fig.6.2, the output is

determined by states selectors A, Band input C. When CBA=000, 001,010,

110, 111 the output F is1. In all other states F=0.

b3 b2 b1 b0 a b c d e f g

0 0 0 0 1 1 1 1 1 1 0

0 0 0 1 0 1 1 0 0 0 0

0 0 1 0 1 1 0 1 1 0 1

0 0 1 1 1 1 1 1 0 0 1

0 1 0 0 0 1 1 0 0 1 1

0 1 0 1 1 0 1 1 0 1 1

0 1 1 0 0 0 1 1 1 1 1

0 1 1 1 0 0 0 1 1 1 1

1 0 0 0 1 1 1 1 1 1 1

1 0 0 1 1 1 1 0 0 1 1

Truth-table

Page 3: 7segment Decoder, and Multiplexer circuitssite.iugaza.edu.ps/aaldali/files/2014/11/DD_lab_6.pdfExperiment# 6 Decoder & Multiplexer Circuits 2 Fig. 6.1: BCD-to-7segment decoder device

Experiment# 6 Decoder & Multiplexer Circuits

3

Fig.6.2

PRELAB:

BCD-to-7segment decoder

1. Use data sheet to draw the schematic (pin diagram) of the 7448 a BCD-to-

7segment decoder and write down its function table.

Multiplexer

2. Design a 2 to one multiplexer using NAND gates only. Write down truth

table and Boolean expression for the output. Draw the circuit connection in

both logic diagram and pin diagram. Use the symbols for the two inputs as I0,

and I1, and the selection line as S, and the output as Y.

3. Use data sheet to draw the schematic (pin diagram) of the 74151 an 8 to 1

MUX and write down its function table.

4. Implement the function F= Σ(0,2,4,5,7,8,10,11,15) using 74151 MUX. Show

necessary connections in block (symbol) diagram, use A,B,C,D as inputs

where D is the most significant bit. Derive the truth table for F.

EQUIPMENTS REQUIRED KL-31001 trainer kit, Module KL-3300, and KL-33006.

PROCEDURES:

Part I: BCD-to-7segment decoder a) Connect inputs A, B, C, D of U5 (7448) on block b of module KL-33005

to Data Switches SW3, SW2, SW1, SW0 respectively.

Page 4: 7segment Decoder, and Multiplexer circuitssite.iugaza.edu.ps/aaldali/files/2014/11/DD_lab_6.pdfExperiment# 6 Decoder & Multiplexer Circuits 2 Fig. 6.1: BCD-to-7segment decoder device

Experiment# 6 Decoder & Multiplexer Circuits

4

b) Connect the outputs a, b, c, d, e, f, and g to the seven segment display

inputs.

c) Connect the input (LT) to DIP1(0) and set it to logic 1. Follow the input

sequences for D, C, B, A in Table 7.1 and record outputs of the 7-segment

display. Compare your results with the function table of the 7448 in your

prelab.

Table 7.1

d) Set the input (LT) to logic 0. is there any different from step b?

Part II: Constructing a 2-to-1 Multiplexer

a) Construct the circuit of 2 to 1 MUX you designed in your prelab, connect

inputs I0 and I1 to SW0, and SW1 respectively. Connect the selection line

S to SW3, and output Y to L0. Fill down the truth table below and

compare it with the one you have in your prelab.

INPUTS 7- Segments Display

D C B A a b c d e f g number

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

S I0 I1 Y

0 0 0

0 0 1

0 1 0

0 1 1

1 0 0

1 0 1

1 1 0

1 1 1

Page 5: 7segment Decoder, and Multiplexer circuitssite.iugaza.edu.ps/aaldali/files/2014/11/DD_lab_6.pdfExperiment# 6 Decoder & Multiplexer Circuits 2 Fig. 6.1: BCD-to-7segment decoder device

Experiment# 6 Decoder & Multiplexer Circuits

5

Part III: Constructing an 8 to 1 Multiplexer Circuit with TTL IC

a) U6 (74151) on block f of module KL-33006 will be used in this part of the

experiment.

b) Connect inputs DOD7 to DIP Switch 1.01.7; inputs C, B, A to DATA

Switches SW2, SWI, SWO. Connect the strobe input to SW3. Verify the

function table of 74151 you drawn in your prelab.

Part IV: Using Multiplexers to create functions

a) Use block f of module KL-33006 to build the circuit you have

implemented in your prelab step 4.

b) Connect inputs D, C, B, A to Data Switches SW3, SVV2, SWI, SWO

respectively. Connect output Y to Logic Indicator L0. Follow the input

sequences and verify the truth table of the function F you have derived in

your prelab.