You are on page 1of 6

Name: Jenny A.

Bermudez Date: September 28, 2022


Course and Year: BSECE-3A Score:

Lab 5
ENCODER AND DECODER

OBJECTIVES

COMPONENTS REQUIRED
After completing this experiment you will be able to:
• Design and construct encoder and decoder
• Verify their truth tables using logic gates

COMPONENTS REQUIRED
• Two 7410, 3 I/P NAND gate
• Three 7432, 2 I/P OR gate
• 7404 hex inverter

LOGIC DIAGRAM FOR ENCODER

TRUTH TABLE
INPUT OUTPUT
Y1 Y2 Y3 Y4 Y5 Y6 Y7 A B C
1 0 0 0 0 0 0 0 0 1 ✓
0 1 0 0 0 0 0 0 1 0 ✓
0 0 1 0 0 0 0 0 1 1 ✓
0 0 0 1 0 0 0 1 0 0 ✓
0 0 0 0 1 0 0 1 0 1 ✓
0 0 0 0 0 1 0 1 1 0 ✓
0 0 0 0 0 0 1 1 1 1 ✓
VERIFYING TRUTH TABLE:
LOGIC DIAGRAM FOR DECODER

TRUTH TABLE
INPUT OUTPUT
E A B D0 D1 D2 D3
1 0 0 1 1 1 1 ✓
0 0 0 0 1 1 1 ✓
0 0 1 1 0 1 1 ✓
0 1 0 1 1 1 1 ✓
0 1 1 1 1 0 0 ✓
VERIFYING TRUTH TABLE:
REVIEW QUESTIONS

• How do you think that above encoder circuit work as an Encoder?


- Based on my perspective, the circuit above work as an Encoder because it
shows an Encoder logic circuit diagram. The value of input which is octal is
equal to a binary output. In addition, it has a maximum of 2^n input lines and
n output lines, so it encodes the data from 2^n inputs into an n-bit code.

• Design an encoder using NOR gates only.

4 to 2 Priority Encoder Truth Table


INPUT OUTPUT
Y2 Y1 Y0 A B
0 0 0 0 0
0 0 1 0 1
0 1 0 1 0
0 1 1 1 0
1 0 0 1 1
1 0 1 1 1
1 1 0 1 1
1 1 1 1 1
• What will be the output of the decoder circuit if NAND gates are replaced by AND
gates?
- The result become zero.

• What decoder actually do?


- A decoder is a circuit that alters a set of signals from a code. In addition, it is
called a decoder since it reverses the encoding process. The line decoder is a
typical decoder that converts an n-digit binary number into two n data lines.

• What is the purpose of enable input in decoder?


- When the enable pin of a decoder is activated, it will do the intended task. This
line is used as a master control to activate or deactivate the enable line.
Furthermore, it allows the decoder to respond to the inputs to activate the
appropriate output gate, as well as to disable the inputs and activate all outputs.
-
• Design a 2x4 decoder using two 1x2 decoders.

You might also like