ECE Notes
ECE Notes
2
Syllabus:
Module-I: (Analog Electronics) 10 Hrs
Part-1: Introduction to electronic Systems
Part-2: Diode circuit models and Applications: - Introduction to circuit models, Clippers and
Clampers.
Part-3: Transistors –BJT and MOSFET: - BJT construction and operation, BJT configurations, BJT
current components BJT characteristics, Transistor as an amplifier and switch, MOSFET.
Module-II: (Digital Electronics Fundamentals) 10 Hrs
Part-1: Brief on Digital Electronics: - Review of logic gates, Number systems
Part-2: Combinational Circuits: - Combinational logic (4 variables K-map), Flip flops (T, D, JK),
Counters and Registers
Part-3: Data Converters: - Digital-to-Analog Converter (DAC), Analog-to-Digital Converter (ADC).
Module-III (Special Topic in Electronics) 16 Hrs
Part-1: Operational Amplifier (Op-amp) and application: - Op-amp: Introduction, Internal Block
diagram of Op-amp, Op-amp Characteristics
Part-2: Linear operations using Op-amp:- Inverting amplifier, Non-inverting Amplifier, Voltage
follower, Summing and Difference amplifier, Integrator and Differentiator, Comparator
Part-3: Miscellaneous Electronic Devices:- SCR, LED, Photodiode, Laser, Solar Cells, Opto-Couplers.
Part-4: Sensors:- Introduction and describing sensor performance, Temperature sensors, Light sensors,
Force sensors, Displacement sensors, Motion sensors, Sound sensors, Sensor interfacing.
Part-5: Introduction to basic Communication systems/principles: Fundamentals of Analog
communication (AM, FM), Introduction to digital communication (Sampling, PAM, PCM, PPM,
PWM, Modulation and demodulation techniques ), Communication Networks, Introduction to Mobile
Communication 3
Course Outcomes:
4
Suggested Readings
1. S. Sedra and K. C. Smith, Microelectronic Circuits, Oxford University Press
2. D. A. Neamen, Microelectronics Circuit Analysis and Design, The McGraw
Hill Companies
3. Boylestad, Robert L., Louis Nashelsky, Electronic Devices and Circuit,
Pearson
4. M. M. Mano, M. D. Ciletti, Digital Design, PHI
5. S Haykin, Communication Systems, John Wiley & Sons Inc.
5
Grading…..
6
Electronic Devices
Digital Computers
7
Applications
10
Mercury Thermometer Digital Thermometer
Data ??
Information in the form of numbers, text, audio, and video
In digital system all the data is in the form of binary number 11
Why Binary Number
• Digital components/circuits are made up of transistors (MOS
transistors) which acts like switch: ON and OFF states
– Two states of switch → binary numbers (logic 1 and logic 0)
– Different conventions for switch ON and OFF states
• ON = 1, OFF = 0
• Low voltage = 0, high voltage = 1
• No current = 0, flow of current = 1
• No light = 0 and light = 1
• True = 1 and False = 0
http://iamtechnical.com/sites/default/files/2n
7000-mosfet-as-a-switch.gif 12
Example: Digital Computer which receives data (input data), stores and
processes it, and produces data (output data)
Data: numbers, text, audio, and video in the form of binary numbers (string
of 0s and 1s), 2 digits = 0, 1. Ex.: 1001
14
Decimal number system
10 digits = 0,1,2,3,4,5,6,7,8,9
Weighted/positional number system
A weight is associated to every digit position hence the digit position is important
Ex.: (125.25)10=base or radix
1 2 5 .2 5
weight = (r=10) no. position 102 101 100 10-1 10-2
∑ (digit×weight) 1×102 2×101 5×100 2×10-1 5×10-2
(125.25)10 100 20 5 .2 .05
----------------------------------------------------------------------------------------------------
Binary number system
(decimal representation of binary number)
2 digits = 0,1
Ex.: (101.01)2 1 0 1 .0 1
weight = (r=2) no. position 22 21 20 2-1 2-2
∑ (digit×weight) 1×22 0×21 1×20 0×2-1 1×2-2
(5.25)10 4 0 1 .0 .25
B H D B H D
0000 0 0 1000 8 8
0001 1 1 1001 9 9
0010 2 2 1010 A 10
0011 3 3 1011 B 11
0100 4 4 1100 C 12
0101 5 5 1101 D 13
0110 6 6 1110 E 14
0111 7 7 1111 F 15 18
Base conversion
Binary ↔ decimal
Hexadecimal ↔ binary
Hexadecimal ↔ decimal
Octal to decimal and binary
Binary Subtraction
Ex. 10100101 − 1010111 = ?
0-0=0 165 − 87 = 78
0-1=1 (difference 1, borrow 1)
1-0=1
1-1=0
Ex. 1110 − 111 = 111 ← Binary, difference=111
14 − 7 = 7 ← Decimal
Signed number
• MSB (most significant bit) indicates sign
• (0: +ve, 1: −ve) n=4 bits
B D B D
1 0 1 0 0000 +0 1000 −0
MSB LSB 0001 +1 1001 −1
0010 +2 1010 −2
• Drawbacks:
• Different representa on for +0 and −0 0011 +3 1011 −3
• Out of n-bits only n-1 bits indicate 0100 +4 1100 −4
magnitude 0101 +5 1101 −5
• Range of numbers: −(2n−1-1) to +(2n−1-1) 0110 +6 1110 −6
0111 +7 1111 −7
21
1’s (ones) complement
• +ve numbers are same as signed number (MSB represent sign)
• −ve numbers are represented in 1’s complement
Complement of every bit of given number
MSB indicate sign of the number
Ex. 1’s complement of 4 is −4
4 = 0 1 0 0 → complement → 1 0 1 1 = −4 n=4 bits
2’s
2. Follow this video lecture:
https://youtu.be/FG_8T1jUTVU?list=PLbRMhDVUMngfV8C6ElNAUaQQz06wEhF
M5&t=1615
25
Solve the following problems:
26
To simplify the problem of communication between human and machine, several codes
have been devised in which decimal digits are represented by sequences of binary
digits.
Decimal 0 1 2 3 4 5 6 7 8 9
BCD 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001
27
Excces-3
Non-weighted binary code
Decimal BCD Excess-3
Excess-3 : BCD + 0011 (add 3)
0 0000 0011
Used in early computers
1 0001 0100
2 0010 0101
Ex. Excess-3 of 5 is its BCD+3
3 0011 0110
BCD of 5 = 0101
4 0100 0111
0 1 0 1 5 5 0101 1000
+ 0 0 1 1 OR + 3 6 0110 1001
1 0 0 0 8 7 0111 1010
8 1000 1011
9 1001 1100
28
Recap: Number System
Binary
Decimal
Hexadecimal
Binary arithmetic: Addition, Subtraction, 1’s and 2’s complement
BCD
Excess-3 code
Number system conversion
− One of the main objective of this subject is to understand the design of basic
circuits which operates on the binary number
− These circuits are known as logic/switching circuits
29
Logic Gate
− Logic Gates are the primary building blocks of logic/switching circuits
− Transistor with binary voltage (0 and 5 Volts) acts as switch
− Transistor are the basic building blocks of logic gates and hence digital circuits
− Logic behind the logic gates can be described using switch
Switch open:
• Current does not flows
through circuit and bulb does
not glow
• No current, No light, Logic 0
Switch closed:
• Current flows through circuit
and bulb glows
• Current, Light, Logic 1
31
NOT Gate
Also known as Inverter
Single input, x and single output z
z = x’ Truth Table
x z=x’
x z 0 1
1 0
NOT gate symbol
https://circuitglobe.com/wp-content/uploads/2015/12/NOT-GATE-FIG-6-compressor.jpg
https://www.allaboutcircuits.com/textbook/digital/chpt-3/dip-gate-packaging/
32
AND Gate
AND operation is represented by dot (∙)
Many inputs (two) x, y and single output z
Output is 1 only when all the inputs are 1
otherwise 0
Series connection of switches
OR gate symbol
Truth Table
x y z=x+y
0 0 0
0 1 1
1 0 1
https://circuitdigest.com/sites/default/files/inlineimages 1 1 1
/74LS32-Pinout.gif 34
NAND Gate
NAND operation is complement (inverse) of
AND operation
Many inputs (two) x, y and single output z
Output is 0 only when all the inputs are 1
otherwise 1
x
y https://androiderode.com/wp-
content/uploads/2013/05/NAND_animation-
androiderode1.gif
NAND gate symbol
Truth Table
x y
0 0 1
0 1 1
1 0 1
1 1 0
35
NOR Gate
NOR operation is complement (inverse) of OR operation
Many inputs (two) x, y and single output z
Output is 1 only when all the inputs are 0 otherwise 0
x
y
NOR gate symbol
Truth Table
x y
0 0 1
0 1 0
1 0 0
1 1 0
36
Ex-OR Gate
Exclusive OR (Ex-OR) operation is denoted by
Many inputs (two) x, y and single output z
x
z = x y = (x y)’
y
Ex-NOR gate symbol
Truth Table
x y
0 0 1
0 1 0
1 0 0
https://fromreadingtable.com/wp- 1 1 1
content/uploads/2017/10/XNOR-gate-IC.jpg
38
AND, OR and NOT gates are primary gates
NAND, NOR, Ex-OR and Ex-NOR are derived from primary gates
NAND and NOR are known as universal gates because all logic operations
can be performed through only NAND or NOR gates
39
Boolean Algebra
Boolean Algebra: Algebraic expression of logical variables and constants
(binary digits) related by logical operators (AND, OR, NOT, …….) which define a
digital circuit.
Ex.
Here,
A, B are input variables and Out is output variable
40
http://pubs.sciepub.com/jcsa/1/1/3/image/fig3.png
Q. Draw the logic diagram and truth table to implement following
Boolean expressions:
(i) u+x+x'(u+y')
(ii) u(x z)+y'
(iii) (u y)'+x
41
Q. Write Boolean expressions, construct the truth tables and draw
timing diagram describing the outputs of the given circuits
42
Q. Write Boolean expressions, construct the truth tables and draw
timing diagram describing the outputs of the given circuits
43
Basic Laws of Boolean Algebra
• Basic identities • Involution law
• Cumulative law
• Idempotent law
• Associative law
44
Basic Laws of Boolean Algebra
• Principle of duality
• Interchange AND and OR
• Interchange 0 and 1
Ex. is dual of
Ex. is dual of
Q. Simplify F = x’y+y’z’+xy+y’z
Q. Simplify F = x’y’z + xyz + x’yz + xy’z
45
DeMorgan’s Theorem
Q. Simplify F = (x+y)’(x’+y’)
Q. Simplify F = (xy’+x’y)’
Q. Simplify F = (wxy’+z)’+(wx’+xy’)’
Q. Simplify F = (xyz)’(x+z)(x+z’)
Q. Find complement of xy’z+x’yz+xyz
Q. Design the logic circuit and list the truth table of the function F = xz+xy’+yz’
Q. Given two 8-bit string A = 10110101 and B = 11101001 perform following
logical operations (a) AND (b) XOR and (c) NOT A
46
• AND and OR logic can be converted to each other with the help of NOT
• For this conversion invert inputs and outputs
x y x’ y’ (x’y’)’ =
x (x’)’+(y’)’ = x+y
x+y 0 0 1 1 0
y 0 1 1 0 1
1 0 0 1 1
1 1 0 0 1
48
Decimal Binary Gray
0 0000 0000
One bit change
1 0001 0001
One bit change
2 0010 0011
3 0011 0010 • Across successive codes only one bit
4 0100 0110 change the state → Cyclic code
5 0101 0111 Gray → Binary
6 0110 0101 G3 G2 G1 G0 → B3 B2 B1 B0
7 0111 0100 B3 = G 3
8 1000 1100 B2 = B3 G2 Q. Convert the Gray
9 1001 1101 B1 = B2 G1 01011001 to binary
10 1010 1111
B0 = B1 G0
11 1011 1110
12 1100 1010
13 1101 1011
14 1110 1001
15 1111 1000 https://blogmedia.testbook.com/blog/wp-
49
content/uploads/2015/11/Conversion-from-Gray-Code-to-Binary-Code.png
2-bit 3-bit 4-bit
00 0 00 0 000
01 0 01 0 001
Illustration of self-reflection 11 0 11 0 011
property of Gray code 10 0 10 0 010
1 10 0 110
1 11 0 111
1 01 0 101
1 00 0 100
1 100
1 101
1 111
1 110
1 010
1 011
1 001
1 000 50
NAND and NOR Implementation
The NAND/NOR gate → universal gate because any logic circuit can be
implemented with it
Digital circuits → constructed with NAND or NOR gates rather than with AND
and OR gates
A convenient way to implement a Boolean function with NAND/NOR gates is
to obtain the simplified Boolean function in terms of Boolean operators and
then convert the function to NAND/NOR logic.
NAND and NOR are dual of each other → DeMorgan’s Theorem
(xyz)’ = x’+y’+z’
(x+y+z)’ = x’y’z’
51
NAND implementation of different logic gate
NOT (Inverter)
AND
OR
NOR
52
Implementation of Boolean functions with NAND gates requires that the
functions be in sum-of-products form
53
Ex. F = AB+CD → SOP
AND-OR Realization
z’ F = xy’+x’y+z F = ((xy’)’(x’y)’z’)’
= xy’+x’y+z
ii) F = A(CD+B)+BC’
CD
CD+B
(CD+B)A
BC’
F = A(CD+B)+BC’
(CD)’
CD+BC’
((CD+BC’)A)’
(BC’)’
F = (CD+BC’)A+BC’55
iii) F = (AB’+A’B)(C+D’)
AB’
AB’+A’B
A’B
C+D’ F= (AB’+A’B)(C+D’)
(AB’)’
AB’+A’B
(A’B)’
C+D’ F= (AB’+A’B)(C+D’)
56
iv) Ex-OR using NAND gate, F = x y = xy’+x’y
xy’
= xy’+x’y
x’y
(xy)’ = ((x’+y)(x+y’))’
= (x’+y)’+(x+y’)’ = xy’+x’y
((xy)’y)’ = (xy+y’) = x+y’
4 NAND gates are required for the design of Ex-OR using NAND gate
57
NOR implementation of different logic gate
Implementation of Boolean functions with NOR gates requires that the
functions be in product-of-sum (POS) form
(x+y+z)’ = x’y’z’
i) F = (A+B)(C+D)E ← POS
= (A+B)(C+D)E
E’
AB’
(AB’+A’B)’
= (AB’+A’B)(C+D’)
A’B
(C+D’)’
Minterm and Maxterm
Literals: logic variable in uncomplemented or complemented form
Ex. x, x’, y, y’ in any Boolean expression (switching function)
For an n-variable Boolean expression, F(x1,x2,x3……xn)
Minterm: Product term (AND operation) of all the n literal
either uncomplemented → 1 or complemented → 0
Ex. x1x2x3……xn
Maxterm: Sum term (OR operation) of all the n literals
either uncomplemented → 0 or complemented → 1
Ex. x1+x2+x3+……+xn
Minterms Maxterms
Ex. Two variable (x and y) has 22 (Product Terms) (Sum Terms)
possible minterms/maxterms 0 0 x’y’ m0 0 0 x+y M0
Each minterm is complement 0 1 x’y m1 0 1 x+y’ M1
to corresponding maxterms
1 0 xy’ m2 1 0 x’+y M2
and vice-versa.
1 1 xy m3 1 1 x’+y’ M3
Any Boolean expression can be expressed either as sum of minterms (i.e., sum of product, SOP) or
as product of maxterms (i.e., product of sum, POS) → Canonical forms/ unique representa on 62
Sum of Minterm/Sum of Products (SOP)
AND-OR realization
S(x,y,z) = x y z
= (x’y+xy’) z
= x’y’z + x’yz’ + xy’z’ + xyz
= 001 + 010 +100 +111 Truth Table
= m1 + m2 + m4 +m7
x y z minterm
m S
= ∑m(1,2,4,7)
= ∑(1,2,4,7) 0 0 0 x’y’z’ 0 0
0 0 1 x’y’z 1 1
0 1 0 x’yz’ 2 1
0 1 1 x’yz 3 0
1 0 0 xy’z’ 4 1
1 0 1 xy’z 5 0
1 1 0 xyz’ 6 0
1 1 1 xyz 7 1
63
Product of Maxterm/Product of sum
OR-AND realization
S(x,y,z) = (x+y+z).(x+y’+z’).(x’+y+z’).(x’+y’+z)
= (0+0+0).(0+1+1).(1+0+1).(1+1+0)
Truth Table = M0∙M3∙M5∙M6
M x y z S = ∏M(0,3,5,6)
= ∏(0,3,5,6)
0 0 0 0 0
1 0 0 1 1
2 0 1 0 1
3 0 1 1 0
4 1 0 0 1
5 1 0 1 0
6 1 1 0 0
7 1 1 1 1
65
Each minterm is complement to corresponding maxterms and vice-versa.
m’ = M
SOP: S= ∑(1,2,4,7)
Complement
S’= ∑(0,3,5,6) = m0 + m3 + m5 +m6 = x’y’z’+x’yz+xy’z+xyz’
POS: S = ∏(0,3,5,6)
Variables: 2
Variables: 3
Minterms: 4
Minterms: 8
Variables: 4
Source: Digital Design, pp. 74- , Morris Mano Minterms: 16 70
Two variables K-map
x
y
Ex-NOR gate
F(x,y,z) = z’+x’y
F(x,y,z) = z 72
Four variables K-map
i) F(w,x,y,z) = ∑(0,1,2,4,5,6,8,9,12,13,14)
F(w,x,y,z) = y’+w’z’+xz’
73
ii) F(w,x,y,z) = ∑(4,5,8,12,13,14,15)
F(w,x,y,z) = wx+xy’+wy’z’
F(w,x,y,z) = xz+wxy’+w’xy+w’y’z+wyz
74
iv) F(w,x,y,z) = ∑(5,6,9,10)
F(w,x,y,z) =w’xy’z+w’xyz’+wx’y’z+wx’yz’
75
v) F(w,x,y,z) = ∑(0,4,5,7,8,9,13,15)
F(w,x,y,z) = w’x’+yz
F(w,x,y,z) = w’z+yz
78
ii) The segment a of seven segment
display is activated for the digits
0,2,3,5,6,7,8,9. Derive SOP
expression for segment a
79
iii) Design BCD to Excess-3 converter
F0 (w,x,y,z) = ∑(0,2,4,6,8)
F1 (w,x,y,z) = ∑(0,3,4,7,8)
F2 (w,x,y,z) = ∑(1,2,3,4,9)
F4 (w,x,y,z) = ∑(5,6,7,8,9) F2 (w,x,y,z) = xy’z’+x’z+x’y F3 (w,x,y,z) = w+xy+xz
d(w,x,y,z) = ∑d(10,11,12,13,14,15) 80
Design BCD to Excess-3 converter
F0 (w,x,y,z) = z’
F1 (w,x,y,z) = y’z’+yz
F2 (w,x,y,z) = xy’z’+x’z+x’y
F3 (w,x,y,z) = w+xy+xz
81
POS simplification using K-map Truth Table
wxyz m F F’
i) F(w,x,y,z) = ∑(0,1,2,5,8,9,10)
0000 m0 1 0
Method 1: using complemented minterms
0001 m1 1 0
F’(w,x,y,z) = ∑(3,4,6,7,11,12,13,14,15)
0010 m2 1 0
0011 m3 0 1
0100 m4 0 1
0101 m5 1 0
0110 m6 0 1
0111 m7 0 1
1000 m8 1 0
1001 m9 1 0
1010 m10 1 0
1011 m11 0 1
1100 m12 0 1
F’(w,x,y,z) = wx +yz+xz’
Take complement 1101 m13 0 1
(F’(w,x,y,z))’ = (wx+yz+xz’)’ 1110 m14 0 1
F(w,x,y,z) = (w’+x’)(y’+z’)(x’+z) 1111 m15 0 182
POS simplification using K-map Truth Table
wxyz Maxterm M F
i) F(w,x,y,z) = ∑(0,1,2,5,8,9,10)
0000 w+x+y+z M0 1
Method 2: using maxterms
0001 w+x+y+z’ M1 1
F(w,x,y,z) = ∏(3,4,6,7,11,12,13,14,15)
0010 w+x+y’+z M2 1
0011 w+x+y’+z’ M3 0
0100 w+x’+y+z M4 0
0101 w+x’+y+z’ M5 1
0110 w+x’+y’+z M6 0
0111 w+x’+y’+z’ M7 0
1000 w’+x+y+z M8 1
1001 w’+x+y+z’ M9 1
1010 w’+x+y’+z M10 1
1011 w’+x+y’+z’ M11 0
1100 w’+x’+y+z M12 0
F(w,x,y,z) = (w’+x’)(y’+z’)(x’+z)
1101 w’+x’+y+z’ M13 0
Draw the logic diagram (OR-AND realization) for it 1110 w’+x’+y’+z M14 0
1111 w’+x’+y’+z’ M15 0
ii) F(w,x,y,z) = ∏(1,4,5,6,11,12,13,14,15)
F(w,x,y,z) =(w’+x’)(x’+z)(w+y+z’)(w’+y’+z’)
84
iii) F(w,x,y,z) = ∏(0,1,2,3,4,7,8,11,12,13,14,15)
F(w,x,y,z) =(w+x)(w’+x’)(y+z)(y’+z’)
Note: Refer Book: Digital Fundamental by Thomas L Floyd for more details 85
POS simplification using K-map Truth Table
wxyz m F F’
i) F(w,x,y,z) = ∑(0,1,2,5,8,9,10)
0000 m0 1 0
Method 1: using complemented minterms
0001 m1 1 0
F’(w,x,y,z) = ∑(3,4,6,7,11,12,13,14,15)
0010 m2 1 0
0011 m3 0 1
0100 m4 0 1
0101 m5 1 0
0110 m6 0 1
0111 m7 0 1
1000 m8 1 0
1001 m9 1 0
1010 m10 1 0
1011 m11 0 1
1100 m12 0 1
F’(w,x,y,z) = wx +yz+xz’
Take complement 1101 m13 0 1
(F’(w,x,y,z))’ = (wx+yz+xz’)’ 1110 m14 0 1
F(w,x,y,z) = (w’+x’)(y’+z’)(x’+z) 1111 m15 0 182
POS simplification using K-map Truth Table
wxyz Maxterm M F
i) F(w,x,y,z) = ∑(0,1,2,5,8,9,10)
0000 w+x+y+z M0 1
Method 2: using maxterms
0001 w+x+y+z’ M1 1
F(w,x,y,z) = ∏(3,4,6,7,11,12,13,14,15)
0010 w+x+y’+z M2 1
0011 w+x+y’+z’ M3 0
0100 w+x’+y+z M4 0
0101 w+x’+y+z’ M5 1
0110 w+x’+y’+z M6 0
0111 w+x’+y’+z’ M7 0
1000 w’+x+y+z M8 1
1001 w’+x+y+z’ M9 1
1010 w’+x+y’+z M10 1
1011 w’+x+y’+z’ M11 0
1100 w’+x’+y+z M12 0
F(w,x,y,z) = (w’+x’)(y’+z’)(x’+z)
1101 w’+x’+y+z’ M13 0
Draw the logic diagram (OR-AND realization) for it 1110 w’+x’+y’+z M14 0
1111 w’+x’+y’+z’ M15 0
ii) F(w,x,y,z) = ∏(1,4,5,6,11,12,13,14,15)
F(w,x,y,z) =(w’+x’)(x’+z)(w+y+z’)(w’+y’+z’)
84
iii) F(w,x,y,z) = ∏(0,1,2,3,4,7,8,11,12,13,14,15)
F(w,x,y,z) =(w+x)(w’+x’)(y+z)(y’+z’)
Note: Refer Book: Digital Fundamental by Thomas L Floyd for more details 85
Combinational Circuits
• It consists of logic gates whose outputs at any time depends only on the present
combination of inputs → no feedback paths or memory elements
Feedback path is a connection from the output of a gate to the input of
same/previous gate
• Its operation can be specified logically by a set of Boolean functions → Each
output variable is logical function of input variables
x Truth Table
S
Inputs HA Outputs m x+y C S
y C 0 0+0 0 0
1 0+1 0 1
S(x,y) = ∑(1,2) = 01+10 = x’y+xy’ = x y 2 1+0 0 1
C(x,y) = ∑(3) = 11 = xy 3 1+1 1 0
NAND implementation of Half-Adder
x
S
y
C
https://i.stack.imgur.com/kkyLj.png
S(x,y,z) = ∑(1,2,4,7)
= x’y’z+x’yz’+xy’z’+xyz C(x,y,z) = ∑(3,5,6,7)
=x y z = xy+xz+yz
Implementation of full adder with two half adders and an OR gate
D1
A
D2
Inputs 2×4
B Decoder Outputs
D3
D4
2×4 Decoder
n = 2, input lines (A and B)
2n = 4, output lines (D0, D1, D2, D3)
Every input combination activates single output line
A B
Truth Table
m A B D0 D1 D2 D3 D0 = A’B’
0 0 0 1 0 0 0
D1 = A’B
1 0 1 0 1 0 0
2 1 0 0 0 1 0 D2 = AB’
3 1 1 0 0 0 1
D3 = AB
3×8 Decoder
Truth Table
x y z D0 D1 D2 D3 D4 D5 D6 D7
0 0 0 1 0 0 0 0 0 0 0
0 0 1 0 1 0 0 0 0 0 0
0 1 0 0 0 1 0 0 0 0 0
0 1 1 0 0 0 1 0 0 0 0
1 0 0 0 0 0 0 1 0 0 0
1 0 1 0 0 0 0 0 1 0 0
1 1 0 0 0 0 0 0 0 1 0
1 1 1 0 0 0 0 0 0 0 1
3 × 8 decoder using two 2 × 4 decoders and an enable input
Ex.
x=1, y=0, z=1
D5 = 1, other output lines are in
logic low (i.e., 0)
S= D1+D2+D4+D7 = 0+0+0+0 = 0
C=D3+D5+D6+D7 = 0+1+0+0 = 1
Encoder
An encoder has 2n input lines and n output lines.
The output lines generate the binary code corresponding to the input value.
The encoder can be implemented with OR gates.
S1S0’I2
S1 S 0 I 3
Boolean Function Implementation
The individual minterms can be selected by the data inputs, thereby providing a
method of implementing a Boolean function of n variables with a multiplexer that
has n selection inputs and 2n data inputs, one for each minterm.
F (x, y, z) = ∑(1, 2, 6, 7)
F (A, B, C, D) = ∑(1, 3, 4, 11, 12, 13, 14, 15)
De-Multiplexer (DeMUX) or Data Distributor
• A demultiplexer (DEMUX) basically reverses the multiplexing function.
• It takes information from one line and distributes it to a given number of output
lines.
• Serial to parallel converter
• Decoders can also be used as demultiplexers
Sequential Circuits
• Its output depend not only on present input but also on past history of the
circuit.
• Its behavior is specified by a time sequence of inputs, outputs, and past history
• Ex. Latch, Flip-Flop, Counter
S=1 and R=1: Q’ = (S+Q)’ = (1+Q)’ = 0 and Q = (R+Q’)’ = (1+Q’)’ = 0 → Invalid (not allowed)
Active high-input SR latch
One way to eliminate the invalid (race) condition in the SR latch is to ensure that inputs S
and R are never equal to 1 at the same time → D latch
D Latch (Transparent Latch)
Latch with enable input or clock: level sensitive i.e., if the enable input is active
(En=1), the output is will change depending on the R and S inputs.
• Extension of latch
• Operates by a clock transition i.e. the output can change only at the active
clock edge (i.e., CLK transition from 0 to 1 or from 1 to 0)
• Also known as edge sensitive or edge triggered device
SR Flip-Flop
Graphic symbols for edge triggered SR flip-flop:
Characteristics Table
for +ve edge (↑) triggered F/F
CLK S R Q Q’
0/1 X X Q Q’ No change
↑ 0 0 Q Q’ No change
↑ 0 1 0 0 Store 0
↑ 1 0 1 0 Store 1
↑ 1 1 X X Invalid
State Table for SR Flip-Flop
Q(t) S R Q(t+1)
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 X
1 0 0 1 State Equation:
1 0 1 0
Q(t+1) = S + R’ Q(t)
1 1 0 1
1 1 1 X
D Flip-Flop
Graphic symbols
Characteristics Table
for +ve edge (↑) triggered F/F
CLK D Q Q’
0/1 X Q Q’ No change
↑ 0 0 1 Store 0
↑ 1 1 0 Store 1
Characteristics Equation:
Q(t+1) = D
JK Flip-Flop
Graphic symbols S
https://electronicsforu.com/wp-contents/uploads/2017/08/JK-Flip-Flop-
800x444.png
Characteristics Table
for +ve edge (↑) triggered F/F
CLK J K Q Q’
0/1 X X Q Q’ No change
↑ 0 0 Q Q’ No change
↑ 0 1 0 1 Store 0
↑ 1 0 1 0 Store 1
↑ 1 1 Q’ Q Toggle
o When CLK = 0, R =S =1, and the RS latch holds the previous Q. In other words, nothing
happens (No change) as long as CLK=0
o When CLK=1:
• J =K =0 R =S =1, RS latch holds previous state, Q(t+1) = Q(t) i.e., No change
• J =0; K =1 R =1, S =Q’
Case (i): Q(t) =0, S =1 (i.e., R =S =1) → Q(t+1) = Q(t) = 0
Case (ii): Q(t) =1, S =0 (i.e., R =1, S =0) → Q(t+1) = 0
In either case, Q(t+1) =0, for J =0, K =1 i.e., Reset (store 0)
• J =1, K =0, S =1, R =Q
Case (i): Q(t) =0, R =0 (i.e., R =0, S =1) → Q(t+1) =1
Case (ii): Q(t) =1, R =1 (i.e., R =1, S =1) → Q(t+1) =Q(t) =1
In either case, Q(t+1) =1, for J =1, K =0 i.e., Set (store 1)
• J =1, K =1, R =Q, S =Q’. Characteristics Table
Case (i): Q(t) =0, R =0, S =1, Q(t+1) =1 for +ve edge (↑) triggered F/F
Case (ii): Q(t) =1, R =1, S =0, Q(t+1) =0
CLK J K Q (t+1)
For J = 1, K = 1, Q(t+1) =Q’(t) i.e., Complement/toggle
0/1 X X Q (t): No change
R ↑ 0 0 Q(t): No change
↑ 0 1 0: Store 0
↑ 1 0 1: Store 1
S ↑ 1 1 Q’: Toggle
State Table for JK Flip-Flop
Q(t) J K Q(t+1)
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 1
Characteristics Equation:
1 0 1 0
Q(t+1) = K’ Q(t) + J Q’(t)
1 1 0 1
1 1 1 0
T Flip-Flop
Characteristics Table
for +ve edge (↑) triggered F/F
CLK T Q Q’
0/1 X Q Q’ No change
↑ 0 Q Q’ No change
↑ 1 Q’ Q Toggle
Characteristics Equation:
Q(t+1) = T Q(t)
Applications of Flip-Flop: Frequency divider
MSB
Ripple Counter with unused states
Ex. BCD counter : counts 0-9
• All flip-flops will be in clear status when count reaches 1010 = Q3Q2Q1Q0
• Q3Q1 = 11 is applied to input of additional NAND gate
• NAND gate generates 0 which is applied to clear (reset) input of all flip-flops
• Counter terminates the count at 1010 state and reset to 0000 state
Ring Counter
• Synchronous sequential circuit
• A ring counter is a circular shift register with only one flip-flop being set at any
particular time; all others are cleared.
• The single bit is shifted from one flip-flop to the next to produce the sequence
of timing signals.
• A k -bit ring counter circulates a single bit among the flip-flops to provide k
distinguishable states.
• Initial state = 1000
• State transi on: 1000→ 0100 → 0010 → 0001 → 1000 …
where Ad denotes the amplifier differential gain and Acm denotes its common-
mode gain (ideally zero).
120
Input signals to a differential
amplifier in terms of their
differential and common-mode
components.
121
Application of superposition to the analysis of the circuit
with input vI 2 = 0,
currents in R3 and R4 are 0;
therefore, v2a = 0.
The resulting circuit is the inverting amplifier.
122
with vI 1 = 0
R3 and R4 form a voltage divider.
Therefore,
From the virtual short concept, v1b = v2b and the circuit becomes a noninverting
amplifier, for which
123
Since the net output voltage is the sum of the individual terms, we have
A property of the ideal difference amplifier is that the output voltage is zero
when vI 1 = vI 2, this condition is met if
124
125
126
127
Difference between Electrical and Electronics
12
Energy band diagram of materials
Eg » kT
Eg ≈ kT
16
Intrinsic Semiconductor
At 0 Kelvin, all electrons are “locked” in covalent bonds → Behave like insulator
At room temperature, thermal energy breaks some covalent bonds → creating free
electrons and “holes” → Allows conduction
• Hole: empty space left by electron
– Hole “moves” as adjacent electron move into its space
– Hole behaves like a positively charged particle 17
Intrinsic Semiconductor
• Thermal generation results in free electrons and holes in equal numbers
and hence equal concentrations (number of charge carriers per unit
volume, cm3).
• The randomly moving free electrons fill some of the holes. This process,
called recombination, results in the disappearance of free electrons and
holes.
• In thermal equilibrium, the recombination rate is equal to the generation
rate, that means the concentration of free electrons ‘n’ is equal to the
concentration of holes ‘p’,
ni: intrinsic carrier concentration for the concentration of the free electrons, as
well as that of the holes.
18
B:material-dependent parameter for silicon = 7.3×1015cm−3K−3/2;
T: temperature in K;
Eg: bandgap energy, is 1.12 electron volt (eV) for silicon;
k: Boltzmann’s constant (8.62×10−5 eV/K).
19
Extrinsic or Doped semiconductor
• N-Type: doping pentavalent impurity (Phosphorus, P and Arsenic, As) to
the Silicon results in n type extrinsic semiconductor
• P-Type: doping trivalent impurity (Boron, B and Aluminum, Al) to the
Silicon results in p type extrinsic semiconductor
20
N-Type Semiconductor
• Electron concentration can be greatly increased by doping pentavalent
impurity (Phosphorus, P and Arsenic, As).
• Each phosphorus atom donates a free electron to the silicon crystal, and
the Phosphorus impurity is called a donor.
• Donor impurity concentration
• @ thermal equilibrium
• nn >> ni >> pn
• Electrons → majority carrier
• Holes → minority carriers
A silicon crystal doped with a pentavalent impurity
21
P-Type Semiconductor
• Hole concentration can be greatly increased by doping trivalent impurity
(Boron, B).
• Each Boron atom accepts an electron from a neighboring atom, thus
forming covalent bonds → Boron impurity is called a acceptor.
• Acceptor impurity concentration
• @ thermal equilibrium
• pp >> ni >> np
• Holes → majority carrier
• Electrons → minority carriers
A silicon crystal doped with a trivalent impurity22
Currents (flow of charge particles) in semiconductors
(a) Drift: which is the movement caused by electric fields
(b) Diffusion: which is the flow caused by variations in the concentration,
that is, concentration gradients.
Electrons drift velocity
Drift Currents
Drift current density due to electron drift
The holes diffuse in the +ve x-direction The electron diffuse in the +ve x-
and hole diffusion current in the same direction and electron diffusion current
direction. in the opposite direction. 24
Diffusion current density due to the diffusion of electrons
The total current density is the sum of the drift and diffusion components
Jsemiconductor = Jdrift + Jdiffusion 25
pn Junction
• p-type semiconductor in contact with n-type
• Basic building blocks of semiconductor devices
– Diodes,
– Bipolar junction transistors (BJT),
– Metal-oxide-semiconductor field effect transistors (MOSFET)
In the open-circuit case, drift and diffusion currents are same in magnitude
but opposite in direction
Net current = ID – IS = 0
27
pn Junction with open-circuit terminals
• The holes of P-side diffuse towards N-side and electrons of N-side
diffuse towards P-side → diffusion current, ID
• At pn junction, the diffused electrons and holes recombine and create
Depletion region (immobile ions)
• Depletion width:
29
Forward-biased pn Junction
dc voltage
Cathode
Anode
• Forward current I = ID – IS
The pn junction I–V characteristic
Forward region
31
Reverse-biased pn Junction
Cathode
Anode
Reverse region
34
Capacitance in pn Junction
Depletion capacitance
Variable capacitance:
38
Since both IS and VT are functions of temperature, the forward i–v
characteristic varies with temperature,
39
Ideal Diode and circuit model
• Ideal diode is the most fundamental nonlinear circuit element
• RB: no current flows and the ideal diode behaves as an open circuit so it is
said to be cut off, or, simply off.
• FB: any current can flow with zero voltage drop therefore ideal diode
behaves as short circuit and it is said to be turned on, or simply on.
i–v characteristic
Ideal diode equivalent circuit in the
RB and FB 40
41
The Forward-Bias Region
• cut-in voltage - current is negligibly small for v smaller than about 0.5 V
• For a “fully conducting” diode, the voltage drop lies in a narrow range,
approximately 0.6 V to 0.8 V.
• This gives rise to a simple “model” for the diode where it is assumed that
a conducting diode has approximately a 0.7 V drop across it
42
The Reverse-Bias Region
43
Modeling the Diode Forward Characteristic
44
• The curve represents the exponential diode equation
• The straight line represents load line
• The load line intersects the diode curve at point Q, which represents
the operating point of the circuit. Its coordinates give the values of
ID and VD.
45
Zener Diodes
knee current
47
• Diode rectifier forms an essential building block of the dc power
supplies required to power electronic equipment.
48
• The diode rectifier converts the input sinusoid vS to a unipolar output,
which can have the pulsating waveform
• This waveform has a nonzero average or a dc component, its
pulsating nature makes it unsuitable as a dc source for electronic
circuits, hence the need for a filter.
• The variations in the magnitude of the rectifier output are
considerably reduced by the filter block
• The output of the rectifier filter, though much more constant than
without the filter, still contains a time-dependent component, known
as ripple.
• To reduce the ripple and to stabilize the magnitude of the dc output
voltage against variations caused by changes in load current, a
voltage regulator is employed
49
• Half-wave rectifier → all voltages below zero are eliminated
• It utilizes alternate half-cycles of the input sinusoid
Input voltage
Output voltage
Transfer characteristic
52
• Full-wave Rectifier (considering constant voltage drop across diode)
• The full-wave rectifier utilizes both halves of the input sinusoid.
PIV = 2Vs−VD
≈ twice of the half-wave rectifier
Transfer characteristic 54
Application of Diode: Rectifier
Full-wave (Bridge) Rectifier (considering constant voltage drop across diode)
voltage transfer
characteristics Input sine wave and clipped output
(clipping off its two peaks)
57
Single diode clipper circuit
58
Double Limiter-Positive and negative clipping can be performed simultaneously
by using a double limiter or a parallel-based clipper
59
The battery in series with the input signal causes the input signal to be
superimposed on the VB dc voltage.
60
Application of Diode: Wave shaping circuits
• Clamper (dc restorer) → used to shift the entire signal voltage by a dc
level without changing shape of signal
• Assume that the capacitor is initially uncharged.
• During the first 90 degrees of the input waveform,
the voltage across the capacitor follows the input,
and vC = vI (assuming Vγ = 0).
• After vI and vC reach their peak values, vI begins to
decrease and the diode becomes reverse biased.
• Ideally, the capacitor cannot discharge, so the
voltage across the capacitor remains constant at vC
= VM.
61
square-wave input and output signals
62
Diode Circuits: Logic Gates
Two-input OR Gate
63
Transistor
Bipolar Junction Transistor (BJT) consists of three semiconductor regions: the
emitter region (n type), the base region ( p type), and the collector region (n
type). Such a transistor is called an npn transistor.
Another transistor, a dual of the npn has a p-type emitter, an n-type base, and a p-
type collector, and is appropriately called a pnp transistor.
65
• The basic transistor principle is that the voltage between two
terminals controls the current through the third terminal.
• The two pn junctions are sufficiently close together to be called
interacting pn junctions. The operation of the transistor is therefore
totally different from that of two back-to-back diodes
• Current in the transistor is due to the flow of both electrons and
holes, hence the name bipolar.
66
The transistor consists of two pn junctions, the emitter–base junction (EBJ) and
the collector–base junction (CBJ). Depending on the bias condition (forward or
reverse) of each of these junctions, different modes of operation of the BJT are
obtained
• The active mode is the one used if the transistor is to operate as an amplifier.
• Switching applications (e.g., logic circuits) utilize both the cutoff mode and
the saturation mode. As the name implies, in the cutoff mode no current
flows because both junctions are reverse biased
67
Operation of the npn Transistor in the Active Mode
• The voltage VBE causes the p-type base to be higher in potential than the n-type
emitter, thus forward biasing the emitter–base junction.
• The collector–base voltage VCB causes the n-type collector to be at a higher
potential than the p-type base, thus reverse biasing the collector–base junction.
68
Current Components
69
70
71
Large-signal equivalent-circuit models of the npn and pnp BJT operating in the forward
active mode
72
For vCB going negative to approximately −0.4 V, the CBJ begins to
conduct sufficiently that the transistor leaves the active mode and enters
the saturation mode of operation, where iC decreases
73
Transistor Characteristics
• The iE –vBE and iB–vBE characteristics are also exponential but with
different scale currents: IS/α for iE, and IS/β for iB.
• For a pnp transistor, the iC –vEB characteristic will look identical,
with vBE replaced with vEB.
74
75
Common-base npn transistor output characteristics
• When the CBJ is reverse biased, then for constant values of emitter current,
the collector current is nearly equal to iE.
• These characteristics show that the common-base device is nearly an ideal
constant-current source. 76
CB npn Transistor in saturation mode
77
• This current, denoted ICBO, is the reverse current flowing from collector to base
with the emitter open-circuited (hence the subscript O).
• This current is usually in the nA range.
• As with the diode reverse current, ICBO contains a substantial leakage
component, and its value is dependent on vCB. ICBO depends strongly on
temperature, approximately doubling for every 10°C rise.
78
79
The pnp Transistor
• Voltage VEB causes the p-type emitter to be higher in potential than the
n-type base, thus forward biasing the emitter–base junction.
• The collector–base junction is reverse biased by the voltage VBC,
which keeps the p-type collector lower in potential than the n-type
base. 80
Example: The transistor in the circuit of Fig. (a) has β =100 and exhibits
a vBE of 0.7 V at iC =1 mA. Design the circuit so that a current of 2 mA
flows through the collector and a voltage of +5 V appears at the
collector.
81
82
83
84
Dependence of iC on the Collector Voltage -The Early Effect
86
• The nonzero slope of the iC–vCE straight lines indicates that the
output resistance looking into the collector is not infinite
87
Alternative Form of the Common-Emitter Characteristics
• Here the base current iB rather than the base–emitter voltage vBE is
used as a parameter.
• That is, each iC–vCE curve is measured with the base fed with a
constant current IB.
88
• The iC–vCE curves in saturation are rather steep, indicating that the
saturated transistor exhibits a low collector-to-emitter resistance
RCEsat ,
89
Transistor Breakdown
The maximum voltages that can be applied to a BJT are limited by the
EBJ and CBJ breakdown effects
90
Example:
For the circuit in Fig., it is required to determine the value of the voltage VBB
that results in the transistor operating
(a) in the active mode with VCE =5 V
(b) at the edge of saturation
(c) deep in saturation with βforced = 10
For simplicity, assume that VBE remains constant at 0.7 V. The transistor β is
specified to be 50.
91
92
93
94
Simplified Models for the Operation of the BJT in DC Circuits
• A quick check of the terminal voltages will indicate whether the transistor is
cut off or conducting.
• If it is conducting, we have to determine whether it is operating in the active
mode or in saturation. 95
Example:
Determine all node voltages and branch currents. Assume β is 100.
96
97
Example:
98
Determine the voltages at all nodes and the currents through all branches.
Assume β = 100.
99
Voltage Transfer Characteristics
A plot of the voltage transfer characteristics (output voltage versus input voltage)
can also be used to visualize the operation of a circuit or the state of a transistor.
100
Example: Develop the voltage transfer curves for the circuits shown in Figures
Assume npn transistor parameters of VBE(on) = 0.7 V, β = 120, VCE(sat) = 0.2 V
101
The transistor as an amplifier
102
If a time-varying (e.g., sinusoidal) signal is superimposed on the dc input
voltage, VBB, the output voltage will change along the transfer curve producing
a time-varying output voltage
If the transistor is not biased in the active region (biased either in cutoff or
saturation), the output voltage does not change with a change in the input
voltage.
103
104
105
106
107
108
109
110