CIT 244 Electronics II
CIT 244 Electronics II
CIT-244
AUTHORS
COMMITTEE NAMES & DESIGNATION
8. Memory 96
Objectives
At the end of this chapter, a student will be able to
Use Boolean Expressions and Truth Tables.
Use Min-term Expressions, Sum of Products.
Use Max-term Expressions, Product of Sums.
Describe Un-simplified Boolean Expression & develop Schematic Circuits.
Apply Logic Simplifications.
Use Boolean Simplification.
Use De-Morgan’s Theorems.
Use Karnaugh Mapping.
Boolean algebra was invented by George Boole in 1854. Boolean Algebra
is used to analyze and simplify the digital (logic) circuits. It uses only the
binary numbers i.e. 0 and 1.
BOOLEAN LAWS
COMMUTATIVE LAWS
1- A + B = B + A
2- A . B = B . A
ASSOCIATIVE LAWS
1- A + (B + C) = (A + B) + C
DISTRIBUTIVE LAW
𝐴. (𝐵 + 𝐶) = 𝐴. 𝐵 + 𝐴. 𝐶
6
CH-01 BOOLEAN ALGEBRA
BOOLEAN RULES
OR RULES
1- A + 0 = A
2- 𝐴 + 1 = 1
3- A + A = A
4- 𝐴 + 𝐴 = 1
AND RULES
5- A .0 = 0
6- 𝐴 .1 = A
7- A . A = A
8- 𝐴 . 𝐴 = 0
7
CH-01 BOOLEAN ALGEBRA
NOT RULE
9- 𝐴 = A
SPECIAL RULES
10- A + AB = A
= A. (1 + B) = A. 1 = A
11- A + A. B = A + B
= (A + AB) + AB A = A + AB
= (AA + AB) + AB A = AA
= AA + AB + AA + AB AA = 0
= (A + A)(A + B)
= 1. (A + B) A+A= A
=A+B
12- (A + B). (A + C) = A + B. C
= A. A + A. C + A. B + B. C
= A + A. C + A. B + B. C A. A = A
= A(1 + C + B) + B. C
= A. 1 + B. C 1+C+B =1
= A + B. C A. 1 = A
𝐴𝐵 + 𝐴𝐶 + 𝐵 + 𝐵𝐶 ; 𝐴𝐵 + 𝐴𝐵 = 𝐴𝐵, 𝐵𝐵 = 𝐵
𝐴𝐵 + 𝐴𝐶 + 𝐵(1 + 𝐶) = 𝐴𝐵 + 𝐴𝐶 + 𝐵 ; 1 + 𝐶 = 1, 𝐵. 1 = 𝐵
𝐴𝐵 + 𝐵 + 𝐴𝐶 = 𝐵(𝐴 + 1) + 𝐴𝐶 = 𝐵 + 𝐴𝐶
Schematic Circuit:
8
CH-01 BOOLEAN ALGEBRA
Fig. 1.1
SUM OF PRODUCTS
Product term is called a min-term. In min-term, we look for the functions
where the output results in “1”. When two or more product terms are
summed by Boolean addition, the resulting expression is a sum-of-
products (SOP) also known as Sum of min-terms. Some examples are;
AB + ABC
ABC + CDE + BCD
AB + ABC + AC
For example, the expression A(B + CD) can be converted to SOP form by
applying the distributive law:
A(B + CD) = AB + ACD
PRODUCT OF SUMS
Sum term is called max-term. In max-term, we look for the functions
where the output results in “0”. When two or more sum terms are
multiplied, the resulting expression is a product-of-sums (POS) also known
as Product of max-terms. Some examples are
(A + B)(A + B + C)
9
CH-01 BOOLEAN ALGEBRA
(A + B + C)(C + D + E)(B + C + D)
(A + B)(A + B + C)(A + C)
DE-MORGAN’S LAWS
De-Morgan's theorems provide mathematical verification of the equivalency
of the NAND and negative-OR gates and the equivalency of the NOR and
negative-AND gates.
Fig. 1.4
10
CH-01 BOOLEAN ALGEBRA
Fig. 1.5
̅̅̅̅̅̅̅̅̅̅̅̅̅
Example 1.1: Apply De-Morgan’s theorem to the expression 𝑋̅ + 𝑌̅ + 𝑍
Solution:
X + Y + Z̅ = X + Y + Z
Example 1.2: Apply De-Morgan’s theorem to the following expression.
̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
(𝐴𝐵 + 𝐶)(𝐴 + 𝐵𝐶)
Solution:
̅̅̅̅̅̅̅̅̅̅
(𝐴𝐵 ̅̅̅̅̅̅̅̅̅
+ 𝐶 ) + (𝐴 ̅̅̅̅)𝐶 + 𝐴 (𝐵𝐶
+ 𝐵𝐶 ) = (𝐴𝐵 ̅̅̅̅ )
̅̅̅̅̅̅̅̅
(𝐴 + 𝐵𝐶 ). (𝐷 + (𝐸 + 𝐹̅ )) = (𝐴 + 𝐵𝐶 ). (𝐷 + 𝐸 + 𝐹̅ )
KARNAUGH MAP
A Karnaugh map provides a systematic method for simplifying Boolean
expressions and will produce the simplest SOP or POS expression.
A Karnaugh map is similar to a truth table because it presents all of the
possible values of input variables and the resulting output for each value.
Karnaugh map is an array of cells in which each cell represents a binary value
of the input variables. Karnaugh maps can be used for expressions with two,
three, and four variables.
The cells in a Karnaugh map are arranged so that there is only a single-
variable change between adjacent cells. Adjacency is defined by a single-
variable change. In the 3-variable map the 010 cell is adjacent to the 000 cell,
the 011 cell, and the 110 cell. The 010 cell is not adjacent to the 001 cell, the
111 cell, the 100 cell, or the 101 cell.
11
CH-01 BOOLEAN ALGEBRA
Fig. 1.6
The number of cells in a K-Map depends upon the number of variables and
can be calculated using 2𝑁 formula where N is the number of variables. Fig.
1.4 shows the format of K-map for two, three and four variables.
CONVERTING A TRUTH TABLE INTO K-MAP
In fig. 1.5 truth tables consisting of two, three and four variables and their
respective K-maps are shown.
Truth Table Boolean Expression Karnaugh Map
𝑌 = 𝐴𝐵̅ + 𝐴𝐵
12
CH-01 BOOLEAN ALGEBRA
Fig. 1.7
KARNAUGH MAP SOP MINIMIZATION
The Karnaugh map is used for simplifying Boolean expressions to their
minimum form.
MAPPING A STANDARD SOP EXPRESSION
Step 1. Determine the binary value of each product term in the standard
SOP ex- pression. After some practice, you can usually do the evaluation
of terms mentally.
Fig. 1.8
13
CH-01 BOOLEAN ALGEBRA
Step 2: There are two groups containing “1” in above K-map. One is a quad
and other is a pair.
14
CH-01 BOOLEAN ALGEBRA
Step 2: There are three groups containing “1” in above K-map. One is a quad
and other two are pairs.
EXERCISE
SECTION-I (MCQ’s)
1. Following is a POS expression.
(a) A.B + C.D (b) (A+B) . (C+D) (c) (A+B). C.D (d) A.B. (C+D)
2. A 4-variable Karnaugh map has
(a) 4 cells (b) 6 cells (c) 8 cells (d) 16 cells
3. 𝐴 + 𝐴 is equal to
(a) A (b) 𝐴 (c) 0 (d) 1
4. Product of Sum is also called
(a) Min Term (b) Max Term (c) Mid Term (d) None of these
5. According to Boolean algebra A + AB is equal to
(a) A (b) 𝐴 (c) B (d) 𝐵̅
6. In a K-map “1” indicates
15
CH-01 BOOLEAN ALGEBRA
(a) Min Term (b) Max Term (c) Mid Term (d) None of these
7. A(B+C) = AB + BC is …….. law in Boolean algebra;
(a) Commutative (b) Associative (c) Distributive (d) All of these
8. Following is commutative law of Boolean algebra
(a) A+B = A-B (b) A+B = A.B (c) A.B = A+B (d) A+B = B+A
9. The Boolean expression A+B+C is a
(a) Sum term (b) Min term (c) SOP (d) Literal
10. POS expression can be implemented by logic
(a) AND-OR (b) OR-OR (c) OR-AND (d) AND-AND
ANSWER KEY
1. b 2. d 3. d 4. b 5. a
6. a 7. c 8. d 9. a 10. c
16
CH-01 BOOLEAN ALGEBRA
̅̅̅̅̅̅ + (𝐷
(𝑎) 𝐴𝐵𝐶 ̅̅̅̅̅̅̅̅
+ 𝐸) ̅̅̅̅̅̅̅̅̅̅̅̅
(𝑏)(𝐴 + 𝐵)𝐶 (𝑐)𝐴 + 𝐵 + 𝐶 + ̅̅̅̅
̅̅̅̅̅̅̅̅̅̅̅̅̅ 𝐷𝐸
̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
̅̅̅̅̅̅
(𝑑)𝑋̅ 𝑌𝑍 + ̅̅̅̅̅̅
𝑋̅𝑌𝑍
5. Prepare truth table for 𝑋̅𝑌̅𝑍 + 𝑋𝑍 + 𝑋̅𝑌𝑍
17
CH-02 BINARY ARITHMETIC CIRCUITS
BINARY ARITHMETIC
CHAPTER-2
CIRCUITS
Objectives
At the end of this chapter, a student will be able to
Discuss Half Adder Circuit.
Discuss Full Adder Circuit.
Discuss N bit Binary Adder Circuit.
Understand Binary Arithmetic functions with complements.
Apply 2’s and 1’s Complement Notation in Addition and Subtraction.
Discuss Binary Subtractor Circuit
Discuss Binary Adder/ Subtractor Circuit.
Binary arithmetic circuits are carried out by combinational logic circuits
which can perform basic arithmetic operations such as addition and
subtraction. They include binary adder and binary subtractor. These circuits
can be operated with binary values 0 and 1.
HALF ADDER
Half Adder is a logic circuit which adds two bits. The half-adder accepts two
binary digits on its inputs and produces two binary digits on its outputs, a
sum bit and a carry bit.
When we add two bits, we have to account two output bits called SUM and
CARRY. The Carry output is a simple AND function, and the Sum is an
Exclusive-OR. Thus, we can use two gates to add these two bits together.
Basic Rules of Binary Addition
Now observe that the sum output (∑) is a 1 only if the input variables, A and
18
CH-02 BINARY ARITHMETIC CIRCUITS
B, are not equal. The sum can therefore be expressed as the exclusive-OR
of the input variables.
Σ = 𝐴⨁𝐵
Fig. 2.1
From the above two equations, the logic implementation required for the
half-adder function can be developed as shown in fig. 2.1.
Truth Table and logic symbol of Half Adder
In fig. 2.2(a) and 2.2(b), truth table and logic symbol of half adder are
shown.
FULL ADDER
Full Adder is a logic circuit which adds three bits. The full-adder
accepts two input bits and an input carry and generates a sum output
and an output carry.
We can use two half-adder circuits. The first will add A and B to
produce a partial Sum, while the second will add C IN to that Sum to
produce the final ∑ output. If either half-adder produces a carry, there
will be an output carry. Thus, COUT will be an OR function of the half-
adder Carry outputs.
Full adder Operation and Circuit
The full-adder must add the two input bits and the input carry. For the
input carry (Cin) to be added to the input bits, it must be ExORed with
𝐴 ⊕ 𝐵, yielding the equation for the sum output of the full adder.
19
CH-02 BINARY ARITHMETIC CIRCUITS
Fig. 2.3
The output carry is a 1 when both inputs to the first XOR gate are ls or when
both inputs to the second XOR gate are ls. The output carry of the full-adder
is therefore produced by the inputs A ANDed with B and 𝐴 ⊕ 𝐵 ANDed with
Cin. These two terms are ORed, as expressed in following equation.
This function is implemented and combined with the sum logic to form a
complete full-adder circuit, as shown in Fig 2.3.
Fig. 2.4
Truth Table and logic symbol of Full Adder
In fig. 2.5(a) and 2.5(b), truth table and logic symbol of half adder are
shown.
20
CH-02 BINARY ARITHMETIC CIRCUITS
Parallel adder is a logic circuit which can add two binary numbers. To add
binary numbers with more than one bit, we must use additional full-
adders. When one binary number is added to
another, each column generates a sum bit
and a 1 or 0 carry bit to the next column to
the left, as illustrated here with 2-bit
numbers.
Fig. 2.6
3-bit parallel adder
For 3-bit numbers, three adders are needed. In the fig. 2.7, a 3-bit
parallel adder is shown. In this adder two binary numbers 101 and 011
are being added.
Fig. 2.7
4-bit parallel adder
A basic 4-bit parallel adder is implemented with four full-adder stages as
shown in Fig. 2.8. The carry output of each adder is connected to the carry
input of the next higher order adder as indicated. These are called internal
carries.
21
CH-02 BINARY ARITHMETIC CIRCUITS
Fig. 2.8
1’s Complement
The 1's complement of a binary number is found by changing all 1s to 0s
and all 0s to 1s, as illustrated below:
2’s Complement
The 2's complement of a binary number is found by adding 1 to the LSB
of the 1's complement.
2’s complement = (l’s complement) + 1
22
CH-02 BINARY ARITHMETIC CIRCUITS
iv- If there is no carry over, then 1’s complement of the result of addition is
obtained to get the final result and it is negative.
Example 2.1: Solve (1011)2 – (0111)2 using 1’s complement method.
Solution:
HALF SUBTRACTOR
23
CH-02 BINARY ARITHMETIC CIRCUITS
Fig. 2.9
Boolean Equations
The Boolean expressions for the two outputs are given by the equations.
𝐷 = 𝐴𝐵 + 𝐴𝐵̅
𝐵0 = 𝐴𝐵
The expression for the DIFFERENCE (D) output is that of an EX-OR gate, the
expression for the BORROW output (Bo) is that of an AND gate with input A
complemented before it is fed to the gate. Fig. 2.10 shows the logic
implementation of a half-subtractor and its symbol.
Fig. 2.10
FULL SUBTRACTOR
A full subtractor performs subtraction operation on two bits, a minuend and
a subtrahend, and also takes into consideration whether a ‘1’ has already
been borrowed by the previous adjacent lower minuend bit or not. As a
result, there are three bits to be handled at the input of a full subtractor,
namely the two bits to be subtracted and a borrow bit designated as Bin.
Fig. 2.11
24
CH-02 BINARY ARITHMETIC CIRCUITS
There are two outputs, namely the DIFFERENCE output D and the BORROW
output Bo. The BORROW output bit tells whether the minuend bit needs to
borrow a ‘1’ from the next possible higher minuend bit.
Truth table of half subtractor is shown in fig. 2.11.
Fig. 2.12
Full Subtractor Block diagram
Fig. 2.13
Circuit Diagram
Fig. 2.14
25
CH-02 BINARY ARITHMETIC CIRCUITS
Working
When the M input is in logic ‘0’ state, the four bits of the binary number (B 3
B2 B1 B0) are passed on as such to the B inputs of the corresponding full
adders. The outputs of the full adders in this case give the result of addition
of the two numbers.
When the M input is in logic ‘1’ state, four bits of one of the numbers, (B 3 B2
B1 B0) in the present case, get complemented. If the same ‘1’ is also fed to
the CARRY-IN of the LSB full adder, what we finally achieve is the addition of
2’s complement and not 1’s complement. Thus, in the adder arrangement of
Fig. 2.14, we are basically adding 2’s complement of (B3 B2 B1 B0) to (A3 A2 A1
A0). The outputs of the full adders in this case give the result of subtraction of
the two numbers. The final carry (the CARRY-OUT of the MSB full adder) is
ignored if it is not displayed.
EXERCISE
SECTION-I (MCQ’s)
1. A full adder has
(a) 2-inputs, 2-outputs (b) 2-inputs, 3-outputs
(c) 3-inputs, 2-outputs (d) 3-inputs, 3-outputs
2. A logic circuit which adds only 2-bits is called
(a) Half Adder (b) Full Adder (c) Parallel Adder (d) Both a & b
3. If inputs to a half adder are A = 1 and B = 1, then outputs are
(a) ∑ = 1, Co = 0 (b) ∑ = 1, Co = 1 (c) ∑ = 0, Co = 1 (d) ∑ = 0, Co = 0
4. A full adder consists of
(a) Two XOR gates (b) Two half adders and one OR gate
(c) Two AND gates (d) Both a & c
5. A half adder consists of
(a) XOR and OR gate (b) AND and NOT gate
(c) XOR and AND gate (d) OR and AND gate
6. If inputs to a full adder are A = 1, B = 1, and Cin = 0, then outputs are
(a) ∑ = 0, Co = 1 (b) ∑ = 1, Co = 1 (c) ∑ = 1, Co = 0 (d) ∑ = 0, Co = 0
7. A half adder has
(a) 2-inputs, 2-outputs (b) 2-inputs, 3-outputs
26
CH-02 BINARY ARITHMETIC CIRCUITS
ANSWER KEY
1. c 2. a 3. c 4. b 5. c
6. a 7. a 8. b 9. d 10. c
1. Draw and explain the circuit of half adder with help of truth table.
27
CH-02 BINARY ARITHMETIC CIRCUITS
28
CH-03 COMBINATIONAL LOGIC CIRCUITS
COMBINATIONAL LOGIC
CHAPTER-3
CIRCUITS
Objectives
At the end of this chapter, a student will be able to
Describe Word Problem.
Construct truth Table and create a logic equation from a truth table.
Simplify the logic Equation and develop combinational logic circuits.
Differentiate Level of Integration (SSI, MSI, LSI)
Describe BCD to Decimal Converter.
Describe Decimal to BCD Converter.
Describe Binary to Hexadecimal Converter.
Describe BCD to seven segment Decoder.
Describe Multiplexing Circuits.
Describe Demultiplexing Circuits.
Combinational Logic Circuits are memoryless digital logic circuits whose
output at any instant in time depends only on the combination of its inputs.
Combinational circuit is a circuit in which we combine the different gates in
the circuit, for example encoder, decoder, multiplexer and demultiplexer.
Some of the characteristics of combinational circuits are following.
The output of combinational circuit at any instant of time, depends
only on the inputs.
The previous state of input does not have any effect on the present
state of the circuit.
A combinational circuit can have an n number of inputs and m
number of outputs.
29
CH-03 COMBINATIONAL LOGIC CIRCUITS
3. Choose an Implementation.
4. Apply the Design Procedure.
Choose an Implementation
The next step is to map this into something more effective, like logic gates.
Before you can implement the system, you must choose a technology for
implementation.
The kinds of choices available are two-level combinational networks of
discrete gates or PALs/PLAs, MUX, Decoders, multilevel networks, memories
such as ROMs etc.
30
CH-03 COMBINATIONAL LOGIC CIRCUITS
Step No: 1. In this problem, water tanks are inputs namely A, B, and C. Water
pump is an output namely Y. A logic “0” shows empty tank and logic “1”
shows full tank for the inputs. At the output side, a logic “0” shows OFF
pump, whereas logic “1” shows ON pump.
Step No: 2. We make a truth table of above problem.
A B C Y
0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 0
Converting this truth table into Boolean expression, we get
𝑌 = 𝐴𝐵̅𝐶 + 𝐴𝐵̅𝐶 + 𝐴𝐵𝐶 + 𝐴𝐵̅𝐶
Step No: 3. We choose discrete gates technology for implementation. For
this purpose, we have to minimize the above Boolean equation.
Step No: 4. For simplifying the Boolean equation, we use Karnaugh Map
technique.
Fig. 3.1
Simplified Boolean Equation is 𝑌 = 𝐴𝐵̅ + 𝐵̅𝐶 + 𝐴𝐶
Step No: 5. Develop Combinational Logic Circuit.
Fig. 3.2
LEVELS OF INTEGRATION
Small-Scale Integration (SSI)
(SSI) describes fixed-function ICs that have up to ten equivalent gate circuits
on a single chip, and they include basic gates and flip-flops.
31
CH-03 COMBINATIONAL LOGIC CIRCUITS
32
CH-03 COMBINATIONAL LOGIC CIRCUITS
If we check all possibilities (0000 to 1111), we will find that the subscript of
the high output always equal to the hexa-decimal equivalent of ABCD as
shown in table.
Some binary decoders have an additional input pin labelled “Enable” that
controls the outputs from the device. This extra input allows the decoders
outputs to be turned “ON” or “OFF” as required.
Fig. 3.3
Normally, a decoder is not built with separate inverters and AND gates.
Instead we would use an IC such as the 74154. This IC is called a decoder-de-
multiplexer because it can be used either as a decoder or a de-multiplexer.
33
CH-03 COMBINATIONAL LOGIC CIRCUITS
The method of implementation is the same as for the l-of-16 decoder, except
that only ten decoding gates are required because the BCD code represents
only the ten decimal digits 0 through 9.
The binary inputs A, B, C and D determine which output line from Y 0 to Y9 is
“HIGH” while the remaining outputs are held “LOW”. So only one output can
be active (HIGH) at any one time. Therefore, whichever output line is “HIGH”
identifies the binary code present at the input.
For example, when ABCD = 0001, only the Y1 output is HIGH. If ABCD changes
to 0100, only the Y4 output goes HIGH.
All outputs are held inactive (LOW), when a non-decimal value (1010 to
1111) is applied to the inputs.
Fig. 3.4
The 74HC42 is an integrated circuit BCD-to-decimal decoder.
34
CH-03 COMBINATIONAL LOGIC CIRCUITS
This type of encoder has ten inputs- one for each decimal digit-and four
outputs corresponding to the BCD code, as shown in Fig. 3.5. This is a basic
10-line-to-4-line encoder.
The switches are push button switches like those of a pocket calculator.
When button 3 is pressed, the Y1 and Y0 OR gates have high inputs and the
output word becomes
Y3Y2Y1Y0 = 0011
When switch 9 is pressed,
Y3Y2Y1Y0 = 1001
The output word always equals the BCD equivalent of the switch being
pressed.
Fig. 3.5
The IC 74147 is available for a decimal to BCD encoder. The 74147 is a
priority encoder because it gives priority to the highest-order input. If all
inputs are low, the highest of these, D9, is encoded to get an output.
35
CH-03 COMBINATIONAL LOGIC CIRCUITS
Fig. 3.6
There are two types of seven segment display.
1. Common anode display
2. Common cathode display
If anodes of all the LEDs are connected together and all the cathode are left
alone, then we refer to the display as “Common Anode Type”.
If cathodes of all the LEDs are connected together and all the anodes are left
alone, then we refer to the display as “Common Cathode Type”.
Internal connections of both displays are shown in fig. 3.7
Fig. 3.7
Fig. 3.8
36
CH-03 COMBINATIONAL LOGIC CIRCUITS
MULTIPLEXER
A logic circuit which selects one input from many inputs by means of a
control input. With help of rotary switch, we can select any input from n
inputs as shown in fig. 3.9. This method is for analog as well as digital
multiplexing.
Fig. 3.9
In digital electronics, multiplexers are also known as data selectors because
they can “select” each input line. In the fig. 3.10, inputs a and b are control
inputs. A, B, C and D are data inputs. We can select any one input using a
control word at a and b inputs.
37
CH-03 COMBINATIONAL LOGIC CIRCUITS
Fig. 3.10
We can show the selection of the data through the multiplexer as a function
of the data select bits as shown.
Adding more control address lines, (n) will allow the multiplexer to control
more inputs as it can switch 2n inputs but each control line configuration will
connect only ONE input to the output.
Multiplexer Symbol
The symbol used in logic diagrams to identify a multiplexer is as follows.
Multiplexer IC
74150 is a 16 × 1 multiplexer. It has 16 data inputs (D 0 to D15), 4 Control
inputs (A, B, C and D), One output (Y), One strobe and V CC, Ground pins.
DEMULTIPLEXER
A logic circuit for transmitting a digital input one of N lines by means of a
control word. The de-multiplexer takes one single input data line and then
switches it to any one of a number of individual output lines one at a time as
shown in fig. 3.11.
Fig. 3.11
In digital electronics, de-multiplexers are also known as data distributor. In
the fig. 3.12, inputs a and b are control inputs. A, B, C and D are data outputs.
Individual solid-state switches are selected by the binary input address code
on the output select pins “a” and “b” as shown.
38
CH-03 COMBINATIONAL LOGIC CIRCUITS
Fig. 3.12
Adding more address line inputs, it is possible to switch more outputs giving
a 1-to-2n data line outputs.
De-Multiplexer Symbol
The symbol used in logic diagrams to identify a de-multiplexer is as follows.
De-Multiplexer IC
74150 is a 16 × 1 multiplexer. It has 16 data inputs (D0 to D15), 4 Control
inputs (A, B, C and D), One output (X), One strobe and V CC, Ground pins.
EXERCISE
SECTION-I (MCQ’s)
1. A logic circuit which converts a decimal number to binary number is
called
(a) Encoder (b) Decoder (c) Multiplexer (d) De-Multiplexer
2. Multiplexer is also called
(a) Decoder (b) Data Selector (c) Data Distributor (d) Encoder
3. When all LED’s of seven segment are ON, the digit will be display
(a) 6 (b) 7 (c) 8 (d) 0
4. Which IC is 4 ×16 decoder?
(a) 74121 (b) 74154 (c) 74138 (d) 74151
5. An encoder converts a decimal number into
(a) Binary (b) Hexa-decimal (c) Decimal (d) None of these
6. A logic circuit which selects one input from many inputs by means of a
control input.
39
CH-03 COMBINATIONAL LOGIC CIRCUITS
ANSWER KEY
1. a 2. b 3. c 4. b 5. a
6. b 7. b 8. a 9. c 10. d
11. a
40
CH-03 COMBINATIONAL LOGIC CIRCUITS
41
CH-04 SEQUENTIAL LOGIC CIRCUITS
Objectives
At the end of this chapter, a student will be able to
Describe Latches.
Describe RS Flip Flop.
Describe Clocked RS Flip Flop.
Understand JK Flip Flop.
Describe Operation of JK Flip Flop.
Describe Positive and Negative Edge Trigger.
Describe Positive-Level and Negative Level Trigger.
Describe Master Slave Flip Flop.
Describe D type Flip Flop.
Describe T type Flip Flop.
Understand 555 Timer IC.
Explain 555 Timer as Monostable Multivibrator.
Explain 555 Timer as Astable Multivibrator.
A sequential circuit is a logical circuit, where the output depends on the
present value of the input signal as well as the sequence of past inputs. A
sequential circuit is a combination of combinational circuit and a storage
element. Bi-stable latches and flip-flops are the basic building blocks of
sequential logic circuits.
Fig. 4.1
42
CH-04 SEQUENTIAL LOGIC CIRCUITS
An active-HIGH input S-R (SET- RESET) latch is formed with two cross-coupled
NOR gates, as shown in Fig. 4.1. Notice that the output of each gate is
connected to an input of the opposite gate. This produces the regenerative
feedback that is characteristic of all latches and flip-flops.
Working
1. SET = RESET = 0 is the normal resting condition of the flip-flop. It has
no effect on the output state of the flip-flop. Both Q and Q outputs
remain in the logic state they were in prior to this input condition.
2. SET = 1 and RESET = 0 sets the flip-flop. Q and Q respectively go to the
‘1’ and ‘0’ state.
3. SET = 0 and RESET = 1 resets or clears the flip-flop. Q and Q
respectively go to the ‘0’ and ‘1’ state.
4. 4. SET = RESET = 1 is forbidden as such a condition tries to set (that is,
Q = 1) and reset (that is, Q = 1) the flip-flop at the same time. To be
more precise, SET and RESET inputs in the R-S flip-flop cannot be
active at the same time.
Fig. 4.2
Working
43
CH-04 SEQUENTIAL LOGIC CIRCUITS
Circuit Diagram
Fig. 4.3 shows the circuit of a clocked flip-flop that has active HIGH inputs.
The two NAND gates at the input have been used to couple the R and S
inputs to the flip-flop inputs under the control of the clock signal.
When the clock signal is HIGH, the two NAND gates are enabled and the S
and R inputs are passed on to flip-flop inputs with their status
complemented. The outputs can now change states as per the status of R
and S at the flip-flop inputs. For instance, when S = 1 and R = 0 it will be
passed on as 0 and 1 respectively when the clock is HIGH.
When the clock is LOW, the two NAND gates produce a ‘1’ at their outputs,
irrespective of the S and R status. This produces a logic ‘1’ at both inputs of
the flip-flop, with the result that there is no effect on the output states.
44
CH-04 SEQUENTIAL LOGIC CIRCUITS
Fig. 4.3
Truth Table and Symbol
D FLIP FLOP
The major drawback of the SR flip-flop is its non-allowed logic states. It is
overcome by the D type flip-flop. The D Flip Flop is by far the most important
of the clocked flip-flops as it ensures that inputs S and R are never equal to
one at the same time.
Fig. 4.4
Working of D-Flip Flop
As long as the clock input is low, changes at the D input make no difference
to the outputs. The truth table shows this as a ‘don’t care’ state (X). Provided
45
CH-04 SEQUENTIAL LOGIC CIRCUITS
that the CLK input is high, then whichever logic state is at D will appear at
output Q and (unlike the SR flip-flops) 𝑄̅ is always the inverse of Q).
If D = 1, then S must be 1 and R must be 0, therefore Q is SET to 1.
Alternatively,
If D = 0 then R must be 1 and S must be 0, causing Q to be reset to 0.
Equation
The “D flip flop” will store and output whatever logic level is applied to its
data terminal so long as the clock input is HIGH.
Q = D if CLK = High
METHODS OF TRIGGERING
Triggering
Triggering means making a circuit active. Making a circuit active means
allowing the circuit to take input and give output. Like for example supposed
we have a flip-flop. When the circuit is not triggered, even if you give some
input data, it will not change the data stored inside the flip-flop nor will it
change the output Q or Q'. The triggering is given in form of a clock pulse or
gating signal. There are basically two types of triggering. Level and edge
triggering.
Level Triggering
In level triggering the circuit will become active when the gating or clock
pulse is on a particular level. We can have a negative level triggering in which
the circuit is active when the clock signal is low or a positive level triggering
in which the circuit is active when the clock signal is high. Both are shown in
Fig. 4.5 (a) and (b).
46
CH-04 SEQUENTIAL LOGIC CIRCUITS
JK FLIP FLOP
JK flip Flop is the most widely used of all the flip-flop designs and is
considered to be a universal flip-flop circuit. Both the S and the R inputs of
the previous SR bi-stable have now been replaced by two inputs called the J
and K inputs, respectively after its inventor Jack Kilby. Then this equates to: J
= S and K = R.
47
CH-04 SEQUENTIAL LOGIC CIRCUITS
The JK flip flop is basically a gated SR flip-flop with the addition of a clock
input circuitry that prevents the illegal or invalid output condition that can
occur when both inputs S and R are equal to logic level “1”. Due to this
additional clocked input, a JK flip-flop has four possible input combinations,
“logic 1”, “logic 0”, “no change” and “toggle”.
Fig. 4.7
The two 2-input AND gates of the gated SR bistable have now been replaced
by two 3-input NAND gates with the third input of each gate connected to
the outputs at Q and Q. This cross coupling of the SR flip-flop allows the
previously invalid condition of S = “1” and R = “1” state to be used to produce
a “toggle action” as the two inputs are now interlocked.
48
CH-04 SEQUENTIAL LOGIC CIRCUITS
The basic JK flip flop can be improved further by adding a second JK flip-flop
to its output that is activated on the complementary clock signal to produce
a “Master-Slave JK flip flop”.
Fig. 4.8
Working of JK MS Flip Flop
The input signals J and K are connected to the gated “master” SR flip flop
which “locks” the input condition while the clock (CLK) input is “HIGH” at
logic level “1”. As the clock input of the “slave” flip flop is the inverse
(complement) of the “master” clock input, the “slave” SR flip flop does not
toggle. The outputs from the “master” flip flop are only “seen” by the gated
“slave” flip flop when the clock input goes “LOW” to logic level “0”.
When the clock is “LOW”, the outputs from the “master” flip flop are latched
and any additional changes to its inputs are ignored. The gated “slave” flip
flop now responds to the state of its inputs passed over by the “master”
section.
Then on the “Low-to-High” transition of the clock pulse, the inputs of the
“master” flip flop are fed through to the gated inputs of the “slave” flip flop
and on the “High-to-Low” transition the same inputs are reflected on the
output of the “slave” making this type of flip flop edge or pulse-triggered.
Then, the circuit accepts input data when the clock signal is “HIGH”, and
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 “Synchronous” device as it only
passes data with the timing of the clock signal.
T FLIP FLOP
49
CH-04 SEQUENTIAL LOGIC CIRCUITS
The T or "toggle" flip-flop changes its output on each clock edge, giving an
output, which is half the frequency of the signal to the T input. It is useful for
constructing binary counters and frequency dividers.
Fig. 4.9
Working of T-Flip Flop
T flip flop is an edge triggered device i.e. the low to high or high to low
transitions on a clock signal of narrow triggers that is provided as input will
cause the change in output state of flip flop.
If the output Q = 0, then the upper NAND is in enable state and lower NAND
gate is in disable condition. This allows the trigger to pass the S inputs to
make the flip – flop in SET state i.e. Q = 1.
If the output Q = 1, then the upper NAND is in disable state and lower NAND
gate is in enable condition. This allows the trigger to pass the R inputs to
make the flip flop in RESET state i.e. Q =0.
In simple terms, the operation of the T flip flop is When the T input is low,
then the next sate of the T flip flop is same as the present state.
T = 0 and present state = 0 then the next state = 0
T = 1 and present state = 1 then the next state = 1
When the T input is high and during the positive transition of the clock signal,
the next state of the T flip – flop is the inverse of present state.
T = 1 and present state = 0 then the next state = 1
T = 1 and present state = 1 then the next state = 0
50
CH-04 SEQUENTIAL LOGIC CIRCUITS
555 TIMER IC
The 555 timer is a versatile and widely used IC device because it can be
configured in two different modes as either a monostable multivibrator (one-
shot) or as an astable multivibrator (free running oscillator).
Fig. 4.10
Pin 2. – Trigger, The negative input to comparator No 1. A negative pulse on
this pin “sets” the internal Flip-flop when the voltage drops below ⅓Vcc
causing the output to switch from a “LOW” to a “HIGH” state.
Pin 3. – Output, the output pin can drive any TTL circuit, small speakers, LEDs
or motors.
Pin 4. – Reset, this pin is used to “reset” the internal Flip-flop controlling the
state of the output. It is generally connected to a logic “1” level when not
used.
Pin 5. – Control Voltage, By applying a voltage to this pin, the width of the
output signal can be varied independently of the RC timing network. When
51
CH-04 SEQUENTIAL LOGIC CIRCUITS
52
CH-04 SEQUENTIAL LOGIC CIRCUITS
Fig. 4.11
Working of 555 timer monostable multivibrator
Initially, the output is LOW and the discharge transistor Q1 is on, keeping C1
discharged. When a negative going trigger pulse is applied at t0, the output
goes HIGH and the discharge transistor turns off, allowing capacitor C 1 to
begin charging through R1. When C1 charges to ⅔Vcc, the output goes back
LOW at t1 and Q1 turns on immediately, discharging C1. The charging rate of
C1 determines how long the output is HIGH.
53
CH-04 SEQUENTIAL LOGIC CIRCUITS
Fig. 4.12
Working of 555 timer astable multivibrator
Initially, when the power is turned on, the capacitor (C1) is uncharged and
thus the trigger voltage (pin 2) is at 0V. This causes the output of comparator
B to be HIGH and the output of comparator A to be LOW, forcing the output
of the latch, and thus the base of Q1, LOW and keeping the transistor off.
Now, C1 begins charging through R1 and R2, as indicated in Fig. 4.13.
When the capacitor voltage reaches ⅔Vcc, comparator A switches to its HIGH
output state. This resets the latch, causing the base of Q 1 to go HIGH and
turning on the transistor. This sequence creates a discharge path for the
capacitor through R2 and the transistor, as indicated. The capacitor now
begins to discharge, causing comparator A to go LOW. At the point where the
capacitor discharges down to ⅓Vcc, comparator B switches HIGH; this sets
the latch, making the base of Q1 LOW and turning off the transistor. Another
charging cycle begins, and the entire process repeats.
Fig. 4.13
The result is a rectangular wave output whose duty cycle depends on the
values of R1 and R2. The frequency of oscillation is given by the following
formula.
54
CH-04 SEQUENTIAL LOGIC CIRCUITS
EXERCISE
SECTION-I (MCQ’s)
1. Following is the reset condition of a flip flop.
(a) 𝑄 = 0 & 𝑄̅ = 1 (b) 𝑄 = 0 & 𝑄̅ = 0 (c) 𝑄 = 1 & 𝑄̅ = 0 (d) 𝑄 = 1 & 𝑄̅ = 1
2. If J = 1 and K = 0, then condition of flip flop will be
(a) Reset (b) Set (c) Toggle (d) Forbidden
3. A 555 timer IC has
(a) 3 pins (b) 6 pins (c) 8 pins (d) 12 pins
4. A flip flop has number of stable states
(a) One (b) Two (c) Three (d) Four
5. Which flip flop is called universal flip flop?
(a) RS (b) D (c) JK (d) T
6. The pin number 6 of 555 timer IC is
(a) Trigger (b) Threshold (c) Discharge (d) Control
7. D flip flop is also called
(a) Data flip flop (b) Delay flip flop (c) D type latch (d) All of these
8. Following is the set condition of a flip flop.
(a) 𝑄 = 0 & 𝑄̅ = 1 (b) 𝑄 = 0 & 𝑄̅ = 0 (c) 𝑄 = 1 & 𝑄̅ = 0 (d) 𝑄 = 1 & 𝑄̅ = 1
9. A 555 timer IC have comparators
(a) Two (b) Three (c) Four (d) Five
10. In clocked RS flip flop when all three inputs are zero, then flip flop state is
(a) Forbidden (b) Reset (c) Hold (d) Set
ANSWER KEY
1. a 2. b 3. c 4. b 5. c
6. b 7. d 8. c 9. a 10. c
55
CH-04 SEQUENTIAL LOGIC CIRCUITS
56
CH-05 SHIFT REGISTERS AND COUNTERS
57
CH-05 SHIFT REGISTERS AND COUNTERS
Fig. 5.1 shows a 4-bit serial-in, serial out register. This register can store up to
four bits of data.
Fig. 5.1
Data In Serially
Fig. 5.2 illustrates entry of the four bits 1010 into the register. The register is
initially clear.
i. First the right-most bit “0” is put onto the data input line, making D = 0
for FF0. When the first clock pulse is applied, FF0 is reset, thus storing the
0.
ii. Next the second bit, which is a 1, is applied to the data input, making D =
1 for FF0 and D = 0 for FF1 because the D input of FF1 is connected to the
Q0 output. When the second clock pulse occurs, the 1 on the data input is
shifted into FF0, causing FF0 to set; and the 0 that was in FF0 is shifted
into FF1.
iii. The third bit, a 0, is now put onto the data-input line, and a clock pulse is
applied. The 0 is entered into FF0, the 1 stored in FF0 is shifted into FFl,
and the 0 stored in FFl is shifted into FF2.
iv. The last bit, a 1, is now applied to the data input, and a clock pulse is
applied. This time the 1 is entered into FF0, the 0 stored in FF0 is shifted
into FFl, the 1 stored in FFI is shifted into FF2, and the 0 stored in FF2 is
shifted into FF3. This completes the serial entry of the four bits into the
shift register.
Fig. 5.2
Data Out Serially
To get the data out of the register, the bits must be shifted out serially and
taken off the Q3 output. After CLK4 in the data entry operation just
described, the right-most bit, 0, appears on the Q3 output.
58
CH-05 SHIFT REGISTERS AND COUNTERS
Fig. 5.3
When clock pulse CLK5 is applied, the second bit appears on the Q 3 output.
Clock pulse CLK6 shifts the third bit to the output, and CLK7 shifts the fourth
bit to the output. After CLK8 register is clear as shown in Fig. 5.3.
A logical symbol of 4-bit serial in parallel out shift register is shown in Fig. 5.4.
It has one serially data input, four lines to get parallel data at output and the
sequencing clock signal (CLK).
Fig. 5.4
SIPO Circuit Diagram
A serial-in parallel-out shift register is identical to a serial-in serial-out shift
register except that in this case, all flip-flop outputs are also brought out on
the IC terminals. Fig. 5.5. shows the logic diagram of a typical serial-in
parallel-out shift register.
Fig. 5.5
Serial Data In
All registers are initially clear. Suppose we have to store 1011 in this register.
On the first clock at t1, the bit “1” at SI is shifted from D to Q of the first shift
register stage. After t2 this first data bit is at Q1. After t3 it is at Q2. After t4 it is
at Q3. Four clock pulses have shifted the first data bit all the way to the last
59
CH-05 SHIFT REGISTERS AND COUNTERS
stage Q3. The second data bit a 1 is at Q2 after the 4th clock. The third data
bit a 0 is at Q1. The fourth data bit another 1 is at Q0. Thus, the serial data
input pattern 1011 is contained in (Q0Q1Q2Q3). It is now available on the four
outputs.
Fig. 5.6
PISO Circuit Diagram
Fig. 5.7. illustrates a 4-bit parallel in/serial out shift register. There are four
data-input lines, D0, D1, D2, and D3.
Fig. 5.7
Parallel Data In
̅̅̅̅̅̅̅̅ is LOW, gates G1 through G4 are enabled , allowing
When 𝑆𝐻𝐼𝐹𝑇/𝐿𝑂𝐴𝐷
each data bit to be applied to the D input of its respective flip-flop. When a
60
CH-05 SHIFT REGISTERS AND COUNTERS
clock pulse is applied, the flip-flops with D = l will set and those with D = 0
will reset, thereby storing all four bits simultaneously.
Fig. 5.7
PIPO Circuit Diagram
Fig. 5.8. illustrates a 4-bit parallel in/parallel out register. There are four data-
input lines, D0, D1, D2, and D3, and four data-output lines Q0, Q1, Q2, and Q3.
Working
The four bit data is presented in a parallel format to the parallel input pins D0
to D3 and then transferred together directly to their respective output pins
Q0 to Q3 by the same clock pulse. Then one clock pulse loads and unloads the
register.
61
CH-05 SHIFT REGISTERS AND COUNTERS
Fig. 5.8
BINARY COUNTERS
A binary counter is a combination of flip flops which counts the input clock
pulses. The output of one flip-flop is sent to the input of the next flip-flop in
the series. There are basically two types of a binary counter.
i- Asynchronous Counter (Ripple Counter)
ii- Synchronous Counter
Asynchronous counter is also called ripple or serial counter. In this
counter first flip-flop is clocked by the external clock pulse and then each
successive flip-flop is clocked by the output of the preceding flip-flop.
Synchronous counter is also called a parallel counter. In synchronous
counters, the clock input is connected to all of the flip-flops so that they are
clocked simultaneously.
These counters can count in different ways based on their circuitry.
UP COUNTER: Counts the values in ascending order.
DOWN COUNTER: Counts the values in descending order.
UP-DOWN COUNTER: Counts the values either in the ascending or
descending direction.
62
CH-05 SHIFT REGISTERS AND COUNTERS
The logic diagram of a 2-bit ripple up counter is shown in Fig. 5.9. The
negative edge triggered JK flip-flops are being used in toggle mode. External
clock is applied to the clock input of flip-flop FF0 and Q0 output is applied to
the clock input of the next flip-flop i.e. FF1.
Fig. 5.9
Working
As we have applied a high voltage to all the JK inputs of flip-flops they are at
the state 1, so they must toggle the state at the negative going end of the
clock pulse.
From the timing diagram shown in Fig. 5.10, we can observe that Q 0 changes
state only during the negative edge of the applied clock. Initially, the flip flop
is at state 0. Flip-flop stays in the state until the applied clock goes from 1 to
0. As the JK values are 1, the flip flop should toggle. So, it changes state from
0 to 1. The process continues for all pulses of the clock.
Coming to the second flip flop, here the waveform generated by flip flop 1 is
given as clock pulse. So, as we can see in the timing diagram when Q 0 goes
transition from 1 to 0 the state of Q1 changes. Note that the output values of
Q0 are considered as LSB and Q1 are considered as MSB.
From the timing diagram, we can observe that the counter counts the values
00,01,10,11 then resets itself and starts again from 00,01,… until clock pulses
are applied to first flip flop.
Fig. 5.10
3-BIT ASYNCHRONOUS/RIPPLE COUNTER
63
CH-05 SHIFT REGISTERS AND COUNTERS
In the 3-bit ripple counter, three flip-flops are used in the circuit. This
counter can count up to 23 = 8 values. i.e. 000,001,010,011,100,101,110,111.
The circuit diagram is shown in Fig. 5.11.
Fig. 5.11
Working
All the JK inputs of flip-flops are connected to HIGH. So, they must toggle the
state at the negative going end of the clock pulse .i.e. at the transition 1 to 0
of the clock pulse.
Q0 changes state only during the negative edge of the applied clock. When Q 0
goes transition from 1 to 0 the state of Q1 changes. When Q1 goes transition
from 1 to 0 the state of Q2 changes. The timing diagram of the binary ripple
counter clearly explains this operation shown in Fig. 5.12. The output values
of Q0 is considered as LSB and Q2 is considered as MSB.
Fig. 5.12
Modulus of a counter
The modulus (MOD number) of a counter is the number of different logic
states it goes through before it comes back to the initial state to repeat the
count sequence. The maximum possible number of states (maximum
modulus) of a counter is 2n, where n is the number of flip-flops in the
counter.
64
CH-05 SHIFT REGISTERS AND COUNTERS
Fig. 5.13
SYNCHRONOUS COUNTER
Synchronous counter is also called a parallel counter. In synchronous
counters, the clock input is connected to all of the flip-flops so that they are
clocked simultaneously.
SYNCHRONOUS UP COUNTER
An UP counter is one that counts upwards or in the forward direction by one
LSB every time it is clocked. A three-bit binary UP counter will count as 000,
001, 010, 011, 100, 101, 110 and 111.
65
CH-05 SHIFT REGISTERS AND COUNTERS
Fig. 5.14
Working
i- First, assume that the counter is initially in the binary 0 state. When the
positive edge of the first clock pulse is applied, FF0 will toggle and Q0 will
therefore go HIGH. Inputs J1 and K1 are both LOW because Q0, to which
they are connected, has not yet gone HIGH. So, J = 0 and K = 0 when the
leading edge of the first clock pulse is applied. This is a no-change
condition, and therefore FF1 does not change state.
ii- After CLKl, Q0 = 1 and Q1 = 0 (which is the binary 1 state). When the
leading edge of CLK2 occurs, FF0 will toggle and Q0 will go LOW. Since
FF1 has a HIGH (Q0 = 1) on its J1 and K1 inputs at the triggering edge of
this clock pulse, the flip-flop toggles and Q1 goes HIGH. Thus, after CLK2,
Q0 = 0 and Q1 = 1 (which is a binary 2 state).
iii- When the leading edge of CLK3 occurs, FF0 again toggles to the SET state
(Q0 = 1), and FFl remains SET (Q1 = 1) because its J1 and K1 inputs are both
LOW (Q0 = 0). After this triggering edge, Q0 = 1 and Q1 = 1 (which is a
binary 3 state).
iv- Finally, at the leading edge of CLK4, Q0 and Q1 go LOW because they both
have a toggle condition on their J and K inputs. The counter has now
recycled to its original state, binary 0. The complete timing diagram and
truth table for the counter is shown in Fig. 5.15.
Fig. 5.15
3-bit synchronous up counter
A 3-bit synchronous up counter is shown in Fig. 5.16. with its truth table.
66
CH-05 SHIFT REGISTERS AND COUNTERS
Fig. 5.16
Working
i- FF0 is in the toggle mode by constant HIGHs on its J 0 and K0 inputs. It
changes its output at every positive edge of CLK.
ii- Q0 is connected to the J1 and K1 inputs of FF1. When Q0 is a 1 and a clock
pulse occurs, FF1 is in the toggle mode and therefore changes state. This
change occurs at CLK2, CLK4, CLK6, and CLK8. When Q0 is a 0, FF1 is in the
no-change mode and remains in its present state.
iii- The J2 and K2 inputs of FF2 are connected to the AND of Q0 and Q1.
Whenever both Q0 and Q1 are HIGH, the output of the AND gate makes
the J2 and K2 inputs of FF2 HIGH, and FF2 toggles on the CLK4 and CLK8.
At all other times, the J2 and K2 inputs of FF2 are held LOW by the AND
gate output, and FF2 does not change state.
DOWN COUNTERS
A down counter counts in the reverse direction or downwards by one LSB
every time it is clocked. The three-bit binary down counter will count as 000,
111, 110, 1101, 100, 011, 010, 001 and 000. The down counter can be
constructed as asynchronous or synchronous.
67
CH-05 SHIFT REGISTERS AND COUNTERS
If the flip-flops used to construct the counter are positive edge triggered and
the clock inputs are fed from Q outputs, the counter counts in the reverse or
downward count sequence.
Circuit Diagram
A 3-bit binary asynchronous (ripple) down counter is shown in figure.
Fig. 5.17
Working
i- The counter is initially in the 000 state. With the first clock pulse, Q 0
toggles from the ‘0’ to the ‘1’ state, which means ̅̅̅ 𝑄0 toggles from ‘1’ to
̅̅̅
‘0’. Since 𝑄0 here feeds the clock input of next flip-flop, flip-flop FF1 also
toggles. Thus, Q1 goes from ‘0’ to ‘1’. Since flip-flops FF2 and FF3 are also
clocked from complementary outputs of their immediately preceding flip-
flops, they also toggle. Thus, the counter moves from the 000 state to the
111 state with the first clock pulse.
Fig. 5.18
ii- With the second clock pulse, Q0 toggles again, but the other flip-flops
remain unaffected and the counter is in the 110 state.
iii- With subsequent clock pulses, the counter keeps counting downwards by
one LSB at a time until it reaches 000 again, after which the process
repeats.
iv- The count sequence is given as 000, 111, 110, 101,100, 011, 010, 001 and
000. The timing waveforms and truth table are shown in Fig. 5.18.
68
CH-05 SHIFT REGISTERS AND COUNTERS
Fig. 5.19
EXERCISE
SECTION-I (MCQ’s)
1. Combination of flip flops which can store and shift data is called
(a) Counter (b) Register (c) Multiplexer (d) De-multiplexer
2. A 4-bit register consists of
(a) 2-Flip Flops (b) 4-Flip Flops (c) 12-Flip Flops (d) 16-Flip Flops
3. A shift register has characteristic
(a) Memory only (b) Shift only (c) Both a & b (d) None of these
4. A 3-bit counter has a maximum modulus of
(a) 3 (b) 6 (c) 8 (d) 9
5. Shift register is a type of memory
(a) Optical (b) Magnetic (c) Non-Volatile (d) Volatile
6. Shift register is constructed by combining
(a) diodes (b) Transistors (c) Flip flops (d) SCR’s
7. To enter data into the register is called
(a) Loading data (b) Storing data (c) Writing data (d) All of these
8. Asynchronous counter is also called
(a) Ripple (b) Ring (c) Decade (d) Synchronous
9. Combination of flip flops which can count input pulses is called
(a) Counter (b) Register (c) Multiplexer (d) De-multiplexer
10. For shifting one byte into a register, number of clock pulses required
(a) 1 (b) 3 (c) 4 (d) 8
11. A counter consists of n flip flops, have maximum output states
(a) n (b) n2 (c) 2n (d) 2n2
12. A counter in which all flip flops triggers simultaneously is called
69
CH-05 SHIFT REGISTERS AND COUNTERS
ANSWER KEY
1. b 2. b 3. c 4. c 5. d
6. c 7. d 8. a 9. a 10. d
11. c 12. b
1. Explain the serial In Parallel out shift register with help of diagram.
2. Draw the circuit of 3-bit ripple counter and explain its working with
timing diagram.
3. Explain the operation of 3-bit synchronous counter using diagram.
4. Explain integrated ripple counter (7493).
5. Define and explain serial-in-serial out shift register.
70
CH-05 SHIFT REGISTERS AND COUNTERS
71
CH-06 FAMILIES AND SPECIFICATIONS
Objectives
At the end of this chapter, a student will be able to
Discuss RTL (Resistor Transistor Logic)
Discuss DTL (Diode Transistor Logic)
Discuss ECL (Emitter Coupled Logic)
Discuss TTL (Transistor Transistor Logic)
Discuss IIL (Integrated Injection Logic)
Discuss MOS (Metal Oxide Semiconductor)
Discuss CMOS (Complementary MOS)
Describe Interfacing Different Logic Families.
Discuss Voltage & Current Levels.
Discuss Fan-out, Fan-in.
Understand Propagation Delay, Noise Margin and Power dissipation.
A logic family of monolithic digital integrated circuit devices is a group of
electronic logic gates constructed using one of several different designs,
usually with compatible logic levels and power supply characteristics within a
family.
Working
When both the inputs A and B are at 0V, it
is not enough to turn on the both
transistors. Due to this, the voltage +VCC
72
CH-06 FAMILIES AND SPECIFICATIONS
will appear at the output Y. Hence the output is logic 1 or logic HIGH at
terminal Y.
When any one of the inputs, either A or B is given HIGH voltage, then the
transistor with HIGH input will be turned on. This will make a path for the
supply voltage to go to the ground through the resistor RC and transistor.
Thus, there will be 0 v at the output terminal Y.
When both the inputs are HIGH, it will drive both the transistor to turn
on. It will make a path for the supply voltage to flow to the ground
through resistor RC and transistor. Therefore, there will be 0 v at the
output terminal Y.
Characteristics of RTL
RTL family is characterized by poor noise margin, poor fan-out capability, low
speed and high-power dissipation. Due to these undesirable characteristics,
this family is now obsolete.
It has a fan-out of 5.
Propagation delay is 25 nS.
Power dissipation is 12 mW.
Noise margin for low signal input is 0.4 V.
Voltage level for low level is 0.2 V.
Voltage level for high level is 1 to 3.6 V.
Working
If any input is LOW
The corresponding diode conducts current
through VCC and resistor to input node. The
73
CH-06 FAMILIES AND SPECIFICATIONS
Characteristics of DTL
Due to number of diodes used in this circuit, the speed of the circuit is
significantly low. Hence this family of logic gates is modified to transistor-
transistor logic i.e. TTL family.
It has a fan-out of 8.
Propagation delay is average 30 nS.
Power dissipation is 12 mW.
Noise margin for low signal input is 0.7 V.
Fig. 6.3
The circuit consists of three parts.
74
CH-06 FAMILIES AND SPECIFICATIONS
Working
If all inputs are at low level (-1.6V), both transistors are turn OFF and Q3
conducts. Then at point L the potential is 0 volts. This is applied to the
base of Q5, it is to be turn OFF. So, the output of OR gate is logic ‘0’.
At the same time , the potential at point M = V CC is applied to the base of
Q6, it is to be turn ON. So, the output of NOR is at logic ‘1’.
If any input is at high level (-0.8V), the corresponding transistor is turned
ON and Q3 is turned OFF because it needs at least 0.6V to start
conduction on. An input of -0.8V causes the transistor to conduct and
apply -1.6V on the remaining emitters. Therefore, Q3 is cut off. The
voltage in resistor R2 flows into the base of Q5 (L=Vcc) then Q5 is turned
ON. The output is at logic ‘1’.
At the same time, at point M the voltage is 0V is applied to the base of
the transistor Q6, it is to be turns off. So, the NOR output is logic ‘0’.
Characteristics of ECL
Propagation delay is very LOW (<1ns)
ECL is fastest logic family.
ECL circuit usually operate with –Ve supplies. (+Ve terminal is
connected to ground).
In this logic family we consider the logic 0 as -1.6V and logic 1 as -
0.8V.
75
CH-06 FAMILIES AND SPECIFICATIONS
Working
When both or any input is low, transistor T1 becomes forward bias and
goes in saturation region, thus potential of Q1 collector becomes low. Q2
goes into cut off region. The potential of Q2 emitter becomes low, which
derives output transistor Q3. We receive a HIGH output at the collector of
Q3. In this condition, Q4 transistor remains in saturation region.
When both inputs are high, reverse process takes place. Thus, output
becomes LOW.
Characteristics of TTL
TTL has greater speed than DTL.
Less noise immunity.
Power dissipation is 10 mW.
It has fan-in of 6 and fan-out of 10.
Propagation time delay is 5-15 nsec.
76
CH-06 FAMILIES AND SPECIFICATIONS
Integrated injection logic (IIL or I2L) is a class of digital circuits built with
multiple collector bipolar junction transistors. The logic voltage levels are
very close (High: 0.7V, Low: 0.2V), I2L has high noise immunity because it
operates by current instead of voltage.
Working
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). 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).
Characteristics of I2L
This logic uses only bipolar junction transistors.
It uses very small chip area.
Easily fabricated and economical.
Power dissipation is low (1mW).
It has noise margin 0.35 V.
It has fan-out of 8.
Propagation time delay is 1 nSec.
77
CH-06 FAMILIES AND SPECIFICATIONS
Characteristics of CMOS
Dissipates low power. The power
dissipation is typically 10 nW per
gate.
Short propagation delays: The propagation delays are usually around
25 nS to 50 nS.
Rise and fall times are controlled: The rise and falls are usually ramps
instead of step functions, and they are 20 - 40% longer than the
propagation delays.
Noise immunity approaches 50% or 45% of the full logic swing.
Voltage levels range from 0 to VDD. A low level is anywhere between
0 and 1/3 VDD while a high level is between 2/3 VDD and VDD.
78
CH-06 FAMILIES AND SPECIFICATIONS
79
CH-06 FAMILIES AND SPECIFICATIONS
The CMOS-to-TTL interface when the two are operating on different power
supply voltages can be achieved in several ways. One such scheme is shown
below. In this case, there is both a voltage level as well as a current level
compatibility problem.
80
CH-06 FAMILIES AND SPECIFICATIONS
Voltage Levels
The following currents and voltages are specified which are very useful in the
design of digital systems.
High-level input voltage, VIH: This is the minimum input voltage which is
recognized by the gate as logic 1.
Low-level input voltage, VIL: This is the maximum input voltage which is
recognized by the gate as logic 0.
High-level output voltage, VOH: This is the minimum voltage available at the
output corresponding to logic 1.
Low-level output voltage, VOL: This is the maximum voltage available at the
output corresponding to logic 0.
Current Levels
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.
Fan out
81
CH-06 FAMILIES AND SPECIFICATIONS
It specifies the number of standard loads that the output of the gate can
drive without affecting its normal operation. A standard load is usually
defined as the amount of current needed by an input of another gate in the
same family as shown in Fig. 6.14.
Fan in
Fan in is the number of inputs connected to the gate
without any degradation in the voltage level. It is
decided by the input current sinking capability of a
logic gate as shown in Figure. It is expressed in terms
of standard inputs or units loads (ULs).
Noise Margin
It is the maximum noise voltage added to an input signal of a digital circuit
that does not cause an undesirable change in the circuit output. It is
expressed in volts.
The noise margin is the difference between the guaranteed output voltage
level and the required input voltage level of a logic gate.
• low level noise margin = VIL(max) - VOL(max) = 0.4 V(74XX)
• high level noise margin = VOH(min) - VIH(min) = 0.4 V(74XX)
Power Dissipation
Power dissipation is measure of power consumed by the gate when fully
driven by all its inputs. It is expressed in milli watts.
Operating temperature
The IC gates and other circuits are temperatures sensitive being
semiconductor devices. However, they designed to operate satisfactorily
over a specified range of temperatures. The range specified for commercial
applications is 0 to 70°C, for industrial it is 0 to 85°C and for military
applications, it is -55°C to 125°C.
EXERCISE
SECTION-I (MCQ’s)
82
CH-06 FAMILIES AND SPECIFICATIONS
ANSWER KEY
1. a 2. d 3. c 4. c 5. b
6. c 7. b 8. c 9. b 10. c
83
CH-06 FAMILIES AND SPECIFICATIONS
1. Draw and explain TTL NAND gate with totem pole output.
2. Draw circuit of CMOS NOR gate and explain its working.
3. Compare characteristics of TTL and CMOS logic families.
4. Explain briefly data sheet parameter of digital IC.
84
CH-07 INTERFACING WITH ANALOG WORLD
INTERFACING WITH
CHAPTER-7
ANALOG WORLD
Objectives
At the end of this chapter, a student will be able to
Discuss needs and applications of DACs
Describe Binary weighted DAC
Describe Ladder type DAC
Discuss needs and applications of ADCs
Describe the construction and working of Simultaneous ADC
Describe the construction and working of Counter type ADC
Describe the construction and working of Dual slop ADC
Describe the construction and working of Successive Approximation ADC
Fig. 7.1
85
CH-07 INTERFACING WITH ANALOG WORLD
Fig. 7.2
There are two parts of a DAC. First is a resistor network which can be a binary
weighted resistor network or a ladder network. Second part is a summing
amplifier. The output voltage is proportional to the applied binary input. The
output voltage can be calculated using following formula.
Vo = K (decimal equivalent of binary input)
Where K is a constant whose value depends upon the values of resistors used
in the circuit.
There are two types of digital to analog converters.
i- Binary Weighted Resistor DAC
ii- R-2R Ladder Type DAC
86
CH-07 INTERFACING WITH ANALOG WORLD
the inverted sum of all the input voltages. This DAC consists of a resistor
network and an operational amplifier with a feedback resistor. Values of
input resistors are multiples of binary weights i-e 1, 2, 4, 8 and so on.
Construction
The circuit for a 4-bit DAC using binary weighted resistor network is shown in
Fig. 7.3. This is constructed by using a summing amplifier and a set of
resistors R, 2R, 4R and 8R as its inputs. The resistors are scaled to represent
weights for the different input bits.
The resistor with the lowest value R corresponds to the highest weighted
binary input D3 (MSB) [23 = 8], and 2R, 4R, 8R correspond to the binary
weights of D2 (22 = 4), D1 (21 = 2), and D0 (LSB) [20 = 1] respectively.
Fig. 7.3
Working
Suppose I3, I2, I1 and I0 are the currents flowing through the resistors R, 2R,
4R and 8R respectively. If is the current through feedback resistor Rf.
𝐼𝑓 = 𝐼3 + 𝐼2 + 𝐼1 + 𝐼0
If all switches are connected to +V point, then
𝑉 𝑉 𝑉 𝑉
𝐼3 = 𝑅 , 𝐼2 = 2𝑅 , 𝐼1 = 4𝑅 , 𝐼0 = 8𝑅
𝑉 𝑉 𝑉 𝑉
𝐼𝑓 = + + +
𝑅 2𝑅 4𝑅 8𝑅
𝑉 𝑉
𝐼𝑓 = (1 + 0.5 + 0.25 + 0.125) = 1.875
𝑅 𝑅
The above equation is the maximum current, when all switches are
connected to “+V” point. This condition is equivalent to binary input “1111”.
The above equation is written in general form as follows.
𝑉
𝐼𝑓 = (1𝐷3 + 0.5𝐷2 + 0.25𝐷1 + 0.125𝐷0 )
𝑅
Where D3, D2, D1, D0 are binary inputs, which may be 0 or 1 depending on the
switch positions.
The output voltage can be calculated as follows.
87
CH-07 INTERFACING WITH ANALOG WORLD
𝑉𝑂 = −𝐼𝑓 𝑅𝑓
Advantages
Simple analysis.
Fast Conversion.
Economical.
Dis-advantages
When number of binary input increases, it is not easy to maintain the
resistance ratio.
Very wide ranges of different values of resistors are required.
Different current flows through resistors, so their wattage ratings are
also different.
Accuracy and stability of conversion depends primarily on the
absolute accuracy of the resistors.
Construction
The Fig. 7.4. shows the 4-bit R-2R ladder DAC circuit using op-amp. Here only
two values of resistors are required i.e. R and 2R. The typical value of
feedback resistor is Rf = 2R. The resistance R is normally selected any value
between 2.5 kΩ to 10 kΩ.
Working
The operation of R-2R ladder DAC is easily explained considering the weights
of the different bits one at a time. This can be followed by superposition to
construct analog output corresponding any digital input word.
Fig. 7.4
88
CH-07 INTERFACING WITH ANALOG WORLD
Let D3D2D1D0 = 1000 at the input. A simplified equivalent circuit can be drawn
𝑉
as shown in Fig. 7.5. In this condition, 𝐼 = 2𝑅
Fig. 7.5
Now suppose digital input of the same circuit is changed to D 3D2D1D0 = 0100.
𝑉
Then 𝐼 = 4𝑅.
𝑉
When D3D2D1D0 = 0010, I will be 8𝑅
𝑉
For D3D2D1D0 = 0001, I will be 16𝑅
When all bits are high, then all these currents will be added. So, the equation
will be as follows.
𝑉 𝑉 𝑉 𝑉
𝐼= + + +
2𝑅 4𝑅 8𝑅 16𝑅
The output voltage can be calculated as follows.
𝑉𝑂 = −𝐼𝑅𝑓
𝑅𝑓 𝑉
𝑉0 = − (0.5𝐷3 + 0.25𝐷2 + 0.125𝐷1 + 0.625𝐷0 )
𝑅
Advantages
Only two values of resistors are used; R and 2R.
Does not require high precision resistors.
Fig. 7.6
The analog input is applied to a built-in comparator. This input is compared
with a particular reference voltage. If analog voltage is greater than
reference voltage, then a counter in circuit starts counting the clock pulses.
When the reference voltage equals the analog voltage, counter stops the
89
CH-07 INTERFACING WITH ANALOG WORLD
process of counting. Hence, the output code of counter represents the digital
output.
SIMULTANEOUS ADC
The flash ADC provides a fast conversion time because of the parallel
process. The flash ADC uses comparators that compare reference voltages
with the analogue input voltage.
The flash ADC uses comparators that compare reference voltages with the
analogue input voltage. When the analogue voltage exceeds the reference
voltage for a given comparator, a High is generated. In general (2n -1)
comparators are required. So, for 8-bit conversion 255 comparators are
required.
Construction
The reference voltage for each
comparator is set by the resistive voltage
divider network. The output of each
comparator is connected to an input of
the priority encoder. The encoder is
sampled by a pulse on the Enable input
and a 3-bit binary code representing the
analogue input appears on the encoder
output. The binary code is determined by
the highest order input having a High
level.
Working
The flash ADC comprises an array of comparators.
Each comparator is connected to a resistive voltage divider and to the
analogue input voltage.
The resistive voltage divider consists of equal valued resistors connected
in series with the reference voltage VREF.
90
CH-07 INTERFACING WITH ANALOG WORLD
Circuit
The counter type ADC is constructed using a binary counter, DAC and a
comparator. The output voltage of a DAC is equivalent to corresponding
digital input to DAC.
Fig. 7.7
Working
The analog input voltage is given to non-inverting terminal of
comparator.
The counter type ADC is reset to zero count by reset pulse applied to
reset terminal.
The clock pulses go through the AND gate which is enabled by the voltage
comparator high output. The number of pulses counted increase with
time.
91
CH-07 INTERFACING WITH ANALOG WORLD
The binary word representing this count is used as the input of a D/A
converter whose output is staircase type as shown in Fig. 7.7.
The analog output VD of DAC is compared to the analog input VA by the
comparator. If VA>VD, the output of comparator becomes high and the
AND gate is enabled to allow the transmission of the clock pulses to the
counter.
When VA<VD, the output of the comparator becomes low and the AND
gate is disabled. This stops the counting at the time V A≤VD and the digital
output of the counter represents the analog input output voltage VA.
For new value of analog input VA, a second reset pulse is applied to clear
the counter. Upon the end of the reset, the counting begins again.
Fig. 7.8
Advantages
Simple construction.
Easy to design and less expensive.
Speed can be adjusted by adjusting the clock frequency.
Faster than dual slope type ADC.
Disadvantage
Low speed is the most serious drawback of this method. The conversion time
can be as (2n -1) T depending upon the magnitude of input voltage VA.
Circuit
92
CH-07 INTERFACING WITH ANALOG WORLD
Working
The analog switch first connects Vin to the integrator. The binary
counter is initially reset to 0000; the output of integrator reset to 0V
and the input to the integrator is switched to the unknown analog
input voltage VA.
The analog input voltage VA is integrated by the inverting integrator
and generates a negative ramp output. The output of comparator is
positive and the clock is passed through the AND gate. This results in
counting up of the binary counter.
Fig. 7.9
The negative ramp continues for a fixed time period t1, which is
determined by a count detector for the time period t 1. At the end of
the fixed time period t1, the ramp output of integrator is given by
𝑉𝐴
𝑉𝑆 = − × 𝑡1
𝑅𝐶
When the counter reaches the fixed count at time period t 1, the
binary counter resets to 0000 and switches the integrator input to a
negative reference voltage –Vref, providing a discharge path for the
capacitor.
Now the ramp generator starts with the initial value –Vs and
increases in positive direction until it reaches 0V and the counter gets
advanced.
When Vs reaches 0V, comparator output becomes at logic 0 and the
AND gate is deactivated. The count stops and the value is stored in
the register. Now, the conversion cycle is said to be completed and
the positive ramp voltage is given by
93
CH-07 INTERFACING WITH ANALOG WORLD
𝑉𝑟𝑒𝑓
𝑉𝑆 = × 𝑡2
𝑅𝐶
Advantages
Very precise. The sources of errors are only the comparison with zero and
the clock period.
Disadvantage
Slow speed. The ADC needs time to ramp up and down the output voltage
and doubles with each bit added to the representation, for a fixed clock
period.
Construction
The ADC is interfaced to a controller - usually a microprocessor. It consists of
a very special counter circuit known as a successive-approximation register, a
DAC and a comparator. Analog input is applied to non-inverting input of
comparator.
Fig. 7.10
Working
The controller decides when a conversion is to be performed and
initiates the conversion by asserting the Start Convert signal line into
the control logic.
The Control Logic monitors the input to determine whether the
present contents of the register represent a value which is below or
above the analogue input voltage.
Each bit is set in turn starting with the MSB and working down to the
LSB.
94
CH-07 INTERFACING WITH ANALOG WORLD
The effect of setting each bit is noted by the control logic and if
setting a particular bit results in a DAC output in excess of the
analogue input voltage, the bit is cleared before moving on to the
next bit, otherwise the bit is left set.
At the end of the process, the LSB is adjusted and the conversion is
complete.
The control logic signals this to the controller/microprocessor by
asserting the End of Conversion line and the digital output is taken
from the register output.
EXERCISE
SECTION-I (MCQ’s)
1. A digital to analog converter consists of;
(a) Resistors (b) Op-Amp (c) Diodes (d) Both a & b
2. R-2R ladder type digital to analog converter has resistors of;
(a) Two values (b) Four values (c) Same values (d) None of these
3. Digital to analog converter is also called
(a) Encoder (b) Decoder (c) Inverter (d) Multiplexer
4. Resolution of a 4-bit DAC is
(a) 6.67% (b) 3.39% (c) 0.1% (d) 6%
5. The highest speed ADC is
(a) Counter type (b) Ramp generator (c) Simultaneous (d) All of these
6. A 3-bit simultaneous ADC has number of comparators
(a) 3 (b) 4 (c) 5 (d) 7
7. The slowest speed ADC is
(a) Counter type (b) Ramp generator (c) Dual Slope (d) All of these
8. In weighted resistors DAC operational amplifier is used as
(a) Inverting amplifier (b) Summing amplifier
(c) Non-inverting amplifier (d) Both a & b
9. Simultaneous ADC is also called;
(a) Flash (b) Dual Slope (c) Ramp type (d) Counter type
10. Counter type ADC is also called;
(a) Flash (b) Dual Slope (c) Staircase (d) Ramp
ANSWER KEY
1. d 2. a 3. b 4. a 5. c
6. d 7. c 8. d 9. a 10. c
95
CH-07 INTERFACING WITH ANALOG WORLD
1. Explain binary weighted DAC with circuit diagram and truth table.
2. Describe briefly successive approximation A to D convertor working.
3. Explain the working of ladder type D to A converter using circuit.
4. Describe need and use of DAC and ADC in a digital circuit with example.
5. Explain working of Dual slope analog to digital convertor with diagram.
96
CH-08 MEMORY
MEMORY CHAPTER-8
Objectives
At the end of this chapter, a student will be able to
Discuss Memory Technologies.
Discuss General Memory Operation.
Describe Memory Considerations.
List Types of Memories.
Describe ROM.
Describe RAM & its types.
Describe PLDs.
Describe Magnetic and Optical Memories
Discuss applications in Digital systems.
A memory is just like a human brain. It is used to store data and instructions.
Memory is major part of computers that categories into several types.
Computer memory is any physical device capable of storing information
temporarily or permanently.
TYPES OF MEMORY
Memory is primarily of three types
Cache Memory (Inner Memory)
Primary Memory (Main Memory)
Secondary Memory (External Memory)
Cache Memory
Cache memory is a very high speed semiconductor memory which can speed
up CPU. It is used to hold those parts of data and program which are most
frequently used by CPU.
Secondary Memory
97
CH-08 MEMORY
This type of memory is also known as external memory. CPU directly does
not access these memories. Contents of secondary memories are first
transferred to main memory, and then CPU can access it. For example: disk,
CD-ROM, DVD etc. Following are characteristics of secondary memory.
These are magnetic and optical memories
Computer may run without secondary memory.
Slower than primary memories.
MEMORY TECHNOLOGIES
There are two major memory technologies.
(a) Bipolar technology (b) MOS technology
Bipolar technology RAM and ROM mostly belongs to TTL and ECL logic
families. These types of RAM and ROM used rarely because of low storage
capacity, high cost and high power dissipation.
MOS technology memories are frequently used. It has low size. Thousands of
data bits can be stored on a single chip. Power dissipation is very low and
cost per bit is also low. N-channel MOSFETs are mostly used.
MEMORY OPERATION
Data must be put into the memory and data must be copied from the
memory when needed. These tasks are completed by write and read
operations respectively. The addressing operation, which is part of both the
write and the read operations, selects the specified memory address.
Write Operation
The write operation puts data into a specified address in the memory. Data
units go into the memory during a write operation on a set of lines called the
data bus. The data bus is bidirectional.
To store a byte of data in the memory, a code held in the address register is
placed on a set of lines called the address bus as shown in Fig. 8.1.
98
CH-08 MEMORY
Fig. 8.1
Once the address code is on the bus, the address decoder decodes the
address and selects the specified location in the memory. The memory then
gets a write command, and the data byte held in the data register is placed
on the data bus and stored in the selected memory address. When a new
data byte is written into a memory address, the current data byte stored at
that address is overwritten.
Read Operation
Data units come out of the memory during a read operation on the data bus.
In read operation, a code held in the address register is placed on the
address bus. The address decoder decodes the address and selects the
specified location in the memory. The memory then gets a read command,
and a "copy" of the data byte that is stored in the selected memory address
is placed on the data bus and loaded into the data register. When a data byte
is read from a memory address, it also remains stored at that address. This
operation is shown in Fig. 8.2.
Fig. 8.2
99
CH-08 MEMORY
Mask ROM
The mask ROM is the type in which the data are permanently stored in the
memory during the manufacturing process. Once the memory is
programmed, it cannot be changed. Fig. 8.3. shows MOS ROM cells. The
presence of a connection from a row line to the gate of a transistor
represents a 1 and no gate connection to a row line represents a 0.
Fig. 8.3
PROM
The PROM, or programmable ROM, is the type in which the data are
electrically stored by the user with the aid of specialized equipment. In the
programming process, a sufficient current is injected through the fusible link
to burn it open to create a stored 0. The link is left intact for a stored 1. Both
the mask ROM and the PROM can be of either MOS or bipolar technology.
Fig. 8.4
EPROM
10
0
CH-08 MEMORY
UV PROM
UV EPROM device is recognized by the transparent quartz lid on the package,
as shown in Fig. 8.5. Erasure is done by exposure of the chip to high-intensity
ultraviolet radiation through the quartz window on top of the package. The
positive charge stored on the gate is neutralized after several minutes to an
hour of exposure time.
Fig. 8.5
EEPROM
An electrically erasable PROM can be both erased and programmed with
electrical pulses. The EEPROM can be rapidly programmed and erased in-
circuit for reprogramming.
Applications of ROM
A ROM stores data that are used repeatedly in system applications, such as
tables, conversions, or programmed instructions for system initialization and
operation.
10
1
CH-08 MEMORY
placing it on the Data in line. A data bit is read by taking it off the Data out
line.
Fig. 8.6
Write operation in SRAM Cell
A HIGH on the row and column lines is applied to select the cell. To write a
data unit, a bit (1 or 0) is applied to data input line. A LOW on the 𝑅/𝑊 line
(WRITE mode) enables the input AND gate and disables the output AND gate,
which causes each data bit to be stored in a selected cell.
Read operation in SRAM Cell
A HIGH on the row and column lines is applied to select the cell. To read a
data unit, the Read line is taken to its active state by applying HIGH on 𝑅/𝑊 .
This disables the input AND gate and enables the output AND gate. This
causes the data bit stored in the selected cell to appear on the output.
10
2
CH-08 MEMORY
Fig. 8.7
Write operation in DRAM Cell
A LOW on the 𝑅/𝑊 line (WRITE mode) enables the tristate input buffer and
disables the output buffer. A HIGH on the row line is applied to close the
transistor. When a voltage is applied on the bit line, this will transfer to
capacitor and store in it. When the row line is taken back LOW, the transistor
turns off and disconnects the capacitor from the bit line.
Read operation in DRAM Cell
To read from the cell, the 𝑅/𝑊 (Read/Write) line is HIGH, enabling the output
buffer and disabling the input buffer. When the row line is taken HIGH, the
transistor turns on and connects the capacitor to the bit line and thus to the
output buffer (sense amplifier), so the data bit appears on the data-output
line.
Refreshing Process
For refreshing the memory cell, the 𝑅/𝑊 line is HIGH, the row line is HIGH,
and the refresh line is HIGH. The transistor turns on, connecting the capacitor
to the bit line. The output buffer is enabled, and the stored data bit is applied
to the input of the refresh buffer, which is enabled by the HIGH on the
refresh input. This produces a voltage on the bit line corresponding to the
stored bit, thus refreshing the capacitor.
Types of PLDs
10
3
CH-08 MEMORY
Fig. 8.8
Here, the inputs of AND gates are not of programmable type. So, we have to
generate 2n product terms by using 2n AND gates having n inputs each.
Here, the inputs of OR gates are programmable. Since all the outputs of AND
gates are applied as inputs to each OR gate. Therefore, the outputs of PROM
will be in the form of sum of min terms.
PAL
Programmable array logic (PAL) architecture has a programmable AND array
at the input and a fixed OR array at the output. The advantage of PAL is that
we can generate only the required product terms of Boolean function by
using programmable AND gates. The block diagram of PAL is shown in the
Fig. 8.9.
Fig. 8.9
Here, the inputs of AND gates are programmable. That means each AND gate
has both normal and complemented inputs of variables.
Here, the inputs of OR gates are not of programmable type. Hence, apply
those required product terms to each OR gate as inputs. Therefore, the
outputs of PAL will be in the form of sum of products form.
10
4
CH-08 MEMORY
PLA
A programmable logic array (PLA) device has a programmable AND array at
the input and a programmable OR array at the output. Hence, it is the most
flexible PLD. The block diagram of PLA is shown in the following figure.
Fig. 8.10
Here, the inputs of AND gates are programmable. That means each AND gate
has both normal and complemented inputs of variables.
Here, the inputs of OR gates are also programmable. Since all the outputs of
AND gates are applied as inputs to each OR gate. Therefore, the outputs of
PAL will be in the form of sum of products form.
MAGNETIC MEMORIES
A system of storing information through the alignment of small grains in a
magnetic material is called magnetic memory. Once the grains have been
aligned by an external magnetic field, the information remains stored for
long periods of time.
Fig. 8.11
10
5
CH-08 MEMORY
OPTICAL MEMORIES
10
6
CH-08 MEMORY
CD-ROM
The basic Compact Disk-Read-Only Memory is a 120 mm diameter disk. The
CD-ROM disk is formatted in a single spiral track and has a capacity of 680
MB. Data are prerecorded at the factory in the form of indentations called
pits and the flat area surrounding the pits called lands.
A CD player reads data from the spiral track with a low-power infrared laser.
Laser light reflected from a pit is 180° out-of-phase with the light reflected
from the lands. As the disk rotates, a photodiode detects the reflected light.
The result is a series of 1s and 0s corresponding to the configuration of pits
and lands along the track.
CD-R
The CD-Recordable allows multiple write sessions to different areas of the
disk. The CD-R disk has a spiral track like the CD-ROM. The CD-R uses a laser
to burn microscopic spots into an organic dye surface. When heated beyond
a critical temperature with a laser during read, the burned spots change color
and reflect less light than the nonburned areas. Therefore, 1s and 0s are
represented on a CD-R by burned and nonburned areas. Like the CD-ROM,
the data cannot be erased once it is written.
CD-RW
The CD-Rewritable disk can be used to read and write data. The CD-RW
commonly uses a crystalline compound with a special property. When it is
heated to a certain temperature, it becomes crystalline when it cools; but if it
is heated to a certain higher temperature, it melts and becomes amorphous
when it cools. To write data, the focused laser beam heats the material to
the melting temperature resulting in an amorphous state. The resulting
amorphous areas reflect less light than the crystalline areas, allowing the
read operation to detect 1s and 0s. The data can be erased or overwritten by
heating the amorphous areas to a temperature above the crystallization
temperature but lower than the melting temperature that causes the
amorphous material to revert to a crystalline state.
DVD-ROM
Originally DVD was an abbreviation for Digital Video Disk but eventually came
to represent Digital Versatile Disk. Like the CD-ROM, DVD-ROM data are
prestored on the disk. However, the pit size is smaller than for the CD-ROM,
10
7
CH-08 MEMORY
ANSWER KEY
1. d 2. c 3. b 4. d 5. c
6. b 7. b 8. b 9. b 10. a
10
8
CH-08 MEMORY
10
9
CH-09 BIPOLAR JUNCTION & FIELD EFFECT TRANSISTOR
11
0
CH-09 BIPOLAR JUNCTION & FIELD EFFECT TRANSISTOR
BJT Symbol
Fig. 9.2. shows the schematic symbols for the
NPN and PNP bipolar junction transistors.
BJT Operation
Fig. 9.3. shows that base-emitter (BE) junction is forward-biased and the
base-collector (BC) junction is reverse-biased.
The free electrons of heavily doped n-type emitter region easily diffuse
through the forward-biased BE junction into the p-type base region. The base
region is lightly doped and very thin. Thus, only a small percentage of all the
electrons flowing through the BE junction can combine with the available
holes in the base. These few recombined electrons flow out of the base lead
as valence electrons, forming the small base electron current.
Rest of the electrons diffuse into the BC depletion region and are pulled
through the reverse-biased BC junction.
Fig. 9.3
The electrons now move through collector lead, into the positive terminal of
the collector voltage source. This forms the collector electron current. The
collector current is much larger than the base current.
11
1
CH-09 BIPOLAR JUNCTION & FIELD EFFECT TRANSISTOR
Hence, emitter current divides into base and collector currents. So,
IE = IB + IC
αDC
The ratio of the dc collector current (IC) to the dc emitter current (IE) is the dc
alpha (αDC). Typically, values of a αDC range from 0.95 to 0.99.
TRANSISTOR RATINGS
A transistor has limitations on its operation which are stated as maximum
ratings. Typically, maximum ratings are given for collector-to-base voltage,
11
2
CH-09 BIPOLAR JUNCTION & FIELD EFFECT TRANSISTOR
Fig. 9.4
WORKING
When a weak signal is applied to the input, a small change in signal voltage
causes a change in emitter current (say a change of 0.1V in signal voltage
causes a change of 1mA in the emitter current) because the input circuit has
very low resistance. This change is almost the same in collector current
because of the transmitter action.
In the collector circuit, a load resistor RL of high value is connected. When
collector current flows through such a high resistance, it produces a large
voltage drop across it. Thus, a weak signal (0.1V) applied to the input circuit
appears in the amplified form (10V) in the collector circuit.
11
3
CH-09 BIPOLAR JUNCTION & FIELD EFFECT TRANSISTOR
11
4
CH-09 BIPOLAR JUNCTION & FIELD EFFECT TRANSISTOR
Plot the graph between VCE and IC at different constant IB values. The Fig. 9.8
shows the input and output characteristics of common emitter configuration.
The output characteristics has three basic regions; the active, cut off, and
saturation.
INPUT CHARACTERISTICS
The input characteristics of CC configuration describe the relationship
between input current (IB) and the input voltage (VBC) with constant output
voltage (VEC).
At different output voltage levels, the graph between IB and VBC shows the
input characteristics of common collector configuration.
11
5
CH-09 BIPOLAR JUNCTION & FIELD EFFECT TRANSISTOR
OUTPUT CHARACTERISTICS
The output characteristics of CC configuration describe the relationship
between output current (IE) and the output voltage (VEC) with constant input
current (IB).
Plot the graph between VEC and IE at different constant IB values. The Fig. 9.8.
shows the input and output characteristics of common collector
configuration.
The output characteristics has three basic regions; the active, cut off, and
saturation.
TRANSISTOR AS A SWITCH
When used as an electronic switch, a transistor is normally operated
alternately in cutoff and saturation.
TRANSISTOR AS OPEN SWITCH
Fig. 9.9 (a) illustrates the basic operation of the
transistor as an open switch. The transistor is
in the cutoff region because the base-emitter
junction is not forward biased. Neglecting
leakage current, all of the currents are zero,
and VCE is equal to VCC
As we know that;
𝑉𝐶𝐸 = 𝑉𝐶𝐶 − 𝐼𝐶 𝑅𝐶
𝑉𝐶𝐸 = 𝑉𝐶𝐶
In this condition, there is, ideally, an open between collector and emitter, as
indicated by the switch equivalent.
TRANSISTOR AS CLOSE SWITCH
Fig. 9.9 (b) shows the basic operation
of the transistor as a close switch. The
transistor is in the saturation mode
because both junctions are forward-
biased. The base current is made large
enough to cause the collector current
to reach its saturation value. In this
condition, there is, ideally, a short
between collector and emitter, as
indicated by the switch equivalent.
11
6
CH-09 BIPOLAR JUNCTION & FIELD EFFECT TRANSISTOR
TRANSISTOR CLIPPER
When any input signal passes through the
transistor, from cut-off region to the active region
or from the active region to the saturation region, a
portion of the input signal will be clipped off. In the
Fig. 9.10, a circuit of transistor clipper is shown.
N CHANNEL JFET
CONSTRUCTION AND SYMBOL
Fig. 9.12(a) shows the basic structure of an n-channel JFET. The drain is at the
upper end, and the source is at the lower end. Two p-type regions are
11
7
CH-09 BIPOLAR JUNCTION & FIELD EFFECT TRANSISTOR
diffused in the N-type material to form a channel, and both p-type regions
are connected to the gate lead. For simplicity, the gate lead is shown
connected to only one of the p regions.
Fig. 9.14
11
8
CH-09 BIPOLAR JUNCTION & FIELD EFFECT TRANSISTOR
Fig. 9.15 (a) Biased Circuit (b) Family of drain characteristics curves
JFET PARAMETERS
i- Pinch Off Voltage
For VGS = 0V, the value of VDS at which ID becomes essentially constant is the
pinch-off voltage, VP.
ii- Cut Off Voltage
The value of VGS that makes ID approximately zero is called cut-off voltage,
VGS(off). VGS(off) and VP are always equal in magnitude but opposite in sign.
iii- Drain to Source Current with Gate Shorted.
IDSS is the maximum drain current that a specific JFET can produce regardless
of the external circuit, and it is always specified for VGS = 0V.
P-CHANNEL JFET
CONSTRUCTION AND SYMBOL
Fig. 9.16(a) shows the basic structure of an p-channel JFET. The drain is at the
upper end, and the source is at the lower end. Two n-type regions are
diffused in the P-type material to form a channel, and both n-type regions
are connected to the gate lead. For simplicity, the gate lead is shown
connected to only one of the n regions. The schematic symbol for p-channel
JFETs is shown in Fig(b). The arrow on the gate points "out" for p-channel
JFET.
11
9
CH-09 BIPOLAR JUNCTION & FIELD EFFECT TRANSISTOR
Fig. 9.18
12
0
CH-09 BIPOLAR JUNCTION & FIELD EFFECT TRANSISTOR
Fig. 9.19 (a) Biased Circuit (b) Family of drain characteristics curves
12
1
CH-09 BIPOLAR JUNCTION & FIELD EFFECT TRANSISTOR
Fig. 9.22
12
2
CH-09 BIPOLAR JUNCTION & FIELD EFFECT TRANSISTOR
12
3
CH-09 BIPOLAR JUNCTION & FIELD EFFECT TRANSISTOR
12
4
CH-09 BIPOLAR JUNCTION & FIELD EFFECT TRANSISTOR
Fig. 9.26
WORKING OF CMOS
In CMOS logic gates a collection of n-type MOSFETs is arranged in a pull-
down network between the output and the low voltage power supply rail
(VSS or quite often ground). Instead of the load resistor of NMOS logic gates,
CMOS logic gates have a collection of p-type MOSFETs in a pull-up network
between the output and the higher-voltage rail (often named VDD).
Thus, if both a p-type and n-type transistor have their gates connected to the
same input, the p-type MOSFET will be ON when the n-type MOSFET is OFF,
and vice-versa.
APPLICATIONS OF CMOS
CMOS technology is used for constructing integrated circuit (IC) chips,
including microprocessors, microcontrollers, memory chips (including BIOS),
and other digital logic circuits. CMOS technology is also used for analog
circuits such as image sensors, data converters, RF circuits, and highly
integrated transceivers for many types of communication.
ADVANTAGES OF CMOS
CMOS offers relatively high speed, low power dissipation, high noise margins
in both states, and will operate over a wide range of source and input
voltages (provided the source voltage is fixed).
JFET BIASING
12
5
CH-09 BIPOLAR JUNCTION & FIELD EFFECT TRANSISTOR
Self-Biasing of a JFET
A JFET must be operated such that the gate-source junction is always
reverse-biased. This condition requires a negative VGS for an n-channel JFET
and a positive VGS for a p-channel JFET. This can be achieved using the self-
bias arrangements shown in Fig. 9.27. There is no voltage drop across gate
resistor, and therefore the gate remains at 0V.
Fig. 9.27
Self-Bias Calculation
For the n-channel JFET in Fig. IS produces a voltage drop across RS.
Since IS = ID and VG = 0, then VS = IDRS. The gate-to-source voltage is
VGS = VG – VS = 0 – IDRS = - IDRS
For the p-channel; VGS = VG – VS = 0 + IDRS = + IDRS
The drain voltage is determined as follows:
VD = VDD - IDRD
The drain to source voltage is
VDS = VD – VS = VDD – ID (RD + RS)
For a desired value of VGS, ID can be determined in either of two ways: from
the transfer characteristic curve for the particular JFET or, more practically,
from following equation using IDSS and VGS (off) from the JFET data sheet.
12
6
CH-09 BIPOLAR JUNCTION & FIELD EFFECT TRANSISTOR
Q-POINT STABILITY
Suppose, a 2N5459 JFET is replaced in a given bias circuit with another
2N5459, the transfer characteristic curve can vary greatly, as illustrated in fig.
In this case, the maximum IDSS is 16 mA and the minimum IDSS is 4 mA.
Likewise, the maximum VGS (off) is -8V and the minimum VGS (off) is -2V.
Fig. 9.28
If a self-bias dc load line is drawn as illustrated in Fig. 9.25, the same circuit
using a 2N5459 can have a Q-point anywhere along the line from Q1, the
minimum bias point. to Q2, the maximum bias point. Accordingly, the drain
current can be any value between ID1 and ID2, as shown by the shaded area.
This means that the dc voltage at the drain can have a range of values
depending on ID. Also, the gate-to-source voltage can be any value between
VGS1 and VGS2 as indicated.
EXERCISE
SECTION-I (MCQ’s)
1. Lightly doped terminal of BJT is;
(a) Gate (b) Emitter (c) Collector (d) Base
2. BJT works as a switch in mode;
(a) Cut Off (b) Saturation (c) Active (d) Both a & b
3. JFET is a device which is controlled by;
(a) Voltage (b) Current (c) Frequency (d) Power
4. A JFET gate to source diode is;
(a) Forward (b) Reverse (c) Both a & b (d) None of these
5. The output is inverse of the input in amplifier;
(a) Common base (b) Common collector
(c) Common emitter (d) All of these
6. The region of transistor is moderately doped;
12
7
CH-09 BIPOLAR JUNCTION & FIELD EFFECT TRANSISTOR
ANSWER KEY
1. d 2. d 3. a 4. b 5. c
6. c 7. b 8. a 9. c 10. c
11. d 12. a 13. c
12
8
CH-09 BIPOLAR JUNCTION & FIELD EFFECT TRANSISTOR
12
9
CH-10 SPECIAL DEVICES
Objectives
At the end of this chapter, a student will be able to
Understand the characteristics and applications of Zener diode.
Understand the characteristics and applications of Optical diodes.
Understand the characteristics and application of tunnel diode.
Understand thyristor family with their applications.
Understand Uni-junction Transistor characteristics and application.
Understand properties of Photo-sensitive BJT & LASCR.
Understand optocouplers and their types.
ZENER DIODE
A Zener diode is a silicon semiconductor device that permits current to flow
in either a forward or reverse direction. The diode consists of a special,
heavily doped p-n junction, designed to conduct in the reverse direction
when a certain specified voltage is reached.
Fig. 10.1 (a) Zener diode construction (b) Zener diode symbol
13
0
CH-10 SPECIAL DEVICES
small leakage current may flow. As the reverse voltage increases to the
predetermined breakdown voltage (VZ), a current start flowing through the
diode. The current increases to a maximum, which is determined by the
series resistor, after which it stabilizes and remains constant over a wide
range of applied voltage.
The voltage point at which the voltage across the zener diode becomes
stable is called the “zener voltage”, (VZ) and for zener diodes this voltage can
range from less than one volt to a few hundred volts. This zener breakdown
voltage on the I-V curve is almost a vertical straight line.
Fig. 10.2
13
1
CH-10 SPECIAL DEVICES
Fig. 10.3
If there is no load resistance, shunt regulators can be used to dissipate total
power through the series resistance and the Zener diode.
A zener diode of break down voltage VZ is reverse connected to an input
voltage source Vi across a load resistance RL and a series resistor RS. The
voltage across the zener will remain steady at its break down voltage VZ for
all the values of zener current IZ as long as the current remains in the break
down region. Hence a regulated DC output voltage V O = VZ is obtained across
RL, whenever the input voltage remains within a minimum and maximum
voltage.
OPTICAL DEVICES
Optical devices are such devices that focuses on light emitting or light
detecting. Light-emitting devices use voltage and current to produce light.
Light-detecting devices, such as phototransistors, are designed to convert
received light energy into electric current or voltage. Following are opto-
electronic devices
Light Emitting Diode
Photo Diode
LASER Diode
Photo Transistor
Solar Cell
Light Dependent Resistor
Light Activated SCR
13
2
CH-10 SPECIAL DEVICES
Fiber Optics
Opto Coupler
APPLICATIONS OF LED’S
LED is used as a bulb in the homes and industries
LED’s are used in the motorcycles and cars
13
3
CH-10 SPECIAL DEVICES
CONSTRUCTION OF LCD
The liquid crystals are the organic compound which is in liquid form. The
layer of liquid crystals is deposited on the inner surface of glass electrodes
for the scattering of light. The liquid crystal cell is of two types; they are
Transmittive Type and the Reflective Type.
Transmittive Type – In transmittive cell both the glass sheets are transparent
so that the light is scattered in the forward direction when the cell becomes
active.
Reflective Type – The reflective type cell consists the reflecting surface of the
glass sheet on one end. The light incident on the front surface of the cell is
scattered by the activated cell.
Fig. 10.5
13
4
CH-10 SPECIAL DEVICES
their cell appears bright. This type of scattering is known as the dynamic
scattering. The construction of the dynamic scattering of the liquid crystal
cell is shown in the fig. 10.6.
Fig. 10.6
Field Effect Type
The field effect type LCD uses a transparent liquid that causes the
polarization. The light after passing through the material passing through the
optical filters and appears bright. When the cell has energised no twisting of
light occurs, and the cell appears dull.
APPLICATIONS
LCDs are commonly used for portable electronic games, in laptop computer
screen, TVs, and in cell phones.
PHOTO DIODE
A photodiode is a PN-junction diode that consumes light energy to produce
electric current. It is also called as photo-detector, a light detector, and
photo-sensor. These diodes are particularly designed to work in reverse bias
condition.
13
5
CH-10 SPECIAL DEVICES
Fig. 10.7
As the light of sufficient energy falls on the surface of the junction, then the
temperature of the junction gets increased. This causes the electron and hole
to get separated from each other. The electrons from n side gets attracted
towards the positive potential of the battery. Similarly, holes present in the p
side get attracted to the negative potential of the battery. This movement
then generates high reverse current through the device.
With the rise in the light intensity, more charge carriers are generated and
flow through the device. So, we can say the intensity of light energy is
directly proportional to the current through the device.
Fig. 10.8
13
6
CH-10 SPECIAL DEVICES
TUNNEL DIODE
The tunnel diode is a highly conductive, heavily doped PN-junction diode in
which the current induces because of the tunneling. The tunneling is the
phenomenon of conduction in the semiconductor material in which the
charge carrier punches the barrier instead of climbing through it.
Fig. 10.9
Tunnel diodes are constructed with germanium or gallium arsenide by
doping the p and n regions much more heavily than in a conventional
rectifier diode. This heavy doping results in an extremely narrow depletion
region.
13
7
CH-10 SPECIAL DEVICES
through the PN junction at very low forward-bias voltages, and the diode acts
as a conductor. This is shown in fig. between origin and point A. At point A,
the forward voltage begins to develop a barrier, and the current begins to
decrease as the forward voltage continues to increase. This is the negative-
resistance region. At point B, the diode begins to act as a conventional
forward biased diode.
Fig. 10.10
In this circuit, the resistor R1 sets proper biasing for the diode and the
resistor R2 sets proper current level for the tank circuit. The parallel
combination of resistor RP inductor L and capacitor C form a tank circuit,
which resonates at the selected frequency.
When the switch S is closed, the circuit current rises immediately towards
the constant value, whose value is determined by the value of resistor R and
the diode resistance. However, as the voltage drop across the tunnel diode
VD exceeds the peak-point voltage VP, the tunnel diode is driven into negative
resistance region.
In this region, the current starts decreasing, till the voltage V D becomes equal
to the valley point voltage Vv. At this point, a further increase in the voltage
VD drives the diode into positive resistance region. As a result of this, the
circuit current tends to increase. This increase in circuit will increase the
voltage drop across the resistor R which will reduce the voltage VD.
LASER DIODE
13
8
CH-10 SPECIAL DEVICES
13
9
CH-10 SPECIAL DEVICES
stimulate the excited electrons to recombine with holes even before their
recombination time. This results in the release of more photons that are in
exact phase with the initial photons and so the output gets amplified
resulting in a bright monochromatic coherent light.
THYRISTOR
The P-N-P-N devices with zero, one or two gates constitute the basic
thyristor. The thyristor family members include diac, triac, SCR (silicon-
controlled rectifier), Shockley diode, SCS (silicon-controlled switch), SBS
(silicon bilateral switch), SUS (silicon unilateral switch), LASCR (light activated
SCR), LAS (light activated switch) and LASCS (light activated SCS).
14
0
CH-10 SPECIAL DEVICES
The two-transistor equivalent circuit shows that the collector current of the
NPN transistor TR2 feeds directly into the base of the PNP transistor TR1,
while the collector current of TR1 feeds into the base of TR2.
14
1
CH-10 SPECIAL DEVICES
Fig. 10.13
SCR APPLICATIONS
Due to the wide variety of advantages, makes the SCR to be used in a variety
of applications. These applications include switching, rectification, regulation,
protection, etc. The SCRs are used for home appliance control include
lighting, temperature control, fan speed regulation, heating, and alarm
activation. For industrial applications, SCRs are used to control the motor
speed, battery charging and power conversions.
PHASE-CONTROL OF AN SCR
In ac circuits the SCR can be turned-on by the gate at any angle. This angle θ
is called the firing angle and power control is obtained by varying the firing
angle. This is known as phase control. A basic AC phase-control circuit can be
constructed as shown in fig. 10.14.
During the positive half-cycle, capacitor
charges up via resistor R1 following the AC
supply voltage. The Gate is activated only
when the voltage at point A has risen
enough to cause the trigger diode D1, to
conduct and the capacitor discharges into
the Gate of the thyristor turning it “ON”.
The time duration in the positive half of the
cycle at which conduction starts is Fig. 10.14
controlled by RC time constant set by the variable resistor, R1.
14
2
CH-10 SPECIAL DEVICES
Increasing the value of R1 has the effect of delaying the triggering voltage and
current supplied to the thyristors Gate which in turn causes a lag in the
device’s conduction time. As a result, the fraction of the half-cycle over
which the device conducts can be controlled between 0 and 180 degree.
14
3
CH-10 SPECIAL DEVICES
DIAC
A DIAC is a diode that conducts electrical current only after its breakover
voltage (VBO) has been reached. DIAC stands for “Diode for Alternating
Current”. A DIAC has two electrodes, and it is a member of the thyristor
family. DIACs are used in the triggering of thyristors.
DIAC SYMBOL
The DIAC is a combination of two diodes
in parallel, one in forward bias and the
other one is in reverse bias condition with
respect to both sides. DIAC is a specially
constructed diode, which allows current
to pass in both directions when certain Fig. 10.17
conditions are met. The fig. 10.17. shows a
symbol of a DIAC, which resembles the connection of two diodes in parallel.
DIAC CONSTRUCTION
the DIAC construction has two main terminals, Anode 1,
and Anode 2. The DIAC construction uses two P-type
materials and three N-type materials without the gate
terminal as shown in fig. 10.18. Three N-type regions are
shown with the name of n1, n2, and n3. P-type regions are
shown as p1 and p2.
14
4
CH-10 SPECIAL DEVICES
Fig. 10.19
TRIAC
Triac is a three terminal AC switch which can conduct in both the directions
that is whether the applied gate signal is positive or negative, it will conduct.
TRIAC stands for “Triode for Alternating Current” This device can be used for
AC systems as a switch.
14
5
CH-10 SPECIAL DEVICES
The construction, P-N doping and schematic symbol used to represent a triac
is shown in fig. 10.20. It consists of three terminals namely, main terminal
1(MT1), main terminal 2(MT2), and gate terminal G. Two SCRs are connected
in inverse parallel with gate terminal as common. Gate terminals is
connected to both the N and P regions due to which gate signal may be
applied which is irrespective of the polarity of the signal. TRIAC works for
both the polarities which means that device is bilateral.
Fig. 10.20
OPERATION OF TRIAC
There are four different modes of operations.
1. When MT2 and Gate being Positive with respect to MT1, current flows
through the path P1-N1-P2-N2. Here, P1-N1 and P2-N2 are forward
biased but N1-P2 is reverse biased. The triac is said to be operated in
positively biased region. Positive gate with respect to MT1 forward
biases P2-N2 and breakdown occurs.
2. When MT2 is Positive but Gate is Negative with Respect to MT1. The
current flows through the path P1-N1-P2-N2. But P2-N3 is forward
biased and current carriers injected into P2 on the triac.
3. When MT2 and Gate are Negative with Respect to MT1
Current flows through the path P2-N1-P1-N4. Two junctions P2-N1 and
P1-N4 are forward biased but the junction N1-P1 is reverse biased. The
triac is said to be in the negatively biased region.
4. When MT2 is Negative but Gate is Positive with Respect to MT1. P2-N2
is forward biased at that condition. Current carriers are injected so
the triac turns on.
14
6
CH-10 SPECIAL DEVICES
Fig. 10.21
Fig. 10.22
The discharge produces a sudden pulse of current, which fires the triac into
conduction. The phase angle at which the triac is triggered can be varied
using VR1, which controls the charging rate of the capacitor. Resistor, R1
limits the gate current to a safe value when VR1 is at its minimum. Once the
triac has been fired into conduction, it is maintained in its “ON” state.
At the end of the half cycle the supply voltage falls to zero, reducing the
current through the triac below its holding current, IH turning it “OFF” and
the DIAC stops conduction. The supply voltage then enters its next half-cycle,
the capacitor voltage again begins to rise (this time in the opposite direction)
14
7
CH-10 SPECIAL DEVICES
and the cycle of firing the triac repeats over again. TRIAC conduction
waveform is shown in fig. 10.23.
Fig. 10.23
Fig. 10.24
We can see from the equivalent circuit above, that the N-type channel
basically consists of two resistors RB2 and RB1 in series with an equivalent
diode. RB1 is given between the emitter, E and terminal B1, while RB2 is given
between the emitter, E and terminal B2. The total resistance of the silicon bar
can be represented by RBB.
UJT OPERATION
14
8
CH-10 SPECIAL DEVICES
Suppose a voltage VBB is applied across the UJT between B2 and B1 so that B2
is biased positive relative to B1. With zero Emitter input applied, the voltage
developed across RB1 can be calculated as:
𝑅𝐵1
𝑉𝑅𝐵1 = × 𝑉𝐵𝐵
𝑅𝐵1 + 𝑅𝐵2
For a unijunction transistor, the resistive ratio of RB1 to RBB is called the
intrinsic stand-off ratio and is given the Greek symbol: η (eta). Typical
standard values of η range from 0.5 to 0.8 for most common UJT’s.
If a small positive input voltage which is less than ηV BB is now applied to the
emitter input terminal, the diode p-n junction is reverse biased, thus offering
a very high impedance and the device does not conduct. The UJT is switched
“OFF” and zero current flows.
However, when the emitter input voltage is increased and becomes greater
than VP (ηVBB + 0.7V), the p-n junction becomes forward biased and the
unijunction transistor begins to conduct. The result is that emitter current,
now flows from the emitter into the base region.
The effect of the additional emitter current flowing into the base reduces the
resistive portion of the channel between the emitter junction and the B 1
terminal. The effect of this results in a negative resistance at the emitter
terminal.
14
9
CH-10 SPECIAL DEVICES
Fig. 10.25
OSCILLATOR OPERATION
Initially, UJT is “OFF” and the capacitor C1 is fully discharged. When a voltage
(Vs) is applied, capacitor begins to charge up exponentially through resistor
R3. As the capacitor voltage becomes greater than the peak voltage, the p-n
junction behaves as a normal diode and becomes forward biased triggering
the UJT into conduction. The unijunction transistor is “ON”. As the ohmic
value of resistor R1 is very low, the capacitor discharges rapidly through the
UJT and a fast-rising voltage pulse appears across R1.
Fig. 10.26
When the voltage across the capacitor decreases below the holding point of
the p-n junction (VOFF), the UJT turns “OFF” and no current flows into the
Emitter junction so once again the capacitor charges up through resistor R 3
and this charging and discharging process between V ON and VOFF is constantly
repeated while there is a supply voltage, Vs applied.
15
0
CH-10 SPECIAL DEVICES
Fig. 10.27
PHOTO TRANSISTOR
The phototransistor is a three-layer semiconductor device which has a light-
sensitive base region. The base senses the light and converts it into the
current which flows between the collector and the emitter region.
15
1
CH-10 SPECIAL DEVICES
PHOTO DARLINGTON
In photodarlington, the two transistors connected back to
back through the base shown in the fig. 10.29. In this
arrangement, the phototransistor induces much higher
power, i.e., their sensitivity rises.
Fig. 10.29
LIGHT OPERATED RELAY
When there is enough light falling on the
phototransistor Q1, it turns ON and provides a
base current to transistor Q2. As a result, Q2 is
turned ON and the relay is energized.
LASCR CONSTRUCTION
The LASCR is a semiconductor electronic switch which has a lens that focuses
light on its gate. If sufficient light does not fall on the LASCR then it remains
in off state. The basic construction of light activated silicon-controlled
rectifier (LASCR) is shown in the fig. 10.30.
Fig. 10.30
WORKING OF LASCR
The incident photons will generate electron hole pairs, when light is focused
on LASCR. The number of optically generated electron hole pairs is
proportional to the intensity of light. These electrons will constitute a gate
current for LASCR and due to the internal current multiplication, the LASCR is
15
2
CH-10 SPECIAL DEVICES
latched into ON state. The LASCR is most sensitive to light when its gate
terminal is left open. Its sensitivity can be reduced and controlled to some
extent by inserting a resistor between its gate and cathode terminals.
Sometimes a combination of both light source and gate signal is used to
trigger an SCR. For this, the gate is biased with voltage or current slightly less
than that required to turn it on.
The LASCR will remain ON until the polarities of the anode and cathode are
reversed or the power is cut.
OPTO COUPLER
An Optocoupler, is an electronic component that interconnects two separate
electrical circuits by means of a light sensitive optical interface.
CONSTRUCTION OF OPTOCOUPLER
The basic design of an optocoupler, also known as an Opto-isolator, consists
of an LED that produces infra-red light and a semiconductor photo-sensitive
device which can be a single photo-diode, photo-transistor, photo-resistor,
photo-SCR, or a photo-TRIAC that is used to detect the emitted infra-red
beam. Both the LED and photo-sensitive device are enclosed in a light-tight
body or package with metal legs for the electrical connections as shown in
fig. 10.31.
Fig. 10.31
WORKING
Current from the source signal passes through the input LED which emits an
infra-red light whose intensity is proportional to the electrical signal. This
emitted light falls upon the base or gate of the photo-sensitive device,
causing it to switch-ON and conduct in a similar way to a normal bipolar
transistor.
OPTOCOUPLER TYPES
Optocouplers are available in four general types, each one having an infra-
red LED source but with different photo-sensitive devices. The four
15
3
CH-10 SPECIAL DEVICES
Fig. 10.32
APPLICATIONS OF OPTOCOUPLER
Optocouplers can either be used on their own as a switching device, or used
with other electronic devices to provide isolation between low and high
voltage circuits. You’ll typically find these devices being used for:
Microprocessor input/output switching
DC and AC power control
Communications equipment protection
Power supply regulation
EXERCISE
SECTION-I (MCQ’s)
1. In zener diode, zener voltage depend on;
(a) Voltage (b) Current (c) Doping level (d) Impedance
2. If the load resistance decreases in a Zener regulator, the Zener current;
(a) Decreases (b) Increases (c) Remains constant (d) Both a & b
3. A thyristor is a semiconductor device which has;
(a) 2 layers (b) 3 layers (c) 2 PN junctions (d) 3 PN junctions
4. A light emitting diode emits light when;
(a) Forward biased (b) Reverse biased (c) Un-biased (d) Breakdown
5. Uni junction transistor have terminals;
(a) Base, Collector, Emitter (b) Gate, Drain, Source
(c) Base1, Base2, Emitter (d) Gate, Anode, Cathode
6. Tunnel diode is also called;
(a) PIN diode (b) Shockley diode (c) LASER diode (d) Esaki diode
7. If there is no light on photodiode, a very small current flows termed as;
(a) Light current (b) Bright current (c) Dark current (d) Forward current
8. The characteristic of negative resistance is not found in device;
15
4
CH-10 SPECIAL DEVICES
ANSWER KEY
1. c 2. a 3. d 4. a 5. c
6. d 7. c 8. d 9. a 10. c
11. c 12. b 13. c 14. b
15
5
CH-10 SPECIAL DEVICES
15
6