Unit 4 Unit IV Digital Electronics
Unit 4 Unit IV Digital Electronics
Unit 4 Unit IV Digital Electronics
proceeding:
This document is confidential and intended solely for the educational purpose
of RMK Group of Educational Institutions. If you have received this document
through email in error, please notify the system manager. This document
contains proprietary information and is intended only to the respective group /
learning community as intended. If you are not the addressee you should not
disseminate, distribute or copy through e-mail. Please notify the sender
immediately by e-mail if you have received this document by mistake and
delete this document from your system. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any action in
reliance on the contents of this information is strictly prohibited.
Basic Electrical
Electronics and
Instrumentation
Engineering
Date 22.11.2021
4
1. TABLE OF CONTENTS
1 Course Objectives 6
2 Pre Requisites 8
3 Syllabus 10
4 Course outcomes 12
6 Lecture Plan 18
8 Lecture Notes 23
12 Assignments 132
5
COURSE
OBJECTIVES
1
6
1. COURSE OBJECTIVES
7
PREREQUISITES
2
8
2. PREREQUISITES
+2 LEVEL
+2 LEVEL
9
SYLLABUS
3
10
3. SYLLABUS
LTPC3003
Basic circuit components - Ohms Law - Kirchhoff’s Law – Instantaneous Power – Inductors
- Capacitors – Independent and Dependent Sources - steady state solution of DC circuits
- Nodal analysis, Mesh analysis- Introduction to AC circuits – waveforms and RMS value –
power and power factor, single phase and three-phase balanced circuits.
11
COURSE OUTCOMES
4
12
4. COURSE OUTCOMES
9
CO- PO/PSO
MAPPING
5
14
PROGRAM OUTCOMES (POS)
15
PROGRAM SPECIFIC OUTCOMES (PSOs)
16
PROGRAM SPECIFIC OUTCOMES (PSOS)
Develop the process for extraction of oil from seeds, plastics and analyse their
properties based on the concepts of thermal science.
Design and implement product life cycle management for digital manufacturing
process.
Utilize composite materials to develop quality consumer goods at affordable price.
12
5. CO- PO/PSO MAPPING
SUBJECT CODE : 21GE102
COURSE NAME : BASIC ELECTRICAL, ELECTRONICS AND
INSTRUMENTATIONENGINEERING
Programme
Program Outcomes Specific
COs Outcomes
1 2 3 4 5 6 7 8 9 10 11 12 1 2 3
1 2 1 2 1 1 - - - - - - - 1 -
2 2 1 2 1 1 - - - - - - - - 1 -
3 2 1 2 1 1 - - - - - - - - - -
4 1 2 2 1 1 1 - - - - - - - - -
5 1 2 2 1 1 - - - - - - - - 1 -
10
6
LECTURE PLAN
18
UNIT IV DIGITAL ELECTRONICS 9 Hours
Contents
Digital circuits
Flip flops
Registers
counters
D/A converters
A/D converters
19
Lecture Plan
No.
Actual Taxon
Sl. of Propose Pertaini Mode of
Topic Lecture omy
No. perio d Date ng CO Delivery
Date Level
ds
Binary number
1 system 1 CO4 K2
B o o l e a n
a l g e b r a
2 1 CO4 K2
theorems
Digital circuits
3 1 CO4 K2
Introduction to Online
classes,
sequential
4 1 CO4 K2 YouTube
circuits video,
Google
classroom
Flip flops
5 1 CO4 K2
Registers
6 1 CO4 K2
counters
7 1 CO4 K2
D/A converters
8 1 CO4 K2
20
7
ACTIVITY BASED
LEARNING
21
7. Activity based learning
Basic level
https://www.digitaltechnologieshub.edu.au
1.Open Input
23
Introduction to Digital System
We are in the digital era and digital systems are used in the industries, internet,
medical treatment, space applications, communication, and all possible areas of
automation.
A few examples of digital systems start with a basic calculator to digital computer,
digital telephones, digital media, digital money, digital control systems, home
appliances, etc.
A digital system is an interconnection of digital modules to give a required output
or to do a specified operation.
A basic knowledge of digital circuits and their logical function is required to
understand the operation of each digital module.
Digital System manipulates discrete elements of information represented in binary
form.
Discrete elements of information are represented with groups of bits called binary
codes.
The signals in most present‐day electronic digital systems use just two discrete
values 0 and 1 represented by a binary digit, called a bit.
The natural signals generated by the nature are mostly continuous in nature like
Temperature, Voltage, Current (can be converted to discreet)
The levels of the hardware system from a CPU to a single transistor layout is
shown below.
The design level, logical representation and the elements that form the circuit at
each level are also shown below.
1. Number systems
1.1 Introduction:
4. Radix / Base: The number of unique digits (including Digit 0) used to represent
the numbers in a positional number system is called radix or base of a number
system.
(or)
The number of values that a digit (one character) can assume in a positional
number system is called radix or base of a number system.
5. The largest value of a digit is always one less than radix / base of a number
system.
b. The sum of all digits multiplied by their weight gives the total number
being represented.
7. Most Significant Digit / Bit: The leftmost digit / bit which has the greatest
weight is called Most Significant Digit / Bit (MSD / MSB).
8. Least Significant Digit / Bit: The rightmost digit / bit which has the least weight
is called Least Significant Digit / Bit (LSD / LSB).
1.2 Classification of Number System:
c. Each digit in the Decimal Number System will assume 10 different values
from 0 to 9.
a. If larger values than 9 are needed, extra columns are added to the left.
Each column value is now ten times the value of the column to its right.
For example, the decimal value 47 is written 47 (4 tens + 7 ones).
c. Each digit in the Binary Number System will assume 2 different values
either 0 or 1.
a. If larger values than 1 are needed, extra columns are added to the left.
Each column value is now two times the value of the column to its right.
For example, the decimal value 2 is written 10 in binary (1 twos + 0
ones).
c. Each digit in the Octal Number System will assume 8 different values
from 0 to 7.
a. If larger values than 7 are needed, extra columns are added to the left.
Each column value is now eight times the value of the column to its right.
For example, the decimal value 27 is written 33 in octal (3 eights + 3
ones).
c. Each digit in the Octal Number System will assume 16 different values
from 0 to 9, A to F.
a. If larger values than F are needed, extra columns are added to the left.
Each column value is now sixteen times the value of the column to its
right. For example, the decimal value 68 is written as 44 in hexadecimal
(4 sixteens + 4 ones).
Remember!!!!
1.3.2 Other Number System to Decimal Conversion:
Express in powers of base of other number system.
Binary Decimal
MSB LSB
1 1 0 1 13 (+)
1 1 1 1 15
1 1 1 0 0 28 Ans
Binary subtraction is also carried out in the same way as decimal number
are subtracted. Suppose that 1001 is subtracted from 1110
Binary Decimal
MSB LSB
1 1 1 1 14 (+)
1 0 0 1 9
0 1 0 1 5 Ans
x 1 1 0 0
0 0 0 0
0 0 0 0
1 1 0 1
1 1 0 1
1 0 0 1 1 1 0 0
Thus the answer is 10011100.
1 0 .1 2.5
110 1 1 1 1 .0 6 15.0
1 1 0 12
1 1 0
30
1 1 0
30
0 0 0 0
101011 43 in Binary
101011 +2’s complement of 21
= 1010110 (Ignore Carry)
After ignoring carry, the answer is 0 1 0 1 1 0
If carry is present. The answer is positive.
For Subtraction using 2’s complement , Ignore carry.
Ans =+22
Subtraction of largest number from smallest number using 2’s
complement.
Ex: 2) 21-43
Soln:
21 in Binary 010101
43 in Binary 101011
2’s complement of 43 = 1’s complement of 43 +1
= 010100 +1 =010101
010101 21 in Binary
010101 + 2’s complement of 43
= 101010 .
There is no carry. Answer is negative.
Ans = -(2’s complement 101010)= -(010101 +1) = -010110
Ans =-(010110) =-22
3. Binary Codes
In the coding, when numbers, letters or words are represented by a specific group
of symbols, it is said that the number, letter or word is being encoded. The group
of symbols is called as a code.
The digital data is represented, stored and transmitted as group of binary bits.
This group is also called as binary code. The binary code is represented by
number as well as alphanumeric letter.
Binary codes make the analysis and designing of digital circuits easier since only 0 &
1 are being used.
Weighted Codes
Non-Weighted Codes
Alphanumeric Codes
Weighted binary codes are those binary codes which obey the positional weight
principle. Each position of the number represents a specific weight. Several systems
of the codes are used to express the decimal digits 0 through 9. In these codes each
decimal digit is represented by a group of four bits.
3.1.2 Non-Weighted Codes
In this type of binary codes, the positional weights are not assigned. The examples
of non-weighted codes are Excess-3 code and Gray code.
Excess-3 code
The Excess-3 code is also called as XS-3 code. It is non-weighted code used to
express decimal numbers. The Excess-3 code words are derived from the 8421 BCD
code words adding 00112 or 3 10 to each code word in 8421. The excess-3 codes
are obtained as follows −
Gray Code
It is the non-weighted code and it is not arithmetic codes. That means there are no
specific weights assigned to the bit position. It has a very special feature that, only
one bit will change each time the decimal number is incremented as shown in fig. As
only one bit changes at a time, the gray code is called as a unit distance code. The
gray code is a cyclic code. Gray code cannot be used for arithmetic operation.
Application of Gray code
A shaft position encoder produces a code word which represents the angular
position of the shaft
In this code each decimal digit is represented by a 4-bit binary number. BCD is a
way to express each of the decimal digits with a binary code. In the BCD, with four
bits we can represent sixteen numbers 0000to1111. But in BCD code only first ten of
these are used 0000to1001. The remaining six code combinations i.e. 1010 to 1111
are invalid in BCD
3.2.1 BCD Addition
BCD is a numerical code, and many applications require that arithmetic operations
be performed. Addition is the most important operation because the other three
operations like subtraction, multiplication and division can be accomplished using
addition. The rule for adding two BCD numbers is given below.
RULES FOR BINARY ADDITION
1. If a four-bit sum is equal to or less than 9, it is a valid BCD number.
2. If a four-bit sum is greater than 9, or if a carry-out of the group is generated, it is
an invalid result. Add 6 to the four-bit sum in order to skip the six invalid states
and return the code to 8421. If a carry results when 6 is added, simply add the
carry to the next four-bit group.
1) Add the following BCD numbers 1001 and 0100
1 0 0 1 9
+ 0 1 0 0 + 4
1 1 0 1 Invalid BCD 13
+ 0 1 1 0 Add 6
0 0 0 1 0 0 1 1 valid BCD
1 3 valid BCD
Ans: 00010011
2) Add the following BCD numbers 00011001 and 00010100
0 0 0 1 1 0 0 1 1 9
+ 0 0 0 1 0 1 0 0 + 1 4
0 0 1 0 1 1 0 1 Invalid BCD 3 3
+ 1 1 0 Add 6
0 0 1 1 0 0 1 1 valid BCD
3 3
Ans: 00110011
Advantages of BCD Codes
The addition and subtraction of BCD have different rules. The BCD arithmetic is little
more complicated.
BCD needs more number of bits than binary to represent the decimal number. So
BCD is less efficient than binary.
A binary digit or bit can represent only two symbols as it has only two states '0' or
'1'. But this is not enough for communication between two computers because
there we need many more symbols for communication. These symbols are
required to represent 26 alphabets with capital and small letters, numbers from 0
to 9, punctuation marks and other symbols.
The alphanumeric codes are the codes that represent numbers and alphabetic
characters. Mostly such codes also represent other characters such as symbol and
various instructions necessary for conveying information. An alphanumeric code
should at least represent 10 digits and 26 letters of alphabet i.e. total 36 items.
The following three alphanumeric codes are very commonly used for the data
representation.
American Standard Code for Information Interchange ASCII.
Extended Binary Coded Decimal Interchange Code EBCDIC.
Five bit Baudot Code.
ASCII code is a 7-bit code whereas EBCDIC is an 8-bit code. ASCII code is more
commonly used worldwide while EBCDIC is used primarily in large IBM computers.
4. Boolean Algebra
5.1 (a) Circuit diagram of an OR gate, (b) Electrical equivalent of an OR gate, (c)
Logic symbol
Table 5.1 Truth table for the two-input OR gate
Digital circuits
The electrical equivalent circuit of an AND gate is shown in Fig. 5.2 (b) where two
switches A and B are connected in series. If both A and B are closed, then only
output will result. Logic symbol of the AND gate is shown in Fig. 2(c). The logic
operation of the two input AND gate is described in the truth table shown in
Table.5.2.
Fig. 5.2 (a) Circuit diagram of an AND gate, (b) Electrical equivalent of an AND gate, (c)
Logic symbol
The NOT gate performs a basic logic function called inversion or complementation.
The purpose of the gate is to change one logic level to opposite level. It has one
input and one output. When a high level is applied to an inverter input, a low level
will appear at its output and vice-versa.
The operation of the circuit can be explained as follows. When a high voltage is
applied to the base of the transistor, base current increases and the transistor is
saturated. The transistor now acts as a closed switch and conducts heavily. Thus
the output voltage is logic 0. On the other hand, when a low voltage is applied at
the base, the transistor is cut-off due to very low or no base current. Now, the
transistor can be considered as an open switch, with no current flowing through it.
The output is now clamped to the supply voltage. The transistor when operated
between cut-off and saturation will act as a switch.
As shown in Fig. 5.3(a), A represents the input and y represents the output. If the
input is high, the transistor is in ON state and the output is low. If the input is low,
the transistor is in OFF state and the output is high. The symbol for the inverter is
shown in Fig. 3(b). The truth table is given in Table. 5.3
Fig. 5.3 (a) Circuit diagram of an INVERTER gate (b) Logic symbol
The NAND gate is a very popular logic function because it is an universal function;
that is, it can be used to construct an AND gate, an OR gate, and INVERTER or
any combination of these functions. Figure.5.5(a), 5.5(b) and 5.5(c) show how
NAND gates can be connected to realize various logic gates.
NOR is a contraction of NOT–OR. It has two or more inputs and only one output.
Only when all the inputs are low, the output is high. If any of the inputs is high,
the output is low. The logic symbol for the NOR gate is shown in Fig. 6.
NOR is a contraction of NOT–OR. It has two or more inputs and only one output.
Only when all the inputs are low, the output is high. If any of the inputs is high,
the output is low. The logic symbol for the NOR gate is shown in Fig. 5.6. The
truth-table for the NOR gate is shown in Table 5.5.
Table 5.5 Truth table for NOR gate
The NOR gate is also a very popular logic function because it is also an universal
function; that is, it can be used to construct an AND gate, an OR gate, and
INVERTER or any combination of these functions. Figure 5.7 shows how NOR
gates can be connected to realize various logic gates.
An Exclusive-OR Gate is a gate with two or more inputs and one output. The
output of a two-input Ex-OR gate assumes a HIGH state if one and only one input
assumes a HIGH state. This is equivalent to saying that the output is HIGH if
either input A or input B is HIGH exclusively, and low when both are 1 or 0
simultaneously. The logic symbol for the Ex-OR gate is shown in Fig. 5.8 (a) and
the truth table for the Ex-OR operation is given in Table 5.8.
The truth table of the Ex-OR gate shows that the output is HIGH when any one,
but not all, of the inputs is at 1. This exclusive feature eliminates a similarity to
the OR gate. The Ex-OR gate responds with a HIGH output only when an odd
number of inputs is HIGH. When there is an even number of HIGH inputs, such as
two or four, the output will always be LOW. From the truth table of a 2-input Ex-
OR gate, the Ex-OR function can be written as .
The above expression can be read as Y equals A Ex-OR B. Using the above
expression, a 2-input Ex-OR gate can be implemented using basic gates like AND,
OR and NOT gates as shown in Fig. 5.8.
Fig 5.8.(a) Ex-OR gate Logic symbol Fig 5.8. (b) Ex-OR gate 0Using AND-
OR-NOT gates
=
Table 5.9 Truth table of 2-input Ex-NOR gate
An important property of the Ex-NOR gate is that it can be used for bit
comparison. The output of an Ex-NOR gate is 1 if both the inputs are similar, i.e.
both are 0 or 1; otherwise, its output is 0. Hence, it can be used as a one-bit
comparator. It is also called a coincidence circuit.
Solution: From the given logic circuit, the expression for Z can be
written as
6.1Introduction
1. In digital logic, the inputs and output of a function are in the form of binary numbers
(boolean values) i.e., the values are either zero (0) or one (1). Therefore, digital logic is
also known as ‘Boolean logic’.
3. The output boolean variable of a digital signal can be expressed in terms of input
boolean variables which forms the ‘Boolean Expression’.
2. The terms “product” and “sum” have been borrowed from mathematics to describe
AND and OR logic operations.
3. Note: If the number of input variables are n, then the total number of combinations in
n
Boolean algebra is 2 .
1. It is one of the ways of writing a boolean expression, formed by adding (OR operation)
the product terms.
Eg: F(A,B,C) = AB + BC + AC
5. Standard SOP / Canonical SOP: SOP is said to be a Standard SOP / Canonical SOP, if
each product term consists of all literals in either complemented form or
uncomplemented form.
7. SOP Form is obtained by writing one product term for each input combination that
produces an output 1.
6.3.2 Product of Sums (POS) Form :
2. Sum Term: Is defined as either a literal or a sum of literals (also called as disjunction). It
is also defined as a group of literals that are ORed together.
5. Standard POS / Canonical POS: POS is said to be a Standard POS / Canonical POS, if
each sum term consists of all literals in either complemented form or
uncomplemented form.
6. Maxterms (ΠM ): Is defined as each individual sum term in Standard POS / Canonical
POS.
0 Variable
1 Complement of a Variable
7. POS Form is obtained by writing one sum term for each input combination that
produces an output 0.
7. ADDERS
Truth Table:
Sum, S=Ʃm(1,2)
Carry, C=Ʃm(2)
C=AB
Logic Diagram:
7.2 FULL ADDER
A full adder is a combinational circuit that forms the arithmetic sum of three bits.
It consists of three inputs and two outputs.
Truth Table:
Sum, S=Ʃm(1,2,4,7)
Carry Out, Cout=Ʃm(3,5,6,7)
Two Half Adders can be connected as shown below to produce full adder output.
Difference, D=Ʃm(1,2)
Borrow ,B=Ʃm(1)
Logic Diagram:
7.4 Full Subtractor:
Full Subtractor is a combinational logic circuit used for the purpose of subtracting
two single bit numbers.
It also takes into consideration borrow of the lower significant stage.
Thus, full subtractor has the ability to perform the subtraction of three bits.
Full subtractor contains 3 inputs and 2 outputs (Difference and Borrow) as shown-
Truth Table:
Block Diagram:
Fig8.2 Truth table of 2:1 MUX Fig 8.3Logic diagram of 2:1 MUX
From Truth table 8.2, we can directly write the Boolean function for output, f as
We can implement this Boolean function using Inverters, AND gates & OR gate.
The Logic diagram of 2x1 multiplexer is shown in the figure.
8.3 4:1 MUX
4x1 Multiplexer has four data inputs I3, I2, I1 & I0, two selection lines s1 & s0 and
one output Y. The block diagram of 4x1 Multiplexer is shown in the following
figure.
Fig 8.5 Truth table of 4x1 MUX Fig 8.6 Logic diagram of 4:1 MUX
From Truth table, we can directly write the Boolean function for output, Y as
We can implement this Boolean function using Inverters, AND gates & OR gate.
The Logic diagram of 4x1 multiplexer is shown in the figure.
9.1 Demultiplexer
1:2 Demultiplexer
1:4 Demultiplexer
1:8 Demultiplexer
1:16 Demultiplexer
9.2 1 to 2 Demultiplexer
It consists of 1 data input, 1 Selection line and 2 output bits. Y0 and Y1 are the
two output bits.
Block Diagram:
Logic Diagram:
It consists of 1 data input, 2 Selection lines and 4 output bits. Y0 ,Y1 , Y2 and Y4 are the
four output bits.
Block Diagram:
Output:
Y0 = Din S1 ’ S0 ’
Y1 = Din S1 ’ S0
Y2 = Din S1 S0 ’
Y3 = Din S1 S0
Logic Diagram: 1 to 4 Demultiplexer
Code converters are logic circuits that implement the number conversion from one
binary code to another.
Binary-to-Gray code
Gray-to-Binary code
BCD-to-Excess-3
Excess-3-to-BCD
Binary-to-BCD
BCD-to-binary
Implement the simplified Boolean expression with minimum number of logic gates.
Gray code is a reflected code with a value of a single bit between successive
numbers
Truth table for the Binary-to-Gray code converter with Binary code as input and
Gray Code as output
Truth Table
From the truth table, the logic expression for the binary code outputs obtained
are:
Logic Diagram:
The logic diagram for the output binary code expressions can be implemented
using XOR gates
10.4 BCD to Excess-3 Converter
Excess-3 code is a modified binary code derived from the BCD code by adding 3
to each coded number.
Truth Table:
The logic expression for the Excess-3 code outputs from the truth table are:
The logic diagram for the output expressions obtained can be implemented as
follows:
11. DECODER
11.1 DECODER
• A Decoder is a combinational circuit converts binary information from n input lines
to 2 n unique output lines. If n bit coded information has some unused
combinations , the decoder may have fewer than 2n outputs.
• 2 to 4 decoder
• 3 to 8 decoder
• 4 to 16 decoder etc.,
3 to 8 line decoder
Three to eight line decoder is also called as binary to octal converter. The
input variables represents a binary number and the output represents the eight
digits of a number in octal in the octal system.However, a three-to-eight-line
decoder can be used for decoding any three-bit code to provide eight outputs, one
for each element of the code.
11.3 Three to Eight line Decoder
X Y Z D0 D1 D2 D3 D4 D5 D6 D7
0 0 0 1 0 0 0 0 0 0 0
0 0 1 0 1 0 0 0 0 0 0
0 1 0 0 0 1 0 0 0 0 0
0 1 1 0 0 0 1 0 0 0 0
1 0 0 0 0 0 0 1 0 0 0
1 0 1 0 0 0 0 0 1 0 0
1 1 0 0 0 0 0 0 0 1 0
1 1 1 0 0 0 0 0 0 0 1
A decoder provides the 2n minterms of n input variables . Since any Boolean function
can be expressed in sum-of-minterms form a decoder that generates the minterms
of the function, together with an external OR gate that forms their logical sum,
provides a hardware implementation of the function. In this way. any combinational
circuit with n inputs and m outputs can be implemented with an n to 2n line decoder
and m number of OR gates.
From the truth table of full adder minterms of sum and output carry are as follows
S(A,B,C) =∑m(1,2,4,7)
Cout(A,B,C)= ∑m(3,5,6,7)
INPUTS OUTPUTS
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
Output functions of encoder are
X=D4+D5+D6+D7
Y=D2+D3+D6+D7
Z=D1+D3+D5+D7
The encoder has the limitation that only one input can be active at any
given time. If two inputs are active simultaneously, the output produces an
undefined combination. Another ambiguity in the octal-to-binary encoder is that an
output with all O's is generated when all the inputs are 0; but this output is the
same as when Do is equal to 1. The discrepancy can be resolved by providing one
more output to indicate whether at least one input is equal to 1 .
Output depends not only on current input but also on past input values, e.g.,
design a counter
Need some type of memory to remember the past input values
Sequential Logic circuits remember past inputs and past circuit state.
Outputs from the system are “fed back” as new inputs With gate delay and wire
delay
The storage elements are circuits that are capable of storing binary information:
memory
The binary information stored in these elements at any given time defines the
state of the sequential circuit at that time.
Latches are “transparent” (= any change on the inputs is seen at the outputs
immediately when C=1).
Solution: use latches to create flip-flops that can respond (update) only on specific
times (instead of any time).
Latch: level-sensitive
Flip-Flop: edge-triggered
13.5 Difference between Latches and Flip Flops
13.6 SR Latch
The SR latch is a circuit with two cross-coupled NOR gates or two cross-coupled
NAND gates. It has two inputs labeled S for set and R for reset.
13.6.1 SR Latch ( using NOR Gates)
13.6.3Functional Table:
S R Q Q’ Remarks
0 1 0 1 Resets
1 1 0 1 Holds the
previous value
1 0 1 0 Sets
1 1 1 0 Holds the
previous value
13.7. FLIP –FLOPS
13.7.1 Types of Flip Flops
1. SR (Set-Reset) FF
2. JK FF
3.Delay/ Data (D) FF
4.Toggle (T) FF
13.8 SR Flip –Flop
13.8.1.Block Diagram: 13.8.2. Logic Diagram:
S R Q(t+1)
0 0 NC
0 1 0
1 0 1
1 1 X
13.9 JK Flip –Flop:
13.9.3.Characteristic Table:
J K Q(t) Q(t+1)
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 0
13.10 D Flip –Flop:
13..10.1.Block Diagram:
13.10.3.Characteristic Table:
D Q(t) Q(t+1)
0 0 0
0 1 0
1 0 1
1 1 1
13.11. T Flip –Flop:
13.11.1.Block Diagram:
13.11.3.Characteristic Table:
T Q(t) Q(t+1)
0 0 0
0 1 1
1 0 1
1 1 0
14. COUNTERS
In asynchronous counter, only the first flip-flop is externally clocked using clock
pulse while the clock input for the successive flip-flops will be the output from a
previous flip-flop.
As the data ripples between the output of one flip-flop to the input of the next, it
is called as Ripple Counter.
14.3 Design of Asynchronous Counter:
3-bit up counter
3 bit Down Counter
MOD-5 counter
4-bit up counter
14.4 Decade counter/ MOD-10 Counter/BCD Counter
The toggle flip-flop changes state when the clock input is applied, T = 1
The T-type flip-flop is not available commercially but can be constructed from a JK
flip-flop (or D-type flip-flop)
By connecting the J input with the K input and both to logic level “1”.
With J and K HIGH, the flip-flop changes state every time it is triggered at its
clock input. This clock input is now called the “toggle input” as the output
becomes “1” if it was “0”, and a “0” if it was “1”, that is it toggles.
The Data/Delay D-type flip-flop can just like the JK flip-flop be converted to
perform as a toggle flip-flop by connecting the Q output directly to the D-input
Truth Table
Output Waveform
Truth Table:
Output Waveform:
15. SHIFT REGISTERS
A shift register consists of a group of flip-flops arranged such that the output of
one feeds the input of the next so that the binary numbers stored shift from one
flip-flop to the next controlled by a clock pulse.
This implementation is a 4-bit shift register utilising D-type flip-flops. In this type
of circuit, the clock inputs of all the flip-flops connect to a common line, so they
receive clock inputs simultaneously.
With a D-type flip-flop, the value at the input D transfers to the output Q on
the rising edge of every clock pulse. Since they all receive the clock pulse
simultaneously, they all do this operation together on the rising edge.
A shift register “shifts” its output once every clock cycle
15.1 Types of Shift Register
In this type of shift register, the binary data is input, shifted and output serially in
either left or right direction one bit at a time under a common clock signal.
In this type of shift register, the binary data is input and shifted serially in either
left or right direction one bit at a time but is output parallel all together under a
clock signal.
In this type of shift register, the binary data is input all together in parallel mode
but is shifted and output serially in either left or right direction one bit at a time
under a clock signal.
In this type of shift register, the binary data is input as well as shifted and output
in parallel mode all together under a clock signal.
https://www.petervis.com/dictionary-of-digital-terms/4-bit-shift-register/4-bit-
shift-register-animation.html
15.2 Asynchronous Inputs
1. Preset -Sets the FF as 1
2. Clear -Clear the state of the FF
When SHIFT/LOAD is LOW, AND gates G1 ,G2, G3 are enabled, allowing the data
at parallel inputs i.e. A, B, C and D to the Data inputs of the respective flip-flops.
When SHIFT/LOAD is HIGH, AND gates G1, G2, G3 are disabled and the
remaining AND gates G4 G5 G6 are enabled, allowing the data bits to shift right
from one stage to the next.
The OR gates allow either the normal shifting operation or the parallel data-entry
operation, depending on which the AND gates are enabled by the level on the
SHIFT/LOAD input.
Data: 1101
Shift Register Truth Table
15.6 Parallel-in, Parallel-out (PIPO)
Block Diagram:
Data: 1101
Shift Register Truth Table
State Diagram:
15.8 Ring Counter:
Ring counter has one flip-flop for each state in its sequence
Initially, a 1 is preset into the first flip-flop
Remaining flip-flops are cleared
Block Diagram
Physical quantities such as pressure, temperature, and flow are analog in nature. There
are usually several steps in producing electrical signals which represent the values of
these variables and in converting the electrical signals to a digital form that can be used
for example, to drive an LED display or be stored in the memory of a microcomputer.
The first step involves a sensor which produces a current or voltage signal that is
proportional to the amount of the physical pressure, temperature, or other variable.
The signals from most sensors are quite small, so they must be amplified and perhaps
filtered to remove unwanted noise. Amplification is usually done with some type of
operational amplifier circuit. The final step is to convert the signal to a proportional binary
word with an analog-to-digital (A/D) converter.
A digital quantity will have a value that is specified as one of two possibilities such as 0 or
1, LOW or HIGH, true or false, and so on. Many systems accept a digital word as an input
signal and translate or convert it to an analog voltage or current. These systems are
called digital-to-analog converters. The digital word is presented in a variety of codes, the
most common being pure binary or binary-coded-decimal.
In practice, the voltage representation a digital quantity such as a may actually have a
value that is anywhere within specified ranges. For example, for TTL logic :
0V to 0.8V = logic 0
2V to 5V = logic 1
Any voltage falling in the range 0 to 0.8 V is given the digital value 0, and any voltage in
the range 2 to 5 V is assigned the digital value 1. The digital circuits respond accordingly
to all voltage values within a given range.
16.2 DIGITAL-TO-ANALOG CONVERTER
If 2 alone is closed, a current of 0.2 mA, will flow through 3 to the summing
point an on through into the output of the op amp. This current will produce a
voltage of –2 V on the output of the op amp. Likewise,
if switch the 3 is closed, a current of 0.4 mA, will flow into the summing point
and on through into the output of the op amp. This current will produce a
voltage of –4 V on the output of the op amp.
Now, suppose that switches 2 and 3 are both closed. The 0.2 mA current
through 3 will combine with the 0.4 mA current through 4 at the summing point
to produce a total current of 0.6 mA.
The output voltage is proportional to the sum of the currents produced by the
closed switches and is –6 V. The value of the four currents are related to each
other in the same way that the weights of binary digits are. Therefore, the output
voltage will be proportional to the binary word applied to the data inputs. 0
represents the least significant bit (LSB) because it produces the smallest current,
and 3 represents the most significant bit (MSB) because it produces the largest
current.Since there are four inputs, there are 16 possible input words, 0000 to
1111. These words produce output voltages ranging from 0 V for an input word of
0000 to –7.5 for an input word of 1111.
LADDER TYPE D/A CONVERTER :
Considering node N – 1 and assuming the MSB turned ON, the voltage at that
node will be − 3. Since the gain of the operational amplifier to node N–1 is
–3R/2R, the weight of the MSB becomes
3
0= -
3 2
=
2
Similarly, when the second most significant bit is ON and all others are OFF, the
output will 0 =+ 4 the third bit gives + and the LSB gives + The circuit uses a
8 2
negative reference voltage and gives a positive analog output voltage. If negative
binary numbers are to be converted, the sign-magnitude approach is used; an
extra bit is added to the binary word to represent the sign, and this bit can be
used to select the polarity of the reference voltage.
16.3 ANALOG-TO-DIGITAL CONVERTERS
It is often required that data taken in a physical system be converted into digital form.
Such data would normally appear in electrical analog form. For example, a temperature
difference would be represented by the output of a thermocouple, the strain of a
mechanical member would be represented by the electrical unbalance of a strain-gauge
bridge, etc. The need therefore arises for a device that converts analog information into
digital form. Two major characteristics of an A/D converter are
1.Resolution
2.Conversion time
The resolution of an A/D converter is determined by the number of bits in the output
word.
The conversion time for an A/D converter is simply the time it takes the converter to
produce a valid output word after it is given a ‘start conversion’ signal.
The simplest in concept and the fastest type of A/D converter is the parallel converter,
or flash type shown in Fig 16.3. The resistor voltage divider sets a sequence of voltages
on the reference inputs of the comparators as shown.
If the voltage on the ‘+’ input of a comparator is greater than the reference voltage on
its ‘–’ input, the output of the comparator will be high. In the circuit, the voltage to be
converted is applied to the + inputs of all the comparators in parallel, so the number of
comparators that have high on their outputs indicates the amplitude of the input
voltage.
(a)
Fig 16.3 (a) Flash Converter
(b)
(a)Circuit for flash type A/D converter, (b) Comparator output codes
An input voltage of between 0 and 1 V, for example, is less than the reference
voltage on any of the comparators, so none of the comparator outputs will be
high. If the input voltage is between 1.001 and 2 V, only the 1 output will be
high. For an input voltage between 2.001 and 3 V, both the 1 and 2 outputs
will be high.
Finally, for an input voltage greater than 3V, all the comparator outputs will be
high. Figure summarizes the comparator output code that will be produced by
input voltages between 0 and 4 V. The code produced on the outputs of the
comparators is not binary, but with a simple gate circuit it can be converted to the
binary equivalents shown in the rightmost column of Figure. To increase the
resolution, more comparators can be added. Seven comparators are required for
3-bit resolution and 15 comparators are required for 4-bit resolution . An N-bit
converter requires 2 – 1 comparators.
The dual-slope ADC architecture was truly a breakthrough in ADCs for high
resolution applications such as digital voltmeters (DVMs), etc. A simplified diagram
is shown in Figure 1, and the integrator output waveforms are shown in Figure 2.
The input signal is applied to an integrator; at the same time a counter is started,
counting clock pulses. After a predetermined amount of time (T), a reference
voltage having opposite polarity is applied to the integrator. At that instant, the
accumulated charge on the integrating capacitor is proportional to the average
value of the input over the interval T.
Fig16.5.Dual-slope ADC integrator output waveforms
125
9. Video Links
Video Links
https://drive.google.com/open?id=1qCP5dBvi1LZxd6S7FAUxt788iMmLLpbg
https://drive.google.com/open?id=1hrXWfXKWnhidFbnDPDtd75hQt9OzOG6O
LINKS TO ONLINE
LEARNING
MATERIALS
e-book reference
10
127
9. Lecture Notes
E-Books
1)Digital Fundamentals_ Global Ed - Thomas L Floyd:
https://www.amazon.in/Digital-Fundamentals-Pearson-Thomas-Floyd-
ebook/dp/B082D14QCQ#reader_B082D14QCQ
2)Digital Design - M. Morris Mano
https://www.pdfdrive.com/mano-digital-design-e39562802.html
https://www.pdfdrive.com/digital-design-3rd-edition-e186109995.html
11
129
11.QUIZ QUESTIONS:
1. What is/are the crucial function/s of memory elements used in the
sequential circuits?
a. Storage of binary information
b. Specify the state of sequential
c. Both a & b
d. None of the above
2. The behaviour of synchronous sequential circuit can be predicted by
defining the signals at ______.
a. discrete instants of time
b. continuous instants of time
c. sampling instants of time
d. at any instant of time
3. In Moore models, output are the function of only
a. present state
b. input state
c. next state
d. both a and b
132
12. Assignments
2)Design a combinational circuit with two inputs and four outputs. The output
binary number should be the square of the input binary number
4)The input to a combinational logic circuit is a 4 bit binary number .Design the
logic circuit with minimum hardware for the following (i)Output Y1=1, if input
binary number is 5 or less than 5 (ii)Output Y2=1,if input binary number is 9 or
more than 9
134
11. Part A Q & A (with K level and CO)
PART A
Questions and Answers Blooms COs
Level
K1 CO4
2. What is an Excess3 code?
The excess3 code is a non weighted code which is obtained from the
8-4-2-1 code by adding 3(0011) to each of the codes.
K1 CO4
3. What is the difference between analog and digital systems?
In a digital system the physical quantities or signals can assume only
discrete values, while in analog systems the physical quantities
or signals vary continuously over a specified range.
K1 CO4
4. Subtract X = 1010100 and Y = 1000011 using 2’s compliment
X = 1010100, 2’s complement of Y = + 0111101
Sum = 10010001, Discard end carry, X - Y = 0010001
K1 CO4
5. Subtract X = 1010100 and Y = 1000011, using 1’s complement.
X = 1010100, 1’s complement of Y = + 0111100
Sum = 10010000, End -around carry = + 1, X - Y = 0010001
= 13.625
K1 CO4
8. Convert 0.1289062 decimal number to its hex equivalent
0.1289062 x 16 = 2.0625
0.0625 x 16 = 1.0
Ans. = 0.21 16
K1 CO4
9. Convert decimal number 22.64 to hexadecimal number.
16/ 22 R-6
16/ 1 R-1
R-0
0.64 x 16 = 10.24
0.24 x 16 = 3.84
0.84 x 16 = 13.44
.44 x 16 = 7.04
Ans. = (16 . A 3 D 7)
K1 CO4
10. What are the two steps in Gray to binary conversion?
The MSB of the binary number is the same as the MSB of the gray code
number. To obtain the next binary digit, perform an exclusive OR
operation between the bit just written down and the next gray code bit.
K1 CO4
11. Convert gray code 101011 into its binary equivalent.
Gray Code : 1 0 1 0 1 1
Binary Code 1 1 0 0 1 0
K1 CO4
12. Convert (9 B 2 - 1A) H to its decimal equivalent.
N = 9 x 16 2 + B x 16 1 + 2 x 16 0 + 1 x 16 -1 + A (10) x 16 -2
K1 CO4
26. What are the two models of synchronous sequential circuits?
The two models of synchronous sequential circuits are,
Moore model
Melay model
K1 CO4
27. What is a ring counter?
A counter formed by circulating a ‘bit’ in a shift register whose serial
output has been connected to its serial input.
K1 CO4
28. What is Johnson counter?
It is a ring counter in which the inverted output is fed into the input. It is
also known as a twisted ring counter.
K1 CO4
29. What is meant by modulus of a counter?
By the term modulus of a counter we say it is the number of states
through which a counter can progress.
K1 CO4
30. Give the characteristic equation of a JK and T flip-flop.
JK characteristic equation Q(t+1)=JQ’+K’Q
T characteristic equation Q(t+1)=TQ’+T’Q
11. Part A Q & A (with K level and CO)
PART A
Questions and Answers Blooms COs
Level
31.What is a sequential circuit?
Flip flop is a device with two stable states 0 or 1. A flip flop maintains
its output state until directed by an input signal to change its state.
Since it can store 1-bit of information, it is also called 1-bit memory
unit.
34. What are the types of flip flops? K1 CO4
SR Flip flop
JK Flip flop
Delay (D) Flip flop
Toggle (T) Flip flop
35. What is a latch? K1 CO4
A latch is a memory device without clock signal.
.
36. What is a characteristic table? K1 CO4
K1 CO4
39. What is edge triggering in flip flops?
Edge triggering means that the flip flop changes state either at the
positive edge(rising edge) or at the negative edge (falling edge) of the
clock pulse and is sensitive to its inputs only at this transition of the
clock.
K1 CO4
40. What is meant by level triggering?
In level triggering the output of the flip-flop changes state or responds
only when
the clock pulse is present.
43. What is the difference between binary code and BCD? K1 CO4
Binary: Any distinct element can be represented by a binary code. No
limitation for the minimum or maximum number of elements
required for coding the element.
BCD: Only a decimal digit can be represented. It is a four bit
representation
K1 CO4
44. What is ripple or asynchronous counter?
Ripple counter is one in which first flip flop is clocked by the external
clock pulse and then each successive flip flop is clocked by the output of
previous flip flop.
K1 CO4
45. What is a gray code?
A gray code is a non weighted code which has the property
that the codes for successive decimal digits differ in exactly one bit.
47. What are the advantages and disadvantages of R-2R ladder DAC. K1 CO4
Advantages:
a) Easier to build accurately as only two precision metal films are
required.
b) Number of bits can be expanded by adding more sections of same
R/2R values.
Disadvantage:
In this type of DAC, when there is a change in the input, changes the
current flow in the resistor which causes more power dissipation which
creates non-linearity in DAC.
48. What is the advantage and disadvantages of flash type ADC? K1 CO4
142
12. Part B Qs (with K level and CO)
PART B
1.Expand A+BC’+ABD’+ABCD to canonical SOP K2 CO4
Y( A,B,C,D) = Σ(0,1,6,12,14,15)
10. Explain the working of two types ADC and DAC K2 CO4
12. Part B Qs (with K level and CO)
PART B
11. (i) Perform the following using BCD and Excess-3 K2 CO4
addition(205+569) (ii)Encode the binary word11010 into odd parity
Hamming code
12. Perform the following operation and express the answer in octal K2 CO4
form (756) 8-(437) 8+ (725) 16.
13. Perform each of the following computations using signed 8-bit K2 CO4
words in 1’s complement and 2’s complement binary arithmetic:
(i) (+95)10 + (63)10 (ii) (+42)10 + (-87)10
(iii) (-13)10 + (-59)10
(iv) (+38)10 + (-38)10
(v) (-105)10 + (-120)10
14. The state of a 12-cell register is 010110010111. What is its content K2 CO4
if it represents:
(a) 3 decimal digits in BCD.
(b) 3 decimal digits in Excess-3 code
(c) 3 decimal digits in 2421 BCD code
(d) 3 decimal digits in 84-2-1 BCD code.
15
SUPPORTIVE ONLINE
CERTIFICATION COURSES
145
13.Supportive online Certification courses (NPTEL, Swayam,
Coursera, Udemy, etc.,)
Swayam
Digital Circuits: https://swayam.gov.in/nd1_noc20_ee70/preview
Duration: 12 weeks, Start Date: 14 Sep 2020, End Date: 04 Dec 2020
Udemy
Digital Electric Circuits & Intelligent Electrical Devices
https://www.udemy.com/course/digital-electric-circuits-intelligent-electrical-devices/
Coursera
Build a Modern Computer from First Principles: From Nand to Tetris (Project-
Centered Course)
https://www.coursera.org/learn/build-a-computer
16
147
14. Real time Applications in day to day life and to Industry
DIGITAL CLOCK
A digital clock displays seconds, minutes, and hours
AC voltage is converted to pulse waveform and divided down to a 1
Hz pulse waveform by divide counters.
Both the seconds and minutes counts are produced by divide
counters
Synchronous decade counters are used for implementation a
truncated sequence achieved by using the decoder count 6 to
asynchronously clear the
Automobile Parking Control
An up/down counter is used as a means of monitoring available
spaces in a parking garage and provide indication of a full condition
by illuminating a display sign and lowering a gate bar at the
entrance
152
17. Contents beyond the Syllabus
Example: Two limit switches connected in series and used to control a solenoid
valve.
Example: Two limit switches connected in parallel and used to control a solenoid
valve.
PRESCRIBED TEXT
BOOKS & REFERENCE
BOOKS
18
154
TEXT BOOKS AND REFERENCE BOOKS
TEXT BOOK
2. REFERENCES
1. Del Toro, “Electrical Engineering Fundamentals”, Pearson Education, New Delhi,
2007
2. John Bird, “Electrical Circuit Theory and Technology”, Elsevier, First Indian Edition,
2006
3. Allan S Moris, “Measurement and Instrumentation Principles”, Elseveir, First
Indian Edition, 2006
4. Rajendra Prasad, “Fundamentals of Electrical Engineering”, Prentice Hall of India,
2006
5. A.E.Fitzgerald, David E Higginbotham and Arvin Grabel, “Basic Electrical
Engineering”, McGraw Hill Education(India) Private Limited, 2009
6. N K De, Dipu Sarkar, “Basic Electrical Engineering”, Universities Press
(India)Private Limited 2016
155
MINIPROJECT
19
156
17.MINI PROJECT
This circuit can be used for two purposes: both as a timer and a 24-hour clock.
When using this circuit as a timer/an alarm. The time at which the device or load
is to be switched ‘on’ or ‘off ‘ can be electronically stored while being displayed
simultaneously.
After storage of the time as mentioned above, the clock is set to display the real
time (in 24-hour mode) and it serves our purpose.
Fig. . shows the circuit of 24-hour digital clock section. This section is designed to
display the time in hours and minutes format, and is wired such that it functions
in 24-hour mode. For this purpose, this circuit make use of six 74LS90 decade
counters (in figure,IC1 through IC6), four 74LS247 BCD to 7-segment
decoders/drivers (IC7 through IC10) and four LT S542 common anode displays
(DIS1 through DIS4). In addition, passive components like few resistors,
capacitors and push-to-on switches are employed. A 1Hz clock is used to supply
the input to the IC1 through pin 14. 1 Hz clock generator circuit is shown in
button of article. The output obtained from both of the above mentioned circuits
become more accurate with the fact that both circuit take advantage of
32.768kHz quartz crystal.
Description of Counter Circuit
Each ICs are designed/wired with particular task to perform. During this course,
IC1 serves as divide-by-10 counter and the IC2 as divide-by-6 counter. Thus the
output of IC2 connected to clock pin 14 of IC3 has a pulse recurrence period of
one minute. In the similar way, following the connection pattern of IC1-IC2, IC3-
IC4 pair is wired likewise. And, so the output of IC4 connected to clock pin 14 of
IC5 has a pulse recurrence frequency of one hour. IC pair 5 and 6(IC5-IC6) is set
such that it resets itself on reaching a count of 24. The BCD to 7-segment
decoders IC7 through IC10 are used to decode the BCD outputs of IC3 through
IC6. In response to which, the 7-segment common-anode displays DIS1 is driven
through DIS4 respectively.
Thank you
D i s c l a i m e r :
This document is confidential and intended solely for the educational purpose of RMK Group of
Educational Institutions. If you have received this document through email in error, please notify the
system manager. This document contains proprietary information and is intended only to the
respective group / learning community as intended. If you are not the addressee you should not
disseminate, distribute or copy through e-mail. Please notify the sender immediately by e-mail if you
have received this document by mistake and delete this document from your system. If you are not
the intended recipient you are notified that disclosing, copying, distributing or taking any action in
reliance on the contents of this information is strictly prohibited.