Module - 1 Digital Fundamentals and Logic Gates: (I) Decimal Number System
Module - 1 Digital Fundamentals and Logic Gates: (I) Decimal Number System
Module - 1 Digital Fundamentals and Logic Gates: (I) Decimal Number System
MODULE – 1
DIGITAL FUNDAMENTALS AND LOGIC GATES
MODULE I - CONTENT
Digital fundamentals and logic gates - Introduction-number systems - binary number system –
conversion of decimal to binary and vice versa - arithmetic operations on binary - binary coded
decimal - one’s and two’s complement - use of complements - Hexadecimal number system -
conversion of decimal to hex to binary and vice versa - arithmetic operations on hex – BCD -
Packed and Unpacked BCD Numbers – HEX - ASCII codes - Logic gates-truth tables -
different logic families-Diode Logic-Transistor Logic- Resistor -Transistor- Diode-Transistor
Logic – Transistor - Transistor Logic - Complementary Metal Oxide Semiconductor Logic -
Propagation delay - current sourcing and current sinking - Fan in - Fan out – Power dissipation
- Speed.
The base or radix of this number system is 2. The symbols used are 0 and l. A binary digit is
called a bit. A binary number consists of a sequence of bits, each of which is either a 0 or a l.
In general, a binary number with an integer part of (n+1) bits and a fraction part of k bits can
be written as
dn dn-1 dn-2 . . . . d1 d0.d-1 d-2 d-3 . . .d-k
Its decimal equivalent is
(dn x 2n)+(dn-1 x 2n-1)+ . . +(d1 x 21)+(d0 x 20)+(d-1 x 2-1)+(d-2 x 2-2)+ . .
In general, the decimal equivalent of the number dn dn-1 dn-2 . . . . d1 d0.d-1 d-2 …in any number
system with base b is given by
(dn x bn)+(dn-1 x bn-1)+ . . +(d1 x b1)+(d0 x b0)+(d-1 x b-1)+(d-2 x b-2)+ . .
Binary numbers are long. These numbers are fine for machines but are too lengthy to
be handled by human beings. So, there is a need to represent the binary numbers concisely.
One number system developed with this objective is the hexadecimal number system (or Hex).
The hexadecimal number system is a posiLi0na1gti system. The base or radix of this number
system is 16, that means, it has 16 independent symbols. The symbols used are 0, 1, 2, 3, 4, 5,
6, 7, 8, 9, A, B, C, D, E, and F. Since its base is 16 = 24, every 4 binary digit combination can
be represented by one hexadecimal digit. So, a hexadecimal number is 1/4th the length of the
corresponding binary number, yet it provides the same information as the binary number. A 4-
bit group is called a nibble. Since computer words come in 8 bits, 16 bits, 32 bits and so on,
that is, multiples of 4 bits, they can be easily represented in hexadecimal. The hexadecimal
system is particularly useful for human communications with computers. By far, this is the
most commonly used number system in computer literature. It is used both in large and small
computers.
Any number consist of integer part and fractional part. The separate conversion steps
are followed for integer and fractional part of decimal number system.
Steps for conversion of decimal integer
Step 1: The given decimal integer is converted to binary by successive division by 2,
till the quotient is zero.
Step 2: The reminders read from bottom to top give the equivalent binary integer
number.
Steps for conversion of decimal fraction
Step 1: The given decimal fraction is successively multiplied by 2, till the fraction
part of the product is 0 or till the desired accuracy is obtained.
Step 2: The integer read from top to bottom give the equivalent binary fraction.
Binary Addition
Binary Subtraction
The binary subtraction is performed in a manner similar to that in decimal subtraction. The
rules for binary subtraction are:
0 – 0 = 0; 1 – 1 = 0; 1 – 0 = 1; 0 – 1 = 1, with a borrow of 1
GIT Digital Electronics & Microprocessor (4032) Module - 1
4
Binary Multiplication
There are two methods of binary multiplication the paper method and the computer
method. Both the methods obey the following multiplication rules:
0 x 0 = 0; l x l = 1; l x 0 = 0; 0x1=0
The paper method is similar to the multiplication of decimal numbers on paper.
Multiply the multiplicand with each bit of the multiplier, and add the partial products. The
partial product is the same as the multiplicand if the multiplier bit is a 1 and is zero if the
multiplier bit is a 0.
Binary Division
Step 3: If there is a carry out, bring the carry around and add it to the LSB
Step 4: Look at the sign bit (MSB), if it is 0 result is positive and is in true binary. If
the MSB is a 1 the result is negative and is in its 1’s complement form. Take
its 1’s complement to get the magnitude in binary.
The 2’s complement subtraction is
Step 1: Determine the 2’s complement of the subtrahend
Step 2: Add this to the minuend
Step 3: If there is a carry out, ignore it
Step 4: Look at the sign bit (MSB), if it is 0 result is positive and is in true binary. If
the MSB is a 1 the result is negative and is in its 2’s complement form. Take
its 2’s complement to get the magnitude in binary.
Logic flexibility
Availability of complex functions
High noise immunity
Wide operating temperature range
Loading
Speed
Low power dissipation
Lack of generated noise
Input and output structures
Packaging
Low cost
ICs are fabricated using various technologies such as TTL, ECL, and IIL which use bipolar
transistors, whereas the MOS and CMOS technologies use unipolar MOSFETs.
A pulse through a gate takes a certain amount of time to propagate from input to
output. This interval of time is known as the propagation delay of the gate. It is the average
transition delay time tpd, expressed by
where tPLH is the signal delay time when the output goes from a logic 0 to a logic 1 state and
tPHL is the signal delay time when the output goes from a logic 1 to a logic 0 state.
2. Power Dissipation
Every logic gate draws some current from the supply for its operation. The current
drawn in HIGH state is different from that drawn in LOW state. The power dissipation PD, of
GIT Digital Electronics & Microprocessor (4032) Module - 1
8
logic gate is the power required by the gate to operate with 50% duty cycle at a specified
frequency and is expressed in milliwatts. This means that 1 and 0 periods of the output are
equal. The power dissipation of a gate is given by
where VCC is the gate supply voltage, ICC(avg) is the average current drawn from the supply
by the entire IC and n is the number of gates in the IC.
3. Fan – in
The fan – in of a logic gate is defined as the number of inputs that the gate is designed
to handle
4. Fan - out
The fan-out (also called the loading factor) of a logic gate is defined as the maximum
number of standard loads that the output of the gate can drive without impairing its normal
operation. A standard load is usually specified as the amount of current needed by an input of
another gate of the same IC family. If a gate is made to drive more than this number of gate
inputs, the performance of the gate is not guaranteed. The gate may malfunction.
Fan-out may be HIGH state fan-out, i.e. the fan-out of the gate when its output is a
logic l, or it may be LOW state fan-output, i.e. the fan-out of the gate when its output is a logic
0. The smaller of these two numbers is taken as the actual fan-out. The fan-out of a gate affects
the propagation delay time as well as saturation. The driving gate sinks current when it is in
LOW state and sources current when it is in HIGH state.
where IOH(max) is the maximum current that the driver gate can source when it is in a 1 state
and IIH is the current drawn by each driven gate from the driver gate.
where IOL(max) is the maximum current that the driver gate can sink when its output is a logic
0 and IIL is the current drawn from each driven gate by the driver gate.