DLC Unit 1
DLC Unit 1
DLC Unit 1
JOSEPH'S COLLEGE OF ENGINEERING Department of Electrical and Electronics Engineering III - Sem
UNIT - I
Number System:
A numeral system (or system of numeration) is a writing system for expressing numbers,
that is, a mathematical notation for representing numbers of a given set, using digits or
other symbols in a consistent manner.
The values of each digit is determined by the digit, the position of the digit in the number
and the base or radix of the number system.
The number system will be of 4 types.
Decimal
Binary
Octal
Hexadecimal
Decimal:
Decimal is said to be Base Ten.
When we count in Base Ten, we count starting with zero and going to nine in the order.
It is a human language one.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Each additional digit represents a higher and higher quantity.
This is applicable for base 10 as well as to other bases.
Binary:
In a Binary number system, there are only two symbols used to represent numbers: 0 and
1.
When we count up from zero in binary, we run out of symbols much more frequently.
It is a circuit language one.
0, 1
Applications:
The binary system is useful in computer science and electrical engineering.
Transistors operate from the binary system and transistors are found in practically all
electronic devices.
Octal:
Octal is Base Eight meaning eight symbols are used to represent all the quantities.
When we count up one from the 7, we need a new placement to represent what we call 8
since an 8 does not exist in Octal. So after 7 is 10.
It is a machine language one.
0, 1, 2, 3, 4, 5, 6, 7
Hexadecimal:
The hexadecimal system is Base Sixteen; this number system uses sixteen symbols to
represent numbers.
Unlike binary and octal, hexadecimal has six additional symbols that it uses beyond the
conventional ones found in decimal.
It is a machine language one.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
iii). (34.45)10
Binary: Octal: Hexadecimal:
1 × 27 + 1 × 26 + 1 × 25 + 0 × 24 + 0 × 23 + 1 × 22 + 0 × 21 + 1 × 20
= 128+ 64 + 32 + 0 + 0 + 4 + 0 + 1
= [229]10
Octal: 011 100 101
3 4 5 = [345]8
E 5 = [E5]16
Convert the Octal number 2436 to its decimal, binary and hexadecimal equivalent.
Decimal:2 × 83 + 4 × 82 + 3 × 81 + 6 × 80
= 1024 + 256 + 24 + 6
= [1310]10
Binary: 2 4 3 6
= [10100011110]2
Hexadecimal: 2 4 3 6
010 100 011 110
= 0101 0001 1110
5 1 E = [51E] 16
Convert the hexadecimal number 28D to its decimal, binary and octal equivalent.
Decimal: 2 8 D
= 2 8 13
= 2 × 162 + 8 × 161 + 13 × 160
= 512 + 128+ 13
= [653]10
Binary: 2 8 D
= 2 8 13
= 0010 1000 1101
= [1010001101]2
Octal: 2 8 D
= 2 8 13
= 0010 1000 1101
= 001 010 001 101
1 2 1 5
= [1215]8
= (1111101011001110)2
1 7 5 3 1 6
= 17 5 3168
= 11111010110011102
=
1x215+1x214+1x213+1x212+1x211+0x210+1x29+0x28+1x27+1x26+0x25+0x24+1x23
+1x22+1x21+0x20
= 6420610
2310 = 278
(0.625)10= (0.540)8
(23.625)10 = (27.540)8
Convert 1010111011101100 into its octal, decimal and hexadecimal equivalent. [Apr’16]
(i) Binary to octal:
1 010 111 011 101 1002
001 010 111 011 101 100
1 2 7 3 5 4
=1273548
(iii)Binary to hexadecimal:
1010 1110 1110 1100
1010 1110 1110 1100
10 14 14 12
A E E C = AEEC16
Perform the following addition using BCD and Excess-3 addition (205+569)[Apr’15]
BCD:
205 - 0 0 1 0 0 0 0 0 0 1 0 1
569 - 0 1 0 1 0 1 1 0 1 0 0 1
0111 0110 1110
+ 0110
0111 0111 0100
(205+569)= (0 1 1 1 0 1 1 1 0 1 0 0)2
Excess-3:
205 - 0010 0000 0101
0011 0011 0011
Excess-3 of 205 - 0 1 0 1 0 0 1 1 1 0 0 0
Excess-3 addition:
0101 0011 1000
1000 1001 1100
1101 1101 0100
- 0 0 1 1 - 0 0 1 1 +0 0 1 1
1010 1010 0111
(205+569) = (1 0 1 0 1 0 1 0 0 1 1 1)2
Perform the following operation (756) – (437) 8 + (725) 16. Express the answer in octal
form.[Nov’15]
(756)8 - 1 1 1 101 110
(437)8 - 100 011 111
(725) 16 - 0 1 1 1 0010 0101
Since (437) 8 is in negative, taking 2’s complement,
(437)8 - 100 011 111
011 100 0 01
Given the two binary numbers X=1010100 and Y= 1000011, perform the subtraction Y-X by
using 2’s complements.
a) X = 1010100
2's complement of Y = + 0111101
Sum = 10010001
Discard end carry
X -Y = 0010001
b) Y = 1000011
2's complement of X = + 0101100
Sum = 1101111
There is no end carry,
Therefore the answer is Y-X = - (2's complement of 1101111)
= -0010001
Weighted codes:
In weighted codes, each digit is assigned a specific weight according to its position.
For example, in 8421 BCD code, 1001 the weights of 1, 0, 0, 1 (from left to right) are 8, 4,
2 and 1 respectively.
Suppose W1 W2 W3 and W4 are the weights of binary digits and Xl X2 X3 and X4 are the
corresponding digit values then decimal digit.
N = W1 Xl + W2 X2 + W3 X3 + W4 X4 is represented by binary sequence X4 X3 X2 X4.
The codes 8421 BCD, 2421 BCD, 5211 BCD are all weighted codes.
Non-weighted codes:
The non-weighted codes are not positional weighted.
In other words, each digit position within the number is not assigned a fixed value (or
weight).
Excess-3 and gray code are non-weighted codes.
Reflective codes:
A code is reflective when the code is self-complementing.
In other words, when the code for 9 is the complement of 0, 8 for 1, 7 for 2, 6 for 3 and 5 for
4.
2421BCD, 5421BCD and Excess-3 code are reflective codes.
Sequential codes:
In sequential codes, each succeeding code is one binary number greater than its preceding
code.
This property helps in manipulation of data.
8421 BCD and Excess-3 are sequential codes.
Alphanumeric codes:
Codes used to represent numbers, alphabetic characters, symbols and various instructions
necessary for conveying intelligible information.
ASCII, EBCDIC, UNICODE are the most-commonly used alphanumeric codes.
Binary
Decimal Excess - 3 Gray Code
8421
0 0000 0011 0000
1 0001 0100 0001
2 0010 0101 0011
3 0011 0110 0010
4 0100 0111 0110
5 0101 1000 0111
6 0110 1001 1010
7 0111 1010 0100
8 1000 1011 1100
9 1001 1100 1101
10 1010 1101 1111
11 1011 1110
12 1100 1111
13 1101
14 1110
15 1111
Binary
Decimal BCD 2421 3321 8 4 -2 -1 5421
8421
0 0000 0000 0000 0000 0000 0000
1 0001 0001 0001 0001 0111 0001
2 0010 0010 0010 0010 0110 0010
3 0011 0011 0011 0100 0101 0011
4 0100 0100 0100 0101 0100 0100
5 0101 0101 1011 0110 1011 1000
6 0110 0110 1100 0111 1010 1001
7 0111 0111 1101 1101 1001 1010
8 1000 1000 1110 1110 1000 1011
9 1001 1001 1111 1111 1111 1100
10 1010 0 0 0 10 0 0 0
11 1011 0001 0001
12 1100 0001 0010
13 1101 0001 0011
14 1110 00010100
15 1111 00010101
Hamming code:
Advantages:
By using Hamming code we can detect and correct the errors in the information in single
or double bit information.
But in parity codes, it can only use to detect the error in the information.
Determine which bit, if any, is in error in the even parity, Hamming coded information
11001112. Decode the correct message.
Step1: Construct the bit location table
Bit destination D7 D6 D5 P4 D3 P2 P1
Bit location 7 6 5 4 3 2 1
Bit location number 111 110 101 100 011 010 001
Received Code 1 1 0 0 1 1 1
Assume that the even parity Hamming code in example (0 1 1 0 0 1 1) is transmitted and
that (0 1 0 0 0 1 1)2 is received. The receiver does not know what was transmitted. Determine
bit location where error has occurred using received code.
Step1: Construct the bit location table
Bit destination D7 D6 D5 P4 D3 P2 P1
Bit location 7 6 5 4 3 2 1
Bit location number 111 110 101 100 011 010 001
Received Code 0 1 0 0 0 1 1
Step 2: Check for parity bits
For P1: P1 checks locations 1, 3, 5 and 7
There is only one in the group
Hence Parity check for even parity is wrong……………………….1 (LSB)
For P2: P2 checks locations 2, 3, 6 and 7
There are two 1s in the group
Hence Parity check for even parity is correct……………………….0
For P4: P4 checks locations 4, 5, 6 and 7
Given that a frame with bit sequence 1101011011 is transmitted, it has been received as
11010110102. Determine the method of detecting the error using any one error detecting
code. [Nov’14]
Step1: Construct the bit location table
Bit destination D10 D9 P8 D7 D6 D5 P4 D3 P2 P1
Bit location 10 9 8 7 6 5 4 3 2 1
Bit location number 1010 1001 1000 0111 0110 0101 0100 0011 0010 0001
Received Code 1 1 0 1 0 1 1 0 1 0
Step 2: Check for parity bits
For P1: P1 checks locations 1, 3, 5, 7 and 9
There arethree ones in the group
Hence Parity check for odd parity is correct……………………….0 (LSB)
For P2: P2 checks locations 2, 3, 6, 7 and 10
There arethree ones in the group
Hence Parity check for odd parity is correct……………………….0
For P4: P4 checks locations 4, 5, 6 and 7
There arethree ones in the group
Hence Parity check for odd parity is correct……………………….0
For P8: P8 checks locations 8, 9 and 10
There aretwo ones in the group
Hence Parity check for odd parity is wrong……………………….1 (MSB)
The resultant word is C = 1 0 0 0. This says that the bit in the number 8 location is in error.
It is 0 and should be 1. Therefore, the correct code is (1111011010)2, which agrees with the
transmitted code.
The Hamming code 1 0 1 1 0 1 1 0 1 is received. Correct it if any errors. There are four parity
bits and odd parity is used.
Step1: Construct the bit location table
Bit destination D9 p8 D7 D6 D5 P4 D3 P2 P1
Bit location 9 8 7 6 5 4 3 2 1
Bit location number 1001 1000 0111 0110 0101 0100 0011 0010 0001
Received Code 1 0 1 1 0 1 1 0 1
Step 2: Check for parity bits
For P1: P1 checks locations 1, 3, 5, 7 and 9
There are four 1s in the group
Hence Parity check for odd parity is wrong……………………….1 (LSB)
The resultant word is C = 0 0 0 1. This says that the bit in the number 1 location is in error.
It is 1 and should a 0. Therefore, the correct code is 1011011002.
A 12-bit Hamming code word containing 8 bits of data and 4 parity bits is read from memory.
What was the original 8-bit data word that was written into memory if the 12-bit word read
out is as (1) 101110010100 and (2) 111111110100? [Nov’15]
Bit
destination
D12 D11 D10 D9 P8 D7 D6 D5 P4 D3 P2 P1
Bit location 12 11 10 9 8 7 6 5 4 3 2 1
Bit location 110 100 010
number
1011 1010 1000 0111 0110 0101 0011 0010 0001
0 1 0
Received
Code
1 0 1 1 1 0 0 1 0 1 0 0
Step 2: Check for parity bits
For P1: P1 checks locations 1, 3, 5, 7, 9, 11
There are three 1s in the group
Hence Parity check for even parity is wrong…………………….….….1 (LSB)
For P2: P2 checks locations 2, 3, 6, 7, 10, 11
There are two 1s in the group
Hence Parity check for even parity is correct…………………….…….0
For P4: P4 checks locations 4, 5, 6, 7, 12
There are two 1s in the group
Hence Parity check for even parity is correct…….…………………….0
For P8: P8 checks locations 8, 9, 10, 11, 12
There are four 1sin the group
Hence Parity check for even parity is correct …………...……….…….0 (MSB)
Bit
destinatio D12 D11 D10 D9 P8 D7 D6 D5 P4 D3 P2 P1
n
Bit
location
12 11 10 9 8 7 6 5 4 3 2 1
Bit
location 1100 1011 1010 1001 1000 0111 0110 0101 0100 0011 0010 0001
number
Received
Code
1 1 1 1 1 1 1 1 0 1 0 0
Step 2: Check for parity bits
For P1: P1 checks locations 1, 3, 5, 7, 9, 11
There are five 1s in the group
Hence Parity check for odd parity is correct……………………….0 (LSB)
For P2: P2 checks locations 2, 3, 6, 7, 10, 11
There are five 1s in the group
Hence Parity check for odd parity is correct ……………………….0
For P4: P4 checks locations 4, 5, 6, 7, 12
There are four 1s in the group
Hence Parity check for odd parity is wrong…….………………….1
For P8: P8 checks locations 8, 9, 10, 11, 12
There are five 1s in the group
Hence Parity check for odd parity is correct………….…………….0 (MSB)
Check bits: C = 0100, i.e. Error is in bit 4 = 1111111111002
Actual 8 bit data stored in memory is 111111112
The message below has been coded in the even parity Hamming code and transmitted
through a noisy channel. Decode the message that at most a single error has occurred in each
word code. i). 1001001 ii) 0111001 iii) 1110110 iv) 00110011
Bit destination D7 D6 D5 P4 D3 P2 P1 Error code
Bit location 7 6 5 4 3 2 1
Hamming coded message 1 0 0 1 0 0 1
1, 3, 5 and 7 check for P1 1 0 0 1 0
2, 3, 6 and 7 check for P2 1 0 0 0 1
4, 5, 6 and 7 check for P4 1 0 0 1 0
Error in bit position 2. Therefore, hamming code should be 10010112 and message is 10002.
ii)
Error
Bit destination D7 D6 D5 P4 D3 P2 P1
code
Bit location 7 6 5 4 3 2 1
Hamming coded message 0 1 1 1 0 0 1
1, 3, 5 and 7 check for P1 0 1 0 1 0
2, 3, 6 and 7 check for P2 0 1 0 0 1
4, 5, 6 and 7 check for P4 0 1 1 1 1
Error in bit position 6. Therefore, hamming code should be 00110012 and message is 00102.
iii)
Error
Bit destination D7 D6 D5 P4 D3 P2 P1
code
Bit location 7 6 5 4 3 2 1
Hamming coded message 1 1 1 0 1 1 0
1, 3, 5 and 7 check for P1 1 1 1 0 1
2, 3, 6 and 7 check for P2 1 1 1 1 0
4, 5, 6 and 7 check for P4 1 1 1 0 1
Error in bit position 5. Therefore, hamming code should be 11001102 and message is 11012.
iv)
Error
Bit destination D7 D6 D5 P4 D3 P2 P1
code
Bit location 7 6 5 4 3 2 1
Hamming coded message 0 0 1 1 0 1 1
1, 3, 5 and 7 check for P1 0 1 0 1 0
2, 3, 6 and 7 check for P2 0 0 0 1 1
4, 5, 6 and 7 check for P4 0 0 1 1 1 0
Error in bit position 2. Therefore, hamming code should be 00110012 and message is 00102.
Encode the information character 01101110101 according to the 15-bit hamming code.
In this the message bits are 11 and parity bits are 4.
We know that the parity bits are located in the positions that are numbered corresponding
to ascending powers of two (1, 2, 4, 8…).
Therefore, we have following, format for 15-bit hamming code. We also know that parity
bits are assigned by checking message bits having 1 in the same location as parity bit in
their binary location numbers.
Bit
D12 D11 D10 D9 P8 D7 D6 D5 P4 D3 P2 P1
destination D15 D14 D13
Bit location 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
Bit location 1111 1110 1101 1100 1011 1010 1001 1000 0111 0110 0101 0100 0011 0010 0001
number
Information
0 1 1 0 1 1 1 0 1 0 1
bits
Check for
P1: 3, 5, 7, 0 1 0
1 1 0 0 1 0
9, 11, 13,
15
Check for
P2: 3, 6, 7, 0 1
1 1 0 1 1 1
10, 11, 14,
15
Check for
P4: 5, 6, 7, 0 1 1
0 0 1 0 1
12, 13, 14,
15
Check for
P8: 9, 10, 0 1 1
0 1 1 1 1
11, 12, 13,
14, 15
Hamming
coded 0 1 1 0 1 1 1 1 0 1 0 1 1 1 0
message
The 15 – bit hamming code is 0110111101011102
Encode the binary word 1011 into seven bit even parity Hamming code.[Apr’15]
Bit destination D7 D6 D5 P4 D3 P2 P1
Bit location 7 6 5 4 3 2 1
Bit location number 111 110 101 100 011 010 001
Information Bit 1 0 1 1
3, 5 and 7 check for P1 1 1 1 1
3, 6 and 7 check for P2 1 0 1
0
4, 5, 6 and 7 check for P4 1 0 1 0
Hamming coded message 1 0 1 0 1 0 1
Thus the encoded seven bit parity Hamming code is 10101012
Explain in detail the usage of Hamming codes for error detection and error correction with
an example considering the data bits as 0101.
Let us assume a odd parity
Bit destination D7 D6 D5 P4 D3 P2 P1
Bit location 7 6 5 4 3 2 1
Bit location number 111 110 101 100 011 010 001
Information Bit 0 1 0 1
3, 5 and 7 check for P1 0 0 1 0
3, 6 and 7 check for P2 0 1 1
1
4, 5, 6 and 7 check for P4 0 1 0 0
Hamming coded message 0 1 0 0 1 1 0
The 7 – bit hamming code is 01001102
Deduce the odd parity hamming code for the data: 10102. Introduce an error in the LSB of
the hamming code and deduce the steps to detect the error. [Apr’16] [OR] Design a odd
parity hamming code generator and detector for 4 bit data and explain their logic.
Bit destination D7 D6 D5 P4 D3 P2 P1
Bit location 7 6 5 4 3 2 1
Bit location number 111 110 101 100 011 010 001
Information Bit 1 0 1 0
CMOS Logic:
Digital circuit with MOSFETs can be grouped into three categories:
PMOS - Uses only P-channel enhancement MOSFETs,
NMOS - Uses only N-channel enhancement MOSFETs, and
CMOS (Complementary MOS) – Uses both P and N-channel devices.
PMOS and NMOS digital ICs are economical than CMOS ICs because they have greater
packing density than CMOS.
NMOS has twice the packing density than PMOS.
NMOS can operate at about three times faster than their PMOS counterparts. This is because
NMOS has faster moving current carriers (holes).
CMOS has the greatest complexity and lowest packaging density
CMOS has advantages of high speed and much lower dissipation.
NMOS and CMOS are widely used in the digital ICs, but PMOS are no longer part of new
designs.
CMOS circuit contains both NMOS and PMOS devices to speed the switching of capacitive
loads. It consumes low power and can operate at high voltages, resulting in improved noise
immunity.
ECL Family
The TTL family uses transistors operating in the saturation mode.
As a result, their switching speed is limited by the storage delay time associated with transistor
that is driven into saturation.
Another logic family has been developed that prevents transistor saturation, thereby increasing
overall switching speed by using radically different circuit structure, called current mode logic
(CML).
This logic family is also called emitter-coupled logic (ECL).
Unlike TTL and CMOS families, ECL does not produce a large voltage swing between the
LOW and HIGH levels.
It has a small voltage swing, less than a volt, and it internally switches current between two
possible paths, depending on the output state
RTL working:
When inputs A, B are ‘0’, the transistors Q1 and Q2 are OFF. Thus the node C is not
connected to ground and the Vcc will appear at node C s output which is logic ‘1’.
When any one inputs either A or B is ‘1’ or if both A and B are ‘1’ Q1 or Q2 or both the
transistors will be in saturated mode. Thus the node C will be connected to ground making
the output C as 0V or Logic LOW for all the remaining three conditions.
If more number of resistors are included in the logic circuit, then the input resistance gets
increased and switching speed will decrease. An alternate approach to increase the
switching speed in RTL is to add a capacitor parallel to the resistor in the input of the
transistor’s base.
Another problem is the transistors go to saturation causing longer turn off delay (i.e.,) it
takes more time for the output to become 1 to 0. Integrated Injection Logic (IIL) can
eliminate all the problems of the RTL circuit.
The DTL circuit combines the diode AND gate and the bipolar transistor inverter into a
NAND gate. The AND function is performed by two diodes with a resistor for pull up and
NOT function is formed by the transistor inverter circuit.
When A=0, B=0, the node X has 0V. This 0V is given as an input to the transistor Q1. The
transistor will be in cut off condition only. Node C will have +5V (HIGH).
Similarly if any one input is 0, A=0, B=0 or both A and B are 0, then the node X will be
grounded. Thus there is no base current. The transistor will be in cut off condition. Therefore
the node C will have +5V (HIGH).
But for the inputs A=1, B=1, A and B are give +5V. Now the node X will have +5V (since
both diodes do not conduct). This voltage is given to the transistor’s base with a drop by R2.
Now the transistor conducts. The output of the NAND gate is LOW. The node C is grounded.
In this way we can generate NOR using DTL circuits.
TTL Inverter
We have seen that when the input voltage is low, the output voltage is HIGH and vice
versa.
Therefore, we can make a logic inverter from an NPN transistor in the common emitter
configuration.
The operation of transistor inverter for both the input (HIGH and LOW) using switching
analogy is shown below.
The diodes D2 and D3 represents the two E-B junction of Q1 and D4 is the collector-base(C-
B) junction.
The input voltages A and B are either LOW (ideally grounded) or HIGH (ideally +5 volts).
If either A and B or both are low, the corresponding diode conducts and the base of Q1 is
pulled to approximately 0.7V. This reduces the base voltage of Q2 to atmost zero. Therefore,
Q2 cuts off. With Q2 open, Q4 goes into cut-off and the Q3 Base is pulled HIGH. Since Q3
acts as an emitter follower, the Y output is pulled up to a HIGH voltage.
On the other hand, when A and B both are HIGH, the emitter diode of Q1 is reverse biased
making them off. This causes the collector diode D4 to get in to forward conduction. This
forces Q2 base to go HIGH. In turn, Q4 goes into saturation, producing a low output in all
input and output conditions.
Without diode D1 in the circuit, Q3 will conduct slightly when the output is low.
To prevent this, the diode is inserted. Its voltage drops keeps the base-emitter diode of Q3
reverse biased.
In this way, only Q4 conducts when the output is low.
A B Y
0 0 1
0 1 1
1 0 1
1 1 0
Truth table for 2-input NAND gate
3-Input TTL NAND Gate:
The three inputs TTL NAND Gate is same as that of two input TTL NAND Gate except
that its Q1 (NPN) transistor has three emitters instead of two. Rest of the circuit is same.
For three input NAND gate if all the inputs are logic 1 then only output is logic 0; otherwise
output is logic 1. The operation is similar to the 2-input NAND gate.
A B C Y
0 0 0 1
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 0
Three input TTL NAND gate Truth table of 3 input NAND gate
In the TTL circuit, transistors Q3 and Q4 form a totem-pole. Such a configuration is known
as active pull-up or totem pole output.
The active pull-up formed by Q3 and Q4 has a specific advantage. Totem-pole transistors are
used because they produce LOW output impedance.
Either Q3 acts an emitter follower (HIGH output) or Q4 is saturated (LOW output).
When Q3 is conducting, the output impedance is approximately 70Ω. When Q4 is saturated,
the output impedance is only 12Ω. Either way, the output impedance is low.
This means that the output voltage can change quickly from one state to another because
any stray output capacitance is rapidly charged or discharged through the low output
impedance.
Thus the propagation delay is low in totem-pole TTL logic.
Suppose that the output of gate A is high (Q3A ON and OFF) and the output of gate B is
LOW (Q3B OFF and Q4B ON). In this situation transistor Q4B act as a load for Q3A.
Since Q4B is a low resistance load, it draws high current around 55mA.
This current might not damage Q3A or Q4B immediately, but over a period of time can cause
overheating and deterioration in performance and eventually device failure.
Some TTL devices provide another type of output called open collector output.
The output of two different gates with open collector output can be tied together.
This is known as wired logic.
A 2-input NAND gate with an open-collector output eliminates the pull-up transistor Q3,
D1 and R4.
The output is taken from the open collector terminal of transistor Q4.
Totem pole o/p tied together can produce harmful current.
Because the collector of Q4 is open, a gate like this will not work properly until you connect
an pull-up resistor.
When Q4 is OFF output is tied to Vcc through an external pull up resistor.
As mentioned earlier, the open collector output of two or more gates can be connected
together, as connection is called a wired-AND and represented schematically by the special
AND gate symbol.
CMOS Logic:
PMOS and NMOS digital ICs are economical than CMOS ICs because they have greater
packing density than CMOS.
NMOS has twice the packing density than PMOS. Furthermore, NMOS can operate at
about three times faster than their PMOS counterparts.
CMOS Inverter:
It consists of two MOSFET’s in series in such a way that the p-channel device has its source
connected to +VDD and the n-channel device has its source connected to ground.
The gates of the two devices are connected together as the common input and the drains
are connected together as the common output.
1. When input is HIGH, the gate of Q1 (p=channel) is at 0 V relative to the source of Q1 i.e. Vgs1 = 0
V. Thus Q1 is OFF. On the other hand, the gate of Q2 (n-channel) as at +VDD relative to its source
i.e. Vgs2 = +VDD. Thus, Q2 is ON. This will produce VOUT = 0 V as in figure.
2. When input is LOW, the gate of Q1 (p=channel) is at negative potential relative to its source while
Q2 has Vgs = 0 V. Thus Q1 is ON and Q2 is OFF. This produces output voltage approximately +VDD
in figure.
Truth Table
A Q1 Q2 Output
0 ON OFF 1
1 OFF ON 0
Note:
P-channel MOSFET is ON when its gate voltage is negative with respect to its source
N-channel MOSFET is ON when its gate voltage is positive with respect to its source.
A B Q1 Q2 Q3 Q4 Output
0 0 ON ON OFF OFF 1
0 1 ON OFF OFF ON 1
1 0 OFF ON ON OFF 1
1 1 OFF OFF ON ON 0
Truth table for CMOS NAND gate
A B Q1 Q2 Q3 Q4 Output
0 0 ON ON OFF OFF 1
0 1 ON OFF OFF ON 0
1 0 OFF ON ON OFF 0
1 1 OFF OFF ON ON 0
Truth table for CMOS NOR gate
Voltage levels and noise margins: The voltage level for CMOS varies according to their
subfamilies. Noise margin are calculated as follow.
VNH = VOH (MIN) – VIH (MIN)
VNL = VIL (MAX) – VOL (MAX)
Propagation Delay:
The propagation delay in CMOS is the sum of delay due to internal capacitance and due to load
capacitance. The delay due to internal capacitance is called the intrinsic propagation delay.
The delay due to load capacitance can be approximated as follows.
Tp(CL)=0.5 RO CL seconds
o Where Tp(CL) is either tpLH or tpHL.
Ro is the output resistance of the gate and CLis the total load capacitance. The Ro depends on
the supply voltage and it can be approximated as
Ro=VCC/IOS
o Where IOS is the short circuit output current.
Unused Inputs: CMOS inputs should never be left disconnected. All CMOS inputs have to be
tied either to a fixed voltage level (0 V or VDD) or to another input. This rule applies even to the
inputs of extra unused logic gates on a chip. An unused CMOS input is susceptible to noise and
static charges that could easily bias both the P and N-channel MOSFETs in the conductive state,
resulting in increased power dissipation and possible overheating.
Static- charge susceptibility (CMOS Hazards): Every CMOS device is vulnerable to the
building up of electrical charge on its insulated gate. Recall that the relationship between charge
Q and voltage V on a capacitor having capacitance C is
V=Q/C
Since the input capacitance at the gate is usually quite small (a few picofarads), a relatively
small amount of charge can create a large voltage which may be greater than the breakdown
voltage of a MOS gate (typically 100 V).
The primary source of charge is “static” electricity, usually produced by handling and the
plastics and textiles. The CMOS devices are protected against this static charge by on chip
diode-resistor network, as shown in the fig. these diodes are designed to turn ON and limit the
size of the input voltages to well below any damaged value.
Latch-up: CMOS integrated circuits contain parasitic PNP and NPN transistors: transistors that
exist because of the proximity of P and N materials embedded in the substrate. Their existence
is not intentional but is unavoidable. Because of conducting paths between a pair of such
transistors, a device can be triggered into a heavy conducting mode, known as latch-up. This
heavy conduction mode, results large current flow which can destroy IC. Most CMOS circuits
contain protective measures to prevent latch-up, but it can still occur if the manufactures
specified maximum ratings are exceeded.
The basic inverter/buffer circuit in ECL family consists of two transistor connected in
differential single ended input mode with a common emitter resistance.
The circuit has two outputs: inverting output (OUT1) and non-inverting output (OUT2). For
this circuit, the input LOW and HIGH voltage levels are defined as 3.6 V and 4.4 V, and it
produces output LOW and HIGH levels as 4.2 V and 5.0 V.
When VIN is HIGH (4.4V), transistor Q1 is ON, but not saturated and transistor Q2 is OFF.
Thus VOUT2 is pulled to 5.0V (HIGH) through R2 and drop across R1 is 0.8 V so that VOUT1.
When VIN is LOW (3.6V), transistor Q2 is ON, but not saturated and transistor Q1 is OFF. Thus,
VOUT1 is pulled to 5.0V (HIGH) through R1 and drop across R2 is 0.8 V so that VOUT2 is 4.2 V
(LOW).