Phy 405
Phy 405
Phy 405
GUIDE
PHY 405
ELECTRONICS III
Lagos Office
14/16 Ahmadu Bello Way
Victoria Island, Lagos
e-mail: [email protected]
URL: www.nou.edu.ng
All rights reserved. No part of this book may be reproduced, in any form
or by any means, without permission in writing from the publisher.
Printed 2023
ISBN: 978-978-058-971-4
MAIN
COURSE
CONTENTS PAGE
DIGITAL ELECTRONICS
Course Introduction
In the previous two previous courses: Network Analysis and Devices;
and Electronics I, we dealt with analogue electronics in which the inputs
and output are analogue (continuously varying) signals. In this course,
we will be studying digital circuits where the signals are discrete.
The origin of digit was in the caves, thousands of years before written-
history, when man learnt to count on the fingers (digits). The basic
number names, are therefore, known as digits. There are different
numbering systems followed in digital electronics. In Unit 1 you will be
introduced to some of the important number systems used. We will learn
how to convert numbers from one system to another. We will discuss
binary number and some mathematical operations using them.
In Unit 2 we will introduce some of the circuits that are able to operate
on binary numbers to perform a logical function. These circuits are
called electronic gates. Also you will be familiarised with Boolean
algebra which is used in digital systems. After having learned about
different types of gates you will be introduced to the flip-flop, which can
be built using gates.
In Unit 3 we will study counters which are used for counting the digital
pulses and registers which are used to store binary information. Many
digital systems include some form of memory, where data can be held
on a permanent or a temporary basis. There are different types of
memories used in a digital system. We will learn about semiconductor
memories in this Unit. Data from the physical world are usually
analogue in form and continuous in time. The digital computer or
processor operates with numbers and discontinuous data. To utilize the
digital processor in the solution or control of physical problems it
requires devices to sample the analogue data and code it in digital form
or to perform reverse processing and decoding in conversion of
processed information back to analogue form. Therefore, in Unit 3 we
have discussed analogue to digital converter and their counterpart digital
to analogue converter.
1
PHY 405 ELECTRONICS III
1.1 INTRODUCTION
The aim of any number system is to deal with certain quantities, which
can be measured, monitored, recorded, manipulated arithmetically,
observed and utilised. Each quantity has to be represented by its value as
efficiently and as accurately as is necessary for any application. The
numerical value of a quantity can be basically expressed in either
analogue (continuous) or digital (step by step) method of representation.
2
PHY 405 ELECTRONICS III
In the next unit you will be introduced to some of the gates, which are
fundamental in digital electronics. There you will be familiarised with
Boolean algebra which is a mathematical method used in the design of
digital systems.
Objectives
After studying this unit, you should be able to:
3
PHY 405 ELECTRONICS III
In the binary number system (base of 2), there are only two digits: 0 and
1 and the place values are 2°, 21, 22, 23 etc. Binary digits are abbreviated
as bits. For example 1101 is a binary number of 4 bits (i.e., it is a binary
number containing four binary digits.)
A binary number may have any number of bits. Consider the number
11001.011. Note the binary point (counterpart of decimal point in
decimal number system) in this number. The bit on the extreme right is
called least significant bit (LSB) and the bit on the extreme left is called
most significant bit (MSB). Each bit has its positional value as shown in
Fig. 1.1.
Fig. 1.1 Binary number: showing positional values (weight) of each bit
The bits on the left of the binary point are positive powers of 2 and bits
on the right of binary point are negative powers of 2. The decimal
equivalent of this number is found by summing the products of each bit
and its positional value as follows:
4
PHY 405 ELECTRONICS III
Note that to avoid confusion the subscripts 2 and 10 are written with the
numbers to indicate the base of the appropriate number system in which
the number is expressed.
Any number can be expressed in binary form in the usual way as shown
in Table 1.1
23 22 21 2° Binary Decimal
Number Number
0 0 0 0 0000 0
0 0 0 1 0001 1
0 0 1 0 0010 2
0 0 1 1 0011 3
0 1 0 0 0100 4
0 1 0 I 0101 5
0 1 I 0 0110 6
0 1 I 1 0111 7
1 0 0 0 1000 8
1 0 0 1 1001 9
1 0 1 0 1010 10
1 0 1 1 1011 11
1 1 0 0 1100 12
1 1 0 1 1101 13
1 1 1 0 1110 14
1 1 1 1 1111 15
From this Table, note that 4 binary digits are required to do counting up
to 15I0. Thus if the number of bits is n , then we can go up to 2 n counts
and the largest decimal number represented will be 2 n 1 . For example,
in the above case, n 4 . Therefore, the largest decimal number
represented is 24 - 1 = 1510. To write the next higher number in Table
1.1, we need an additional column for the next power of the base, i.e.,
24.
SAQ 1
What is the largest decimal number that can be represented using 10
bits?
The advantage of binary system is that it has made the job of designing
the digital circuitry very easy because only two distinct states or levels
of voltages have to be handled. For example, 'ON' state of a bulb may be
represented by the bit ‘1’ and 'OFF' state by '0'. In terms of voltages, 0 V
or a 'LOW voltage may represent bit '0' and 5V or a 'HIGH' voltage may
represent bit '1'. Actually, it is not necessary also to have precise
voltages assigned to each bit. In analogue system the exact value of
voltage is very important which makes the design of accurate analogue
5
PHY 405 ELECTRONICS III
Let us now see how binary numbers can be converted into equivalent
decimal form and vice-versa.
1 0 0 0 1 1. 1 0 1
25 + 0 + 0 + 0 + 21 + 20 + 2–1 + 0 + 2–3
27 + 26 + 2s + 0 + 0 + 22 + 21 + 20 + 0 + 2–2 + 0
+ 2–4
1111.00 = 15
11110.0 = 30
111100.0 = 60
From these examples it is clear that if the binary point is shifted towards
the right side, then the value of the number is doubled.
111.100 = 7.5
11.1100 = 3.75
1.11100= 1.875
From these examples it is clear that if the binary point is shifted towards
the left side, then the value of the number is halved.
6
PHY 405 ELECTRONICS III
SAQ2
Convert 1011.101 into its decimal equivalent.
If the number also has some figures on the right of the decimal point,
then this part of the number is to be treated separately. Multiply this part
repeatedly by 2. After first multiplication by 2, either 1 or 0 will appear
on the left of the decimal point. Keep this 1 or 0 separately and do not
multiply it by 2 subsequently. This should be followed for every
multiplication. Continue multiplication by 2 till you get all 0s after the
decimal point or up to the level of the accuracy desired. This will be
clear from the following example. Consider the conversion of 27.625]0
into its binary equivalent. We have already converted 27 into its binary
equivalent, which is 110112. Now for the conversion of 0.625, multiply
it by 2 repeatedly as follows:
7
PHY 405 ELECTRONICS III
SAQ3
What is the binary equivalent of 37.7510?
8
PHY 405 ELECTRONICS III
digit is some power of 8 depending upon the position of the digit. This is
explained in Fig. 1.2.
84 83 82 81 80 8 1 8 2 Weights
1 0 6 2 7 . 4 5 Octal Number
Octal number does not include the decimal digits 8 and 9. If any number
includes decimal digits 8 and 9, then the number cannot be an octal
number.
Now let us see how counting is done in octal system. You are familiar
with the counting in decimal system. In decimal system there are 10
digits from 1 to 9 hence the counting in such system is done as in Table
1.2.
0 10 20 30 40 50 60 70 100
1 11 21 31 41 51 61 71 101
2 12 22 32 42 52 62 72 102
3 13 23 33 43 53 63 73 103
4 14 24 34 44 54 64 74 104
5 15 25 35 45 55 65 75 105
6 16 26 36 46 56 66 76 106
7 17 27 37 47 57 67 77 107
9
PHY 405 ELECTRONICS III
In the octal counting, if n is the number of digits then the total number
of counts is 8 n . The largest decimal number represented by an octal
number having n digits is 8 n 1 . Thus with n = 4, the total number of
counts is 84 = 4096 and the largest decimal number represented is 4096 -
1 = 409510.
SAQ 4
Can the number 128.96 be an octal number?
SAQ 5
What is the largest decimal number that can be represented by a three
digit octal number?
36.48 = 3 81 + 6 8° + 4 8–1
= 24 + 6 + 0.5
= 30.510
S4Q 6
What is the decimal equivalent of 37.28?
10
PHY 405 ELECTRONICS III
SAQ 7
What is the octal equivalent of 15.25010?
11
PHY 405 ELECTRONICS III
4 100
5 101
6 110
7 111
Using this conversion of octal digit into 3-bit binary number, any octal
number can be converted into its binary equivalent by simply replacing
each octal digit by a 3-bit binary number. For example, conversion of
5678 into its binary equivalent is:
= 1011101112
Another example:
= 110111010.010111
SAQ 8
Represent 10027.128 in binary number.
= 1 4 3 1
[As the MSB side does not have 3 bits, we have added two 0's to make
the last group of 3 bits]
12
PHY 405 ELECTRONICS III
SAQ 9
What is the octal equivalent of 100102?
16 4 16 3 16 2 161 16 0 16 1 16 2 Weights
1 2 4 A F . B 9 Hex number
The relationship of hex digits with decimal and binary numbers is given
in Table 1.5. Note that to represent the largest hex digit we require four
binary bits. Therefore, the binary equivalent of all the hex digits have to
be written in 4-bit numbers.
13
PHY 405 ELECTRONICS III
0 10 20 10 40 … 90 A0 B0 C0 D0 E0 F0 100
1 11 21 31 41 … 91 Al Bl C1 D1 E1 F1
2 12 22 32 42 … 92 A2 B2 C2 D2 E2 F2
3 13 23 33 43 … 93 A3 B3 C3 D3 E3 F3
: : : : : : : : : : : : :
9 19 29 39 49 … 99 A9 B9 C9 D9 E9 F9
A 1A 2A 3A 4A … 9A AA BA CA DA EA FA
B IB 2B 3B 4B … 9B AB BB CB DB EB FB
C 1C 2C 3C 4C … 9C AC BC CC DC EC FC
D ID 2D 3D 4D … 9D AD BD CD DD ED FD
E IE 2E 3E 4E … 9E AE BE CE DE EE FE
F IF 2F 3F 4F … 9F AF BF CF DF EF FF
SAQ 10
What is the number next to 835F16?
SAQ 11
What octal number represented by a 3-digit hex number?
Another example:
3BE.1A16 = 3 162 + 11 161 + 14 160 + 1 16– 1 + 10 16– 2
= 768 + 176 + 14 + 0.0625 + 0.0391
= 958.101610
SAQ 12
What is decimal equivalent of 1BE216?
14
PHY 405 ELECTRONICS III
SAQ 13
What is the hex equivalent of 3710?
BA616 = B A 6
15
PHY 405 ELECTRONICS III
= 1011101001102
SAQ 14
What is the binary equivalent of 6F1016?
= 2 6 E
= 26E16
SAQ 15
What is the hex equivalent of 1100101010011112?
SAQ 16
What is the octal equivalent of 5A916?
16
PHY 405 ELECTRONICS III
= B 2 F
= B2F16
This method can also be applied to hex to decimal and decimal to hex
conversions. For example consider the conversion of 3CI6 into its
decimal equivalent:
3C16 = 0011 1100
= 111 1002
= 3 16' + 12 160
= 48 + 12
= 6010
1111002 = 2s + 24 + 23 + 22
= 32+16 + 8 + 4
SAQ 17
What is the hex equivalent of 3278?
1.5 CODES
So far you have learnt about binary, octal and hexadecimal number
system. For any number system with a base B and digits N0 (LSB), N1,
N2, ...... Nm (MSB), the decimal equivalent N10 is given by
N10 N m B m ... N 3 B 3 N 2 B 2 N1 B1 N 0 B 0 N 3 B 3
(1.1)
You have also observed that a number in any system can be written in
the binary form. A number code is a relationship between the binary
digits and the number represented. Thus, all number systems are codes
and the decimal equivalent is given by Eq, (1.1). But there are other
relationships or codes that relate decimal numbers and groups of binary
digits that do not obey Eq. (1.1) These relationships are called codes.
We will now discuss some of the important codes used in digital work.
17
PHY 405 ELECTRONICS III
= 10010I010001BCD
= 10I011000BCD
Thus we see that it is quite easy to convert from decimal to BCD and
from BCD to decimal. It is much easier to convert from BCD to decimal
than from straight binary to decimal, because we only have to count up
to 9 in binary to do so. However, it takes more bits to represent a
number in BCD than in binary.
A BCD number is converted into its decimal equivalent by the reverse
process. For example:
= 1 5 7 2
= 157210
18
PHY 405 ELECTRONICS III
Table 1.6: Some of the ASCII codes for numbers, alphabets and
other common symbols
A 6 A5 A4 A3 A2 A1
010 011 100 101 110 111 A0
SP 0 @ p p 0000
1 1 A Q a q 0001
" 2 B R b r 0010
'# 3 C S c s 0011
$ 4 D T d t 0100
% 5 E U e u 0101
& 6 F V f v 0110
' 7 G w g w 0111
-( 8 H X h x 1000
) 9 I Y i y 1001
* J Z j z 1010
+ ; K k 1011
, < L l iioo
- = M m 1!01
> N - n 1110
/ 9 O o 1111
100 0001 = A
SAQ 18
What is the ASCII code of SHARM?
19
PHY 405 ELECTRONICS III
1.6.1 Addition
Let us recall the addition in decimal numbers. Suppose we want to add
563 and 146. We start adding the digits in the least significant column.
We get,
Next, the digits of the second column are added and we get,
In this case 6 + 4 gives 0, with a carry 1 to the next column. Then the
digits of the last column and the 'carry' from the previous column are
added. We get,
20
PHY 405 ELECTRONICS III
0+1=1
1+0=1
1 + 1 = 10
1 + 1 + 1 = 10 + 1 = 11
In all digital networks or computers only two binary numbers are added
at a time. To add more than two numbers, first two numbers are added,
21
PHY 405 ELECTRONICS III
then to their sum the third number is added, and so on. Therefore, we
should not worry about the addition of more than two numbers. The
computer can add numbers in a few microseconds or even less. You will
see that the multiplication, division and subtractions are actually done by
the computers by way of addition.
SAQ 19
Add the following:
1.6.2 Subtraction
Binary subtraction is done in the same way as in decimal system. Let us
recall the decimal subtraction, for example.
Case 1 0–0=0
Case 2 1–0=1
Case 3 1–1=0
Case 4 10 – 1 = 1
22
PHY 405 ELECTRONICS III
SAQ 20
Subtract binary 100011 from 110011.
Case 1 00 = 0
Case 2 01 = 0
Case 3 10 = 0
Case 4 11 = 1
23
PHY 405 ELECTRONICS III
SAQ 21
Multiply 10110 by 110.
10.7 SUMMARY
There are mainly four number systems namely, binary, octal, decimal
and hexadecimal, which have 2, 8, 10 and 16 digits respectively. But it
is the ease in applications that decides which kind of number system
should be defined and used. Every computer uses two or more of the
above mentioned number systems simultaneously.
The binary number system has only two digits: 0 and 1. A binary digit is
called bit. A binary number can be converted into its equivalent octal,
decimal and hex numbers as described in the text. And also octal,
decimal and hex numbers can be converted into equivalent binary
numbers.
The octal number system has 8 digits: 0 through 7. An octal number can
be converted into its equivalent binary, decimal and hex numbers and
vice versa as described in the text.
In the BCD code, each decimal digit is replaced by its 4-bit binary
equivalent. The conversion of BCD code into its decimal equivalent and
vice versa is quite easy. Therefore, it is quite often used in computers.
The ASCII code is the most widely used alphanumeric code. It is a 7-bit
binary number and has 27 = 128 possible 7-bit binary numbers, which
are quite sufficient to describe the capital and small letters of the
alphabet, digits, punctuation marks, and other symbols.
24
PHY 405 ELECTRONICS III
2. 0 + 1=1
3. 1 + 0=1
3. 1–0=1
4. 1–1=0
2 01 = 0
3 10 = 0
4 11 = 1
25
PHY 405 ELECTRONICS III
TQs
(1) 110002
(2) 63I0
(3) 1754.8125I0
(4) 101110100.0012
(5) 1011001.1112
26
PHY 405 ELECTRONICS III
(6) 3276710
(7) 4095I0
(8) 152058
(9) 100 111 000000012
(10) 11001101110010102 = 001 100 110 111
001 010
= 1 4 6 7 1 2
= 1467128
(11) 11000110
(12) 10001.111
(13) 110.11
References
Floyd, T. L., & Patterson, R.T., (2018). Digital Fundamental (11th ed).
Pearson.
Floyd, T. L., & Patterson, R.T., (2018). Digital Fundamental (11th ed).
Pearson.
Mano, M.M. & Kime, C.R., (2104). Digital Logic and Computer Design
(5th ed).Pearson.
27
PHY 405 ELECTRONICS III
2.1 INTRODUCTION
A digital circuit is designed for a desired application by a combination
of several logic gates. This application involving several logic gates may
be a simple or complex one. Different users may design digital circuits
by using different combinations of logic gates for the same application.
In selecting one of these digital circuits for that application, it is
necessary to keep in mind that the chosen digital circuit should have a
minimum number of logic gates. By seeing a digital circuit, it is not
obvious that a circuit is minimal or certain gates may be removed from
the circuit without changing its operation. Boolean algebra provides a
means by which logic circuitry may be expressed symbolically,
manipulated and reduced.
In this Unit we shall learn about three basic logic gates: AND, OR, NOT
and their various combinations. All digital (logic) circuits operate in the
binary mode, where all the inputs and outputs are predefined voltages
representing binary digit either 1 or 0. It is this characteristics of the
28
PHY 405 ELECTRONICS III
logic circuits that enables us to use Boolean algebra for designing and
analysing digital systems. This area of digital circuitry is known as
combinational (or combinatorial) logic, where the relationship between
the inputs and outputs can be precisely defined by the logic summarised
in a truth table.
Objectives
After studying this unit, you should be able to
describe the operation of AND, OR and NOT Gates and write
their truth tables,
describe the combination of gates and write the truth tables of
NAND and NOR gates,
explain as to how a timing diagram of the output of all the logic
circuits is obtained,
explain how the operation of three basic logic gates leads us to
various theorems or rules used in Boolean algebra,
write Boolean theorems and use algebraic method for
combinational logic,
obtain a truth table from a give Boolean expression,
describe the operation of exclusive-OR and exclusive-NOR gates,
design a half adder and describe its operation,
design a full adder and describe its operation,
design logic circuits using only NAND gates,
describe the construction and explain the operation of the RS flip-
flop,
describe the construction and explain the operation of clocked RS
flip-flop, D flip-flop, and JK flip-flop, .
obtain the timing diagrams of the outputs of flip-flops.
29
PHY 405 ELECTRONICS III
The AND gate can be understood by the circuit given in Fig. 2.1. In this
circuit switch (s) is input and the bulb is output. Let us assign 0 to the
event when the switch is open and 1 to the event when the switch is
closed. Similarly when the bulb does not glow we call it 0 and when the
bulb glows we call it 1. With both the switches (A and B) off, the bulb
(Y) does not glow.
With one of the switches off and another switch on, once again the bulb
(Y) does not glow. However, with both the switches (A and B) on, the
bulb (Y) glows. Thus there are four events which can be summarised in
the form of a table which is called the truth table of this circuit. This is
given in Table 2.1. The switches A and B, which control the input
voltage are usually called the input of the truth table and Y as the output.
Inputs Output
A B Y
0 0 0
0 1 0
1 0 0
1 1 1
30
PHY 405 ELECTRONICS III
In the circuit of Fig. 2.3 when the inputs A and B are 0, i.e. when they
are connected to the 0V or ground terminal, both the diodes are forward
biased with a voltage drop of 0.7V across each diode if the diodes are of
Si or of 0.3V if the diodes are of Ge. Hence the output voltage is a LOW
or a 0 bit. If the input A is 0 and B is 1 (i.e. 5V), the diode A is forward
biased with 0.7V drop across it (assuming diode to be of Si) while the
diode B is not biased (because both p and n sides of the diode are at the
same voltage, 5V). Therefore the output voltage is 0.7V, i.e. a LOW or a
0 bit. Similarly, if the input A is 1 and input B is 0, the output is a 0.
However, if both inputs are 1, i.e. connected to 5V, then both the sides
of the diodes are at the same voltage and hence not conducting.
Therefore, the output voltage is nothing but the battery voltage which is
5V, i.e. a HIGH or a 1 bit. These four cases satisfy the truth table of
Table 2.1. For more input AND gate, the number of diodes may be
more. The input output relationship of the AND gate is written as A.B =
Y and is read as A AND B equal to Y.
31
PHY 405 ELECTRONICS III
Example 2.1
If the inputs A and B to the AND gate are as shown in Fig. 2.4, trace the
output Y.
Fig. 2.4
Solution
Recall that the output of an AND gate is 1 when all the inputs are 1. If
any of the inputs is 0, then the output is 0. With this understanding, the
output comes out to be as shown in the trace for Y.
SAQ 1
Trace the output of an AND gate, if the inputs A and B are as shown in
Fig. 2.5.
Fig. 2.5
2.2.2 OR Gate
The OR gate operation can be understood by the circuit of Fig. 2.4. If
both the switches are off, (0), the bulb does not glow (0). If one of the
switches is on (1) and other is off (0), the bulb glows (1). And if both the
switches are on (1), then also the bulb glows (1). These events are
summarised in the truth table given in Table 2.2.
32
PHY 405 ELECTRONICS III
It is clear from the truth table that the output of an OR gate is 0 if both
the inputs are 0 and the output is 1 if any one of the inputs or both the
inputs are 1. If a larger number of switches are used in parallel in the
circuit, then the bulb does not glow if all the switches are off, and the
bulb glows if any one of the switches is on. The symbol of OR gate is
given in Fig. 2.7. The OR gate operation is expressed as A + B = Y and
is read as A OR B = Y.
33
PHY 405 ELECTRONICS III
Example 2.2
If the inputs A and B to OR gate are as shown in Fig. 2.9, trace the
output Y.
Recall that the output of an OR gate is 1 if any of the input is 1, and the
output is 0 if all the inputs are 0. With this understanding, the output
comes out to be as shown in the trace for Y.
Fig. 2.9
SAQ 2
Trace the output of an OR gate if the inputs A and B are as shown in
Fig. 2.10.
Fig. 2.10
34
PHY 405 ELECTRONICS III
If input to the circuit is 1, the output is 0 and if the input is 0 then the
output is 1. This is the NOT gate operation which is summarised in the
truth table given in Table 2.3.
A Y
0 1
1 0
The NOT gate is also known as the INVERTER. It has only one input.
Its symbol is given in Fig. 2.12. The input-output relationship is
expressed as A = Y.
The NOT gate can be realised using the circuit given in Fig. 2.13. The
circuit uses the cut-off and saturation modes of the transistor. When the
35
PHY 405 ELECTRONICS III
input to the circuit is a 0 bit, i.e. zero volt, no base current, IB. flows.
This means the collector current, IC is zero. This is cut-off mode of the
transistor.
Example 2.3
If the input A to NOT gate is as shown in Fig. 2.14, trace the output Y.
Fig. 2.14
Solution
Recall that the output of a NOT gate is 1 if the input is 0, and the output
is 0 if the input is 1. With this understanding, the output comes out to be
as shown in the trace for Y in Fig. 2.14.
SAQ 3
Trace the output of a NOT gate if the input is as shown in Fig. 2.15.
36
PHY 405 ELECTRONICS III
Fig. 11.15
A B Y' (AB) Y
0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0
37
PHY 405 ELECTRONICS III
A B Y
0 0 1
0 1 1
1 0 1
1 1 0
A B Y'(A + B) Y
0 0 0 1
0 1 1 0
1 0 1 0
1 1 1 0
A B Y
38
PHY 405 ELECTRONICS III
Example 11.4
If the inputs A and B to NAND gate are as shown in Fig. 2.20, trace the
output Y.
Fig. 2.20
Solution
Recall that the output of a NAND gate is 0 only when all the inputs are
1, and its output is 1 if any or all of the inputs is/are 0. With this
understanding, the output comes out to be as shown in the trace for Y in
Fig. 2.20.
SAQ 4
If the inputs A and B to a NOR gate are as shown in Fig. 2.21, trace its
output Y. (Hint. Apply truth table 2.5).
Fig. 2.21
39
PHY 405 ELECTRONICS III
(2) From the given truth table, a Boolean expression can be obtained
which may not represent a simple circuit having minimum
number of gates.
Consider the digital circuit given in Fig. 2.22. It has five logic gates of
three types -
Fig. 2.23: Digital circuit having the same operation as that of the circuit
given in Fig. 2.22
three 2-input AND gates, one 2-input OR gate and one 3-input OR gate.
Its logic table is given in Table 2.6. This circuit can be reduced to the
one shown in Fig. 2.23, which has only two logic gates and is
considerably cheaper and simple. It fully satisfies the logic Table 2.6.
Table 2.6
A B C Y
0 0 0 0
0 0 1 0
0 1 0 I
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
40
PHY 405 ELECTRONICS III
1 1 1 I
Since the number of bits used in binary system is only two, i.e. 0 and 1,
there could be only four possible combination of inputs A and B to 2-
input AND and OR gates, and two possible inputs to NOT gate. The
logical tables of AND, OR and NOT gates are rewritten in Table 2.7.
AND OR NOT
X Y Z X Y Z 0 1
0 0 0 0 0 0 1 0
0 1 0 0 1 0
1 0 0 1 0 0
1 1 1 1 1 1
These logic tables lead to ten postulates of the Boolean algebra, each of
which describes the input-output relationship of the concerned logic gate
in the form of Boolean expression and is one of the truth table entries for
AND, OR, NOT functions. These are:
It is quite clear from these equations that all the four Boolean equations
using AND operation satisfy the binary multiplication using bits 0 and 1.
However, in the case of OR operation, the first three Boolean equation
satisfy binary addition, but the last equation 1 + 1 = 1 does not. It is
because in binary arithmetic 1 + 1 = 10. Despite this contradiction
between Boolean and binary additions which will be settled later, the
41
PHY 405 ELECTRONICS III
Boolean operations are very helpful in digital circuits. The Table 2.8
will lead us to various Boolean theorems, which will be described in the
following section.
For the moment let us see how Boolean equations are written and used
for a digital circuit. Consider the circuit of Fig. 2.24 in which A and B
are the inputs to AND-gate
Y = (A.B) + C = AB + C
Y = 0 . 1 +1
Y=0+l
0+1=1
Hence,
Y=1
Let us now convert a given Boolean expression into a logic circuit. Say,
Y = ( A B ) + ( A B ). The equation means that Y is the output of a 2-
input OR gate the inputs t0 which are A B and A B which in turn are
the outputs of two AND gates. The inputs to these AND gates are A
and B and A and B respectively. The whole of this exercise is
summarised in the Fig. 2.25.
42
PHY 405 ELECTRONICS III
A. (i) The output of an AND gate is 1 only when all the inputs
are 1.
1. X.0 =0
2. 0.X =0
3. X.1 =X
43
PHY 405 ELECTRONICS III
4. 1.X =X
From OR functions,
5. X+0 =X
6. 0+X =X
7. X+1 =1
8. 1+X =1
9. X .X = X
10. X. X = 0
11. X+X=X
12. X+ X =1
13. X =X
Commutative laws for multiplication and addition. These laws show that
the order in which two variables are ORed or ANDed together makes no
difference.
14. X.Y=Y.X
15. X+Y=Y+X
Associative laws for addition and multiplication. These laws show that
while ORing or ANDing several variables, it makes no difference in
what order the variables are grouped.
16. X + (Y + Z) . (X + Y) + Z = X + Y + Z
Distributive laws.
18. X . (Y + Z) = (X . Y) + (X . Z)
44
PHY 405 ELECTRONICS III
19. X + (Y . Z) = (X + Y) . (X + Z)
20. (W + X) . (Y + Z) = WY + XY + WZ + XZ
Note here that commutative, associative and distributive laws are similar
to ordinary algebra.
Absorption laws. These have no counterpart in ordinary algebra.
21. X+X.Y=X
22. X . (X + Y) = X
23. X + XY = X + Y
24. X . ( X + Y) = XY
25. X Y = X Y
26. X Y = X Y
These theorems are valid even when the variables are expressions. There
is no algebraic proof of these theorems. However, each theorem/law can
be proved by putting the values (0 or 1) of variables and applying
Boolean postulates given in Table 2.8.
45
PHY 405 ELECTRONICS III
prior input which may have been given to the circuit. This will be
further understood after we have taken up some examples.
Example 11.5
(1) Find the MSP expression for
Y = ( A B )C AB
= ( A B )C ( A B ) Using De Morgan’s theorem
Th. 26
= ( A B )(C 1) Taking ( A B ) common
= ( A B ) 1 Using Th. 7
= (A B) Using Th. 3
= MSP expression
The logic circuits for the given and the MSP expressions are shown in
Figs. 2.26 and 2.27 respectively.
46
PHY 405 ELECTRONICS III
Example 2.6
Find the MSP expression for Y = A C AB( B C )
Y = A C AB( B C )
= A C ABB ABC
= A C A 0 ABC Using Th. 10
= A C ABC Using Th. 1
= ( A AB )C Taking C common
= ( A B)C Using Th. 23
= A C BC
= MSP expression
The logic circuits for the given expression and the MSP expressions are
shown in Figs. 2.28 and 2.29 respectively.
47
PHY 405 ELECTRONICS III
Example 11.7
Find the MSP expression for
Y = AB + A (B + C) + B (3 + C)
= AB + AB +AC + BB + BC
= AB + AB + AC + B + BC Using Th. 9
= AB + AC + B + BC Using Th. 11
= AB + AC + B(1 + C) Taking B common
= AB + AC + B . 1 Using Th. 8
= AB + AC + B Using Th. 3
= (A + 1) B + AC
= 1 . B + AC Using Th. 7
= B + AC Using Th. 4
= MSP expression
The logic circuits for the given expression and the MSP expressions are
shown in Figs. 2.22 and 2.23 respectively.
SAQ5
Find the MSP expression for Y AB C ABC ABC .
48
PHY 405 ELECTRONICS III
Y = AB + A (B + C) + B (B + C)
Y = 1 . 0 + 1 . (0 + 0) + 0 (0 + 0)
=0+1.0+0. 0
=0+0+0
=0
Similarly, find Y for all combinations of values for A, B, and C, and
complete the truth table which is given in Table 11.9.
A B C Y
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
Y AC BC = MSP expression
A B C Y
1. 0 0 0 0
2. 0 0 1 0
49
PHY 405 ELECTRONICS III
3. 0 1 0 0
4. 0 1 1 1
5. 1 0 0 1
6. 1 0 1 0
7. 1 1 0 1
8. 1 1 1 1
Hence, it is better to use the method of reasoning for obtaining the truth
table. This method involves just two steps:
(1) Obtain the MSP form of the given Boolean expression, and
(2) Reason out which of the truth table entries should be 1 for each
product in MSP form.
Example 11.8
Obtain the truth table for the Boolean expression Y = A + AB + BCD.
Y = A + AB + BCD
= A (1 + B) + BCD
= A . 1 + BCD
= A + BCD
= MSP expression
A B C D Y
1. 0 0 0 0 0
2. 0 0 0 1 0
3. 0 0 1 0 0
4. 0 0 1 1 0
5. 0 1 0 0 0
6. 0 1 0 I 0
7. 0 1 1 0 0
8. 0 1 1 1 1
9. 1 0 0 0 1
10. 1 0 0 1 1
11. 1 0 1 0 1
12. 1 0 I 1 1
13. 1 1 0 0 1
14. 1 1 0 1 1
15. 1 1 1 0 1
16. 1 1 1 1 1
50
PHY 405 ELECTRONICS III
SAQ 6
Obtain the truth table for Y = AB + BC + CA
A B C Y
1. 0 0 0 0
2. 0 0 1 0
3. 0 1 0 0
4. 0 1 i 0
5. 1 0 0 1
6. 1 0 1 0
7. 1 1 0 1
8. 1 1 1 1
because the output of an AND gate will be 1 only if all the inputs are 1.
Similarly,
Entry 7: Y = 1 for A = 1, B = 1, C = 0
= ABC
Entry 8: Y = 1 for A = 1, B = 1, C = 1
= ABC
Now connect all the three products with an OR logic. Hence Y =
AB C ABC ABC (Sum of Product), which can be simplified as
Y = AB C AB (C C )
= AB C AB
= A( B C B)
= A( B C )
= AB AC
51
PHY 405 ELECTRONICS III
(1) Combine with an AND operation all the input variables for the
entries that contribute a logic 1.
SAQ 7
Obtain the Boolean expression for the truth table given below:
A B C Y
0 0 0 0
0 0 1 1
0 0 1 0
0 1 1 0
1 0 0 1
1 1 0 0
1 1 1 1
A B Y
0 0 0
0 1 1
1 0 1
1 1 0
52
PHY 405 ELECTRONICS III
A B Y
0 0 1
0 1 0
1 0 0
1 1 1
Its Boolean expression is obtained from the entries 1 and 4, that is,
Y A B AB
53
PHY 405 ELECTRONICS III
In this example of addition, the bit on the right hand side is sum while
the bit on the left hand side is carry. This can be put in a truth table as
shown in Table 2.15.
A B Carry Sum
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
This application has two outputs, one for 'sum' and another for 'carry'.
Therefore, we have to obtain two Boolean expressions for the two
outputs.
54
PHY 405 ELECTRONICS III
Carry = AB
Sum = A B AB
that is, it is the output of an XOR gate described in the previous section.
These two circuits are connected together as shown in Fig. 2.34. This
circuit is known as half adder and its symbol is given in Fig. 2.35.
55
PHY 405 ELECTRONICS III
The right hand bits of these additions represent the sum and the left hand
bits represent the carry. These eight possible combinations of three
single-bit binary numbers can be presented in the form of a truth table
given in Table 2.16.
A B C Carry Sum
0 0 0 0 0
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 1
In order to design the logic circuit for a full adder, Boolean expressions
have to be written and simplified in MSP form for both sum and carry,
which are as follows:
56
PHY 405 ELECTRONICS III
= BC AC AB
= MSP expression.
From these two MSP expressions, the logic circuit for a full adder can
be obtained as described earlier. This circuit is given in Fig. 2.36 and its
symbol is given in Fig. 2.37.
Example 2.8
57
PHY 405 ELECTRONICS III
Addition of two 4-bit binary numbers. Let us say the numbers are
A3A2A1A0 and B3B2B1B0.This addition requires one half adder to add A0
and B0 and three full adders to add the rest of the bits as shown in the
circuit of Fig. 2.30. The outputs of the half adder are sum ( S 0 ) and
carry. The carry output of the half adder is given as the third input to the
first full adder which has a carry output and a sum ( S1 ) output. The carry
output of the first full adder is given to the second full adder, and so on.
Thus for addition of two 4-bit binary numbers, we require one half adder
and three full adders. For each additional bit in the numbers to be added,
we require one more full adder.
SAQ 8
Draw a digital circuit for a 2-bit binary adder.
58
PHY 405 ELECTRONICS III
Fig. 2.39: Realisation of (a) AND, (b) OR, and (c) NOT gates using
NAND gates
Example 2.9
Design a circuit for Y = AB + CD using NAND gates only.
59
PHY 405 ELECTRONICS III
Fig. 2.41 AND and OR gates in the circuit given in Fig. 2.40 replaced by
their equivalents
The AND gates and OR gate in Fig. 2.40 are replaced by equivalent
NAND gate circuits from Fig. 2.39 as shown in Fig. 2.41. It requires two
NAND ICs, Since the input and output of a combination shown as
dotted of a NOT gate followed by another NOT gate are same, therefore
such a combination is useless and it is hence eliminated. The final circuit
after such elimination is shown in Fig. 2.42.
Y = A B AB
= ( A B) ( AB )
60
PHY 405 ELECTRONICS III
The right hand side is the output of a NAND gate the inputs to which are
the outputs of
two NAND gates, i.e. ( A B) ( AB ) . The final circuit for XOR gate using
NAND gates only is shown in Fig. 2.43. It requires two NAND ICs.
Fig. 2.43 Circuit for XOR gate using NAND gates only
SAQ9
Design a digital circuit for Y = A + BC using NAND gates only.
2.4 FLIPFLOPS
We have learnt combinational logic circuits in the previous section. The
combinational logic circuits operate strictly in accordance with their
truth table. However, there are logic circuits which have feedback path
and the operation of which is not strictly defined by their truth tables.
Such circuits operate differently for a given input condition depending
upon the prior input sequence applied to the circuit. Such circuits are
known as sequential logic circuits. These circuits have memory element
also. In addition to the logic gates, a computer requires memory
element. The simplest memory element is a flip-flop. It has two stable
states and remains in any one of these two stable states until triggered
into the other state. Quite often the flip-flop is also known as a latch.
2.4.1 RS Flip-flop
The most basic flip-flop circuit is constructed using two NAND gates or
two NOR gates. In NAND gate flip-flop, two NAND gates are cross-
coupled as shown in Fig. 2.44. It has two latched outputs Q and Q . It
has two inputs: SET (S)' and RESET (R) or CLEAR (C). The input
names signify their actions as well. For the input names such a flip-flop
is known as RS flip-flop.
61
PHY 405 ELECTRONICS III
62
PHY 405 ELECTRONICS III
Thus a LOW on the SET input will always cause the flip-flop to end up
in Q = 1 state. Hence, this operation is called setting the flip-flop, and
Q = 1 state is known as SET state.
S R Output
1 1 NC (No change)
0 1 Set ( Q = 1)
1 0 Reset ( Q = 0)
0 0 *(Race and
invalid)
The De Morgan equivalent of NAND gate is given in Fig. 2.45. Fig.
2.45 (a) represents the left side of De Morgan's theorem. The right side
of the theorem implies that the inputs are inverted before reaching an
OR gate (see Fig. 2.45b). This combination is used so often that the
abbreviated symbol shown in Fig. 2.45c has come into use. This symbol
is called a bubbled OR gate. Fig. 2.45d is a graphic summary of De
Morgan's theorem which shows that a NAND gate and a bubbled OR
gate are equivalent. Therefore, we can replace one with the other
whenever desired.
63
PHY 405 ELECTRONICS III
Example 2.10
If the train of pulses given to the S and R inputs of RS flip-flop are as
shown in Fig. 2.48(a) and (b) respectively, then trace its Q output.
Initial value of Q is given to be 0.
64
PHY 405 ELECTRONICS III
Solution
Using Table 2.17, the Q output of the RS flip-flop is as shown in Fig.
2.48(c).
SAQ 10
What is the shape of the Q output of RS flip-flop if the S and R inputs
are as shown in Fig. 2.49? Initial value of Q is given to be 1.
Fig. 2.49
In most of the synchronous systems the output can change only when
the clock signal is making a transition from 0 to 1, i.e. positive going
transition (PGT) or 1 to 0, i.e. negative going transition (NGT). These
systems are known as edge triggered. The PGT and NGT are shown in
Fig. 2.50. The symbols of edge triggered RS flip-flop which work with
PGT and NGT are shown symbolically in Figs. 2.51(a) and (b)
respectively,
65
PHY 405 ELECTRONICS III
Fig. 2.51 Symbol of edge triggered flip-flop activated by a (a) PGT, and
(b) NGT
Consider the circuit given in Fig. 2.52 in which two additional NAND
gates are used as the clock pulse steering circuit and is triggered by a
PGT. A LOW (i.e. 0) clock CLK prevents S and R from controlling the
flip-flop, because with whatever values of S and R the outputs of the
NAND-1 and NAND-2 will be 1 which will not produce any change in
the Q output of the flip-flop. However, when the CLK is HIGH (i.e. 1)
and S = R = 0, the outputs of the two NAND gates will be 1 and there
would be no change in the Q output.
66
PHY 405 ELECTRONICS III
Table 2.18 shows the truth table for a positive edge triggered RS flip-
flop. The Q = Q0 is the output level before the arrival of the PGT of the
CLK. The arrow directed upward ( ) indicates that a PGT is required at
the CLK.
Inputs Output
R S CLK Q
0 0 Q0 (No change
0 1 1
change)
1 0 0
1 1 *Race
67
PHY 405 ELECTRONICS III
Inputs Output
R S CLK Q
0 0 Q0 (No change)
0 1 1
1 0 0
1 1 *Race
SAQ 11
If the train of pulses to S and R inputs of a clocked RS flip-flop are as
shown in Fig. 2.54, and if the initial value of Q is 0, trace its Q output.
Fig. 2.54
68
PHY 405 ELECTRONICS III
D CLK Q
0 0
1 1
69
PHY 405 ELECTRONICS III
D Latch
Sometimes edge trigger detecting circuit (like RC combination) for D
flip-flop is not used. In this case the D flip-flop functions slightly
differently and is known as a D latch. Instead of edge triggering, level
clock or an ENABLE (abbreviated as EN) signal is used as shown in
Fig. 2.58. When EN/CLK is 1, D will produce a 0 at either SET or
CLEAR inputs of the NAND latch to give a Q output to be at the same
level of D.
70
PHY 405 ELECTRONICS III
D EN/CLK Q
X 0 NC
0 1 0
1 1 1
Quite often two AND gates are introduced between the pulse steering
circuit and the NAND latch as shown in Fig. 2.59. One input each of
these AND gates are known as RESET (direct SET) and CLEAR (direct
RESET) and are kept at 1 so as to allow the output of the pulse steering
circuit to pass through. However, if we want to set the flip-flop
irrespective of the value of the D input, then we give a 0 to PRESET,
which will set the flip-flop. Similarly, by giving a 0 to CLEAR will
directly reset the flip-flop. The symbol for D flip-flop with PRESET and
CLEAR is shown in Fig. 2.60 and its truth table is given in Table 2.22.
Fig. 2.60 Symbol of edge triggered D flip-flop with preset and clear
71
PHY 405 ELECTRONICS III
Table 2.22: Truth table for clocked D flip-flop with preset and clear
SAQ12
The D input to a positive edge triggered D flip-flop is as shown in Fig.
2.61. Trace the Q output.
Fig. 2.61
72
PHY 405 ELECTRONICS III
J K CLK Q
0 0 Q0 (No change)
1 0 1
0 1 0
1 I Q0 (Toggle)
73
PHY 405 ELECTRONICS III
J K CLK Q
0 0 Q0 (No change)
1 0 1
0 I 0
1 1 Q0 (Toggle)
SAQ 13
The J and K inputs to a JK flip-flop are as shown in Fig. 2.66. If the
initial value of Q output is 0, trace the Q output.
74
PHY 405 ELECTRONICS III
Fig. 2.66
2.5 SUMMARY
There are three basic logic gates - AND, OR and NOT. The
output of an AND gate is 1 only when all the inputs are 1. The
output of an OR gate is 0 only when all the inputs are 0. The
output of a NOT gate is complement of the input.
The AND and NOT gates are combined to get the NAND gate
and OR and NOT gates are combined to get NOR gate. The
NAND and NOR gates are known as building blocks in digital
circuitry because AND, OR and NOT gates can be obtained using
NAND and NOR gates only.
All logic gates and circuits work in binary mode, that is the inputs
and outputs can have values either 1 or 0. Therefore, Boolean
algebra is used to describe their input-output relationships, the
basic Boolean rules or theorems are obtained from the truth tables
of the three basic gates.
A digital circuit can be expressed as a Boolean expression and
likewise a logic circuit can be obtained from a Boolean
expression. A Boolean expression can be simplified, which gives
us a simplified digital circuit. In all applications, first a Boolean
expression is simplified to give a simpler circuit.
A Boolean expression can also be obtained from a truth table.
And a truth table can be obtained from a Boolean expression
without reference to its logic circuit. The Boolean expression is
written in the Sum-of-the-Product (SOP) form, which is
simplified to get the Minimum-Sum-of-the-Product (MSP) form.
The MSP expression is used to write the final digital circuit.
Exclusive-OR and exclusive-NOR gates are obtained by the
combinations of three basic gates. The output of the XOR gate is
0 if both the inputs are same and is 1 if both the inputs are
different. The output of the XNOR gate is 1 if both the inputs are
same and is 0 if both the inputs are different.
75
PHY 405 ELECTRONICS III
A half adder adds two bits binary numbers while a full adder adds
three bits. The half and full adders are combined to add two
multi-bit binary numbers.
The combinational logic circuits do no have memory, that is, the
outputs of such circuits do not depend on the previous occurrence
of an event. The input-output relationship of the circuit is
precisely defined by its truth table.
The RS flip-flop is the basic element which has memory, that is,
its output depends on the previous occurrences of an event. The
input of a RS flip-flop can also be triggered by a clock by using a
pulse steering circuit. The other flip-flops are D and JK flip-flops.
The output of the D flip-flop follows the input. The race
condition of RS flip-flop is avoided in JK flip-flops.
The RS, D and JK flip-flop can be triggered by a positive going
transition (PGT) or a negative going transition (NGT). These flip-
flops are used as memory devices.
Table 2.25
A B C Y
0 0 0 1
0 0 1 0
0 1 0 1
0 1 l 1
1 0 0 0
1 0 1 1
1 1 0 0
1 1 1 1
6. Write Boolean expression for the truth table given in Table 2.26
76
PHY 405 ELECTRONICS III
Table 2.26
A B C Y
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
7. Write Boolean expression for the truth table given in Table 2.27
A B C Y
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 1
1 1 0 I
1 1 1 0
8. Write Boolean expression for the truth table given in table 2.28.
Table 2.8
A B C Y
0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 0
9. Write the truth table for the expression obtained in question No. 2
above.
10. Write the truth table for the expression obtained in question No. 3
above.
11. Write the truth table for the expression obtained in question No. 5
above.
77
PHY 405 ELECTRONICS III
12. Write the truth table for the expression obtained in question No. 8
above.
Fig. 2.67
2.
Fig. 2.68
3.
Fig. 2.69
4.
Fig. 2.70
5. Y = AB C ABC ABC
= AB C AB (C C )
= AB C AB
= A( B C B)
= A( B C )
= AB AC
78
PHY 405 ELECTRONICS III
A B C Y
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
7. Y A B C AB C ABC
8.
Fig. 2.72: Now replace OR and AND gates by their NAND equivalents
as shown in Fig. 2.73
Fig. 2.73
79
PHY 405 ELECTRONICS III
Fig. 2.74
Y = A BC
= ABC
10.
Fig. 2.75
11.
Fig. 2.76
12.
Fig. 2.77
80
PHY 405 ELECTRONICS III
13.
Fig. 2.78
TQs
1. Y = AB D AB D
= AB ( D D )
= AB 1
2. Y = BCD AB CD
= CD ( B AB )
= CD ( B A)
= CDB CDA
3. Y = ABC D ABC D
= A B D (C C )
= ABD
4. Y = ( A BC ) ( D FG) Y
= A BC D FG
= A BC D FG
= A (B C ) D (F G )
= AB AC DF DG
5. Y = A B C A BC ABC
= A C ( B B) AC ( B B)
= A C AC
6. Y = A BC AB C
7. Y = A B C A BC AB C ABC
= A ( B C BC ) A( B C BC )
= ( A A)(B C BC )
= B C BC
8. Y = A B C A B C A BC A BC
= A B (C C ) A B(C C )
= A B AB
= A ( B B)
= A
81
PHY 405 ELECTRONICS III
9.
A B C D Y
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 1
1 0 0 0 0
1 0 0 1 0
1 0 1 0 0
1 0 1 1 1
I 1 0 0 0
1 1 0 1 0
1 1 1 0 0
1 1 1 1 1
10.
A B C D Y
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 0
0 I 1 0 0
0 1 1 1 0
1 0 0 0 0
1 0 0 1 0
1 0 1 0 0
1 0 1 1 0
1 I 0 0 0
1 1 0 I 1
1 1 1 0 0
1 1 1 1 1
82
PHY 405 ELECTRONICS III
11.
A B C Y
0 0 0 1
0 0 1 0
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 I
1 I 0 0
1 1 1 1
12.
A B C Y
0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 0
13.
14.
15.
83
PHY 405 ELECTRONICS III
References
Floyd, T. L., & Patterson, R.T., (2018). Digital Fundamental (11th ed).
Pearson.
Floyd, T. L., & Patterson, R.T., (2018). Digital Fundamental (11th ed).
Pearson.
Mano, M.M. & Kime, C.R., (2104). Digital Logic and Computer Design
(5th ed).Pearson.
84
PHY 405 ELECTRONICS III
3.1 INTRODUCTION
In Unit 2, you learnt about the combinational logic circuits and adders.
The operation of all such circuits is faithfully defined by the respective
truth table and their outputs do not depend upon the previous input or
output conditions. Hence they do not have memory. However, since the
output of flip-flops depend upon the previous input or output conditions
or sequence of input or output, therefore these circuits, called sequential
circuits, give us a basic memory element.
85
PHY 405 ELECTRONICS III
In a digital computer, the 'memory' is the key device. You often come
across the terms RAM, ROM, floppy, and hard disk. The registers are
memory devices. They are connected in different ways and are available
as integrated circuits in the market. You know that the whole world is
analogue. To use a digital circuit or computer, you have to convert an
analogue quantity into a digital one so that the quantity can be acted
upon or manipulated by the digital circuit or computer as per
requirement. The output of the digital circuit is also in digital form,
which cannot be perceived by you. For this purpose, you have to convert
the digital output into analogue form. Therefore, it is necessary to have
circuits which will convert an analogue quantity (such as voltage) into
digital form and vice versa. Such circuits are analogue-to-digital (AD)
and digital-to-analogue (DA) converters. In this unit, you will learn
different kinds of memories, and AD and DA Converters also.
Objectives
After studying this unit, you should be able to:
explain the functioning of buffer and controlled buffer registers,
describe the functioning of the shift register,
describe the functioning of the shift left and shift right registers,
explain the functioning of the controlled shift register,
explain the construction and functioning of an asynchronous
(ripple) counter,
describe the functioning of ring and mod 10 (decade) counters,
explain several memory terms used in digital circuits,
explain the capacity of memory and specify how many bits can
be stored in a memory device,
describe general memory operation,
explain and distinguish between RAM and ROM,
describe the functioning of a digital-to-analogue and an analogue-
to-digital converters.
3.2 REGISTERS
A register is a group of memory elements which stores a binary word
and it may modify the stored word in a particular fashion as is desired
by the application in which it is used. It is capable of shifting the stored
binary word a step or more towards left or right. In this section you will
learn about registers.
86
PHY 405 ELECTRONICS III
Q 3 Q 2 Q 1Q0 = X3X2X1X0
Q X
This circuit is very basic. We should have some method to hold the
input word till such time we are ready to store it. This is achieved by a
controlled buffer register.
Q = 0000
When CLR returns. LOW, the register is ready for desired action.
87
PHY 405 ELECTRONICS III
When the LOAD is made HIGH, the word or data X is transmitted to the
D inputs and the flip-flops are ready to change. When the PGT of the
CLK arrives, the X input is loaded and is available at Q outputs, and
Q 3 Q 2 Q 1Q0 = X3X2X1X0
With LOAD returning to LOW, the input word is stored. That is, so long
as the LOAD remains LOW, it is not affected even when X input is
changed. In this kind of register, as is seen from the circuit, the input is
given to all the flip-flops simultaneously and the output is also obtained
from all the flip-flops simultaneously. This is quite often referred to as
parallel-in/parallel-out register.
88
PHY 405 ELECTRONICS III
Q = 0000
That is, initially the inputs to all the other three flip-flops are 0. Now
with the arrival of
the PGT of the first CLK, the Q0 output is 1, and the stored word
becomes
Q = 0001
Now with D1 = 1 and D0 = 1, when the PGT of the second CLK arrives
then the first and the second flip-flops are set, making the register output
to be
Q = 0011
Q = 0111
Similarly when the PGT of the fourth CLK arrives, then output becomes
Q = 1111
The stored word is thus 1111 and it remains unchanged so long as Din =
1. However, if Din = 0, then with successive CLK pulses the register
output or content becomes
89
PHY 405 ELECTRONICS III
This word 0000 remains stored so long as Din = 0. The entire operation
of the shift-left register in terms of its tuning diagram is shown in Fig.
3.4.
90
PHY 405 ELECTRONICS III
Q = 0000
At the arrival of the PGT of the first CLK, D3 = 1, and all other D inputs
are 0, Therefore, the fourth flip-flop is set and the stored word is
Q = 1000
Now D3 = 1 and D2 = 1. When the PGT of the second CLK arrives, the
third and the fourth flip-flops are set, and the stored word becomes
Q = 1100
Similarly, with the arrival of the PGT of the third CLK, the stored word
becomes
Q = 1110
And with the arrival of the PGT of the fourth CLK, the stored word
becomes
Q = 1111
91
PHY 405 ELECTRONICS III
Its operation is as follows: When the control input signal SHL is 0, the
inverted signal SHL is 1. In this condition, the Q outputs of the flip-
flops are circulated back to their respective D inputs. It means that the
data stored in the register remains stored even at the arrival of the PGT
of the CLK. That is, the stored word is stored indefinitely.
Let us now reverse the control signal. When the control input signal
SHL is 1, the inverted signal SHL is 0. In this condition, Din is available
at the D0 input, and at the arrival of the PGT of the first CLK the first
flip-flop is set by D0. With successive CLKs, Q0 sets the second flip-flop,
Q1 sets the third, and Q2 sets the fourth flip-flop. At each PGT of the
CLK, the stored word shifts a step towards the left.
Q = 0001
Q = 0010
Q = 0100
92
PHY 405 ELECTRONICS III
Q = 1001
The data is thus entered serially and the stored word is available parallel
from all the Q outputs.
Fig. 3.7 Controlled shift register with parallel as well as serial loading
arrangement
If LOAD and SHL are 0, the output of the NOR gate is 1. With this
condition the Q outputs are circulated back to their respective D inputs.
The previously stored word continues to be stored. The register, in this
state, is known as inactive register.
If the LOAD is 0 and SHL is 1, the register is used for serial loading as
is done in the case of register shown in Fig. 3.6. If Load is 1 and SHL is
0, then X bits set the D inputs simultaneously on the first CLK itself.
This is the case of parallel loading.
93
PHY 405 ELECTRONICS III
3.3 COUNTERS
A counter is an equivalent of binary odometer. It counts the number of
CLK pulses which arrive at the CLK input. Basically, there are two
types of counters, asynchronous (ripple) and synchronous. We shall
learn about them in this section.
Let us understand the operation of the ripple counter. The clock pulses
are applied to the CLK input of the first flip-flop. Since the flip-flops are
driven by the NGT of the CLK, with J = K = 1, the first flip-flop toggles
when the CLK pulse goes form 1 to 0. The Q1 output of second flip-flop
toggles when Q0 output of the first flip-flop goes from 1 to 0, and so on.
With CLR = 0, all the flip-flops are reset to
Q = 0000
After resetting keep CLR = 1. Now the counter is ready to count. The
Q0 toggles for each NGT. Therefore, when the NGT of the first CLK
arrives, then the Q output is
Q = 0001
94
PHY 405 ELECTRONICS III
At the second CLK, Q0 toggles from 1 to 0 which acts as a NGT for the
CLK input of the second flip-flop, the Q1 output of which toggles to 1.
Therefore,
Q = 0010
Q = 0011
Q = 0100
0 0000
1 0001
2 0010
3 0011
4 0100
5 0101
6 0110
7 0111
8 1000
9 1001
10 1010
11 1011
12 1100
13 1101
14 1110
15 1111
Next CLK resets alt the flip-flops and the Q outputs on successive CLK
would be
16 0000 (recycles)
17 0001
95
PHY 405 ELECTRONICS III
18 0010
.. ….
.. ….
Mod of a Counter
The counter described above has 16 distinct states or outputs (0000 to
1111). It is said that the Mod number of this counter is 16. The Mod
number of a counter is equal to the number of states which the counter
goes through in each complete-cycle before it recycles back to its
starting state. The Mod number can be increased by increasing the
number of flip-flops. If n is the number of flip flops used in a counter,
then
Mod Number = 2 n
Frequency Division
The output of each flip-flop and the CLK are shown in Fig. 3.9. It is
clear that the frequency of Q0 output is half the frequency of the CLK.
The Q0 output acts as a CLK to the second flip-flop, and the frequency
of its Q1 output is half the frequency of Q0 or one-fourth the frequency
of the CLK.
96
PHY 405 ELECTRONICS III
SAQ 1
If the frequency is 100 kHz, what will be the output frequency of the
third flip-flop of a ripple counter?
The CLK inputs of all the flip-flops are connected with each other so
that the CLK signal reaches them simultaneously. Similarly, the CLR
inputs of all the flip-flops are connected with each other so that they can
be reset simultaneously by making CLR = 0. All J and K inputs have not
been connected to each other as is the ease in ripple counter. The JK
inputs of the first flip-flop are always kept at 1. The flip-flops toggle at
the arrival of the PGT of the clock pulse at their CLK inputs provided
their JK inputs are at 1. The operation of this counter can be understood
as follows:
Q = 0000
97
PHY 405 ELECTRONICS III
Q = 0001
Q = 0010
At the arrival of the PGT of the third CLK, the JK inputs of second,
third and fourth flip-flops are at 0; therefore they are in no change
condition. Only the first flip-flop is ready to toggle from 0 to 1. Thus at
the third CLK,
Q = 0011
Q = 0100
Successive, Q outputs are 0101, 0110, and 0111. At the arrival of the
eighth CLK, the JK inputs of all flip-flops are at 1. The Q outputs of all
the flip-flops toggle, and we have
Q = 1000
The successive CLK pulses change the Q outputs in the same way as
described above. The Q output at each CLK is summarised in Table.
3.2.
98
PHY 405 ELECTRONICS III
Table 3.2
At the arrival of the PGT of the next CLK, the counter resets to Q =
0000.
99
PHY 405 ELECTRONICS III
The working of the ring counter can be understood as follows. When the
CLR is made active, i.e., when it is made 0, the first flip-flop is set and
all others are reset. Therefore, Q output is
Q = 0001
Q = 0010
At the time the PGT of the second CLK arrives, D0, D1 and D3 are at 0,
and D2 is at 1. Therefore, the Q output is,
Q = 0100
Similarly at the arrival of the PGT of the third CLK, .the Q output
becomes,
Q = 1000
The PGT of the fourth CLK starts the cycle again, and
100
PHY 405 ELECTRONICS III
Q = 0001
Thus we find that bit 1 shifts a step to its left and it rotates back to its
initial position, and so on. It is because of this effect that it is known as
ring counter. Instead of a ring of four bits, if you want a bigger ring then
add more flip-flops.
Table 3.3
101
PHY 405 ELECTRONICS III
The circuit skips the states from 10 to 15, i.e., from 1010 to 1111. The
circuit is made to skip these states by the combination of NAND and
AND gates present in the circuit. The idea is that when Q = 1010 is
expected at the tenth CLK, the flip-flops should be cleared to be reset to
0000 which is done by bringing CLR input to 0. This is achieved by
connecting Q1 and Q3 to the inputs of a NAND gate which gives output
0 when its inputs are 1 (which is the case when Q = 1010 is expected at
the tenth CLK). The output 0 of the NAND gate makes the AND gate
output to be 0. This makes the CLR active and the flip-flops reset to
Q = 0000
When the CLR is a made inactive, i.e., when CLR = 1, the counter
becomes ready to count once again.
Since it takes 10 CLK pulses to reset the counter, the frequency of the
Q3 output is one-tenth of that of the CLK. It is therefore called a divide-
by-10 circuit. It is used in BCD applications and frequency counters.
Example 3.1
102
PHY 405 ELECTRONICS III
SAQ 2
What is the Mod of a counter which consists of six flip-flops?
The mass storage memory devices are external to the computer and are
capable of storing millions of bits even without requiring any electrical
power. The mass storage memory is generally very slow compared to
103
PHY 405 ELECTRONICS III
the internal memory and the information stored is the one which is not
currently required by the computer. It is supplied to the computer only
when required. The mass storage memory devices are floppies, magnetic
tapes and disks, etc. The cost of per bit storage of these devices is much
less compared to the internal memory.
Table 3.4
Address Location
000 word 0
001 word 1
010 word 2
011 word 3
100 word 4
101 word 5
110 word 6
111 word 7
104
PHY 405 ELECTRONICS III
The capacity of a memory is a term used to express how many bits can
be scored in a particular memory device or in a complete memory
system. For example, let us say that we have a memory which can store
2048 eight-bit words. This memory can store 2048 8 = 16384 bits and
we say that this memory can store 16384 bits. Another way to express
this capacity is as 2048 8. This kind of expression of memory means
that there are 2048 words and the size of the word is 8 bits. The number
of words in a memory is generally a multiple of 1024. The figure of
1024 = 210 is commonly represented as 'IK'. Thus memory capacity of
2048 8 is also expressed as 2K 8. For larger memories, '1M' or '1 meg'
is used for 220 = 1,048,576. Therefore, a 4M 8 memory has a capacity
of 4,194,304 8 or alternatively of 33,554,432 bits.
Example 3.2
A user has two memory devices. One of these stores 10M words of 8-bit
size, while the other stores 2M words of 16-bit size. Which of the two
stores most bits?
Solution
The two memories are of 10M 8 and 2M 16.
SAQ 3
A certain memory is specified as 32K 8.
105
PHY 405 ELECTRONICS III
106
PHY 405 ELECTRONICS III
Fig. 12.16 Virtual arrangement of memory cells into sixteen 4-bit words
As a further illustration, let us say that you want to change the word
1111 stored in the fourteenth location to 0101. To do so, choose the
address 1101, keep read/write terminal at 1 so that write operation is
chosen, and then feed the desired word 0101 to the data input. Thus the
new word is stored in place of the old one.
107
PHY 405 ELECTRONICS III
108
PHY 405 ELECTRONICS III
A block diagram of such a DAC is shown in Fig. 3.19. It has four binary
input lines representing A3A2A1A0 and one output line representing
corresponding proportional analogue quantity. Each 4-bit input has
unique proportional output voltage. There are 2 4 = 16 states that the
109
PHY 405 ELECTRONICS III
binary input can have. Let us say that each input specifies a decimal
number. Let us designate 1V output equivalent to decimal number 1, 2V
as number 2, and so on.
Vout = 1 V 6 = 6 V
Table 3.5
A3 A2 A, AO Vout
0 0 0 0 0
0 0 0 1 1
0 0 1 0 2
0 0 1 1 3
0 1 0 0 4
0 1 0 1 5
0 1 1 0 6
0 1 1 1 7
1 0 0 0 8
1 0 0 1 9
1 0 1 0 10
1 0 1 1 11
1 1 0 0 12
1 1 0 1 13
1 1 1 0 14
1 1 1 1 15
110
PHY 405 ELECTRONICS III
Analogue Output
The DAC output is technically not an analogue quantity. It can have
only specific values. In the above example, it can have values only from
0 to 15 in steps of 1, that is 1, 2, 3, ..., 15. Therefore, strictly speaking it
is digital. By increasing the number of input bits, the number of possible
output values can be increased and the difference between successive
values decreased. Thus the output can be made more or less analogue.
For the time being we can only say that the DAC output is pseudo
analogue.
Let us analyse the inputs and outputs given in Table 3.5 and consider
only those digital inputs where one of the four bits is 1 and other three
bits are 0. Such inputs and corresponding outputs are rewritten in Table
3.6.
Table 3.6
A3 A2 A1 A0 Vout
0 0 0 1 1
0 0 1 0 2
0 1 0 0 4-
1 0 0 0 8
It is clear from the entries included in Table 3.6 that the contributions of
1 are weighted according to their position in binary number. The bit A3
has weight of 8, A2 has weight of 4, A1 has weight of 2 and A0 has
weight of 1. Thus the weight of the LSB is the smallest change. To
check,
1001 = 8 + 0 + 0 + 1 = 9
Example 3.3
A 5-bit DAC produces 0.5V for 00001. Find Vout for 11010.
Solution
In the example the smallest change is 0.5V. Therefore,
Example 3.4
A 5-bit DAC produces a 10 mV output for a digital input of 10100.
What will Vout be for a digital input of 11101?
Solution
101002 = 2010
111
PHY 405 ELECTRONICS III
= k digital input
Vout
10 mV = k 20 10
k = 0.5 mV
SAQ4
The smallest change in a 4-bit DAC is 0.25V. What is Vout for a DAC
input 1110?
It can easily be seen that there are 16 levels from 0 to 15V, but there are
only 15 jumps. That is, the number of steps between 0 and 16 is 15. The
number of steps in general can be calculated as
Number of steps = 2 n – 1.
The resolution or step size is actually the constant k in equation (3.1).
The percentage resolution is defined as
112
PHY 405 ELECTRONICS III
step size
% resolution = 100
full scale (FS)
(12.2)
Example 3.5
What is resolution (step size) of the DAC of Example 3.4? Describe the
staircase signal out of this DAC.
Solution
The LSB for this converter has a weight of 0.5 mV. This is the
resolution (step size). A staircase waveform can be generated by
connecting a 5-bit counter to the DAC inputs. The staircase will have 28
= 32 levels from 0 mV up to a full scale output ( Vout for input 11111 =
0.5 16 + 0.5 8 + 0.5 4 + 0.5 2 + 0.5 = 8 + 4 + 2 + 1 + 0.5 = 15.5mV
and 31 steps of 0.5 mV each.
SAQ 5
What is the percentage resolution of the DAC of Example 3.5?
DAC circuit
There are several methods and circuits for digital to analogue conversion
which need not be known. A basic DAC circuit is obtained using an op-
amp as a summing amplifier. A 4-bit DAC circuit is shown in Fig. 3.21.
The input resistors are binary weighted, that is, they are in the ratio of 1 :
2 : 4 : 8. The output voltage of this circuit is given as
1 4 1
Vout V A3 V A2 V A1 V A0
2 4 8
113
PHY 405 ELECTRONICS III
Therefore, Vout for 0001 or LSB would be one-eighth of 5V, i.e. 0.625V.
And this is the step size of this converter. Sixteen levels of the Vout are
shown in Table 3.7.
A3 A2 A1 A0 Vout
0 0 0 0 0
0 0 0 1 - 0.625 LSB
0 0 1 0 - 1.250
0 0 1 1 -1.875
0 1 0 0 - 2.500
0 1 0 1 -3.125
0 1 1 0 -3.750
0 1 1 1 -4.375
1 0 0 0 -5.000
1 0 0 1 - 5.625
1 0 1 0 - 6.250
1 0 1 1 -6.875
1 1 0 0 - 7.500
1 1 0 1 -8.125
1 1 1 0 -8.750
1 1 1 1 - 9.375 MSB Full
Scale
These values are ideal values. However, the actual values may not be
same. There may be some error due to fluctuations in the voltages or
inaccurate resistors. The error in a DAC is specified by a term called full
scale error which is the maximum deviation of the DAC's output from
its expected ideal value expressed as the percentage of the full scale
(FS). Let us say that a DAC has an error of + 0.01 % FS in the example
considered above. It means that error is 0.01 % of 9.375V, i.e., + 0.9375
mV.
SAQ 6
What are the weights of each input bit of Fig. 3.21?
Example 3.6
If in the DAC circuit of Fig. 3.21, R F is reduced to half, i.e. 500 , then
what will Vout be for 1001?
Solution
The MSB passes with gain 0.5. Therefore, its weight is reduced to half
of the previous case. That is, it is now 2.5V. Thus each input weight is
114
PHY 405 ELECTRONICS III
the half of the previous case, i.e., 1.25, 0.625 and 0.312V. The Vout for
1001 is
Apply start pulse, i.e. make START input equal to 1. This resets the
counter to 0 output. With 1 at START input, the AND gate is inhibited
which does not allow the CLK from passing through the AND gate. The
counter output is the input to the DAC. With counter reset, the DAC
output V ax = 0. V A is the analogue input to be converted into its digital
equivalent. Since Vax V A , the op amp comparator output EOC is HIGH,
i.e., 1. When the start pulse returns to 0, the AND gate allows the CLK
to pass through and the CLK reaches the counter which starts counting.
As the counter advances, the DAC output V ax advances step by step as
shown in the figure. When V ax reaches a step that exceeds V A , EOC
goes low, i.e., 0, disabling the AND gate. Therefore, the CLK cannot
pass through and the counter stops advancing further. The conversion of
analogue input into its digital equivalent is complete. The contents of the
115
PHY 405 ELECTRONICS III
counter are the digital representative of V A . The counter holds the output
until the next start pulse to initiate a new conversion is supplied.
3.6 SUMMARY
A register is a combination of D flip-flops and stores as many bits as the
number of flip-flops. The register is the most commonly used memory
device. The controlled register can retain the contents of the register as
long as we want. It can shift the contents towards left (shift left register)
or right (shift right register). The data can be supplied to and the output
can be obtained from the register either serially or parallel fashion. The
registers are, sometimes, classified as serial-in serial-out, serial-in-
parallel-out, parallel-in-parallel-out.
116
PHY 405 ELECTRONICS III
(4) What is the largest value of output voltage from an 8-bit DAC
that produces 1 V for a
digital input of 00110010?
(5) If the values of R1 s in the DAC circuit of Fig. 3.21 are reduced to
half, then (a) what is the resolution, and (b) what is the output
voltage for 1101?
= 3.5 V
0.5 mV
5. % resolution = 100% = 3.23%
15.5 mV
6. The MSB passes with gain = 1, and so its weight is 5V. Thus,
117
PHY 405 ELECTRONICS III
MSB - 5V
2nd MSB - 2.5V
3rd MSB - 1.25V
4th MSB, i.e., LSB - 0.625V
TQs
(1) A Mod 12 counter counts from 0000 to 1011. When 1100 appears
the counter should reset. Therefore, a circuit is to be made which
will clear the flip-flops when 1100 appears. The circuit for Mod
12 counter is shown in Fig. 3.23.
(2) The word size of the computer X is 8 bits and that of computer Y
is 16 bits.
For computer X
For computer Y
118
PHY 405 ELECTRONICS III
5) Follow the example 3.6. The resolution is 0.312V and the output
voltage for 1101 is 4.062V.
References
Floyd, T. L., & Patterson, R.T., (2018). Digital Fundamental (11th ed).
Pearson.
Floyd, T. L., & Patterson, R.T., (2018). Digital Fundamental (11th ed).
Pearson.
Mano, M.M. & Kime, C.R., (2104). Digital Logic and Computer Design
(5th ed).Pearson.
119
PHY 405 ELECTRONICS III
4.1 INTRODUCTION
As you are aware, in practical applications of a system, we typically
encounter a situation as shown in Fig. 4.1. In the study of Signal
Processing Circuits we assume that we have the desired electrical signal
and do not worry about input sensor. The performance of a circuit is
displayed on an instrument which can be seen by us. The signals of
different shapes and time duration are provided by signal generators and
a general purpose oscilloscope is used to display them.
We know that all circuits are made up of some active components like
transistors, FET, MOSFET etc. and passive components like resistors,
inductors & capacitors. To measure values of passive components, we
use the multimeter, bridges (for L&C) etc. In this unit, we will be
studying Electronic Voltmeter (EVM), which is a more sensitive and
hence, more accurate instrument as compared to the Multimeter. EVM
can also be used for very low current measurements by using a standard
resistance. The power consumed by these circuits is of vital importance
and hence we will also study the power meter. While studying the
construction of power meter, we will see that the necessary torque
required for meter movement is generated with the help of interaction of
magnetic field and current and hence we will also discuss the art of
measurement of magnetic field.
120
PHY 405 ELECTRONICS III
Objectives
After going through this unit, you will be able to understand
basic construction, working and some of the applications of
Oscilloscope,
generation of various shapes of signals,
accurate measurement of voltage using Electronic voltmeter,
measurement of power, and
measurement of magnetic field.
The heart of the instrument is the cathode ray tube. The remaining sub-
systems are necessary for signal conditioning so that a visual
representation of the input signal will be displayed on the face of the
CRT.
121
PHY 405 ELECTRONICS III
Va
E
d
EQ
F EQ ma a
m
122
PHY 405 ELECTRONICS III
Va Q
a
dm
1 2 2Va Q
mv Va Q v
2 m
After the electrons leave the electron gun assembly at a speed given by
the above-mentioned equation, they enter and pass through a region
controlled by the deflection plates. One pair of plates control the vertical
motion of the beam while the other pair controls the longitudinal
component of the electron velocity. The deflection plates are described
by two geometric parameters of length (L ) of the plates and the plate
separation (d ) . The deflecting action of the plates is dependent on the
intensity of the electric field ( E d ) between the plates given by
Vd
Ed
d
Vd
Fd Ed Q Q ma y
d
Vd Q
ay = acceleration along the y -axis
md
Vd Qt 2
h
2dm
where t = time required for electrons to pass through the plates is given
by
123
PHY 405 ELECTRONICS III
L
t
v
L2Vd
h
4Va d
h 2h y
=
L/2 L R
2hR
y =
L
RLV d
=
2Va d
Vd 2Va f
=
y RL
Vd
The term is referred to as "deflection sensitivity" and is defined as
y
the voltage required per unit deflection. When the electron beam strikes
the phosphor-coated face of the CRT, a spot of light is produced due to
"fluorescence" as phosphor is a florescent material. The high velocity
electrons that strike the phosphor-coated face of the CRT are either
repelled by the collision or cause secondary emission of electrons to
124
PHY 405 ELECTRONICS III
Fig. 4.4 (a) Block diagram of a basic cathode ray oscilloscope (b) Input
to amplifier of vertical
Plate
125
PHY 405 ELECTRONICS III
basically attenuates the signal to the desired input at A (we have already
studied filters and attenuators).
126
PHY 405 ELECTRONICS III
Fig. 4.6 Block diagram of the input channels of a dual trace oscilloscope
127
PHY 405 ELECTRONICS III
Voltage measurements
The most direct voltage measurement made with an oscilloscope is the
peak-to-peak value. The rms value of the voltage can easily be
calculated from the peak-to-peak measurements if desired. To arrive at a
voltage value from the CRT display, one must observe the setting of the
vertical attenuator, expressed in volts/div, and the peak-to-peak
deflection of the beam. The peak-to-peak value of the voltage is then
computed as (see Fig. 4.7)
volts
V pp no. of division
div
Example 4.1
Let the waveform shown in Fig. 4.8 be observed on the screen of an
oscilloscope. If the vertical attenuator is set to 0.5 volts/div, find the
peak-to-peak amplitude of the signal.
128
PHY 405 ELECTRONICS III
Fig. 4.8
Solution:
=
volts
V pp no. of division
div
0 .5 V
= 3 div
div
129
PHY 405 ELECTRONICS III
SAQ 2
Describe the basic principle of operation of dual-trace/storage
oscilloscope.
SAQ 3
If the time/div control is set to 2 s/div and the displayed signal covers
4 div on the horizontal scale of the CRT screen, determine the frequency
of the signal.
SAQ 4
Explain the principle of the Digital Oscilloscope.
Fig. 4.9 Different shapes of wave form, (a) Sinusoidal (b) Rectangular
(e) Triangular
(d) Ramp
Definition of rise time (Tr ) : The time taken by the signal to rise from
10% to 90% of the maximum value of the signal is called rise time.
Fall time (T f ) : The time taken by the signal to fall from 90% to 10% of
the maximum value of the signal is called fall time.
Function generator:
The primary waveform in the circuit shown is a square wave. This is
because some square wave generator circuits offer significantly better
130
PHY 405 ELECTRONICS III
R1 R2
Vx VCC V02
R1 R2 R1 R2
131
PHY 405 ELECTRONICS III
R1 R2
0 VCC V02
R1 R2 R1 R2
VCC R1 V02 R2
R
V02 VCC 1
R2
q = ic t
dq
dq = ic dt ic
dt
Also, q = CV02
d dV
ic = (CV02 ) C 02
dt dt
Since the input resistance of the operational amplifier is very high, the
current through resistor R is approximately equal to the charging current
of the capacitor, therefore, we can write
dV02
i R ic C
dt
132
PHY 405 ELECTRONICS III
Also, since the voltage gain of the operational amplifier is very high, the
voltage at the input of the amplifier is very nearly zero, therefore,
V01 0 dV
iR = C 02
R dt
1
dV02 = V01dt
RC
1 V
dV 02 =
RC V01dt 01 t
RC
V01 t
V02 =
RC
We know,
R
V02 = VCC 1
R2
R1 V01t
VCC =
R2 RC
133
PHY 405 ELECTRONICS III
R1
t = RC as V01 VCC
R2
The above equation has been deduced assuming no initial charge and
therefore no initial voltage on the capacitor. Therefore, the time t given
above is the time for the capacitor to change from 0V until switching
occurs, which is 1/4 cycle. Since t T / 4 .
Pulse Generators
Pulse generators are instruments that produce a rectangular waveform
similar to a square wave but of different duty cycle. Duty cycle is
defined as the ratio of the pulse width to the pulse period, expressed in
percent.
Pulse width
Duty cycle = 100
Pulse period
The duty cycle of a square wave is 50% whereas the duty cycle of a
pulse is generally from approximately 5 to 95%.
SAQ 5
Describe the function generator.
SAQ6
What is difference between a square wave and a pulse?
SAQ7
Compute the frequency and the peak amplitude of the triangular output
of the circuit shown in Fig 4.12.
134
PHY 405 ELECTRONICS III
Fig. 4.12
135
PHY 405 ELECTRONICS III
The circuit is balanced when identical FETs are used so that for a zero
input there is no current through the ammeter. If a positive dc voltage is
applied to the gate of the left FET, a current will flow through the
ammeter in the direction shown in Fig. 4.14.
The size of the current depends on the magnitude of the input voltage.
By properly designing the circuit, the ammeter current will be directly
proportional to the dc voltage across the input. Thus, the ammeter can be
calibrated in volts to indicate the input voltage.
r R
Vout g m d D V1 g m (rd || RD )V1
rd RD
136
PHY 405 ELECTRONICS III
Fig. 4.15 Setting all voltages equal to zero to find Rth of EVM
Vout g m (rd || RD )
i V1
RTh Rm 2(rd || RD ) Rm
g m RD
i V1
2 R D Rm
SAQ8
How does FET EVM differ from the VOM?
SAQ9
Give the circuit for the difference-amplifier type of EVM.
137
PHY 405 ELECTRONICS III
SAQ10
Given a difference amplifier type of FET voltmeter, find the ammeter
current under the following conditions:
V1 =1V RD = 10 k
rd = 100 k Rm = 50 M
gm = 0.005 Siemens
4.5 POWERMETER
The wattmeter is an instrument used to measure the power or rate of
consumption of electricity in a circuit in watts. The most commonly
used powermeter is the Siemen's wattmeter shown in Fig. 4.17.
Ei
138
PHY 405 ELECTRONICS III
or Watt expended in L = K
139
PHY 405 ELECTRONICS III
d d
The emf induced in the search coil is N 1 , where is the rate of
dt dt
change of flux
d d
in the search coil and the emf in the fluxmeter coil is G , where
dt dt
is the angular velocity
of the fluxmeter coil and G = NAB is a constant depending on the
construction of the fluxmeter. In addition, the emf produced in the
di di
circuit due to self inductances is ( L f Ls ) or L , where L is the total
dt dt
inductance of the circuit. The potential drop in the resistance is
( R f Rs )i or R i , R being the total resistance of the circuit. Using
Kirchoffs law, we get
d d di
N1 G L Ri 0
dt dt dt
d d di
N1 G L Ri
dt dt dt
d d di
N1 G L
dt dt dt
t d t d t di
N1 G L
0 dt 0 dt 0 dt
2 2 i2
N 1 d G d L di
1 1 i1
N1 ( 2 1 ) G( 2 1 ) L(i2 i1 )
N1 ( 2 1 ) G( 2 1 )
N1
N1 G
G
140
PHY 405 ELECTRONICS III
4.7 SUMMARY
A cathode ray oscilloscope is used for the measurement of
electrical parameters like, ac and dc voltage, ac and dc
current, time-phase relationship, frequency and for observing
various waveforms.
Laboratory oscilloscopes can be classified into two categories:
(i) Dual trace oscilloscope and (ii) Storage oscilloscope.
A signal generator provides a variety of output waveforms
over a wide range of frequency. The most common output
waveforms are: sine, pulse, square, triangular and ramp.
An electronic voltmeter is characterised by high input
resistance.
A power meter is used to measure the power or rate of
consumption of electricity in a circuit.
A magnetic field meter is an instrument for measuring
magnetic field strengths.
1. See text
2. See text
2 sec 4div 8 sec
3. T
div cyc cyc
1 1
f = 125 KHz
T 8 sec/ cyc
4. See text
5. See text
141
PHY 405 ELECTRONICS III
6. See text
7. We know
1 R2
f =
4 RC R1
1 100 103
=
4 500 103 0.004 10 16 60 103
= 208 Hz
R1
Also, V02 = VCC
R2
60 103
= 15 =9V
3
100 10
8. See text
9. See text
g m (rd || RD )
10. i
2(rd || RD ) g m
TQs
1. See text
2. See text
3. See text
4. See text
5. See text
6. See text
7. See text
References
Brown, S., Vranesic, Z. (2018). Fundamental of Digital Logic with
Verilog Design (3rd ed). McGraw Hill Education.
Floyd, T. L., & Patterson, R.T., (2018). Digital Fundamental (11th ed).
Pearson.
Floyd, T. L., & Patterson, R.T., (2018). Digital Fundamental (11th ed).
Pearson.
142
PHY 405 ELECTRONICS III
Mano, M.M. & Kime, C.R., (2104). Digital Logic and Computer Design
(5th ed).Pearson.
143