You are on page 1of 5

KIE1003 Digital System

Tutorial 5

1. When a HIGH is at the output of each of the decoding gates in the figure below, what is
the binary code appearing on the inputs? The MSB is A3.
(a) (b)

Answer:
(a) A3A2A1A0 = 1100
(b) A3A2A1A0 = 1000

2. BCD numbers are applied sequentially to the BCD-to-decimal decoder in Figure 1. Draw
a timing diagram, showing each output in the proper relationship with the others and with
the inputs.

Figure 1

1
Answer:

3. A 7-segment decoder/driver drives the display in Figure 2. If the waveforms are applied as
indicated, draw the output waveforms for all segments and determine the sequence of digits
that appears on the display.

Figure 2

2
Answer:

A0

A1

A2

A3

c LOW

Sequence of digits: 0 1 6 9 4 4 4 8 0

4. Using OR-gates and/or NOR-gates along with a 3-to-8-line decoder of the type shown in
Figure 3, realize the following pair of expressions. In each case, the gates should be
selected so as to minimize their total number of input terminals.

(a) (b)
f1 ( x2 , x1 , x0 )   m(0,2,4) f1 ( x 2 , x1 , x0 )   M (0,1,7)
f 2 ( x2 , x1 , x0 )   m(1,2,4,5,7) f 2 ( x 2 , x1 , x0 )   M (1,5,7)

Figure 3

3
Answer:
(a)
x0
x1 3-to-8
x2 DEC f1

f2

(b)
x0
x1 3-to-8
x2 DEC f1

f2

5. Write the truth table for a 4-to-2 priority encoder.


Answer:
A3 A2 A1 A0 Y1 Y0
0 0 0 x 0 0
0 0 1 x 0 1
0 1 x x 1 0
1 x x x 1 1

6. A 74HC147 encoder has LOW levels on pins 2, 5, and 12. What BCD code appears on the
outputs if all the other inputs are HIGH?

4
Figure 4: 74HC147 Decimal-to-BCD Priority Encoder

Answer:
Pin 2 is for decimal 5, pin 5 is for decimal 8, and pin 12 is for decimal 2.
The highest priority input is pin 5.
The completed outputs are ̅̅̅𝐴3 ̅̅̅
𝐴2 ̅̅̅
𝐴1 ̅̅̅
𝐴0 = 0111, which is BCD code for 8.

You might also like