Notes Digital System and Curcit
Notes Digital System and Curcit
Tech
Subject Name: Digital Circuits & Systems
Subject Code: IT-305
Semester: 3rd
Downloaded from be.rgpvnotes.in
Binary Number System : - This number system has a base or radix of 2. The symbols or digits
used to represent the any number in this system are 0 & 1.
Octal Number System : - This number system has a base or radix of 8. The symbols or digits
used to represent the any number in this system are 0 through 7 i.e.( 0, 1, 2, 3, 4, 5, 6, 7 )
Decimal Number System :- This number system has a base or radix of 10. The symbols or
digits used to represent the any number in this system are 0 through 9 i.e. ( 0, 1, 2, 3, 4, 5, 6, 7,
8, 9 )
Hexadecimal Number System :- This number system has a base or radix of 16. The symbols or
digits used to represent the any number in this system are 0 through F i.e. ( 0, 1, 2, 3, 4, 5, 6, 7,
8, 9, A, B, C, D, E, F )
=8 + 4 + 2 + 0
= 14
Note: To convert any binary number into decimal number system following points should be
consider
1. In conversion of integral part binary digit is multiplied by power of 2 in increasing order
from right to left.
2. In conversion of fractional part binary digit is divided by power of 2 in increasing order from
left to right.
2 14 0
2 7 1
2 3 1
ie. ( 14 )10 = ( 1110 )2
1
( 0.812 2 ) = 1.624 1
Fractional Part :
( 0.624 2 ) = 1.248 1
( 0.248 2 ) = 0.496 0
ie. ( 0 . 812 )10 = ( 0.11001 )2
( 0.496 2 ) = 0.992 0
( 0.992 2 ) = 1.984 1
Thus ( 15 . 812 )10 = ( 1111 . 11001)2
Note: To convert any decimal number into binary number system following points should be
consider
1. In conversion of integral part decimal number is divided by 2 and remainder is noted in side.
After division the remainders are arranged from bottom to top.
2. In conversion of fractional part decimal number is multiplied by 2 and integer part of
number is noted in side. After multiplication the integers are arranged from top to bottom.
Integeral part :
( 10001110)2 ={ 010, 001, 110 }
= ( 010, 001, 110 )2
2 1 6
ie. ( 10001110)2 = ( 216 )8
Fractional Part :
( 0. 01101 )2 = { 011, 010 }
3 2
Note: To convert any binary number into octal number system following points should be
consider
1. In conversion of integral part binary digits are grouped in pair of three digits from left to
right and if the digit in right is less then three put zero as required. After making the pair
equivalent decimal number is obtained.
2. In conversion of fractional part binary digit is divided by power of base i.e. 2 in increasing
order from left to right.
Integeral part :
4 0 4
( 404 )8 =
{ 100 000 100 } = (100000100)2
ie. ( 404 )8 = (100000100 )2
Fractional Part :
( 0 . 245)8 = 2 4 5
{ 010 100 101 } = ( 0. 010100101)2
Note: To convert any octal number into binary number system following points should be
consider
1. In conversion of integral part octal digits are converted into equivelant binary digits in
group in pair of three digits.
2. In conversion of fractional part same prosess will be followed as for intregal part.
Integeral part :
Fractional Part:
( 0. 001011111010 )2 = { 0010, 1111, 1010, }
2 F A
i.e. ( 0. 001011111010 )2 = ( 0.2FA )16
Note: To convert any binary number into hexadecimal number system following points should
be consider
1. In conversion of integral part binary digits are grouped in pair of four digits from left to
right and if the digit in right is less then four put zero as required. After making the pair
equivalent hexadecimal number is obtained.
2. In conversion of fractional part binary digit is divided by power of base i.e. 2 in increasing
order from left to right.
Integeral part :
( 99E )16 = 9 9 E
{ 1001 1001 1110 } = (10011001110)2
ie. ( 99E )16 = (10011001110 )2
Fractional Part :
( 0 . 2FA)16 = 2 F A
{ 0010 1111 1010 } = ( 0. 001011111010)2
Note: To convert any hexadecimal number into binary number system following points should
be consider
1. In conversion of integral part hexadecimal digits are converted into equivelant binary digits
in pair of four binary digits.
2. In conversion of fractional part same prosess will be followed as for intregal part.
( 57 . 245 )8 = ( ? )10
(57)8 = ( 5 81 ) + ( 7 80 )
Integeral part :
= 40 + 7
= 47
ie. (57)8 = ( 47 )10
Fractional Part :
(0.245 )8= ( 2 1/8 ) + ( 4 1/64 ) + ( 5 1/512 )
= 0.25 + 0.0625 + 0.0097
= 0. 3222
ie. (0.245)8 = (0. 3222 )10
Thus ( 57.245)8 = ( 47 . 3222 )10
Note: To convert any octal number into decimal number system following points should be
consider
1. In conversion of integral part octal digit is multiplied by power of 8 in increasing order from
right to left.
2. In conversion of fractional part octal digit is divided by power of 8 in increasing order from
8 303 7
8 37 5 ie. ( 303)10 = ( 457)8
4
( 0.322 8 )= 2.576 2
Fractional Part :
( 0.576 8 )= 4.608 4
( 0.608 8 )= 4.864 4 ie. ( 0 . 322 )10 = ( 0 . 24467 )8
( 0.864 8 ) = 6.912 6
( 0.912 8 )= 7.296 7
Thus ( 303 . 322 )10 = (457 . 24467 )8
Note: To convert any decimal number into octal number system following points should be
consider
1. In conversion of integral part decimal number is divided by 8 and remainder is noted in side.
After division the remainders are arranged from bottom to top.
2. In conversion of fractional part decimal number is multiplied by 8 and integer part of
number is noted in side. After multiplication the integers are arranged from top to bottom.
Integeral part :
( 174654 )8 = 1 7 4 6 5 4
{ 001 111 100 110 101 100 }
Fractional Part : 2 7 3 0 5 4
( 0.273054 )8 = 010 111 011 000 101 100
Note: To convert any octal number into hexadecimal number system following points should
be consider
1. In conversion of integral part octal digits are converted in binary and grouped in pair of four
binary digits. After grouping the digit equivalent hexadecimal number is obtainted.
2. In conversion of fractional part same prosess will be followed as for intregal part.
Integeral part :
( F9AC )16 = F 9 A C
{ 1111 1001 1010 1100 } = ( 1111100110101100 )2
Fractional Part :
( 0 . 5D8B )16 = 5 D 8 B
{ 0101 1101 1000 1011 } = ( 0 . 010, 111, 011, 000, 101, 100)2
16 3750 6 6
16 234 10 A
ie. ( 3750)10 = ( EA6 )16
14 E
( 0.365 16 ) = 5.84 5 5
Fractional Part :
1.2 CODES
Numbers, letters or words are represented by a specific group of symbols, called code.
1.2.1 Weighted code: Weighted binary codes are those binary codes which obey the
positional weight principle. Each position of the number represents a specific weight.
Example: Straight bit binary code, BCD code.
Straight bit binary code:
Decimal Number 2
Positional weights 23 22 21 20
= = = =
8 4 2 1
Binary Code 0 0 1 0
Binary Coded Decimal (BCD) code:
In this code each decimal digit (0 to 9) is represented by a 4-bit binary number. BCD is a way to
express each of the decimal digits with a binary code. In the Binary, with four bits we can
represent sixteen numbers (0000 to 1111). But in BCD code only first ten of these are used (0000
to 1001). The remaining six code combinations i.e. 1010 to 1111 are invalid in BCD.
Decimal 0 1 2 3 4 5 6 7 8 9
BCD 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001
Advantages of BCD Codes
1. It is very similar to decimal system.
2. We need to remember binary equivalent of decimal numbers 0 to 9 only.
Disadvantages of BCD Codes
1. The addition and subtraction of BCD have different rules.
2. The BCD arithmetic is little more complicated.
3. BCD needs more number of bits than binary to represent the decimal number. So BCD is
less efficient than binary.
1.2.2 Non-weighted code: In this type of binary codes, the positional weights are not
assigned. The examples of non-weighted codes are Excess-3 code and Gray code.
Excess-3 code
The Excess-3 code is also called as XS-3 code. It is non-weighted code used to express decimal
numbers. The Excess-3 code words are derived from the 8421 BCD code words adding (0011) 2 or
(3)10 to each code word in 8421. The excess-3 codes is obtained, as follows
Decimal Number (8421) BCD ADD 3 i.e.(+0011) Excess-3
Example:
Gray Code
It is the non-weighted code and it is not arithmetic codes. That means there are no specific
weights assigned to the bit position. It has a very special feature that has only one bit will change
each time the decimal number is incremented . As only one bit changes at a time, the gray code
is called as a unit distance code. Gray code cannot be used for arithmetic operation.
3 Alphanumeric codes
The alphanumeric codes are the codes that represent numbers and alphabetic characters.
Mostly such codes also represent other characters such as symbol and various instructions
necessary for conveying information. An alphanumeric code should at least represent 10 digits
and 26 letters of alphabet i.e. total 36 items. The following three alphanumeric codes are very
commonly used for the data representation.
1. American Standard Code for Information Interchange (ASCII).
2. Extended Binary Coded Decimal Interchange Code (EBCDIC).
3. Five bit Baudot Code.
ASCII code is a 7-bit code whereas EBCDIC is an 8-bit code. ASCII code is more commonly used
worldwide while EBCDIC is used primarily in large IBM computers.
CODE CONVERSION:
1. ( 0010)BCD to gray code
Steps: 1) Write the MSB bit as it is i.e. 0
2) Start EXORing the consecutive bits from LHS i.e. 0 (EXOR) 0 = 0
3) 0 (EXOR) 1 = 1, 1 (EXOR) 0 = 1.
4) Final Result. ( 0011 ) gray
All the bits are used for representing only the magnitude
Sign- Magnitude Numbers: Binary numbers which contains a sign bit followed by magnitude bits
are called Sign- Magnitude Numbers. 0 is used to represent the (+) sign and 1 is used to
represent a (-) sign. The MSB of binary number is used to represent the sign and remaining bit is
used to represent the magnitude. MSB represents the sign and rest of bits represent the
magnitude.
1/0 0 1 1 0 1 0 0
MSB MAGNITUDE
For an 8-bit sign-magnitude number, the largest negative number is (-127)10 and positive number
is (+127)10.
BINARY ADDITION:-
1. 0 + 0 = Sum 0 with carry of 0.
2. 0 + 1 = Sum 1 with carry of 0.
3. 1 + 0 = Sum 1 with carry of 0.
4. 1 + 1 = Sum 0 with a carry of 1.
5. 1 + 1 + 1 = Sum 1 with carry of 1.
Example: Add (111011.1101)2 with (011111.0110)2
1 1 1 1 1 1 1 carry
1 1 1 0 1 1 . 1 1 0 1 Augend
+ 0 1 1 1 1 1 . 0 1 1 0 Addend
1 0 1 1 0 1 1 . 0 0 1 1 sum
BINARY SUBTRACTION:
The basic principles of binary subtraction include the following:
A) 0 − 0 = 0. B) 1 − 0 = 1. C) 1 − 1 = 0. D) 0 − 1 = 1 with a borrow of 1 from the next more
significant bit.
Example: Subtract (11111.011)2 from (111011.1101)2
1 1 1 0 1 1 . 1 1 0 1 Minuend
─ 0 1 1 1 1 1 . 0 1 1 0 Subtraend
0 1 1 1 0 0 . 0 1 1 1 Difference
BINARY MULTIPLICATION:
The basic rules of multiplication are listed as follows:
1. 0 × 0 = 0.
2. 0 × 1 = 0.
3. 1 × 0 = 0.
4. 1 × 1 = 1.
Example: Multiply (10.11) 2 by (11)2
1 0 . 1 1 Multiplicand
X 1 1 Multiplier
1 0 . 1 1
+ 1 0 1 . 1 0
1 0 0 0 . 0 1 Product
BINARY DIVISION:
Example: Divide (110001)2 by (111)2
BOOLEAN ALGEBRA:
Boolean algebra or switching algebra is a system of mathematical logic to perform different
mathematical operations in binary system. There is only three basis binary operations, AND,
OR and NOT by which all simple as well as complex binary mathematical operations are to be
done. There are many rules in Boolean algebra by which those mathematical operations are
done. In Boolean algebra, the variables are represented by Capital Letter like A, B, C etc and
the value of each variable can be either 1 or 0, nothing else. In Boolean algebra an expression
given can also be converted into a logic diagram using different logic gates like AND gate, OR
gate and NOT gate, NOR gates, NAND gates, XOR gates, XNOR gates etc.
Some basic logical Boolean operations,
AND operation OR operation NOT operation
0.0 = 0 0+0=0 =
1.0 = 0 0+1=1 =
0.1 = 0 1+0=1
1.1 = 1 1+1=1
A.B = A + B
Proof :
Inputs Outputs
A B A+B A .B A.B A +B
0 0 1 1 1 1
0 1 0 0 1 1
1 0 0 0 1 1
1 1 0 0 0 0
Colu for A+B a d A .B are sa e. Colu for A.B a d A + B are same. Hence proved.
DUALITY THEOREM :
The Duality theorem states that the Dual of a Boolean expression can be obtained by :
(i) Replacing OR operator by AND operator. (iii) Replacing AND operator by OR operator.
(ii) Replacing 0s by 1s and 1s by 0s.
(iv) Co ple e ti g the aria les ie. A is repla ed A a d A is repla ed A.
Example of Duality principle are stated below :
(i) A + A = A (ii) A . A = A BY DUALITY :- i A . A = A ii A + A = A
K-MAP Representation:
2-Variable K-Map 3-Variable K-Map
B' B B'C' B'C BC BC'
A' m0 m1 A' m0 m1 m3 m2
A m2 m3 A m4 m5 m7 m6
4-Variable K-Map 5-Variable K-Map
C'D C'D' C'D' C'D C'DE CDE CD CD' CD'E
' C'D CD CD' E' E E ' ' E E '
A'B' m0 m1 m3 m2 A'B
A'B m4 m5 m7 m6 ' m0 m1 m3 m2 m6 m7 m5 m4
m1 m1 m1 m1 m1 m1 m1 m1
AB 2 3 5 4 A'B m8 m9 1 m10 4 5 3 m12
m1 m1 m2 m3 m3 m2
AB' m8 m9 1 0 AB m24 m25 7 m26 0 1 9 m28
m1 m2 m2 m2
AB' m16 m17 9 m18 2 3 1 m20
Question : Using Karnaugh maps, write the minimized Boolean expressions for the output
functions : Y = A .B.C + A.B .C + A.B.C + A .B .C and Y = A .B .C + A.B.C +
A .B .C + A.B .C + A.B.C + A.B .C
Solution: Y1 = ∑m ( 0, 2, 4, 7 ) and Y2 = ∑m ( 0, 1, 4, 5, 6, 7 )
K-Map for Y1:
B'C' B'C BC BC'
A' 1 0 0 1
A 1 0 1 0
Step-02: Any two minterms which differ from each other by only one variable can be
o i ed, a d the u at hed aria le re o ed a d a he k √ is pla ed to the right of oth
the minterms to show that they have been used . The minterms in one group i.e group 0, are
compared with next down group i.e group1 only.
minterm Variables
w x Y z
0,1 0 0 0 - uncheck
0,2 0 0 - 0 √
0,8 - 0 0 0 √
2,10 - 0 1 0 √
8,10 1 0 - 0 √
10,11 1 0 1 - √
10,14 1 - 1 0 √
11,15 1 - 1 1 √
14,15 1 1 1 - √
minterm Variables
w x Y z
uncheck
0,2,8,10 - 0 - 0
uncheck
0,8,2,10 - 0 - 0
uncheck
10,11,14,15 1 - 1 -
uncheck
10,14,11,15 1 - 1 -
F = w’ ’ ’ + ’z’ + w
P.I Minterms 0 1 2 8 10 11 14 15
0,1 x x
z 0,2,8,10 x x x x
wy 10,11,14,15 x x x x
√ √ √ √ √ √
Prime Implicants that cover minterms with a single cross in their column are called essential
prime implicants.
Demultiplexer circuits.
COMBINATIONAL
M Inputs LOGIC N outputs
CIRCUIT
A Combinational Circuit consists of logic gates whose outputs at any time are
determined directly from the present combination of inputs without regard to
previous inputs. It consists of input variables, logic gates and output variables.
A Combinational circuit does not consists of memory element as it depends only on
present input.
The design procedure of any combinational circuit start from the verbal outline of the
problem and ends in a logic circuit diagram, or asset of Boolean functions from which
the logic diagram can be easily obtained.
The design steps are:
a) The problem is stated or Design specifications are stated.
b) The number of input and required output variables is determined.
c) Truth table is derived.Truth Table expresses the complete relation between output and
input variables.
d) Simplified Boolean function for each output is obtained.
e) Logic diagram is drawn.
Some examples of combinational circuits are: Half adder, full adder, half subtractor, full
subtractor,Encoders,Decoders,Multiple ers,De ultiple ers…et .
2.2 MULTI LEVEL IMPLEMENTATION NAND,NOR GATES
Multi Level Implementation means that any path from input to output path contains
maximum two gates or more hence the name Multilevels for various levels of gates.
Implementing two level logic using NOR gate requires the Boolean expression to be in Product
of Sum (POS) Form.
In POS form the first level of gate is an OR gate and the second level is an AND gate.
To Implement Boolean Using NOR Gate, there are basically three steps:
1)At first we need to have a simplified POS expression for the function you need to
i ple e t.“i plified PO“ e pressio a e ade usi g Kar augh ap o i i g the
and then inverting the output function .
B F
2) Next Step is to draw above mentioned schematic using OR –INVERT and INVERT-AND
gates.OR INVERT should replace OR gates and INVERT AND gates replaces AND gates.
A
B F
C
D
B F
D
2nd Level
st
1 Level
A
B
C F
D
2) Next Step is to draw above mentioned schematic using AND –INVERT and INVERT-OR gates.
AND -INVERT should replace AND gates and INVERT OR gates replaces OR gates.
B
F
C
A
B
F
C
D
So, like wise we can draw for many levels of NAND gates .
A combinational circuit that perform the addition of two bits is called half adder. This circuit
needs two binary inputs and two binary outputs. The input variables, augend (X) and addend
(Y) bits; the output variables SUM (S) and CARRY (C).
Truth Table:
INPUTS OUTPUTS
X Y SUM (S) CARRY(C)
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
The simplified output Boolean function : SUM (“ = X .Y + X.Y and CA‘‘Y C = X.Y
The logic diagram of Half Adder :
A
S = (AB)
B
C = (A . B)
Figure 2.3.1 Half Adder
2.3.2 FULL ADDER:
When the augend and addend numbers contain more significant digits, the carry obtained
from the addition of two bits is added to the next higher order pair of significant bits. The
combinational circuit that performs the addition of three bits (two significant bits and a
previous carry ) is a full adder. It consists of three inputs (X and Y are actual 2-inputs and third
input represents the CARRYIN (CIN) generated from the previous lower significant bit position)
and two outputs, SUM (S) and CARRYOUT (COUT).
Truth Table:
INPUTS OUTPUTS
X Y CIN SUM (S) CARRY(COUT)
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
Using K-Map method, simplify the output expression for SUM(S) and CARRY (COUT):
K-Map for SUM: K-Map for CARRY:
Y'.CIN' Y'.CIN Y.CIN Y.CIN' Y'.CIN' Y'.CIN Y.CIN Y.CIN'
X' 0 1 0 1 X' 0 0 1 0
X 1 0 1 0 X 0 1 1 1
The half-subtractor is a combinational circuit which is used to perform subtraction of two bits.
It has two inputs, X (minuend) and Y (subtrahend) and two outputs D (difference) and B
(borrow). The logic symbol and truth table are shown below.
INPUT OUTPUT
A B DIFFERENCE(D) BORROW (BOROUT)
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
Simplified Boolean function for the outputs are derived using K-map:
D = A .B + A.B BOROUT = A .B
The half-subtractor can be used for LSB(Least Significant Bit) subtraction. If there is a borrow
during the subtraction of the LSBs, it affects the subtraction in the next higher column; the
subtrahend bit is subtracted from the minuend bit, considering the borrow from that coloumn
used for the subtraction in the preceding column. Such a subtraction is performed by a
full-subtractor.
Simplified Boolean function for the outputs are derived using K-map:
K-Map for DIFFERENCE(D): K-Map for BORROW(BORout):
B'.BORIN' B'.BORIN B.BORIN B.BORIN' B'.BORIN' B'.BORIN B.BORIN B.BORIN'
1 1 1 1
A' 0 0 0 1
A'
1 1
A 0 0 0 0 1 0
A
D = (A B BORIN)
A
B
BORIN
BOROUT = A . BO‘IN +A .B +B. BO‘IN)
Ai Pi
Bi Si
Ci
Gi C i+1
Where, Gi is carry generate and produces the carry when Ai and Bi are 1, regardless of input
carry. Pi is carry propagate, term associated with propagation of carry from C i to C i+1 .
Pi = Ai Bi and Gi = Ai . Bi
From above circuit, we define two new binary variables:
Si = Pi Ci and C i+1 = Gi + Pi . Ci
Output sum and carry is expressed as:
Now writing the boolean function for the carry output of each stage and substituting for each
Ci its value from the previous equations , we get:
C1 = G0 + P0 . C0
C2 = G1 + P1 . C1 = G1 + P1 . (G0 + P0 . C0) = G1 + P1 .G0 + P1. P0 . C0
C3 = G2 + P2 . C2 = G2 + P2 . (G1 + P1 .G0 + P1. P0 . C0) = G2 + P2 . G1 + P2. P1 .G0 + P2. P1. P0 . C0
From the above equation it is noted that C3 does not have to wait for C2 and C1 to propagate; in
fact C3 is propagated at the same time as C2 and C1 . He e the arr s are propagated o the
same time so no carry propagation delay occurs. Logic diagram of look ahead carry generator
is shown below.
Logic diagram of Look Ahead Carry Generator:
P2 G2 P1 G1 P0 G0 C0
C3
C3
C2
C3
C1
C3
Figure 2.3.5 Look Ahead Carry Generator
S3 S2 S1 S0
From figure 2.3.6, the augend bits of A (A0,A1,A2,A3) and the addend bits of B (B0,B1,B2,B3) are
designated by subscript numbers from right to left, with subscript 1 denoting the lower order
bit. The carries (C0,C1,C2,C3) are connected in chain through full adders. The input carry to the
full adder is C0 and output carry is C4. The S (S0,S1,S2,S3) outputs generates the required sum
bits.
“u s rip i represe t i = , , , .
In parallel adder, input carry C0 in the least significant position must be 0.
Carry Propagation In Binary Parallel Adder: Consider the figure 2.3.6, a 4-bit binary parallel
adder. The inputs A3 and B3 reach a steady state value as soon as inputs signals are applied to
the adder. But input carry C3 does not settle to is final steady state value until C 2 is in its steady
state value. Simillarly, C2 has to wait for C1. Thus only after the carry propagates through all
the stages will the last output S3 and C4 settle to its final steady state value. Thus to get the
corrected output, carry has to propagate on time, if not the outputs will not be correct. So, the
carry propagation time is the limiting factor.
The solution for reducing the carry propagation delay time is 1) to employ the faster gates
with reduced delays. But physical circuits have a limit. 2) to increase the equipment
complexity in such a way that the carry delay time is reduced. 3) the most widely used
technique employs the principle of look ahead carry generator.
2.4 ENCODER:
A combinational logic circuit that produces the reverse operation of a decoder. Encoder has
2n(or less i put li es a d output li es. The output li es ge erate the i ar ode for n
input lines.
Truth table-
Inputs Outputs
D0 D1 D2 D3 D4 D5 D6 D7 X Y Z
1 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 1
0 0 1 0 0 0 0 0 0 1 0
0 0 0 1 0 0 0 0 0 1 1
0 0 0 0 1 0 0 0 1 0 0
0 0 0 0 0 1 0 0 1 0 1
0 0 0 0 0 0 1 0 1 1 0
0 0 0 0 0 0 0 1 1 1 1
D0 D1 D2 D3 D4 D5 D6 D7
Z
A
The encoder in figure2.4.1, assumes that only one input line can be equal to 1 at any time.
Note that, circuit has 8-inputs i.e 28 = 256 possible input combinations and only 8 of these
combinations have any meaning. The other input combinations are do t are o ditio . The
output V i figure is to i di ate the fa t that all i puts are ot s, as sho i figure.
Simillarly we can design priority encoder, decimal to BCD encoder, hexadecimal to binary
encoder.
PRIORITY ENCODER:
Priority encoder establish an input priority to ensure that only the highest priority input line is
encoded.Thus, if priority is given to an input with a highest subscript number over one with a
lower subscript number, then the encoded output will be of highest subscript number.
Truth Table of priority encoder:
Inputs Outputs
D3 D2 D1 D0 A B
1 X X X 1 1
0 1 X X 1 0
0 0 1 X 0 1
0 0 0 1 0 0
Design a 4 line to 2 line priority encoder. Include an output E to indicate that atleast one
input is a 1.
Solution: Priority given to the input with highest subscript number i.e. input D 3
Truth table of 4 line to 2 line priority encoder:
Inputs Outputs
D3 D2 D1 D0 A B E
0 0 0 0 0 0 0
0 0 0 1 0 0 1
0 0 1 0 0 1 1
0 0 1 1 0 1 1
0 1 0 0 1 0 1
0 1 0 1 1 0 1
0 1 1 0 1 0 1
0 1 1 1 1 0 1
1 0 0 0 1 1 1
1 0 0 1 1 1 1
1 0 1 0 1 1 1
1 0 1 1 1 1 1
1 1 0 0 1 1 1
1 1 0 1 1 1 1
1 1 1 0 1 1 1
1 1 1 1 1 1 1
B
A
2.5 DECODER:
A decoder is a combinational logic circuit that converts binary information from n-input lines
to a maximum of 2n unique output lines. If the n- it de ided i for atio has u used or do t
care combinations, the decoder output will have lass than 2n outputs.
n-to-m line m≤ n
n Input
decoder output Lines
Lines
LinesLines
3 to 8 Line Decoder:
3-inputs are decoded into eight output, each output representing one of the minterms of the
3-input variables.
Inputs Outputs
X Y Z D0 D1 D2 D3 D4 D5 D6 D7
0 0 0 1 0 0 0 0 0 0 0
0 0 1 0 1 0 0 0 0 0 0
0 1 0 0 0 1 0 0 0 0 0
0 1 1 0 0 0 1 0 0 0 0
1 0 0 0 0 0 0 1 0 0 0
1 0 1 0 0 0 0 0 1 0 0
1 1 0 0 0 0 0 0 0 1 0
1 1 1 0 0 0 0 0 0 0 1
Truth Table of 3 to 8 line decoder
The output line whose value is equal to 1 represents the minterm equivalent of the binary
number available in the input lines.
Output expressions: D0 = X . Y . ) ; D1 = X . Y . ) ; D2 = X . Y. ) ; D3 = X . Y. )
D4 = X. Y .) ; D5 = X. Y . ) ; D6 = X. Y. ) ; D7 = X. Y. Z
X Y Z
D0
D1
A
D2
D3
D4
D5
D6
D7
n
2n X 1 Ouput Line
2 input Multiplexer
Lines
n “election Lines
Figure 2.6.1 Multiplexer
4 x 1 Multiplexer:
A 4x 1 Multiplexer has 4-input lines ,1-output line and 2-selection lines.
A0
4- input A1 4X1 Y Output Line
Lines A2 Multiplexer
A3
S1 S0
2- Selection Lines
Figure 2.6.2 Block diagram of 4x1 Multiplexer
From the block diagram of 4x1 multiplexer, there are 4- input lines (A0,A1,A2,A3), 2-selection
lines (S0 and S1) and 1-output line (Y).
Truth Table:
Input Selection Lines Output Line
S1 S0 Y
0 0 A0
0 1 A1
1 0 A2
1 1 A3
n “election Lines
Figure 2.7.1 Block Diagram of Demultiplexer
1 x 4 Demultiplexer:
A 1 x 4 Demultiplexer has 1-input line ,4-output lines and 2-selection lines.
A0
1- input 4X1 A1 4- Ouput Lines
Line (E) Multiplexer
A2
A3
S1 S0
2- Selection Lines
Figure 2.7.2 Block diagram of 1 x 4 Demultiplexer
From the block diagram of 1 x 4 Demultiplexer, there is 1- input line (E) ,2-selection lines (S0
and S1) and 4-output line (A0,A1,A2,A3).
Truth Table:
Input Input Selection Lines Output Line
S1 S0
E 0 0 A0 = E
E 0 1 A1 = E
E 1 0 A2 = E
E 1 1 A3 = E
According the truth table,
1.When selection line S0=S1=0; input line E is connected with output A0.
2.When selection line S0=1 and S1=0; input line E is connected with output A1.
3.When selection line S0= 0 and S1=1; input line E is connected with output A2.
4.When selection line S0=S1=1; input line E is connected with output A3.
Output expression: A =E.“ .“ ; A =E.“ .“ ; A =E.“ .“ ; A =E.“ .“
E S1 S0
A
A0
A1
A2
A3
3.2 FLIP-FLOPS:
A flip flop is a basic data storage element. A NAND or NOR gate individually act as a storage
element when they are cross coupled with feedback. Such cross coupled NAND or NOR gates
with feedback are known as flip flops. A flip flop is a bistable (output will remain permanently
either 0 or 1 until it is forced to change the state by an external trigger) circuit. A flip flop have
two outputs Q a d Q’, a d are o ple e t to ea h other.
The truth table shown for NOR gate flip flop is similar to that of transistor flip flop.
(b) R-S (RESET-SET) FLIP FLOP USING NAND GATES:
S Truth Table:
Q
S R Q (output)
0 0 Invalid
1 0 0 (RESET)
Q’ 0 1 1 (SET)
R
Figure 3.2.2 RS Flip Flop using NAND Gate 1 1 No Change
The truth table shown for NAND gate flip flop is inverted to that of NOR gate flip flop, hence
inverters gates are used to drive the inputs to the gates as shown:
S’ Truth Table:
S S R Q (output)
Q
0 0 No Change
1 0 1 (SET)
0 1 0 (RESET)
Q’ 1 1 Invalid
R R’
Figure 3.2.3 RS Flip Flop
The truth table for NAND gate flip flop with inverters is similar to that of transistor flip flop,
hence this flip flop is used to realize the desired flip flop.
The clock signal or the enabling signal which makes the circuit to perform the required
operation. If clock = 0, the circuit output will remain unchanged. If clock = 1, the flip flop is
enabled and respond to the applied input signal.
K Q’
R’
R
Figure 3.2.5JK Flip Flop
Qn represent the past state; Qn+1 represent the present state i.e. the state of the output
after the clock pulse is applied.
The J-input is analogous to the S input and K to the R input. So, when J=1 and K=0, the J-K flip
flop is in SET state and when, J = 0 and K = 1, the flip flop is in RESET state. When J=K=1, the
flip flop will complement its output condition, with high clock signal. This is the RACE around
condition and it is aproblem in JK flip flop. To overcome the problem of race around condition,
Master-Slave JK flip flop is used.
The input signals J and K are o e ted to the gated aster “R flip flop hi h lo ks the
input condition while the clock (Clk i put is HIGH at logi le el . As the lo k i put of the
sla e flip flop is the i erse o ple e t of the aster lo k i put, the sla e “R flip
flop does ot toggle. The outputs fro the aster flip flop are o ly see y the gated
sla e flip flop he the lo k i put goes LOW to logi le el .
Whe the lo k is LOW , the outputs fro the aster flip flop are lat hed a d a y
additio al ha ges to its i puts are ig ored. The gated sla e flip flop o respo ds to the
state of its inputs passed over by the aster se tio .
The o the Lo -to-High tra sitio of the lo k pulse the i puts of the aster flip flop are
fed through to the gated i puts of the sla e flip flop a d o the High-to-Lo tra sitio the
same inputs are reflected on the output of the sla e aki g this type of flip flop edge or
pulse-triggered.
The , the ir uit a epts i put data he the lo k sig al is HIGH , a d passes the data to
the output on the falling-edge of the clock signal. In other words, the Master-Slave JK Flip
flop is a “y hro ous de i e as it o ly passes data ith the ti i g of the lo k sig al.
Truth Table:
S
S’ Clock T Qn+1
J Q (output)
T Clock 1 0 Qn
1 1 Qn’
K Q’
R’
R
Figure 3.2.8JK Flip Flop
(g) D-Flip Flop:
The SR or JK flip flop can be converted into a delay (D) flip flop. The D flip flop receives the
designation from its ability to transfer data into a flip flop i.e when clock is high the output Q
follows the state of the input line D.
Truth Table:
D S
S’ Clock D Qn+1
J Q (output)
Clock 1 0 0
1 1 1
K Q’
R’
R
Figure 3.2.9D Flip Flop
Serial I/P
D Q D Q D Q D Q
F1 F2 F3 F4 Serial Output
Q’ Q’ Q’ Q’
Clock
Figure 3.4.1Serial Input Serial Output Shift Register
From the above diagram of SISO shift register, output of eah flip flop is connected to the input
of the next flip flop at its right. Each clock pulse shifts the contents of the register one bit to
the right.
Operation:
Serial loading of Information or data: Serial retriving of Information or data:
Parallel Output
Q1 Q2 Q3 Q4
Serial I/P
D Q D Q D Q D Q
F1 F2 F3 F4
Q’ Q’ Q’ Q’
Clock
Figure 3.4.2 Serial Input Parallel Output Shift Register
Q1 Q2 Q3 Q4
D Q D Q D Q D Q
F1 F2 F3 F4
Q’ Q’ Q’ Q’
Clock
Figure 3.4.3 Parallel Input Parallel Output Shift Register
In PIPO shift register, input data D1,D2,D3 and D4 can be loaded into the flip flop
simultaneously through enable pulse and can be retrived simultaneously also from outputs
Q1,Q2,Q3 and Q4.
D1 D2 D3
Enable
D1 D2 D3 Serial
O/P
Q Q Q
1 D 2
Q D 3
Q
D Q
F1 F2 F3
Q’ Q’ Q’
Clock
From the above figure of PISO shift register, data input D1,D2 and D3 are loaded
simultaneously, when Enable = 1. When Enable = 0, loaded data is taken out serially from Q3
output of F3 flip flop. On application of clock pulse.
2. RING COUNTER:Ring counter is a shift register, in which output of last stage is feedback to
the input of first stage.
Q1 Q2 Q3 Q4
D1 Q D2 Q D3 Q D4 Q
F1 F2 F3 F4
Q’ Q’ Q’ Q’
Clock
Figure3.4.5: 4-bit Ring Counter
Q1 Q2 Q3 Q4 Clock pulse
Reference State 1 0 0 1
1 1 0 0 1
0 1 1 0 2
0 0 1 1 3
1 0 0 1 4
Count Sequence
Q1 Q2 Q3 Q4
D1 Q D2 Q D3 Q D4 Q
F1 F2 F3 F4
Q’ Q’ Q’ Q’
Clock
Figure3.5.1: 4-bit Johnson Counter
Q1 Q2 Q3 Q4 Clock pulse
Reference State 0 0 0 0
1 0 0 0 1
1 1 0 0 2
1 1 1 0 3
1 1 1 1 4
0 1 1 1 5
0 0 1 1 6
0 0 0 1 7
0 0 0 0 8
Table: Johnson Counter Count Sequence
Modulus of Counter(MOD): Modulus of counter is the number of different states before the
sequence repeats. Example- 3-bit binary counter has 8 different states, so MOD-8 counter.
Q1 Q2 Q3
T Q T Q T Q
A B C
Q’ Q’ Q’
Clock Figure 3.6.01: 3-Bit Binary Ripple Counter
3-bit binary ripple counter using T-Flip flop is shown above. From the figure, negative edge
triggered lo k dri es the flip flop A . Output Q of flip flop A dri es the flip flop B a d
output Q of flip flop B dri es flip flop C . Flip flop A ha ge state efore it a trigger the
flip flop B a d flip flop B has to ha ge state efore it a trigger the flip flop C . The
trigger moves through the flip flop like a ripple in water, hence the name Ripple Counter.
Operation: Let assu e all flip flop are reset to produ e . Co sider flip flop A as least
sig ifi a t it L“B a d flip flop C as ost sig ifi a t it M“B , so the o te t of ou ter is
CBA = 0 0 0.
Cloc Q Q Q Coun a b c d e f g h
Time
k 3
0 2
0 1
0 0t
a 0 0 1 1
Clock
b 0 1 0 2
c 0 1 1 3
Q1
d 1 0 0 4
e 1 0 1 5
f 1 1 0 6 Q2
g 1 1 1 7
h 0 0 0 0 Q3
TRUTH TABLE
Figure 3.6.02: Waveforms
From the waveform, for every negative clock transition, output Q1 of flip flop A will change
the state. Since flip flop A output Q1, act as a clock for flip flop B, each time the waveform at
Q1 goes low, output Q2 of flip flop B will toggle (change the state). Each time the output Q2 of
flip flop B goes low, output Q3 of flip flop C will toggle (change the state).
+Vcc
A B C
T A T B T C
FF1 FF2 FF3
A’ B’ C’
Clock Figure3.6.03: 3-bit Asynchronous down Counter
“yste lo k is used to dri e flip flop , ut the o ple e t A’ of flip flop-1, is used to drive
the flip flop- a d o ple e t B’ of flip flop-2, is used to drive the flip flop-3. Output A of flip
flop-1 toggles with every negative clock transition. But flip flop 2 will toggle each time A goes
high i.e. A’ goes lo a d it is this egati e tra sitio that triggers flip flop-2. On the time line,
flip flop-2 toggles at point a,c,e,g and i. similarly, flip flop-3 is triggered y B’ a d so flip flop-3
will toggle each time flip flop-2 goes high. Thus flip flop-3 toggles high at point a on time line
and toggles back at point e and high at point i. Notice that the counter content are reduced by
one count with each clock transition i.e in count down mode.
TRUTH TABLE a b c d e f g h
Time
Clock C B A Count
1 1 1 7
a 1 1 0 6 Clock
b 1 0 1 5
A
c 1 0 0 4
d 0 1 1 3
e 0 1 0 2 B
f 0 0 1 1
g 0 0 0 0 C
h 1 1 1 7
Figure 3.6.04: Waveforms
SYNCHRONOUS COUNTER OR PARALLEL COUNTER:
In a ripple counter (asynchronous counter) flip flop delay times are additive and the total
settling time for the counter is approximate the delay times the total number of flip flops.
These problem is overcome by the use of a synchronous counter or parallel counter. Here
every flip flop is triggered in synchronism with the clock.
T T T
To next Clock
stage
Count Enable
Figure 3.6.05: 3- Bit Synchronous Up Counter
Truth Table:
Count Clock A3 A2 A1 count a b c d e f g h
Enable pulse Time
0 0 0 0
1 1 0 0 1 1 Clock
1 1 0 1 0 2
1 1 0 1 1 3 A1
1 1 1 0 0 4
1 1 1 0 1 5 A2
1 1 1 1 0 6
1 1 1 1 1 7
A3
1 1 0 0 0 0
Figure 3.6.06: Waveforms
The truth table and waveforms of 3-bit synchronous up counter is shown above.
T T T
To next
Clock
stage
Count Enable
Figure 3.6.07: 3- Bit Synchronous down Counter
TRUTH TABLE a b c d e f g h
Time
Clock A3 A2 A1 Count
a 1 1 1 7
b 1 1 0 6 Clock
c 1 0 1 5
d 1 0 0 4 A1
e 0 1 1 3
f 0 1 0 2 A2
g 0 0 1 1
h 0 0 0 0 A3
1 1 1 7
Waveforms
Figure 3.6.08: Waveform and truth table of 3-bit binary down counter
All flip-flops can be divided into four basic types: SR, JK, D and T. They differ in the number of
inputs and in the response invoked by different value of input signals. The four types of
flip-flops are defined in Table 1.
J K Q(next) Q Q(next) J K
0 0 Q 0 0 0 X
Q(next) = JQ' +
JK 0 1 0 0 1 1 X
K'Q
1 0 1 1 0 X 1
1 1 Q' 1 1 X 0
Q Q(next) D
D Q(next) 0 0 0
D 0 0 Q(next) = D 0 1 1
1 1 1 0 0
1 1 1
Q Q(next) T
T Q(next) 0 0 0
Q(next) = TQ' +
T 0 Q 0 1 1
T'Q
1 Q' 1 0 1
1 1 0
Each of these flip-flops can be uniquely described by its graphical symbol, its characteristic
table, its characteristic equation or excitation table. All flip-flops have output signals Q and Q'.
The characteristic table in the third column of Table 1 defines the state of each flip-flop as a
function of its inputs and previous state. Q refers to the present state and Q(next) refers to
the next state after the occurrence of the clock pulse. The characteristic table for the RS
flip-flop shows that the next state is equal to the present state when both inputs S and R are
equal to 0. When R=1, the next clock pulse clears the flip-flop. When S=1, the flip-flop output
Q is set to 1. The equation mark (?) for the next state when S and R are both equal to 1
designates an indeterminate next state.
The characteristic table for the JK flip-flop is the same as that of the RS when J and K are
replaced by S and R respectively, except for the indeterminate case. When both J and K are
equal to 1, the next state is equal to the complement of the present state, that is, Q(next) =
Q'.
The next state of the D flip-flop is completely dependent on the input D and independent of
the present state.
The next state for the T flip-flop is the same as the present state Q if T=0 and complemented
if T=1.
The characteristic table is useful during the analysis of sequential circuits when the value of
flip-flop inputs are known and we want to find the value of the flip-flop output Q after the
rising edge of the clock signal. As with any other truth table, we can use the map method to
derive the characteristic equation for each flip-flop, which are shown in the third column of
Table 1.
During the design process we usually know the transition from present state to the next state
and wish to find the flip-flop input conditions that will cause the required transition. For this
reason we will need a table that lists the required inputs for a given change of state. Such a
list is called the excitation table, which is shown in the fourth column of Table 1. There are
four possible transitions from present state to the next state. The required input conditions
are derived from the information available in the characteristic table. The symbol X in the
table represents a "don't care" condition, that is, it does not matter whether the input is 1 or
0.
---------END----------
Digital logic families: Bipolar and unipolar logic families, Digital IC specifications,
RTL, DTL, All types of TTL circuits, ECL, IIL, PMOS, NMOS & CMOS Logic.
Unipolar Logic Families: It mainly uses Unipolar devices like MOSFETs in addition to passive
elements like resistors and capacitors. These logic families have the advantages of high speed
and lower power consumption than Bipolar families.
These are classified as
PMOS or P-Channel MOS Logic Family
NMOS or N-Channel MOS Logic Family
CMOS Logic Family
4.3 Digital IC Specifications:
Miniature, low-cost electronics circuits whose components are fabricated on a single,
continuous piece of semiconductor material to perform a high-level function. This IC is
usually referred to as a monolithic IC first introduced in 1958. The digital ICs are categorized
as,
1. Small scale integration SSI <12 no of gates
2.Medium scale integration MSI 12 to 99 no of gates
3.Large scale integration LSI 100 to 9999 no of gates
4. Very large scale integration VLSI 10,000 or more
In this section, we will be concern only with the digital IC. Digital IC can be further categorized
into bipolar or unipolar IC.
Bipolar ICs are devices whose active components are current controlled while unipolar ICs are
devices whose active components are voltage controlled.
IC Packaging
1. IC packaging Protect the chip from mechanical damage and chemical contamination.
2. Provides a completed unit large enough to handle.
3. So that it is large enough for electrical connections to be made.
4. Material is molded plastic, epoxy, resin, or silicone. Ceramic used if higher thermal
dissipation capabilities required. Metal/glass used in special cases.
Three most common packages for ICs are
a) Dual-in-line (DIPS) (most common)
b) Flat pack
c) Axial lead (TO5)
Flat Pack
DIP Axial Lead
High-level input current, IIH : This is the minimum current which must be supplied by a driving
source corresponding to 1 level voltage.
Low-level input current, IIL: This is the minimum current which must be supplied by a driving
source corresponding to 0 level voltage.
High-level output current, IOH: This is the maximum current which the gate can sink in 1 level.
Low-level output current, IOL: This is the maximum current which the gate can sink in 0 level.
High-level supply current, ICCh (1): This is the supply current when the output of the gate is at
logic 1.
Low-level supply current, ICCL (0): This is the supply current when the output of the gate is at
logic (0).
Propagation Delay:
Definition: The time required for the output of a digital circuit to change states after a change
at one or more of its inputs. The speed of a digital circuit is specified in terms of the
propagation delay time. The delay times are measured between the 50 percent voltage levels
of input and output waveforms. There are two delay times, tpHL: when the output goes from
the HIGH state to the LOW state and tpLH, corresponding to the output making a transition
from the LOW state to the HIGH state. The propagation delay time of the logic gate is taken as
the average of these two delay times.
Fan-in:
Definition: Fan-in (input load factor is the number of input signals that can be connected to a
gate without causing it to operate outside its intended operating range. expressed in terms of
standard inputs or units loads (ULs).
Fan-out:
Definition:Fan-out (output load factor) is the maximum number of inputs that can be driven
by a logic gate. A fanout of 10 means that 10 unit loads can be driven by the gate while still
maintaining the output voltage within specifications for logic levels 0 and 1.
4.4 RTL:
RTL is a type of digital circuits built using resistors as the input network and bipolar
junction transistors (BJTs) as switching devices. RTL is the earliest class of transistorized digital
logic circuit used commercially.
Two input RTL NOR Gate: A simple two input RTL NOR gate is shown in the Fig.4.4.1
The circuit consists of four resistors and one transistor(T).Here the transistor acts as an
invertor.
Working : When both the inputs are zero(A=0,B=0), the input to the transistor is zero.So the
output of the transistor is HIGH or Logic 1.Similarly,when one of the inputs is HIGH (logic1),the
input to the transistor is HIGH. So the output Q is LOW or logic 0
On the same lines when both the inputs are HIGH the input to the transistor is HIGH(logic1) So
the output of the transistor is LOW or logic 0.This is the working of two input NOR gate which
is also shown in the truth table 4.4.1.
A B Y= A+B
0 0 1
1 0 0
0 1 0
1 1 0
4.5 DTL: It is a class of digital circuits built from bipolar junction transistors (BJT), diodes and
resistors. It is called Diode–Transistor logic because the logic gating function (e.g., AND) is
performed by a diode network and the amplifying function is performed by a transistor
(contrast this with RTL and TTL).
____
A B Y= A.B
0 0 1
1 0 1
0 1 1
1 1 0
Table 4.5.1 The truth table for two input DTL NAND gate
One problem that DTL suffers is its low speed, especially when the transistor is being turned
off. Turning off a saturated transistor in a DTL gate requires it to first pass through the active
region before going into cut-off. Cut-off, however, will not be reached until the stored charge
in its base has been removed. The dissipation of the base charge takes time if there is no
available path from the base to ground. This is why in DTL circuits a base resistor is connected
to ground so that it provides a path for discharge as shown in the figure. Another problem
with turning off the DTL output transistor is the fact that the effective capacitance of the
output needs to charge up through R2 before the output voltage rises to the final logic '1' level,
which also consumes a relatively large amount of time.
But, one advantage of DTL over RTL is its better noise margin and greater fan-outs than RTL,
but it suffers from low speed, especially in comparison to TTL.
4.6 All types of TTL circuits:
Classification of TTL:
TTLs are classified based on the output.
1)Open Collector Output: The main feature is that its output is 0 when low and floating when
high. Usually an external Vcc may be applied.
across the base of Q1 is around 0.9V, not enough for the transistors Q2 and Q3 to conduct.
Thus output is either floating or Vcc, i.e. High level.
Similarly when all inputs are high, all base emitter junctions of Q1 are reverse biased and
transistor Q2 and Q3 get enough base current and are in saturation mode. Clearly output is at
logi low. For a tra sistor to go to saturatio , olle tor urre t should e greater tha β
times the base current).
Applications of open-collector output:
It is used in 3 major applications:
1. In driving lamps or relays
2. In performing wired logic
3. In construction of a common bus system
2. Totem Pole Output:
Totem Pole means addition of an active pull up circuit in the output of the Gate which results
in reduction of propagation delay.
Logic operation is same as the open collector output. Use of transistors Q4 and diode is to
provide quick charging and discharging of parasitic capacitance across Q3. Resistor is used to
keep the output current to a safe value.
1. Low level state when lower transistor is ON and upper transistor is OFF.
2. High level state when lower transistor is OFF and upper transistor is ON.
3. Third state when both transistors are OFF. It allows a direct wire connection of many
outputs.
typically of the order of 6-8 Ω.I the steady state, either Q1 or Q2 is ON but not both, and the
output logic state is determined by the voltage difference between the bases of Q1 and Q2. If
Vb1 – Vb2> 200 mV, Q1 will be turned ON and Q2 turned OFF, and vice versa.
The inputs can be driven either differentially or single-ended. In the single-ended mode, the
non-driven base must be connected to a suitable bias voltage, VBB, which is either supplied
internally by the device, or externally. The voltages developed at the collectors of Q1 and Q2
are connected to a pair of emitter followers, Q3 and Q4. The outputs are taken at the emitters
of Q3 and Q4.The two outputs are complements of each other.So if one is OR the other will
be the NOR output. Note that the output emitters are open, and, unlike TTL/CMOS circuits,
there will be no output until a pull-down resistor is connected to the open emitter. This
pull-down resistor plays a very important role in determining the performance of the ECL
circuit.
The important specifications of ECL are : The power dissipation is of the order of 50mW and
Fan-out is typically around 15 to 20.Due to the disadvantage of high power dissipation and
relatively low noise margins ECL family has limited applications ,except in high frequency
applications.
4.8 IIL(Integrated Injection Logic:I2L):
Integrated Injection Logic eliminates the need for any resistors, capacitors or transistor isolation.
Thisenables an extremely compact logic circuit to be formed which has low power consumption
while maintaining the normal speed of transistor-transistor logic. I2L is built with multiple collector
bipolar junction transistors. Although the logic levels are very close (High: 0.7V, Low: 0.2V), I 2L has
high noise immunity because it operates by current instead of voltage. It is also known as
merged-transistor logic.
Operation :IIL circuit The heart of an I2L circuit is the common emitter open collector inverter.
Typically, an inverter consists of an NPN transistor with the emitter connected to ground and the
base biased with a forward current. The input is supplied to the base as either a current sink (low
logic level) or as a high-z floating condition (high logic level). The output of an inverter is at the
collector. Likewise, it is either a current sink (low logic level) or a high-z floating condition (high
logic level). Like direct-coupled transistor logic, there is no resistor between the output (collector)
of one NPN transistor and the input (base) of the following transistor. To understand how the
inverter operates, it is necessary to understand the current flow. If the bias current is shunted to
ground (low logic level), the transistor turns off and the collector floats (high logic level). If the bias
current is not shunted to ground because the input is high-z (high logic level), the bias current
flows through the transistor to the emitter, switching on the transistor, and allowing the collector
to sink current (low logic level). Because the output of the inverter can sink current but cannot
source current, it is safe to connect the outputs of multiple inverters together to form a wired AND
gate. When the outputs of two inverters are wired together, the result is a two-input NOR gate
because the configuration (NOT A) AND (NOT B) is equivalent to NOT (A OR B). This logical
relationship is known as De Morgan's Theorem.
PMOS:
CMOS:
Complementary metal–oxide–se i o du tor CMOS /ˈsiː ɒs/ is a technology for
constructing integrated circuits. CMOS technology is used in microprocessors, microcontrollers,
static RAM, and other digital logic circuits. CMOS technology is also used for several analog
circuits such as image sensors (CMOS sensor), data converters, and highly integrated
transceivers for many types of communication. Frank Wanlass patented CMOS in 1963 (US
patent 3,356,858). CMOS is also sometimes referred to as complementary-symmetry
metal–oxide–semiconductor (or COS-MOS).The words "complementary-symmetry" refer to
the fact that the typical digital design style with CMOS uses complementary and symmetrical
pairs of p-type and n-type metal oxide semiconductor field effect transistors (MOSFETs) for
logic functions. Two important characteristics of CMOS devices are high noise immunity and
low static power consumption. Since one transistor of the pair is always off, the series
combination draws significant power only momentarily during switching between on and off
states. Consequently, CMOS devices do not produce as much waste heat as other forms of
logic, for example transistor–transistor logic (TTL) or NMOS logic, which normally have some
standing current even when not changing state. CMOS also allows a high density of logic
functions on a chip. It was primarily for this reason that CMOS became the most used
technology to be implemented in VLSI chips.
---------------------END OF UNIT------------------------
Clocks and timing circuits: Bistable, Monostable & Astable multivibrator, Schmitt trigger circuit,
Introduction of Analog to Digital & Digital to Analog converters, Display devices, 7 and 16
segment LED display, LCD.
inverting comparator circuit with a positive feedback. The purpose of the Schmitt trigger is to
convert any regular or irregular shaped input waveform into a square wave output voltage or
pulse. Thus, it can also be called a squaring circuit.
As shown in the circuit diagram, a voltage divider with resistors Rdiv1 and Rdiv2 is set in the
positive feedback of the 741 IC op-amp. The same values of Rdiv1 and Rdiv2 are used to get the
resistance value Rpar = Rdiv1||Rdiv2 which is connected in series with the input voltage. R par is
used to minimize the offset problems. The voltage across R1 is feedback to the non-inverting
input.
The input voltage Vi triggers or changes the state of output Vout every time it exceeds its voltage
levels above a certain threshold value called Upper Threshold Voltage (Vupt) and Lower
Threshold Voltage (Vlpt).
Let us assume that the inverting input voltage has a slight positive value. This will cause a
negative value in the output. This negative voltage is fedback to the non-inverting terminal (+)
of the op-amp through the voltage divider. Thus, the value of the negative voltage that is
fedback to the positive terminal becomes higher. The value of the negative voltage becomes
again higher until the circuit is driven into negative saturation (-Vsat). Now, let us assume that
the inverting input voltage has a slight negative value. This will cause a positive value in the
output. This positive voltage is feedback to the non-inverting terminal (+) of the op-amp
through the voltage divider. Thus, the value of the positive voltage that is feedback to the
positive terminal becomes higher. The value of the positive voltage becomes again higher until
the circuit is driven into positive saturation (+Vsat). This is why the circuit is also named a
regenerative comparator circuit.
Working :
When Vout = +Vsat, the voltage across Rdiv1 is called Upper Threshold Voltage (Vupt). The
input voltage, Vin must be slightly more positive than Vupt inorder to cause the output Vo to
switch from +Vsat to -Vsat. When the input voltage is less than Vupt, the output voltage Vout
is at +Vsat.
Upper Threshold Voltage, Vupt = +Vsat (Rdiv1/[Rdiv1+Rdiv2])
When Vout = -Vsat, the voltage across Rdiv1 is called Lower Threshold Voltage (Vlpt). The
input voltage, Vin must be slightly more negative than Vlpt inorder to cause the output Vo to
switch from -Vsat to +Vsat. When the input voltage is less than Vlpt, the output voltage Vout
is at -Vsat.
Lower Threshold Voltage, Vlpt = -Vsat (Rdiv1/[Rdiv1+Rdiv2])
If the value of Vupt and Vlpt are higher than the input noise voltage, the positive feedback will
eliminate the false output transitions. With the help of positive feedback and its
regenerative behaviour, the output voltage will switch fast between the positive and
negative saturation voltages.
Hysteresis Characteristics
Since a comparator circuit with a positive feedback is used, a dead band condition hysteresis
can occur in the output. When the input of the comparator has a value higher than V upt, its
output switches from +Vsat to -Vsat and reverts back to its original state, +Vsat, when the
input value goes below Vlpt. This is shown in the figure below. The hysteresis voltage can be
calculated as the difference between the upper and lower threshold voltages.
Vhysteresis = Vupt– Vlpt
Substituting the values of Vupt and Vlpt from the above equations:
Vhysteresis= +Vsat (Rdiv1/Rdiv1+Rdiv2) – {-Vsat (Rdiv1/Rdiv1+Rdiv2)}
Vhysteresis = (Rdiv1/Rdiv1+Rdiv2) {+Vsat – (-Vsat)}
The other input terminals are connected to fixed reference voltage like +3/4V, +V/2 and
+V/4. Now the circuit can convert analog voltage into equivalent digital signal. Since the
analog output voltage is connected in parallel to all the comparators, the circuit is also
called as parallel A/D converter.
The higher is the analog voltage the greater is the number of clock pulses counted by the
counter. Then counter produces proportional binary output. Its output is fed to the level
amplifier. It amplifies the output voltage of counter proportionally. This output is then fed
to i a y ladde . The i a y ladde p odu es p opo tio al a alog oltage at poi t P .
Now when then circuit is switched on, initially the counter is RESET to 0000. Suppose we
connect a known value of analog voltage = 9V. Therefore, there will be a difference in
input voltages of comparator. Hence, output of comparator will be HIGH (logic–1). The
counter will start counting the clock pulses and will produce equivalent binary number. Its
output will sequentially change from 0001, 0010, 0011 and so on. When the output is
1001, which is = 9V, both inputs of comparator will be at same voltage. Therefore, its
output will be LOW (logic–0). So the gate will be cutoff and the counter will stop counting.
The final digital output will be 1001 = 9V. In this way, any analog voltage can be converted
into its equivalent digitaloutput.
Successive Approximation Method – the basic drawback of counter method (given above) is
that it has longer conversion time. Because it always starts from 0000 at every
measurement, until the analog voltage is matched. This drawback is removed in successive
approximation method. In the adjacent figure, the method of successive approximation
technique is shown. When unknown voltage (Va) is applied, the circuit starts up from
0000, as shown above. The output of SAR advances with each MSB.
The output of SAR does not increase step–by–step in BCD bus pattern, but individual bit
becomes high–starting from MSB. Then by comparison, the bit is fixed or removed. Thus, it
sets first MSB (1000), then the second MSB (0100) and so on. Every time, the output of SAR
is converted to equivalent analog voltage by binary ladder. It is then compared with
applied unknown voltage (Va). The comparison process goes on, in binary search style, until
the binary equivalent of analog voltage is obtained. In this way following steps are carried
out during conversion
4) If Va< 1000, the first MSB is removed and second MSB is set.
5) The fixing and removing the MSBs continues upto last bit (LSB), until equivalent binary
output is obtained. The block diagram of successive approximation A/D converter is given
below–
Digital to Analog Converters:
Digital to Analog Converters (DAC) The process of converting digital signal into equivalent
analog signal is called D/A conversion. The electronics circuit, which does this process, is
alled D/A o e te . The i uit has u e of digital data i puts ith o ly o e output.
Basically, there are two types of D/A converter circuits:
Weighted resistors D/A converter circuit and Binary ladder or R–2R ladder D/A converter
circuit.
The following diagram shows a 3 bit digital to analog converter implemented using a
summing opamp amplifer.
(V1/R+V2/2R+V3/4R)=Vout/R ------(1)
Note: Here V1, V2, V3, V4, will be Vref if digital input is 1 or otherwise it will be zero.
However Binary weighted DAC doesn't work for multiple or higher bit systems as the value
of resistance doubles in each case.
The inputs can be thought of as a binary number, one that can run from 0 to 7.
V2 is the MSB (most significant bit) and V0 is the LSB (least significant bit).
The output is a voltage that is proportional to the binary number input.
The resolution of this DAC is 3 (the number of bits) or -0.25V (the step size).
To have more bits, add an additional resistor for each additional bit. Note the
relationship between adjacent resistor values.
The R-2R Digital to Analog Converter uses only two resistance values R and 2R regardless of
the number of bits of the converter compared to the summing amplifier implementation
where each bit resistor has a different value. The circuit shown is a 3 bit DAC.
Depending on the state of bit B2, B1 or B0, the respective current I2, I1 or I0 is switched
either to ground or to V- of the op amp. Thus
Iout=B2*I2+B1*I1+B0*--------(1)
Thus the R-2R network can be seen to be like a current source whose output depends on
switch setting B2, B1, B0 that controls I2, I1, I0 respectively
Iout=Vref/8R (4B2+2B1+B0)--------(2)
5.4 Display devices: Display devices are the output devices for presentation of information in
text or image form. An output device is a thing that provides a way to show information to the
outside world. For displaying the information in an appropriate manner these devices must be
controlled by some other external devices. Controlling can be done by interfacing these
displays with the controlling devices. Some displays can show digits and alphanumeric
characters only. Some displays can show images and all type of characters. Most commonly
used displays are CRT, LEDs, 7-segment display, LCD, GLCD etc.
7-Segment LED display can be used for displaying digits and few characters. A seven
seg e t display o sists of LEDs a a ged i the fo of S ua e a d a si gle LED as dot
character. Different characters can be displayed by selecting the required LED segments. A 7
seven segment display is an electronic display, which displays 0-9 digital information. They
are available in common cathode mode and common anode mode. There are state lines in
LED, anode is given to positive terminal and cathode is given to negative terminal then LED
will glow.
In common cathode, the negative terminals of all LEDs are connected to the common pins
to ground and a particular LED glows when its corresponding pin is given high. The cathodes
of all LEDs are connected together to a single terminal and the anodes of all LEDs are left
alone.
In common anode arrangement, the common pin is given a high logic and the LED pins are
given low to display a number. In common anode, all the anodes are connected together
and all the cathodes are left alone. Thus when we gives first signal is high or 1 then only
there is a lean in display if not there is no lean in display.LED pattern for displaying digits
using 7-segment display.
Table 5.4.1 Table LED pattern for displaying digits using 7-segment display
Liquid crystal display (LCD) has material which joins together the properties of both liquid
and crystals. They have a temperature range within which the particles are essentially as
mobile as they might be in a liquid, however are gathered together in an order form similar
to a crystal.
The LCD is much more informative output device than a single LED. The LCD is a display that
can easily show characters on its screen. They have a couple of lines to large displays. Some
LCDs are specially designed for specific applications to display graphic images. 16×2 LCD
(HD44780) module is commonly used. These modules are replacing 7-segments and other
multi-segment LEDs. LCD can be easily interfaced with microcontroller to display a message
or status of the device. It can be operated in two modes: 4-bit mode and 8-bit mode. This
LCD has two registers namely command register and data register. It is having three
selection lines and 8 data lines. By connecting the three selection lines and data lines with
the microcontroller, the messages can be displayed on LCD.
In the above Table selected lines EN, R/W, RS will be used for controlling the LCD display. EN
pin will be used for enabling the LCD display for communicating with microcontroller. RS will
be used for register selection.
When RS is set microcontroller will send instructions as data and when RS is clear
microcontroller will send the instructions as commands. For writing data RW should be 0
and for reading RW should be 1.
OTHER TYPES OF DISPLAYS:
Plasma Displays
Plasma: Cloud of ionized particles
These produce light when electrons change energy levels
Electrodes in front and back of sealed chambers with neon gas and mercury
vapors
Not suitable in high altitude
No backlight, produce deeper black
600Hz is refresh rate
Organic Light Emitting Diode (OLED)
Organic light emitting compound placed b/w anode-cathode emits light when
excited by current
No backlight, deeper black
Thin, light weight, flexible
Better contrast ratio
Reflective thus filters required
Active matrix (AMOLED)
Passive matrix (PMOLED)
Lesser power than lcds
Super AMOLED use one cell TSP thus thinner touch layer over the display
Super AMOLED plus has sub pixels for clearer display
--------------------------END OF UNIT-----------------------