Professional Documents
Culture Documents
Digital Electronics Textbook For XII Standard Bifocal Vocational Electronics
Digital Electronics Textbook For XII Standard Bifocal Vocational Electronics
Digital Electronics Textbook For XII Standard Bifocal Vocational Electronics
net/publication/336588790
CITATIONS READS
0 163
1 author:
Dattaraj Vidyasagar
Shri R.L.T. College of Science
49 PUBLICATIONS 1 CITATION
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Dattaraj Vidyasagar on 16 October 2019.
Digital Electronics
Special Textbook for XII Bifocal Electronics Students,,
Useful for Diploma & Degree in Electronics Engineering
D. S. Vidyasagar
M.S. (Elect. & Comm.), A.M.I.E. (Telecom.), Dip: Ind. Elect., A.I., Robotics, Cyber Law,
Webdev & SSL; M.A. (Russian, French), Sanskrit Alankar, Sangeet Visharad
Contributor to International
rnational Magazines
Electronics For You (New Delhi), Elektor (U.K.),
Wireless World (Australia), Science Today, etc.
Digital Electronics
Textbook for XII Standard Bifocal Vocational Electronics,
Also useful for Diploma & Degree Courses in Electronics Engineering
(The Textbook also useful with the syllabi of: Indonesian Electronics Technology HSC, NSW,
Nepal Diploma in Electronics Engineering (CTEVT) and Pakistan NISTE DAE Course)
Published By:
Vidyasagar Academy,
Mrs. C.D. Vidyasagar
42/3A, 772, Renuka, Ranpise Nagar, Akola
99-60-06-45-64
Copyright © 1990-2018, All rights reserved. No part of this publication may be reproduced, stored, copied in a
retrieval form, or transmitted by any means, electronics, mechanical, photocopying, recording, or otherwise,
without the prior permission of the author and the copyrig
copyright holder, both.
Acknowledgements:
The author extends his thanks and profound appreciation for all those who helped him directly or indirectly in
bringing this Textbook in present stature.
The author welcomes any suggestions, both from the teachers and the sstudents,
tudents, for further improvement of this
book, at dsvakola@gmail.com.. Visit his profile on www.vsagar.org to know more about him.
ISBN: 978-81-924365-5-5
ASIN: B00F7OD9HA
CONTENTS
1. Number Systems .................................................................................................................... 5
1.1 Introduction ............................................................................................................................................. 6
............................................................. 118
Model Question Paper:: XII Digital Electronics, Paper II ................................................................
Number
1. Number Systems
Systems
Vidyasagar Sir’s XII std. Textbook on Digital Electronics (Paper-2), www.vsagar.org
Page|6
1.1 INTRODUCTION
In this chapter, we shall study different types of number systems useful in digital electronics, they are:
binary number system and hexadecimal number system.
Step #2: If there is a ‘0’ in given binary number then strike it out, as follows:
1 1 1 0 1
16 8 4 2 1
Step #3: Now add the remaining decimal values to get the answer of this conversion, as follows:
16 + 8 + 4 + 1 = 29
So the decimal equivalent is 29 . In this way, we can convert any binary number into its unique
equivalent decimal value.
E X E R CI S E 1.1 (A N S WE RS ON L AS T P A G E )
1) Convert into decimal value: 110, 10010, 11, 11110101, 1010101, 1111, 10000011
2) Write down all the following binary numbers in a table and then convert them into their
equivalent decimal value. Note down the sequence of binary and decimal.
0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111,
1000, 1001, 1010, 1011, 1100, 1101, 1110, 1111
1101.101
binary point
Suppose we have to convert a binary number 1101.101 into its unique equivalent decimal value –
Step #1: Split the given binary number into two parts integer part and the fractional part as follows:
1 1 0 1 . 1 0 1
Step #2: Now below each binary digit write down the decimal value in proper direction, as follows:
1 1 0 1 . 1 0 1
OR
1 1 0 1 . 1 0 1
Step #3: Now strike out the decimal values below binary ‘0’ –
1 1 0 1 . 1 0 1
E X E R CI S E 1.2 (A N S WE RS ON L AS T P A G E )
1) Convert into decimal value: 110.11, 111.01, 100.001, 1111.1111, 1010.1010, 1.1, 110.0001
2) Write down all the following binary numbers in a table and then convert them into their
equivalent decimal value. Note down the sequence of binary and decimal.
0000.0000, 0001.0001, 0010.0010, 0011.0011, 0100.0100, 0101.0101, 0110.0110, 0111.0111,
1000.1000, 1001.1001, 1010.1010, 1011.1011, 1100.1100, 1101.1101, 1110.1110, 1111.1111
47/2 = 23 1
23/2 = 11 1
11/2 = 5 1
direction to read
5/2 = 2 1
2/2 = 1 0
1/2 = 0 1
here the So the answer is: 101111
quotient is ‘0’
So the binary equivalent is 101111 . In this way, we can convert any decimal number into its unique
equivalent binary value.
0.375 x 2 = 0.75 0
direction to read
0.75 x 2 = 1.5 1
0.5 x 2 = 1.0 1
0.0 x 2 = 0.0
process So the answer is: 0.011
ends here
as carry = 0
Important Note
1) If the given decimal value is other than 0.5, 0.25, 0.125 or 0.0625… and so on, then you get
approximate answer. In such case, obtain the approximate answer after 5 to 7 steps.
2) If the given decimal value is like this: 34.27 then convert integer and fractional values
separately and then add both values to get the answer.
0.32 x 2 = 0.64 0
0.64 x 2 = 1.28 1
0.28 x 2 = 0.56 0
direction to read
0.56 x 2 = 1.12 1
0.12 x 2 = 0.24 0
0.24 x 2 = 0.48 0
0.48 x 2 = 0.96 0
0.96 x 2 = 1.92 1
0.32 x 2 = 0.64 0
So the approximate answer is:
0.64 x 2 = 1.28 1
10111 + 0.111100001 =
10111.111100001
So the fractional part is: 0.111100001
E X E R CI S E 1.3 (A N S WE RS ON L AS T P A G E )
1) Convert into binary values: 23, 95, 67, 71, 137, 83, 10, 17, 511, 2048
2) Convert into binary values: 0.625, 0.11, 3.8125, 72.34, 1.1, 10.7, 6.99, 5.55
E X E R CI S E 1.3 A N S WE RS
1) 23 = 10111, 95 = 1011111, 67 = 1000011, 71 = 1000111,
137 = 10001001, 83 = 1010011, 10 = 1010, 17 = 10001,
511 = 111111111, 2048 = 100000000000
E X E R CI S E 1.4 A N S WE RS
1) Hexadecimal into binary
9AF.20C = 1001 1010 1111 . 0010 0000 11
192.6E0 = 1 1001 0010 . 0110 1110
ABC.CAD = 1010 1011 1100 . 1100 1010 1101
100.0001 = 1 0000 0000 . 0000 0000 0000 0001
33.001 = 11 0011 . 0000 0000 0001
75C.FD4 = 111 0101 1100 . 1111 1101 0100
240.193 = 10 0100 . 0001 1001 0011
A1B2.C3D9 = 1010 0001 1011 0010 . 1100 0011 1101 1001
E X E R CI S E 1.5 A N S WE RS
1) Addition of binary numbers
a) 11001 + 10011 = 101100
b) 10111 + 101111 = 1000110
c) 10011110 + 101110011 = 1000010001
d) 110.1011 + 1011.0111 = 10010.0010
e) 1111111 + 1101000 = 11100111
E X E R CI S E 1.6 A N S WE RS
1) Solve the following using 1’s complement methods –
a) 1001 − 1101 = −0100
b) 0000 − 1111 = −1111
c) 11011 − 1100 = 1111
d) 1110 − 111111 = −110001
e) 11000001 − 1101 = 10110100
______________________
SUMMARY
1. As we know that, in decimal number system, there are 10 digits or symbols which can be arranged into
different combinations to obtain any large or small number.
2. Likewise, there is another number system known as binary number system. It contains only two digits: a
0 and a 1. Using these two digits, we can construct any small or large binary number by arranging
number of such digits.
3. Binary number system contains only two symbols: a 1 and a 0. Hence, its base or radix is (2). With their
different combinations, we can obtain any small or big binary number like 11101 , 10101000 etc.
The suffix ‘2’ indicates binary number.
4. Hexadecimal number system contains sixteen symbols: 0 to 9 and , , , , & . Hence, its base or
radix is (16). With different combination, we can obtain any small or big hexadecimal (hex) number like
34 , 345 etc. The suffix ‘16’ indicates hexadecimal number.
5. A code is a computer utility language used in all types of its operations. Each code has specific rules and
Operating System (called as OS).
6. Binary Coded Decimal (BCD) Code is also known as 8421BCD code. In this code the digits of given
decimal number are ENCODED one at a time, into binary nibble form. Each digit in decimal is separated
and assigned to specific weight w.r.t. binary.
7. The ASCII code is called as American Standard Code for Information Interchange. It is mainly used in
digital data communication. It is a 7-bit alphanumeric code to represent 128 different symbols like
English alphabets (capital & small), numerals, punctuation marks etc.
8. This code is known as Extended Binary Coded Decimal Interchange Code. It is also used in digital data
communication. It is an 8-bit alphanumeric code to represent 256 different symbols like English
alphabets, numerals, punctuation marks etc.
9. Just like decimal fractional numbers, the binary and hexadecimal numbers are also written in the form
of fractional numbers like 1101.1011 and A45D.24CF, etc.
10. While adding two binary numbers we can add them just as per the rules of decimal addition. The basic
rules of binary addition are: 0 + 0 = 0, 0 + 1 = 1, 1 + 0 = 1, 1 + 1 = 0 with a carry as 1 and 1 + 1 + 1 = 1
with a carry as 1.
11. While subtracting smaller binary number from larger binary number we can subtract them just like the
rules of decimal addition. The basic rules of binary subtraction are: 0 – 0 = 0, 1 – 0 = 1, 1 – 1 = 0, etc.
12. Taking a 1’s complement of given binary number means writing a 0, where it is a 1 and writing a 1
where it is a 0, with respect to the given binary number.
13. Taking 2’s complement of given binary number means, first to take the 1’s complement of given binary
number and then adding a 1 in that 1’s complement to obtain the 2’s complement.
Sub
C3 C2 C1 C0
F.A. F.A. F.A. F.A.
S4 S3 S2 S1 S0
Block diagram of 4-bit binary adder/subtractor
1 1 0 1 1 1 0 1 2’s complement
+ +
=
of 1100
1 1 0 0 0 1 0 0
1 1 0 0 carries
? ? ? ? ?
1 0 0 0 1 answer
ignore this
‘end around carry’
SUMMARY
1. A logic circuit is so named, because it can simulate human mental process like to take decisions. It is a
combination of different electronic components, which obeys laws of Boolean algebra and digital
electronics.
2. An AND gate is a logic circuit, whose output becomes high ONLY WHEN ALL ITS INPUTS ARE HIGH. Its
logic equation is Y = A.B.
3. An OR gate is a logic circuit whose output becomes high WHEN ANY ONE OF ITS INPUTS IS HIGH. Its
logic equation is Y = A + B.
4. A NOT gate has only one input and one output. It gives high output WHEN ITS INPUT IS LOW. Its logic
equation is = ̅. Thus, it shows that Y is complement of A.
5. De Morgan’s first theorem states that the complement of product is equal to the sum of the
complements i.e. . = ̅ +
6. De Morgan’s first theorem states that the complement of sum is equal to the product of the
complements: + = ̅.
7. A NAND gate is a logic circuit, whose output becomes low only when all its inputs are high. In other
words, its output is high when at least one of its inputs is low.
8. A NOR gate is a logic circuit whose output becomes low when any one of its inputs is low. In other
words, i.e. its output becomes high when both of its inputs are low.
9. An Exclusive OR gate is defined as a logic circuit whose output becomes high only when its both inputs
are unequal i.e. = . + ̅. = = ⊕
10. Parity means a single binary 1. Thus, if a binary number is given as: 1101 then it contains three
parities. Such binary number is called as odd parity binary “word”. But if a binary number is given as:
1001101 then it contains four parities. Then such number is called even parity binary “word”.
11. The Ex-OR gate can be used as controlled inverter circuit. When one input terminal of Ex-OR gate is
permanently connected to logic-1 then the other input terminal with output terminal behave like a NOT
gate.
12. In full adder circuit, there are two outputs CARRY and the SUM. Their equations are as follows –
= + ⊕ . = + +
= ⊕ ⊕
PROBLEMS
Important Note: Some problems given below are only for conceptual study. Such complicated problems are not
asked in HSC Board Exam.
1. Find out the final output Boolean equation of the following circuit with step by step analysis. Obtain the
output equations in each step and simplify the final output equation of each logic circuit.
2. A branch of State Bank of India has five personnel working in the branch. There is one security vault
which requires security keys to open it. The manager of the bank has his own key with which he can
independently open the vault. But there are two assistant managers who also have their own keys
which required to be used simultaneously to open the vault. There are two clerks also who can operate
the vault when both of them apply their keys simultaneously. Then write down the logic equation for
operating the security vault. Also draw the logic circuit.
3. In medical science it is experimentally proved that the possible progeny blood group is related with
maternal and paternal blood groups. The possible combinations are given as follows.
+ = , , , + = , + = , , ,
+ = , , , + = , + = , , ,
+ = , + = , , ,
4. Then draw the logical circuit for total combinations in a single circuit and explain your ideas about it.
5. How can we construct 8-bit adder circuit using half and full adder circuits? Explain your idea about it
and also draw the circuit.
6. Draw the logic circuit of Ex-NOR gate and derive its Boolean equation.
7. Simplify the following logic equations and obtain their simplest form.
8. = + + + = . + +
9. Draw the logic circuits for the following given logic equations –
10. = ̅ + + ̅
11. = ̅+ + . ̅ +
12. = + . + ̅ + . +
13. = + + +
2. When any one input of OR gate is at logic-1, its output is at ________. (Ans: logic-1 state)
3. The bubbled AND gate is also called as _________. (Ans: NOR gate)
4. In half adder circuit, when both of its inputs are logic-1, then its output is ______. (Ans: 10)
5. When one input of 2-input Ex-OR gate is connected to logic-1, then the circuit behaves as _________
logic circuit. (Ans: NOT gate)
8. When both inputs of an Ex-OR gate are at equal logic level, i.e. either at logic-1 or logic-0, then its
output will be at __________. (Ans: logic-0 state)
9. If two NOT gates are connected one after another, such that the output of first is connected to the
input of second, and if initial input is at logic-0 level, then the final output will be _________. (Ans: 0)
10. Addition process of two binary numbers can be performed using ________ gate. (Ans: binary adder)
4. How to convert a NOR gate into a NOT gate? Explain with diagram.
5. Prove that + + + =
8. What is the basic difference between inclusive OR gate and exclusive OR gate? Explain with diagrams.
5.1 INTRODUCTION
In this chapter, we have to study three applications of logic gates. The first topic covers the most
important logic circuit known as flip flop. It is the basic building block of semiconductor memory like
RAM, ROM, etc. used in computers.
The second topic explains the registers. A register is a group of flip flops used to store a large binary
number into its memory.
And the third topic is the counters. It is again a combination of flip flops used to count the number of
events in the form of digital pulses. All these applications of flip flops are very useful to understand the
hardware of computer. So student must concentrate on this chapter and prepare it along with first two
chapters.
Now consider following left figure. One input of AND gate is at logic-0, then whatever may be input
condition of the other input ‘A’, its output will be always at logic-0 state. It is called disabled condition.
In the same way, the OR gate given below, will be disabled if its one input permanently connected to
logic-1 state.
0 0 Forbidden state
0 1 1 0
1 0 0 1
1 1 No Change state
Note: The RS flip flop using NAND gates is NEVER used as memory storage circuit, because its first
state is forbidden state.
When a flip flop is its output = 1 and when it is its output = 0. So it is said that when
the flip flop is a ‘1’ is stored in the memory of the flip flop. Similarly, when the flip flop is
a ‘0’ is stored in the memory of the flip flop. Thus, a flip flop can be used as memory unit. It can store a
single binary digit i.e. a bit in the form of memory.
Clock
Clock D Remember
The output
0 X No change state follows
1 0 0 1 input .
1 1 1 0
The negative edge PRESET & CLEAR are bubbled inputs i.e. connected through NOT gates.
Computer
7 Computer Fundamentals
Fundamentals
7.1 INTRODUCTION
In the previous six chapters, we have studied the fundamentals of computer hardware. Now in this last
chapter, we shall study the simple and fundamental concepts of general purpose computer system. The
computer consists of main section as CPU along with input and output devices. It also contains
semiconductor memory and auxiliary memory. We shall study all these fundamental concepts in the
following pages.
Mouse: It is particularly used in graphics applications. It gives the visual idea of x–y coordinates to
move the cursor over the screen of computer’s monitor.
MICR: MICR means magnetic ink character reader. It is used to read the coded information (data) on
bar code. The bar codes are generally printed on electronics products, books etc.
Floppy disk: It works as both input/output device. It is
the old type of media on which the information can be
stored in the form of magnetic impressions (like in
audiocassette) for future use.
P a g e | 113
r.p.m. A sectional view of hard disk is shown here. There are six platters parallel to each other and
separated by some distance. The read/write heads
(which contain tiny coils) are independently
arranged on both sides of platters. They move to and
fro, to read or write the data from/on the disks. The
read/write heads are fitted at a distance of 10m-
25m from the surface of each platter. The data
transfer on/from the disk is either in serial or in
parallel form. The surface of each platter is
subdivided into a number of concentric tracks called
as sectors. Each sector is further subdivided into
number of clusters. The cluster is the smallest amount of disk space that can be allocated to hold a file.
A cluster is also called as allocation unit. The total assembly is fitted in a sealed enclosure to protect it
from dust.
Floppy disks: A floppy disk is also used as auxiliary memory. However, its storage capacity is smaller
than the hard disk. It is called as floppy because its disk is made up of flexible plastic. It is coated with
iron oxides. The data is recorded on it, in the form of magnetic impressions. A floppy disk is available
in two types – 3.5”size (with 1.44MB capacity) and 5.25”size (with 1.2MB capacity). The floppies are
very slow in reading/writing the data. Their rotating speed is about 366 r.p.m. and the data transfer rate
is about 20kB/sec. The flexible disk is enclosed in a square plastic/cardboard envelop i.e. cartridge. The
cartridge protects the sensitive disk surface from outer dust and physical damage.
Magnetic tape: It is a sequential accessible auxiliary memory (its working and read/write style is same
as the audio/video cassette). It is used in extremely large
storage of data. However, it is non-addressable memory,
because the data is written on it one after another in a
particular sequence. So if we want to access a particular
type of data, the system searches for it by momentarily
accessing each cluster of whole data. Hence, it is very slow in both reading and writing. It has two reels
on both sides on which a plastic tape of ½” width is wound. The plastic tape is coated with iron oxides
on which the data is recorded by the read/write head, in the form of magnetic impressions of dipoles
(either a 1 or a 0) as shown above. Data is recorded on it in EBCDIC code.
Compact Disc Read Only Memory (CDROM): It is advanced version of floppy disk, having very large
storage capacity. The data is recorded on it in the form of binary codes. The audio/video songs can also
be recorded on it. This device uses sharp laser beam to read/write the data on the disc. The disc is
coated with laser sensitive material and during writing the data, the material actually burns to store the
data on it. Basically, there are two types of CDs available in the market – the CD–R (Writable
Once/Read many times) and the CD–RW (Writable & Readable many times). The CDs are available in
the storage capacity of up to 750MB. It is the modern type of storage device, which is handy and very
easy to operate.