Professional Documents
Culture Documents
Lecture 2.1.7 2.1.8
Lecture 2.1.7 2.1.8
ACADEMIC UNIT-2
Bachelor of Engineering
(Computer Science & Engineering)
Digital Electronics 22ECH-101
Prepared By: Ankita Aggarwal
Course Outcome
CO1 To identify the different types of digital circuits and their difference and to illustrate the various types of gates.
CO2 To understand the various elements of digital system and to implement their applications.
CO3 To illustrate the relation between Combinational & Sequential Circuits and to apply for practical applications.
CO4 To solve the basic problems related to different types of digital circuits and to calculate it using various numerical problems.
DEMUX TYPES
1-to-2 (1 select line)
1-to-4 (2 select lines)
1-to-8 (3 select lines)
• 1-to-16 (4 select lines)
Functional Diagram Of a
Demultiplexer
A0 B0
‘M’ Inputs
‘N’ Outputs
A1
A2 B1
-------
-------
Encoder B2
AM-1 BN-1
Types of Encoders
i. Priority Encoder
ii. Decimal to BCD Encoder
iii. Octal to Binary Encoder
iv. Hexadecimal to Binary Encoder
ENCODER
M=4
M=22
M=2N
‘M’ is the input and
‘N’ is the output
A0
B0
B1
A1 Encoder Decoder
B2
4x2 2x4
A2
A3 B3
Fig. 7: ENCODER
DIAGRAM
ENCODER
M=4
M=22
M=2N
‘M’ is the input and
‘N’ is the output
00
A0
01
A1
A2
10 Encoder Decoder
11 4x2 2x4
A3
00
A0
01 1
A1
A2
10 Encoder 0
Decoder
11 4x2 2x4
A3
00
A0
01 1
A1
A2
10 Encoder 0
Decoder
10
11 4x2 2x4
A3
D3 INPUTS OUTPUTS V
Y1
D2 D3 D2 D1 D0 Y1 Y0
Priority 0 0 0 0 x x 0
D1 Encoder
0 0 0 1 0 0 1
Y0
D0 0 0 1 x 0 1 1
0 1 x x 1 0 1
Lowest Priority Output 1 x x x 1 1 1
Input
Block Diagram of Priority Fig. 1 1 : ENCODER DIAGRAM
Encoder
• There are four inputs D0, D1,D2, D3 and two outputs Y1 and Y2.
• D3 has highest priority and D0 is at lowest priority.
• If D3=1 irrespective of other inputs then output Y1Y0=11.
• D3 is at highest priority so other inputs are considered as don’t care.
01 1 1 1 1 01 0 0 0 0
11 1 1 1 1 11 1 1 1 1
10 1 1 1 1 10 1 1 1 1
Y1 D 2 D 3
Y0 D3 D2 D1
D3 D2 D1
D0
Y1
Y0
0
A
1
2 B
-------- -
ENCODER
9 D
INPUT OUTPUTS
S
Fig. 14 : ENCODER DIAGRAM
Truth Table
INPUTS BCD
OUTPUTS
0 1 2 3 4 5 6 7 8 9 A B C D
1 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 0 0 0 1
0 0 1 0 0 0 0 0 0 0 0 0 1 0
0 0 0 1 0 0 0 0 0 0 0 0 1 1
0 0 0 0 1 0 0 0 0 0 0 1 0 0
0 0 0 0 0 1 0 0 0 0 0 1 0 1
0 0 0 0 0 0 1 0 0 0 0 1 1 0
0 0 0 0 0 0 0 1 0 0 0 1 1 1
0 0 0 0 0 0 0 0 1 0 1 0 0 0
0 0 0 0 0 0 0 0 0 1 1 0 0 1
Fig. 15 : ENCODER DIAGRAM
• From Truth Table it is clear that the output A is HIGH when input is 8 OR 9 is HIGH
Therefore A=8+9
• The output B is HIGH when 4 OR 5 OR 6 OR 7 is HIGH Therefore B=4+5+6+7
• The output C is HIGH when 2 OR 3 OR 6 OR 7 is HIGH
Therefore C=2+3+6+7
• Similarly D=1+3+5+7+9
Logic Diagram is shown in fig. 1.11
+5V DECIMAL TO BCD ENCODER
0
1
2
3
4
5
6
7
8
9
A B C D
D0
X
D1
ENCODER Y
D2
D3 Z
INPUT OUTPUT
D4
Fig. 17: ENCODER DIAGRAM
TRUTH TABLE
INPUT OUTPUT
D0 D1 D2 D3 D4 D5 D6 D7 X Y Z
1 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 1
0 0 1 0 0 0 0 0 0 1 0
0 0 0 1 0 0 0 0 0 1 1
0 0 0 0 1 0 0 0 1 0 0
0 0 0 0 0 1 0 0 1 0 1
0 0 0 0 0 0 1 0 1 1 0
0 0 0 0 0 0 0 1 1 1 1
X D4 D5 D6 D7
Y D 2 D3 D6 D7
Z D1 D 3 D 5 D 7