Documente Academic
Documente Profesional
Documente Cultură
ii. Digital Signal: A signal that can have only two discrete values is called a digital
signal. For example, a square wave is a digital signal. It is because this signal has
only two values viz, +5 V and 0 V and no other value. These values are labelled as
High level and Low level. The High voltage is + 5 V and the Low voltage is 0 V. If
proper digital signal is applied to the input of a transistor, the transistor can be
driven between cut off and saturation i.e. the transistor will have two-state output
i.e. either low or high output. Because of two states operation, all the signals are
easily recognised as either low or high.
2. Number System:
For example:
Decimal system Ten digits (0 9) base 10,
Binary system: Two digits (0 and 1) base 2,
Octal system: Eight digits (0 7) base 8,
Hexadecimal system: Sixteen digits (0 - 9 A B C D E F) base 16.
In representing numeric values in any number system, the position and base are
key issues. Each digit has a position starting with position 0 from the right. Each
position has a certain multiplier value associated with. When you write a number each
digit will be multiplied by the position value and the resulting values are then added to
give the total value of the number.
For example:
Let's suppose we have three numbers, 3, 30, and 300 in the decimal number system.
Applying the above methodology, we get:
3 = (3 * 100)
30 = (3 * 101) + (0 * 100)
300 = (3 * 102) + (0 * 101) + (0 * 100)
Let's suppose we have another four numbers, 4, 44, 444 and 4444 in the decimal
number system. Applying the above methodology, we get:
4 = (4 * 100)
44 = (4 * 101) + (4 * 100)
444 = (4 * 102) + (4 * 101) + (4 * 100)
4444 = (4 * 103) + (4 * 102) + (4 * 101) + (4 * 100)
This is simple enough to understand with the decimal system. The position number we
place a digit in determines what value that digit contributes to the whole number's value.
8 35 3
4 4 (35)10 = (43)8
Remainders
8 107 3
8 13 5
1 1 (107)10 = (153)8
and
0.24 x 8 = 1.92 1
0.92 x 8 = 7.36 7 (0.24)10 = (0.17270)8
0.36 x 8 = 2.88 2
0.88 x 8 = 7.04 7
0.04 x 8 = 0.32 0
For example, to convert 721 from octal to decimal, we perform the following.
(721)8 = (7 x 82) + (2 x 81) + (1 x 80)
= (7 x 64) + (2 x 8) + (1 x 0)
= 448 + 16 + 1
= (465)10 therefore, (721)8 = (465)10
16 50 2
3 3 (50)10 = (23)16
Remainders
16 100 4
6 6 (100)10 = (64)16
Remainders
16 260 4
16 16 0
1 1 (260)10 = (104)16
and
0.24 x 16 = 3.84 3
0.84 x 16 = 13.44 D (0.24)10 = (0.3D70)16
0.44 x 16 = 7.04 7
0.04 x 16 = 0.64 0
(3C)16 = (3 x 161) + (12 x 160) (We converted C to 12 before using it into the formula)
= (3 x 16) + (12 x 1)
= 48 + 12
= (60)10 therefore, (3C)16 = (60)10
(9D.2EF)16 = [(9 x 161) + (13 x 160)] . [(2 x 16-1) + (14 x 16-2) + (15 x 16-3)
= [(9 x 16) + (13 x 1)] . [(2 x 0.0625) + (14 x 0.00391) + (15 x 0.000244)]
= [144 + 13] . [0.125 + 0.05474 + 0.00366]
= (157.1834)10 therefore, (9D.2EF)16 = (157.1834)10
1 2 F
These are the extra added 0s for completing the group of 4 digits (bits)
Convert (4236)8 to hexadecimal
(4 2 3 6)8 => (100 010 011 110)2
100010011110
For Example:
Convert (489A)16 to octal:
First we need to convert the given Hexadecimal number to binary.
Therefore, 4 8 9 A
Now from the derived binary number form the groups of 3 numbers each from right to
left.
i.e. 000100100010011010
Therefore, (489A)16 => (044232)8
0 4 4 2 3 2
These are the extra added 0s for completing the group of 3 digits (bits)
000100000
The BCD system is also called the 8421 code. Binary coded decimal means that each
decimal digit, 0 through 9, is represented by a binary code of four bits. The designation
8421 indicates the binary weights of four bits (23, 22, 21, 20). The ease of conversion
between BCD (or 8421) code numbers and familiar decimal numbers is the main
advantage of this code. There are ten binary combinations that represent the ten
decimal digits as shown in below table.
5. Gray Code:
The gray code was designed by Frank Gray at Bell Labs in 1953. It is an un-weighed
binary code in which two successive value differ only by one bit. The output of many
system are continuous and these data must be converted into digital form before they
are applied to a digital system. Continuous or analog information is converted into
digital form by analog-to-digital converter. It is sometimes convenient to use Gray code
shown in Table 2-8. The main advantage of using capray code is that only one bit in the
code group changes, from one number to the next number. For example, from 7 to 8,
the Gray code changes from 0100 to 1100 only the first bit is changes, from 0 to 1. The
other three bits remain the same. But in binary numbers the change from 7 to 8 will be
from 0111 to 1000, all four bits changes. The Gray code is also known as Reflected
Binary Code.
6. Logic Gates:
4.1. Logic Gates:
A digital circuit with one or more input signals but only one output signal is called
a logic gate.
Since a logic gate is a switching circuit (i.e. a digital circuit), its output can have
only one of the two possible states viz., either a high voltage (1) or a low voltage (0)
it is either ON or OFF. Whether the output voltage of a logic gate is high (1) or low (0)
will depend upon the conditions at its input.
Operation:
i. When A = 0 and B = 0, then Y = 0 as shown in truth table.
ii. When A = 0 and B = 1, then Y = 0 as shown in truth table.
iii. When A = 1 and B = 0, then Y = 0 as shown in truth table.
iv. When A = 1 and B = 1, then Y = 1, since all inputs are 1, the output will be 1, as
shown in truth table.
4.2.2. OR Gate
An OR gate is a logic gate that has two or more inputs but only one output.
However, the output Y of an OR gate is LOW when all inputs are LOW. The output
Y of an OR gate is HIGH if any or all the inputs are HIGH.
Operation:
i. When A = 0 and B = 0, then Y = 0, since all inputs are 0, the output will be
0, as shown in truth table.
ii. When A = 0 and B = 1, then Y = 1.
iii. When A = 1 and B = 0, then Y = 1.
iv. When A = 1 and B = 1, then Y = 1.
2-input OR Gate
Symbol Truth Table
B A Q
0 0 0
0 1 1
1 0 1
1 1 1
3-input OR Gate
Symbol Truth Table
C B A Q
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1
Operation:
i. If A = 0, then Y = 1.
ii. If A = 1, then Y = 0.
Logic NOT gates provide the complement of their input signal and are so called
because when their input signal is "HIGH" their output state will NOT be "HIGH".
Likewise, when their input signal is "LOW" their output state will NOT be "LOW". As
they are single input devices, logic NOT gates are not normally classed as "decision"
making devices or even as a gate, such as the AND or OR gates which have two or
more logic inputs. Commercial available NOT gates IC's are available in either 4 or 6
individual gates within a single IC package.
Then we can define the operation of a 2-input logic NAND gate as being:
"If both A and B are true, then Q is NOT true"
Then we can define the operation of a 2-input logic NOR gate as being:
"If both A and B are NOT true, then Q is true"
The output of an Exclusive-OR (EXOR) gate ONLY goes "HIGH" when its
two input terminals are at "DIFFERENT" logic levels with respect to each other and
they can both be at logic level "1" or both at logic level "0.
The NAND gate is universal gate because its repeated use can produce other
logic gates. The table below shows how NAND gates can be connected to produce
inverter (i.e., NOT gate), AND gate and OR gate.
Various Logic Gates using NAND Gates:
7. Boolean postulates:
8. De-Morgan Theorems:
De Morgans theorems are extremely useful in simplifying
expressions in which a product or sum of variables is inverted. The
two theorems are:
2. X = AB + CDE
3.
4.
To determine a standard POS expression represented by a truth table, list the binary
values for which the output is 0. Convert each binary value to the corresponding sum
term by replacing each 1 with the corresponding variable complement and each 0 with
the corresponding variable. For example, the binary value 1010 is converted to a sum
term as follows:
For Example:
Thus the resulting standard SOP expression for the output X is,
We can combine two or more logic gates to form a logic circuit or digital circuit. A logic
circuit consisting of two or more logic gates that has no feedback and no memory is
called a combinational logic circuit.
A combinational logic circuit is constructed using AND, OR and NOT gates.
Therefore the basic building block for combinational circuits is the logic gate. Since a
combinational logic circuit has no feedback and no memory, its output depends only on
the current value of its inputs.
8.1. Adders:
This type of circuits uses previous input, output, clock and a memory element.
In other words, the output state of a sequential logic circuit is a function of the
following three states, the present input, the past input and/or the past
output. Sequential Logic circuits remember these conditions and stay fixed in their
current state until the next clock signal changes one of the states, giving sequential
logic circuits Memory.
Sequential logic circuits are generally termed as two state or Bistable devices
which can have their output or outputs set in one of two basic states, a logic level 1 or
a logic level 0 and will remain latched (hence the name latch) indefinitely in this
current state or condition until some other input trigger pulse or signal is applied which
will cause the bistable to change its state once again.
Examples of Combinational circuits:
a) Flip Flops b) Counters c) Shift Registers
d) State Machines e) Memory etc.