Digital Circuit Applications
Digital Circuit Applications
in
Content Creation
The wise
possess all
ii
www.tntextbooks.in
PREFACE
This book is the abridged and updated version of the curriculum to strengthen
the higher secondary education on par with the Global Standards and meet
the requirements of Industrial Standard 4.0 by providing skill-based learning
opportunities to promote holistic approach in technical education. The objectives
of this book on Basic Electronic Engineering are to shape the skill of understanding
and applying electronic concepts and ideas for designing, assembling, testing,
maintaining and troubleshooting basic and complex electronic gadgets.
Additionally, it covers the “Earn While Learn” concept for the students to pursue
their higher education with self-reliance and without financial hindrance.
This book covers the state-of-the-art techniques in the area of Electronics
and related fields to encourage the multidisciplinary approach of Electronics with
different subject areas. Each Chapter has been designed and written in such a way
to inculcate the basic and advanced knowledge of the Electronics to the students
and also to give opportunity to the stakeholders to provide a platform for exhibiting
their creativity. The success of this endeavor depends on the participation of the
students, subject teachers and school headmasters to kindle the students towards
self-learning in order to promote imaginative activities and inquisitiveness.
Each Chapter starts with specific learning objectives, learning outcomes
and detailed description of the concepts with the related figures, equations for
the easy and deep understanding of the subject matter. Further, several solved
problems and self-evaluation exercises are given in each Chapter to motivate the
students for self-learning and to develop self-confidence in the subject matter.
iii
www.tntextbooks.in
iv
www.tntextbooks.in
CONTENTS
Chapter 3 C
ommunication Devices and their
42-60 July
Technologies
Chapter 9 C
omputer Maintenance and
148-167 November
Troubleshooting with Safety Practices
Chapter 10 N
etwork Maintenance-Troubleshooting
168-189 December
and IT Securities
Practical 193-250
E-book Assessment
v
www.tntextbooks.in
BASIC ELECTRONICS
ENGINEERING
Theory
vi
www.tntextbooks.in
01
CHAPTER
Digital Circuit Applications
learning objective
The students can understand the 3. Encoder and Decoder
following in this chapter 4. Multiplexer
1. Construction and working of Basic 5. Flip-flops
Gates & Combinational Gates and 6. Counters and Registers
their applications.
2. Classification of Logic circuits
1
www.tntextbooks.in
1.1 Basic Logic Gates signal. The two input signal makes 4(22)
combination of outputs.
The three basic logic gates that makeup all
digital circuits are In OR gates, the output is high
when any one of the input is in high level.
i) OR gate, ii) AND gate and iii) NOT gate.
Conversely, the output is low when all the
The following points may be noted inputs are in low level.
about logic gates.
1 A binary ‘0’ represents 0V and binary 1.1.2 AND Gate
‘1’ represents +5V. It is common to An AND gate has two or more inputs and
refer to binary ‘0’ as LOW input or one output. An AND gate performs logical
output and binary ‘1’ as HIGH input multiplication. In an AND gates, the inputs
or output. A,B,C, etc., produce the output as A.B.C.
2. A logic gate has only one output and etc. The symbol and the truth table of two
the output will depend upon the input AND gate are shown in Figure 1.2.
input signals and the type of gates.
A
3. The operation of a logic gate may Y = A.B
be described either by truth table or B
Boolean algebra.
FIGURE 1.2 Symbol and Truth Table of AND Gate
B
Y = A •Β The NOR–gate is derived from the
combination of NOT-OR gate. It is nothing
A but complemented output of OR gate. The
Y = A •Β
B standard logic symbols for 2-input NOR
gate is shown in Figure 1.5.
FIGURE 1.4 Symbol and Equivalent circuit of
2-input NAND gate
CHAPTER 01 Digital Circuit Applications 3
www.tntextbooks.in
A B
AB BA
B A
X X
A
A
AC
X = A(B+C) C
X = AB+AC
4. A · 1 = A 10. A + B = B + A Combinational
logic circuit
5. A + A = A 11. A ∙ B = B ∙ A Positive
feedback
Previous
6. A + A = 1 12. A ∙ (B +C ) = A ∙B + state
A∙C) Memory Clock
signal
Adder. When we add two binary numbers, From the truth table a half-adder,
we start with the least significant column. the logical equations for CARRY and SUM
This means that we have to add two bits can be written as,
with the possibility of a carry. The circuit
CARRY C = A . B
of a half-adder is shown Figure 1.16(a).
Note in the Figure that the output sum is SUM S = A ⋅ B + A ⋅ B = A ⊕ B
denoted by the mathematical symbol Σ.
This Circuit is called as half-adder,
∑= A B= AB + AB because it cannot accept a CARRY-IN
from previous additions. This is the
reason that half-adder circuits can be used
A
Cout=AB for binary additions of lower cost bit only.
B
For higher order columns, we use 3-input
FIGURE 1.15(A) Half-Adder adder called full-adder.
A Sum 1.5.2 Full Adder
Input bits Outputs
Full adder circuit is nothing but two half–
B Cout Carry
adder circuits connected to an OR gate. As
we seen in half -adder circuit, it has only
FIGURE 1.15(B) Logic symbol for a half-adder two inputs and there is no provision to add
CARRY coming from the lower-bit order
It consists of an EX-OR gate and an AND when multi-bit addition is performed. For
gate. The output of an EX-OR gate is this purpose, we use a logic circuit, which
called SUM, while the output of the AND can add three bits.
gate is called as CARRY. As the AND gate A AB
generates a high output only, when both B
= (A B) Cin
Cin
inputs are high i.e., the carry as 1. When
both inputs of EX-OR gate is high or low (A B)Cin
the output i.e., the sum is low (0). When Cout = AB+(A B)Cin
either of the input is high the output is AB
high. Thus its the binary addition. The
logic symbol of Half-adder is shown in (a) Complete logic circuit for a full-adder
Figure 1.15 (b). Truth table for a half
adder is given in the Table 1.9. A
Input bits Sum
TABLE 1.9 Truth-Table of Half-Adder B
A B Σ C out Cout Output carry
0 0 0 0 Input carry Cin
0 1 1 0
(b) Logic symbol of full-adder
1 0 1 0
(each half-adder is enclosed by a shaded area)
1 1 0 1
Σ = sum FIGURE 1.16 A simple circuit of full adder (each
C out = output carry half-adder is enclosed by a shaded area)
A and B = input variables (operands)
The third-bit is the CARRY from a numbers are to be added, there can be full-
lower column. This shows that we used a adder circuit for every column to perform
logic circuit with 3-inputs and 2-outputs. the addition. The number of full-adder
Such a circuit is called full-adder. Hence, in a parallel binary adder depends on the
full adder may be defined as logic circuits number of bits present in the number for the
that add 3-bits, i.e., two bits to be added addition. If 4-bit numbers are to be added,
and CARRY-bit from lower-bit order, which then there will be 4-full adder in the parallel
results in SUM and CARRY. Figures 1.16(a) binary adder. The parallel binary adder can
and (b) show the logic circuit and logic be designed with the help of basic logic
symbol of full-adder circuit, respectively. It gates. The sub-module in the logic circuit
has two inputs called A and B plus a third will resemble the logic gate of half-adder
input (CIN), called the CARRY IN and two and full-adder to understand it clearly. Let
outputs SUM and CARRY OUT(COUT). us put light on designing and working of the
Truth table of full-adder for all 2-bit parallel binary adder.
possible inputs/outputs is given in Table 1.10
Logic Circuit of 2-Bit parallel
and can be easily checked for its validity.
From the Figure 1.16(a), we can observe Binary Adder
that the output CARRY is high when two or The 2-Bit parallel binary adder can be
more number of inputs are high. Yet another designed with the help of Ex-OR gate and
output SUM will get high output, when an AND gate. If you carefully observe the logic
odd number of inputs are high. This can be circuit of 2-bit parallel binary adder, you can
verified from Table 1.10. The full adder can notice that 2-full adder circuits are connected
do more than a million additions per second. in a parallel manner. Now, we easily guess
and understand the working of this.
TABLE 1.10 Truth Table of Full-Adder Carry bit from
A B Cin Σ C out right column
1
0 0 0 0 0 11
0 0 1 1 0 In this case, the +01
0 1 0 1 0 carry bit from 100
second column
0 1 1 0 1 becomes a sum bit.
1 0 0 1 0
FIGURE 1.17(a) Addition of 2 parallel bits
1 0 1 0 1
A2 B2 A1 B1
1 1 0 0 1
1 1 1 1 1
Cin = input carry, sometimes designated as CI
C out = output carry, sometimes designated as Co 0
Σ = sum A B Cin A B Cin
A and B = input variables (operands)
FA2 FA1
Cout Cout
Parallel Binary Adder
The parallel binary adder is a combinational (MSB) 3 2 1 (LSB)
circuit of various full-adders in parallel
structure. When more than one 1-bit FIGURE 1.17(b) Block Diagram of 2-bit Parallel
Adder
A
Significance of Parallel Binary D
B A
Adder
With the help of full-adder, we cannot
Bo B
add numbers of more than 1-Bit. As the
number of bits increases in a number, the
FIGURED1.19 (A) Half Subtractor Circuit
+DOIVXEWUDFWRUFLUFXLW E 6
column of addition also increases. A full-
adder can Aadd only one column, thus for
D
each columnB we used a full-adder. This A D
combined design of all full adder results Half
subtractor
in a combinational circuit, which is called B Bo
Bo
parallel binary adder.
FIGURE 1.19 (B) Symbol of Half Subtractor
D +DOIVXEWUDFWRUFLUFXLW E 6\PERORI+DOI6XEWUDFWRU
10 CHAPTER 01 Digital Circuit Applications
www.tntextbooks.in
TABLE 1.11 T
ruth Table of Half- FIGURE 1.20 (A) Symbol of Full-Subtractor
Subtractor
Input Output
A 0
A B Difference Borrow
0 0 0 0 B 0 0
Difference
0 1 1 1 C 0
1 0 1 0 borrow
0
1 1 0 0
1.6 Comparators
A0
LSBs G1
The basic function of comparator is to B0
A=B
compare the magnitudes of two binary HIGH indicates
quantities to determine the relationship of MSBs
A1
B1
G2
quality.
1.6.1 Equality
FIGURE 1.22 Logic diagram for equality
The Exclusive NOR gate can be used as comparison of two 2-bit numbers
a basic comparator, because its output is
In order to produce a single output
0, if the two input bits are not equal and
indicating an equality or inequality of two
1, if the input bits are equal. Figure 1.21
numbers, an AND gate can be combined
shows the Exclusive-NOR gate as 2-bit
with XNOR gates as shown in Figure 1.22.
comparator.
The output of each Exclusive-NOR gate
is applied to the AND gate input. When
0 1 TheExclusive-NOR
input bits
1 The input bits the two input bits for
0 each
0 are equal 0 are not equal
gates are equal, the corresponding bits of
the numbers are equal and a 0 appears
on at least one input of the AND gate
0 1 The input bits
0 The input bits to produce a 1 on 1its output. Thus, the
1 are not equal 1output of the AND gateare equal
indicates equality
(1) or inequality (0) of the two numbers.
1 The following example clearly explains
put bits 0 The input bits
ual 0 are not equal this operation for two specific cases.
Activity
put bits 1 The input bits
1 are equal Repeat the process for binary inputs of 01
ot equal 1 and 10.
when number A is greater than number B indication must take precedence. This can
(A > B) and an output that indicates when be explained through an example.
number A is less than number B (A < B),
as shown in Figure 1.23. Activity
What are the outputs when A3A2A1A0 =
COMP 1001 and B3B2B1B0 = 1010?
A0 0
A1
A 1.7 Encoders
A2 A>B
Encoder is a device, circuit, transducer,
A3 3
A=B software program, algorithm or person
B0 0 that converts information from one format
B1 A<B or code to another for the purpose of
B standardisation or compression. An encoder
B2
is a combinational logic circuit that essentially
B3 3 performs a “reverse” decoder function. An
encoder accepts an active level on one of its
FIGURE 1.23 Logic symbol for a 4-bit comparator inputs representing a digit, such as a decimal
with inequality operation or octal digit and converts it to a coded
output, such as BCD or binary. Encoders can
To determine the inequality of binary also be devised to encode various symbols
numbers A and B, we first examine the and alphabetic characters. The process of
highest order bit in each number. The converting from familiar symbols or numbers
following conditions are possible: to a coded format is called encoding.
1. If A3 = 1 and B3 = 0, number A is greater
than number B. 1.7.1 Decimal-to-BCD Encoder
2. If A3 = 0 and B3 = 1, number A is less This type of encoder has ten inputs. One
than number B. for each decimal digit and four outputs
3. IF A3 = B3, then you must examine corresponding to the BCD code as shown
the next lower bit position for an in the Figure1.24. This is a basic 10-line-
inequality. to-4-line encoder.
DEC/BCD
These three operations are valid 0
for each-bit position in the numbers. The 1
general procedure used in a comparator is 2
3 1
to check for an inequality in a bit position, Decimal 4 2 BCD
starting with highest order bits (MSBs). input 5 4 ouput
6 8
When such an inequality is found,
7
the relationship of the two numbers is 8
established and any other inequalities in 9
(LSB)
1 A0
1 A1
0 A1
1 X = A3A2A1A0
0 A2
1 A2
1 A3
(MSB)
(a) (b)
FIGURE 1.26 Decoding logic for the binary code 1001 with an active-HIGH output
unique outputs. They are used in wide AND can be used as the basic decoding
variety of applications, including data element because it produces a HIGH output
demultiplexing, seven segment displays only when all of its inputs are HIGH.
and memory address decoding. Therefore, we must make sure that all of
the inputs to the AND gate are HIGH when
1.8.1 Basic Binary Decoder the binary number 1001 occurs. This can
We need to determine when a binary 1001 be done by inverting the two middle inputs
occurs on the inputs of a digital circuit. An (the 0s), as shown in Figure 1.26.