Digital Electronics And Logic Desig 2024
Digital Electronics And Logic Desig 2024
Digital Electronics And Logic Desig 2024
STUDENT’S HANDOUT
10/03/24
1|Page
What is digital electronics?
Digital electronics is the branch of electronics that deals with digital signals,
which are discrete levels of voltage representing binary numbers (0s and 1s). It
forms the basis for the design and operation of digital devices like computers,
smartphones, and many other modern electronic systems.
Under digital electronics, several important concepts are covered such as logic
gates, Boolean operations, logic functions, combinational circuits, sequential
circuits, logic families, and more.
2|Page
Digital electronic systems are more precise and accurate as compared to
analog electronic system.
Digital electronic systems can process, store, and transmit signals and
information more efficiently.
Digital signals and systems are highly immune against noise and
interferences.
Digital systems can be programmed and reprogrammed easily to meet the
requirements of a specific application, on the other hand analog systems
require changes at hardware level.
Digital systems are highly cost-effective and also scalable.
Under computer organization, we study about the hardware architecture and design
principles of a computer system. Therefore, computer organization helps computer
engineers and system designers to develop more efficient computer systems.
Here are the key points that highlight the importance of Digital Electronics in the
field of Computer Organization −
What are the prerequisites for learning digital electronics and logic design?
3|Page
A basic understanding of electrical circuits and fundamental concepts in
electronics is recommended. Familiarity with binary numbers and Boolean
algebra is also beneficial.
Analog Systems
Digital Systems
An analog system is a type of system that operates on continuous time signals,
while a digital system is one that can work on discrete time signals.
4|Page
What is a Digital System?
A type of electronic system that is designed to store, manipulate, and communicate
digitally represented information is termed as a digital system. Some common
examples of digital systems include smartphone, laptops, smartwatch, tablet,
desktop computers, etc.
A digital system is a type of electronic system that utilizes the binary number
system to work. In other words, a digital system is a two-state electronic system
used to represent two binary digits 0 and 1, where 0 represents the low or "off"
state and 1 represents the high or "on" state of the system.
In a digital system, if the state of the signal is logic 1, the system will be on, and if
the state of the signal is 0, the system will be off.
Today, digital systems are widely used in almost every aspect of life. This is
because of their high reliability and efficiency. The following are some key
characteristics of digital systems −
Digital systems are relative less complex to implement as they use binary
number system having only two digits to represent the state of a system.
In digital systems, the information is represented in the form of a group of 0s
and 1s i.e., bits. This is called binary or digital representation of information.
Digital systems rely on digital signals having two well-defined discrete
states. This makes digital systems more reliable and efficient in terms of
processing, storage, and communication of information.
Digital systems use logical mathematics and operations to perform
computing tasks.
Digital systems can be manufactured in the form of integrated circuits (ICs)
of very small sizes.
Digital systems can be easily programmed to perform repeated tasks that
reduces human efforts and cost.
Digital systems are highly immune to noise and distortions.
5|Page
Types of Digital Systems
Here are some important types of digital systems that we commonly use in
practice −
A type of digital system that has a memory element to store past history of the
system operation is called a sequential digital system. Therefore, the output of a
digital system depends on both present inputs and past outputs of the system.
6|Page
Let’s discuss each of these components of a digital system in detail.
The arithmetic logic unit (ALU) is the part of a CPU that performs all the
arithmetic and logical operations and executes the instructions to manipulate data.
ALU is made up of logic gates and other electronic components. It can perform
operations like addition, subtractions, comparison, etc.
The control unit (CU) is another major electronic circuit in the central processing
unit that coordinate the operation of all other components of a digital system. It
generates clock signals for the synchronization of the system.
Semiconductor Memory
Memory of a digital system can be classified into the following two types −
In digital systems, both RAM and ROM are used in the form of ICs made up of
semiconductors.
Apart from RAM and ROM, digital systems may also support external memory
devices like CD, DVD, Pen Drive, SD card, etc. All these external memories are
used for permanent data storage.
7|Page
Input Devices
Input devices are those electronic components of a digital system used for entering
data into the system. Examples of input devices include keyboard, mouse, scanner,
sensors, camera, light pen, code readers, etc.
Input devices are designed to accept data in the form of a specific type or format
and convert them into digital signals for processing.
For example, a keyboard gets outside instructions in the form of keystrokes and
then convert them into digital signals.
Output Devices
Output devices are those components of a digital system that allow users to view
the processed data or information. Examples of output devices are monitor, display
screens, printers, projectors, speakers, etc.
Output devices are designed to accept digital signals and convert them in a suitable
format to make them readable by human.
For example, a monitor takes digital signals and convert them as visuals and
display on a screen.
Logic Gates
Logic gates are essential components of any digital system. They are the
fundamental building block of the digital system. Logic gates are nothing but
electronic circuits that can perform logical operations.
In digital systems, logic gates are used to realize all the information processing and
storage systems. The most commonly used logic gates are AND, OR, NOT,
NAND, NOR, Ex-OR, and Ex-NOR.
Power Supply
Power supply is the energy bank of the digital system that provides necessary
electric power to the components of the system so they can work.
8|Page
The primary function of the power supply unit of a digital system is to convert the
electric power received from an external source into the desired type and voltage
level required by the system.
Most digital systems work on 5 V DC supply. Hence, the power supply unit
receives 220 V AC from the supply mains and convert it to 5 V DC supply. Also,
the power supply unit regulates the fluctuations occurring in the power supply to
protect the system from damages.
Communication Channels
Conclusion
Types of Signals
In electronics engineering, an electrical quantity like voltage or current or
electromagnetic wave that is used for transmission of data or information is called
a signal.
Signals are considered the heart of any data communication or processing system
like the Internet. Signals instruct the electronics hardware components to perform a
certain task such as convey the information from one point to another.
9|Page
This chapter will explain the concept of signal and different types of signals used
in electronics engineering.
What is a Signal?
A physical quantity that has capability to transmit information from one point to
another is called a signal. Some common examples of signals include voltage,
current, electromagnetic wave, optical signals, etc.
Properties of Signal
Types of Signals
In electronics, there are mainly two types of signals used, they are −
Analog Signals
Digital Signals
10 | P a g e
What is an Analog Signal?
A type of electronic signal that has continuous values within a given range is called
an analog signal. Analog signals are expressed as the continuous functions of time.
They are represented as the waveforms of continuously varying current or voltage.
Analog signals have smooth waveforms as they are continuous in both amplitude
and time. That meant, there is no interruptions in their representation over time.
11 | P a g e
Digital signals are also called binary signals, as they use binary 0 or 1 to represent
the state of a signal. Where, the binary 0 represents the off or low state of the
signal, while the binary 1 represents the on or high state of the signal.
12 | P a g e
Difference between Analog and Digital Signals
Let us now discuss the important differences between analog and digital signals −
13 | P a g e
Applications of Signals
Both analog and digital signals are widely used in the field of electronics. The
following are some key applications of signals −
Conclusion
In this chapter, we covered different types of signals and their properties. In the
next chapter, we will cover the concept of logic levels and pulse waveform.
A digital number system is a positional number system that has some symbols
called digits. It provides a complete set of digits, operators, and rules to perform
operations.
In a digital number system, the number of digits used determines the base of the
number system. For example, the binary number system has two digits (0 and 1),
hence, the base of the binary number system is 2.
14 | P a g e
Types of Digital Number Systems
In these ten symbols are used to represent the numbers and hence it is called decimal
number system. The ten symbols are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.These are called Arabic
numerals.
15 | P a g e
+ 2 x 10 + 7. The important point is that the value of each digit is
determined by its position. For example, the 3 in 300 has a different
value than the 3 in30. We show this verbally by saying “three
hundred” and „thirty”.
Example-1:
The value is formed by the sum of each digit, multiplied by the base (in this
case it is 10 because there are 10 digits in decimal system) in power of digit
position (counting from zero):
Position of each digit is very important! For example, if you place "7" to the
end: 547 it will be another value:
16 | P a g e
Important note: Any number in power of zero is 1; even zero in power
of zero is 1:
In this number system two symbols are used to represent the numbers and
hence it is called binary number system. The two symbols are 0 and 1. The
same type of positional notation is used in the binary number system as in
the decimal system.
17 | P a g e
Although the same positional notation system is used, the instead
of powers of 10 as used in decimal number system the binary
system uses powers of 2. As was previously explained, the
number 127 actually means 1 ×102 + 2 × 101 + 7 × 100. In the
binary system, the same number (127) is represented as 1111111,
meaning 1 × 26 + 1× 25+ l × 24+1×23+ l × 22 + l × 21 + l × 20.
18 | P a g e
3.3. octal numeral system,
The octal numeral system, or oct for short, is the base-8 number system, and uses
the digits 0 to 7. Octal numerals can be made from binary numerals by grouping
consecutive binary digits into groups of three (starting from the right). For
example, the binary representation for decimal 74 is 1001010. Two zeroes can be
added at the left: (00)1 001 010, corresponding the octal digits 1 1 2, yielding the
octal representation 112.
In the decimal system each decimal place is a power of ten. For example:
19 | P a g e
Many methods are available for converting a decimal number to a
binary number.
20 | P a g e
21 | P a g e
A good way to organize this conversion is to list the divisions in
table form as below:
Reading from bottom to top, the final answer is 10112. Remember that
the first division gives us the least significant digit of our answer, and
the final division gives us the most significant digit of our answer.
Also, the result of the final division is always 0.
22 | P a g e
Example 2: convert 2510 to binary
a. 3710
b. 7610
c. 4510
d. 8310
e. 72910
3.5.1. Conversion from Binary Numbers to Decimal
1. Write down the binary number and list the powers of 2 from
right to left
23 | P a g e
2. Write the digits of the binary number below their
corresponding powers of two.
3.5
24 | P a g e
Example2
More Examples:
101012 = 10101Base2 = 1×24+0×23+1×22+0×21+1×20 = 16+4+1= 21
101112 = 10111Base2 = 1×24+0×23+1×22+1×21+1×20 = 16+4+2+1= 23
1000112 = 100011Base2 = 1×25+0×24+0×23+0×22+1×21+1×20=32+2+1= 35
25 | P a g e
Converting Fractions Decimal Value to Binary
26 | P a g e
3.4.1 Binary Addition and Subtraction
0+0=0
0+1=1
1+0=1
1 + 1 = 0 and a carry-over of 1
27 | P a g e
“Carry-overs” are performed in the same manner as in decimal
arithmetic. Since 1 is the largest digit in the binary system, any sum
greater than 1 requires that a digit be carried over. For example, 010
plus 010 binary requires the addition of the two 1‟s in the second
position to the left, with a carry-over. Since 1 + 1 = 0 plus a carry-over
of 1, the sum of 010 and 010 is 100.
6 110 15 1111
7 111 20 10100
13 1101 35 100011
1011
+1011
10110
Lets add the two following binary numbers:
01001010010
+ 10010010101
28 | P a g e
The result is the following:
00111010010
+ 10110010101
11101100111
Questions
1. 101 + 11 =
2. 111 + 111 =
3. 1010 + 1010 =
4. 11101 + 1010 =
5. 11111 + 11111 =
Binary Subtraction
0–0=0
1–0=1
1–1=0
0 – 1 = 1 with a borrow of 1
**Reminder: 10 - 1 = 1**
29 | P a g e
111
- 10
101
The following examples show "borrowing" in binary subtraction.
10 100 1010
- 1 - 10 - 110
1 10 100
Questions
6. 110 - 10 =
7. 101 - 11 =
8. 1001 - 11 =
9. 1101 - 11 =
10. 10001 - 100 =
Binary Multiplication:
0x0=0
1x0=0
0x1=0
1x1=1
30 | P a g e
Solution
101
x11
101
101
1111
Questions
11. 10 x 10 =
12. 100 x 11 =
13. 101 x 10 =
14. 1011 x 11 =
15. 11011 x 101 =
1's complement
The 1's complement of a number is found by changing all 1's to 0's and all 0's to 1's.
This is called as taking complement or 1's complement. Example of 1's Complement is
as follows.
2's complement
The 2's complement of binary number is obtained by adding 1 to the Least Significant
Bit (LSB) of 1's complement of the number.
31 | P a g e
Example of 2's Complement is as follows.
3.7 Summary
In Binary number system two symbols are used to represent the numbers and
hence it is called binary number system.
32 | P a g e
3.8 Terminal Questions
a) 11111
b) 10110
c) 11001
d) 00101
a) 11011 + 11110
b) 11.01 + 101.11
c) 1110 – 1100
d) 1001 – 0101
e) 1011 * 110
f) 111* 101
5) Perform the following subtraction using 1‟s and 2‟s complement system
a) 11101 – 11110
b) 11001 – 10011
33 | P a g e