Chapter 8 Digital Electronics
Chapter 8 Digital Electronics
Digital system - System which process discrete values is called Digital system
Analog signal - A signal which can vary over a continuous varying with respect to time
Digital signal – A signal which can have only two discrete values
Note: The binary digits 0 and 1 are usually represented by 2 voltage levels ---- 0v for logic 0 and
5V for logic 1.
Number System
The three number systems used in digital electronics are -
• Decimal number system
• Binary number system
• Hexadecimal number system
Decimal number system - A number system with base 10 that uses ten distinct symbols 0, 1, 2,
3, 4, 5, 6, 7, 8 and 9
Binary number system - A number system with base 2 that uses only two symbols 0 and 1
Hexadecimal number system - A number system with base 16 that uses sixteen distinct
symbols 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E and F
Nibble – A group of four bits is called a Nibble. Example: 0110, 1110, etc
2 nibbles make a byte.
Byte – A group of eight bits is called a Byte. Example: 0110 1010, 1110 0101, etc
Weight or place value: Each position in a number has definite value called place value or
weight
Base or radix: The number of distinct symbols used in a number system is called base or radix
of the number system
Ex – Base of decimal system is 10 Base of binary system is 2
Base of octal system is 8 Base of hexadecimal system is 16
Most significant bit (MSB) – The leftmost bit of a binary number which has
the highest place value is called most significant bit
Least significant bit (LSB) – The right most bit of a binary number which has the least place
value is called least significant bit
Binary Arithmetic
0+0=0 0-0=0
0+1=1 0 - 1 = 1 with a borrow 1 i.e., 10 - 1 = 1
1+0=1 1-0=1
1 + 1 = 0 with a carry 1 1-1=0
1s Complement
The 1’s complement of a binary number is obtained by changing each 0 to 1 and 1 to 0.
2s Complement
2’s complement = 1’s complement + 1 to LSB
The 1’s complement and the 2’s complement of a binary number help to do the subtraction by
the method of addition.
Subtraction using 1’s complement and 2s complement method (subtract smaller number
from larger number always)
Perform the 1’s complement subtraction for the given binary numbers11012 from 10101112
Perform the 2’s complement subtraction for the given binary numbers11012 from 10101112
Note:
Boolean algebra
Used to analyze and simplify digital circuits.
It uses only the binary numbers i.e. 0 and 1.
Note:
Note: Truth tables can be used to determine the output of AND, OR and other Boolean
operations as shown in a few examples below
De-Morgan's Theorems
First Theorem: The complement of a logical sum is equal to the logical product of the
complements
Second Theorem: The complement of a logical product is equal to the logical sum of the
complements
Logic Gates
• A logic gate is a basic unit of digital circuit which performs a specific logic operation.
• It has one or more inputs but only one output
• They are constructed using active components (such as diodes and transistors) and
passive components (such as resistor).
Timing diagram: A pictorial representation of inputs and output states of a logic circuit
Truth table: A table which lists all the possible combinations of inputs and their corresponding
outputs
Definition:
• A basic gate which complements the input OR Has one input and
one output
• It performs Boolean negation
OR Gate:
Definition:
• A basic gate which produces a high output if any one of the input or
all the inputs are high
• It performs Boolean addition
NOR Gate:
Definition:
• An universal gate which produces a high output if and only if all the
inputs are low
• performs the complement of OR logic
AND Gate:
Definition:
• A basic gate which produces a high output if and only if all the
inputs are high
• It performs Boolean multiplication
NAND Gate:
Definition:
• An universal gate which produces the output is high only when any
of the input is low
• performs the complement of AND logic
Note: All logic gates (except NOT gate) have two or more inputs but one output
Working of OR gate
Case 2: When A = 1
Current enters the base terminal of the transistor. The transistor is ON.
Hence the output Y = 0.
555 Timer
• Gets its name from the three 5KΩ resistors that
are used in its circuit
• It is an IC used to generate a clock waveform for digital circuits and in many more
timing applications
Astable multivibrator
• has two distinct output levels. Neither of the output levels is stable and the output will
be swinging between high and low
• The frequency of oscillation and duty cycle are accurately controlled by two external
resistors, RA and RB and a single capacitor, C
• used to generate a clock or square wave output for many applications
Monostable multivibrator
• Has only one stable state. When triggered, it generates a pulse of pre-defined duration
and then returns to its stable state and produces no more output until triggered again
• When a negative going triggering pulse is applied to pin 2, the output goes high only for
a short duration and then returns to its original stable state (logic 0)
Equivalent circuits of gate circuits (for reference only and not for exam)
NOT Gate
OR Gate
AND Gate: