SlideShare a Scribd company logo
DEPARTMENT OF
ELECTRONICS AND COMMUNICATION
ENGINEERING
Instructor
D V S RAMANJANEYULU
Associate Professor
Accredited by NBA & NAAC with “A” Grade
CS301ES : ANALOG & DIGITAL ELECTRONICS
P.KIRAN KUMAR,ECE DEPARTMENT 2
UNIT - III
P.KIRAN KUMAR,ECE DEPARTMENT 3
Digital Operations of a system
•A digital system functions in a binary manner
•It employs devices which exist only in two possible states
Binary State Terminology
P.KIRAN KUMAR,ECE DEPARTMENT 4
Why are Binary Numbers Important?
• We implement circuits using electronic components like
transistors.
– A transistor acts like a switch: either conducting (ON) or non-
conducting (OFF).
– There are billions of such miniature switches in modern-day VLSI chips.
• A switch can represent two states.
– Binary number system also has two digits, 0 and 1.
– We can follow some convention:
• Open switch represents 0, closed switch represents 1.
• Low voltage represents 0, high voltage represents 1.
• Absence of current represents 0, flow of current represents 1.
• Absence of light represents 0, presence of light represents 1.
P.KIRAN KUMAR,ECE DEPARTMENT 5
Why are Binary Numbers Important?
• We concentrate on binary numbers in this course.
• Some conventions followed:
– Bit:
– Nibble:
– Byte:
– Word:
single binary digit (0 or 1)
collection of 4 bits
collection of 8 bits
collection of 16/32/64 bits
P.KIRAN KUMAR,ECE DEPARTMENT 6
P.KIRAN KUMAR,ECE DEPARTMENT 7
Number Systems
Decimal Binary Octal Hexa-decimal
0 0 0 0
1 1 1 1
2 10 2 2
3 11 3 3
4 100 4 4
5 101 5 5
6 110 6 6
7 111 7 7
8 1000 10 8
9 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F
16 10000 20 10
P.KIRAN KUMAR,ECE DEPARTMENT 8
P.KIRAN KUMAR,ECE DEPARTMENT 9
P.KIRAN KUMAR,ECE DEPARTMENT 10
Binary to Decimal
•Technique
–Multiply each bit by 2n, where n is the “weight” of the bit
–The weight is the position of the bit, starting from 0 on
the right
–Add the results
P.KIRAN KUMAR,ECE DEPARTMENT 11
Binary to Decimal
P.KIRAN KUMAR,ECE DEPARTMENT 12
P.KIRAN KUMAR,ECE DEPARTMENT 13
Octal to Decimal
•Technique
–Multiply each digit by 8n, where n is the
“weight” of the digit
–The weight is the position of the digit,
starting from 0 on the right
–Add the results
P.KIRAN KUMAR,ECE DEPARTMENT 14
Octal to Decimal
P.KIRAN KUMAR,ECE DEPARTMENT 15
Number Systems
P.KIRAN KUMAR,ECE DEPARTMENT 16
Hexadecimal to Decimal
•Technique
–Multiply each digit by 16n, where n is the “weight”
of the digit
–The weight is the position of the digit, starting
from 0 on the right
–Add the results
P.KIRAN KUMAR,ECE DEPARTMENT 17
Hexadecimal to Decimal
P.KIRAN KUMAR,ECE DEPARTMENT 18
Number Systems
P.KIRAN KUMAR,ECE DEPARTMENT 19
Decimal to Binary
•Technique
–Divide by two, keep track of the remainder
–First remainder is bit 0 (LSB, least-significant
bit)
–Second remainder is bit 1
–Etc.
P.KIRAN KUMAR,ECE DEPARTMENT 20
Decimal to Binary
P.KIRAN KUMAR,ECE DEPARTMENT 21
Number Systems
P.KIRAN KUMAR,ECE DEPARTMENT 22
Octal to Binary
•Technique
–Convert each octal digit to a 3-bit equivalent binary
representation
P.KIRAN KUMAR,ECE DEPARTMENT 23
Number Systems
P.KIRAN KUMAR,ECE DEPARTMENT 24
Hexadecimal to Binary
•Technique
–Convert each hexadecimal digit to a 4-bit equivalent binary
representation
P.KIRAN KUMAR,ECE DEPARTMENT 25
Number Systems
P.KIRAN KUMAR,ECE DEPARTMENT 26
Decimal to Octal
•Technique
–Divide by 8
–Keep track of the remainder
P.KIRAN KUMAR,ECE DEPARTMENT 27
Number Systems
P.KIRAN KUMAR,ECE DEPARTMENT 28
Decimal to Hexadecimal
•Technique
–Divide by 16
–Keep track of the remainder
P.KIRAN KUMAR,ECE DEPARTMENT 29
Number Systems
P.KIRAN KUMAR,ECE DEPARTMENT 30
Binary to Octal
•Technique
–Group bits in threes, starting on right
–Convert to octal digits
P.KIRAN KUMAR,ECE DEPARTMENT 31
Number Systems
P.KIRAN KUMAR,ECE DEPARTMENT 32
Binary to Hexadecimal
•Technique
–Group bits in fours, starting on right
–Convert to hexadecimal digits
P.KIRAN KUMAR,ECE DEPARTMENT 33
Number Systems
P.KIRAN KUMAR,ECE DEPARTMENT 34
Octal to Hexadecimal
•Technique
–Use binary as an intermediary
P.KIRAN KUMAR,ECE DEPARTMENT 35
Number Systems
P.KIRAN KUMAR,ECE DEPARTMENT 36
Hexadecimal to Octal
•Technique
–Use binary as an intermediary
P.KIRAN KUMAR,ECE DEPARTMENT 37
Number Systems
P.KIRAN KUMAR,ECE DEPARTMENT 38
Number Systems
P.KIRAN KUMAR,ECE DEPARTMENT 39
Binary Addition
Two n-bit values
–Add individual bits
–Propagate carries
–E.g.,
Two 1-bit values
P.KIRAN KUMAR,ECE DEPARTMENT 40
Multiplication
Binary, two 1-bit values Binary, two n-bit values
–As with decimal values
–E.g.,
P.KIRAN KUMAR,ECE DEPARTMENT 41
Fractions
Binary to decimal
P.KIRAN KUMAR,ECE DEPARTMENT 42
Fractions
Decimal to Binary
P.KIRAN KUMAR,ECE DEPARTMENT 43
Number Systems
P.KIRAN KUMAR,ECE DEPARTMENT 44
Answers
P.KIRAN KUMAR,ECE DEPARTMENT 45
Negative Numbers
1. Sign and Magnitude Representation
2. 1’s Complement Representation
3. 2’s Complement Representation
Goal of negative number systems
•Signed system: Simple. Just flip the sign bit
0 = positive
1 = negative
•One’s complement: Replace subtraction with addition
–Easy to derive (Just flip every bit)
•Two’s complement: Replace subtraction with addition
–Addition of one’s complement and one produces the
two’s complement.
P.KIRAN KUMAR,ECE DEPARTMENT 46
Negative Numbers
Given a positive integer x, we represent -x
P.KIRAN KUMAR,ECE DEPARTMENT 47
Negative Numbers
4-Bit Example
P.KIRAN KUMAR,ECE DEPARTMENT 48
Number Systems
Given n-bits, what is the range of my numbers in each system?
P.KIRAN KUMAR,ECE DEPARTMENT 49
Subtraction Using Addition :: 1’s Complement
• How to compute A – B ?
– Compute the 1’s complement of B (say, B1).
– Compute R = A + B1
– If a carry is obtained after addition is ‘1’:
• Add the carry back to R (called end-around carry).
• That is, R = R + 1.
• The result is a positive number.
Else
•The result is negative, and is in 1’s complement form in R.
P.KIRAN KUMAR,ECE DEPARTMENT 50
Example 1 :: 6 – 2
1’s complement of 2 = 1101
6 :: 0110
-2 :: 1101
1 0011
1
0100 =
+4
End-
around
carry
Assume 4-bit representations.
Since there is a carry, it is added
back to the result.
The result is positive.
P.KIRAN KUMAR,ECE DEPARTMENT 51
Example 2 :: 3 – 5
1’s complement of 5 = 1010
Assume 4-bit representations. Since
there is no carry, the result is
negative.
1101 is the 1’s complement of 0010,
that is, it represents –2.
3 :: 0011
-5 :: 1010
1101 = -2
P.KIRAN KUMAR,ECE DEPARTMENT 52
Subtraction Using Addition :: 2’s Complement
• How to compute A – B ?
– Compute the 2’s complement of B (say, B2).
– Compute R = A + B2
– If a carry is obtained after addition is ‘1’:
• Ignore the carry.
• The result is a positive number.
Else
• The result is negative, and is in 2’s complement form in R.
P.KIRAN KUMAR,ECE DEPARTMENT 53
Example 1 :: 6 – 2
2’s complement of 2 = 1101 + 1 = 1110
6 :: 0110
-2 :: 1110
1 0100 = +4
Ignore carry
Assume 4-bit representations.
Presence of carry indicates that
the result is positive.
No need to add the end-around
carry like in 1’s complement.
P.KIRAN KUMAR,ECE DEPARTMENT 54
Example 2 :: 3 – 5
2’s complement of 5 = 1010 + 1 = 1011
Assume 4-bit representations. Since
there is no carry, the result is
negative.
1110 is the 2’s complement of 0010,
that is, it represents –2.
3 :: 0011
-5 :: 1011
1110 = -2
P.KIRAN KUMAR,ECE DEPARTMENT 55
OR Gate
A Diode logic OR circuit
Boolean Identities
P.KIRAN KUMAR,ECE DEPARTMENT 56
AND Gate
A Diode logic AND circuit
Boolean Identities
P.KIRAN KUMAR,ECE DEPARTMENT 57
NOT Gate or Inverter
A Transistor logic NOT circuit
P.KIRAN KUMAR,ECE DEPARTMENT 58
Exclusive OR gate (XOR gate)
• The output of a two input XOR gate assumes the 1 state if one and
only input assumes the 1 state
• The boolean notation for the XOR is
P.KIRAN KUMAR,ECE DEPARTMENT 59
Exclusive OR gate (XOR gate)
P.KIRAN KUMAR,ECE DEPARTMENT 60
De Morgan’s Laws
• The statement “if and only if all inputs are true(1), then the
output is true(1)” is logically equivalent to the statement “If at
least one input is false(0), then the output is false(0)”
• In boolean notation this equivalence can be written as
or
and its dual
are known as De Morgan’s laws
P.KIRAN KUMAR,ECE DEPARTMENT 61
The NAND gate
P.KIRAN KUMAR,ECE DEPARTMENT 62
The NOR gate
P.KIRAN KUMAR,ECE DEPARTMENT 63
Logic Families
P.KIRAN KUMAR,ECE DEPARTMENT 64
Characteristics
➢ Fan in : The number of inputs that the gate can
handle properly with out disturbing the output
level.
➢ Fan out : The number of inputs that can driven
simultaneously by the output with out disturbing
the output level.
➢ Noise immunity : Noise immunity is the ability of the
logic circuit to tolerate the noise voltage.
➢ Noise Margin : The quantative measure of
noise immunity is called noise margin.
P.KIRAN KUMAR,ECE DEPARTMENT 65
Characteristics
➢ Propagation Delay : The propagation delay of gate is
the average transition delay time for the signal to
propagate from input to output. It is measured in
nanoseconds
➢ Threshold Voltage : The voltage at which the circuit
changes from one state to another state
➢ Operating Speed : The speed of operation of the
logic gate is the time that elapses between giving
input and getting output.
➢ Power Dissipation : The power dissipation is defined
as power needed by the logic circuit.
P.KIRAN KUMAR,ECE DEPARTMENT 66
Diode Transistor Logic
•DTL was first commercial available IC logic family in 53/73 series.
•The basic circuit in the DTL logic is the NAND gate.
•Each input associated with one diode.
•The diode and resistor form an AND gate.
•The transistor services as a NOT gate
A B Y=A.B
0 0 1
0 1 1
1 0 1
1 1 0
P.KIRAN KUMAR,ECE DEPARTMENT 67
Diode Transistor Logic Working
Three input positive NAND (or Negative NOR)gate with DTL Logic
P.KIRAN KUMAR,ECE DEPARTMENT 68
Diode Transistor Logic Working
If any input is low
•The corresponding diode conducts current through Vcc and
resistor into the input node.
•The voltage at point p is equal to the input voltage + diode drop.
•This is an insufficient voltage for conduction of a transistor
•Since the voltage at point p is 0v then the transistor is cut off
state and the output is logic 1.
If all inputs are high
•The transistor is driven into saturation region.
•The voltage at point p is high.
•Hence the output is low.
P.KIRAN KUMAR,ECE DEPARTMENT 69
Diode Transistor Logic Characteristics
It has fan-out of 8
It has high noise immunity.
Power dissipation is 12mw.
Propagation delay is average 30ns.
Noise margin is about 0.7V.
P.KIRAN KUMAR,ECE DEPARTMENT 70
Modified DTL Gates
 Most logic gates are fabricated as an integrated circuit. In
this all the transistors, diodes, resistors and capacitors in a
fairly complicated circuit may be shaped within a tiny chip of
single crystal silicon
It turns out that large values of resistance and capacitance
can not be fabricated economically
In view of these facts the NAND gate is modified for
integrated circuit implementation by eliminating the
capacitor , reducing the resistance values drastically and
using diodes or transistors to replace resistors wherever
possible
P.KIRAN KUMAR,ECE DEPARTMENT 71
Modified DTL Gates
An integrated or Modified positive DTL NAND gate
P.KIRAN KUMAR,ECE DEPARTMENT 72
High Threshold Logic(HTL)
In an Industrial environment
the noise level is quite high
because of the presence of
motors, high voltage
switches, on – off control
circuits ……etc
By using a Zener diode in
the place of diode D2 in the
DTL gate this circuit is
converted to the high noise
immunity gate
P.KIRAN KUMAR,ECE DEPARTMENT 73
Transistor Transistor Logic
•TTL family is a modification to the DTL. It has come to existence so as
to overcome the speed limitations of DTL family. The basic gate of
this family is TTL NAND gate.
• Modifications to DTL NAND-
1. The diodes D1, D2 and D3 are replaced by emitter-base
junctions of a multiple-emitter transistor labeled T1.
2. Diode DA is replaced by collector-base junction of T1.
3. Diode DB is replaced by emitter-base junction of transistor
labeled T2.
P.KIRAN KUMAR,ECE DEPARTMENT 74
Transistor Transistor Logic
P.KIRAN KUMAR,ECE DEPARTMENT 75
Transistor Transistor Logic Working
The working of this circuit is identical to that of DTL circuit.
Case1- When at least one input is logic LOW, transistor Q2 and Q3 are in
cut-off and hence, output of Q3 is HIGH.
Case2- When all inputs are HIGH, Q1 operates in active inverse mode,
driving Q2 & Q3 in saturation. Since Q3 is ON, the output is LOW.
Case3- While all inputs are HIGH, if any of the inputs suddenly goes
LOW, then Q2 and Q3 will be turned off only when stored base
charge is removed. The collector-base junction of Q1 is back-
biased and Q1 operates in normal active region. A large collector
current of Q1 is in such direction that it helps removing base
charge of Q2 and Q3. In this way, the circuit speed is increased in
TTL over speed of DTL.
P.KIRAN KUMAR,ECE DEPARTMENT 76
Transistor Transistor Logic Characteristics
TTL has greater speed than DTL.
Less noise immunity.
It has high noise immunity.
Power dissipation is 10mw.
It has fan-in of 6 and fan-out of 1
 Propagation time delay is 5-15nsec.
P.KIRAN KUMAR,ECE DEPARTMENT 77
Resistor Transistor Logic
 RTL is the first logic family which is not available in
monolithic form.
The basic circuit of the RTL logic family is the NOR.
Each input is associated with one resistor and one
transistor.
The collector of the transistor are tied together at the
output
The voltage levels for the circuit are 0.2v for the low level
and from 1 to 3.6v for the high level
P.KIRAN KUMAR,ECE DEPARTMENT 78
Resistor Transistor Logic
A B Y=A+B
0
0
1
1
0
1
0
1
1
0
0
0
If any input is high the corresponding transistor is driven into
saturation and the output goes low, regardless of the states of the
other transistor.
If all inputs are low then all transistor are in cutoff state and the
output of the circuit goes high.
Truth Table
P.KIRAN KUMAR,ECE DEPARTMENT 79
Resistor Transistor Logic
An RTL positive NOR
gate with a Fan – in of
3 and Fan – out of 5
P.KIRAN KUMAR,ECE DEPARTMENT 80
Resistor Transistor Logic
Characteristics :
•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. Poor noise
immunity.
•Low speed.
P.KIRAN KUMAR,ECE DEPARTMENT 81
Direct Coupled Transistor Logic
 DCTL configuration is the same as RTL except that the
base resistors are omitted
A positive NOR DTCL
gate with a Fan – in of 3
and Fan – out of 2
P.KIRAN KUMAR,ECE DEPARTMENT 82
Emitter Coupled Logic (ECL)
P.KIRAN KUMAR,ECE DEPARTMENT 83
Emitter Coupled Logic (ECL)
• ECL logic family implements the gates in
differential amplifier configuration in which transistors are never
driven in the saturation region thereby improving the speed
of circuit to a great extent. The ECL family is fastest of all logic families.
• The basic gate of ECL family is NOR gate (OR and NOR together)
as shown in diagram. The output1 is OR output while ouput2 is NOR
output.
• Transistor T1 is applied with input and additional inputs are applied
to transistors (T1’, T1’’, . . .) in parallel with T1. Thus transistor(s) T1
and T2 are connected in differential amplifier configuration.
P.KIRAN KUMAR,ECE DEPARTMENT 84
Emitter Coupled Logic (ECL)
• Transistors T3 and T4 are emitter-followers used for DC level-shifting
of output voltages.
•The positive supply terminal of the circuit is grounded while negative
supply terminal is at negative 5.2V. This is done to minimize the effect
of noise introduced by the power supply and also to protect the gate
from short-circuit that might occur accidently.
•Both the outputs (HIGH/LOW) for OR and NOR are negative. Thus, to
interface this logic family with other, a translator circuit is needed
which converts negative voltages to compatible positive voltage levels.
P.KIRAN KUMAR,ECE DEPARTMENT 85
MOS Logic family
•MOS logic family implements the logic gates using MOSFET devices.
MOSFETs are high density devices which can easily and economically
fabricated on ICs. MOS logic gates can be fabricated using either only
NMOS or only PMOS devices.
•MOS logic is vastly used in LSI and VLSI devices, such as
microprocessor chips, due to their high density characteristic.
P.KIRAN KUMAR,ECE DEPARTMENT 86
MOS Logic family
NMOS NOR gate
If both transistors T1 and T2
are off i.e. A = B = LOW, then
output is HIGH = VDD.
If either of the inputs is
HIGH, then corresponding
transistor(s) is/are ON, thus
connecting output to GND i.e.
LOW.
P.KIRAN KUMAR,ECE DEPARTMENT 87
MOS Logic family
NMOS NAND gate
If both inputs are ON,
then only both T1 and T2
are ON and output is
LOW; otherwise (when
either or both transistors
are OFF,) the output is
HIGH.
P.KIRAN KUMAR,ECE DEPARTMENT 88
CMOS Logic family
CMOS stands for complementary-MOS, in which both p-channel and
n-channel enhancement MOSFET devices are fabricated on same
chip. This causes density to be reduced and complex fabrication
process. However, CMOS devices consume negligible power and
hence are preferred over MOS devices in battery
operated applications.
P.KIRAN KUMAR,ECE DEPARTMENT 89
CMOS Logic family
CMOS NAND gate T1 and T2 are n-channel
MOSFETs while T3 and T4
are p-channel MOSFETs.
When both inputs A & B
are HIGH, then T1 & T2 are
ON while T3 & T4 are OFF.
Hence, output is connected
to GND i.e. LOW.
If either input is LOW,
then either T3 or T4 is ON,
connecting output is +Vcc
i.e. HIGH.
P.KIRAN KUMAR,ECE DEPARTMENT 90
CMOS Logic family
CMOS NOR gate
Similar is working of
CMOS NOR
gate shown in figure
aside. Here, p-channel
devices are in series and
n-channel devices are in
parallel.
P.KIRAN KUMAR,ECE DEPARTMENT 91
Comparison of Logic Families
P.KIRAN KUMAR,ECE DEPARTMENT 92
Comparison of Logic Families

More Related Content

PPTX
Chapter 1 Introduction to Digital Logic
PPTX
Introduction to digital logic
PPTX
R2 r dac
PPTX
Representation of Integers
PDF
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
PPT
Digital Logic Circuits
PPT
CS301ES: ANALOG AND DIGITAL ELECTRONICS
PPTX
Datapath Design of Computer Architecture
Chapter 1 Introduction to Digital Logic
Introduction to digital logic
R2 r dac
Representation of Integers
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
Digital Logic Circuits
CS301ES: ANALOG AND DIGITAL ELECTRONICS
Datapath Design of Computer Architecture

What's hot (20)

PPTX
DUAL TRACE OSCILLOSCOPE
PPT
DAC-digital to analog converter
PPTX
R-2R Ladder DAC
PPTX
Invering and non inverting amplifiers
PPTX
Power MOSFET
PPT
basic-analog-electronics
PPTX
Op amp(operational amplifier)
PPTX
Ditial to Analog Converter
PPT
Silicon control rectifier
PPT
Signal classification of signal
PPTX
Two port network
PPT
3.bipolar junction transistor (bjt)
PPTX
Thyristor commutation techniques
PPTX
Z parameters
PPTX
TRIAC Working
PDF
Electronics 1 : Chapter # 06 : Bipolar Junction Transistor
PPT
Digital storage ocilloscope
PDF
L11 rc triggering circuit
PPTX
Thyristor family
DUAL TRACE OSCILLOSCOPE
DAC-digital to analog converter
R-2R Ladder DAC
Invering and non inverting amplifiers
Power MOSFET
basic-analog-electronics
Op amp(operational amplifier)
Ditial to Analog Converter
Silicon control rectifier
Signal classification of signal
Two port network
3.bipolar junction transistor (bjt)
Thyristor commutation techniques
Z parameters
TRIAC Working
Electronics 1 : Chapter # 06 : Bipolar Junction Transistor
Digital storage ocilloscope
L11 rc triggering circuit
Thyristor family
Ad

Similar to CS301ES: ANALOG AND DIGITAL ELECTRONICS unit-3 (20)

PDF
Digital notes
PPTX
STLD - UNIT I design and implentationssss
PPT
BEEE - Part B - Unit 3 PPT BEEE - Part B - Unit 3 PPT.ppt
PDF
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
PDF
4. Combinational Logic Circuits not bad.pdf
PPTX
UNIT - I.pptx
PPTX
UNIT - I.pptx
DOC
Dpsd lecture-notes
PPTX
CVMU digital electronics ppt for students to learn from
PDF
Logic Design
PPTX
Ugc net – digital fundamentals.pptx ugc notes
PDF
Week 5 - Number Systems.pdf
PPT
Number_Systems_and_Boolean_Algebra.ppt
PPTX
21EC201– Digital Principles and system design.pptx
PPTX
Chapter_02_The_Language_of_Bits_Any.pptx
DOCX
Lecture 1 Digital Systems and Number SystemsMatthew Shuma.docx
PPT
desigital logic design for electronic and cs students.ppt
Digital notes
STLD - UNIT I design and implentationssss
BEEE - Part B - Unit 3 PPT BEEE - Part B - Unit 3 PPT.ppt
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
4. Combinational Logic Circuits not bad.pdf
UNIT - I.pptx
UNIT - I.pptx
Dpsd lecture-notes
CVMU digital electronics ppt for students to learn from
Logic Design
Ugc net – digital fundamentals.pptx ugc notes
Week 5 - Number Systems.pdf
Number_Systems_and_Boolean_Algebra.ppt
21EC201– Digital Principles and system design.pptx
Chapter_02_The_Language_of_Bits_Any.pptx
Lecture 1 Digital Systems and Number SystemsMatthew Shuma.docx
desigital logic design for electronic and cs students.ppt
Ad

More from ACE ENGINEERING COLLEGE (19)

PPTX
satellite communication- UNIT-III.pptx
PPTX
satellite communication-UNIT-II.pptx
PPTX
satellite communication-UNIT-IV.pptx
PPTX
satellite communication- UNIT-V.pptx
PPTX
ANALOG AND DIGITAL ELECTRONICS unit 5
PPTX
ANALOG AND DIGITAL ELECTRONICS unit 4
PPT
ADE unit 2 jntu hyderabad
PDF
Pdc lab manualnew
PPTX
Unit5 , LC Networks and Filters
PPT
Unit 4 twoportnetwork
PPT
Unit 2 resonance circuit
PPT
Unit 1 magnetically coupled circuit
PPT
Unit 1 graph theory
PDF
important question jntu network analysis
PDF
Unit 5 jntu network analysis notes
PDF
Unit 4 na jntu network analysis notes
PDF
Na unit 2 jntu network analysis notes
PPT
Wave ppt Wireless Access in Vehicular Environment
PPT
Project review format templates
satellite communication- UNIT-III.pptx
satellite communication-UNIT-II.pptx
satellite communication-UNIT-IV.pptx
satellite communication- UNIT-V.pptx
ANALOG AND DIGITAL ELECTRONICS unit 5
ANALOG AND DIGITAL ELECTRONICS unit 4
ADE unit 2 jntu hyderabad
Pdc lab manualnew
Unit5 , LC Networks and Filters
Unit 4 twoportnetwork
Unit 2 resonance circuit
Unit 1 magnetically coupled circuit
Unit 1 graph theory
important question jntu network analysis
Unit 5 jntu network analysis notes
Unit 4 na jntu network analysis notes
Na unit 2 jntu network analysis notes
Wave ppt Wireless Access in Vehicular Environment
Project review format templates

Recently uploaded (20)

PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
master seminar digital applications in india
PPTX
Pharma ospi slides which help in ospi learning
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Complications of Minimal Access Surgery at WLH
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Cell Types and Its function , kingdom of life
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
RMMM.pdf make it easy to upload and study
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Microbial disease of the cardiovascular and lymphatic systems
GDM (1) (1).pptx small presentation for students
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
O7-L3 Supply Chain Operations - ICLT Program
Final Presentation General Medicine 03-08-2024.pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
102 student loan defaulters named and shamed – Is someone you know on the list?
master seminar digital applications in india
Pharma ospi slides which help in ospi learning
O5-L3 Freight Transport Ops (International) V1.pdf
Supply Chain Operations Speaking Notes -ICLT Program
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
Complications of Minimal Access Surgery at WLH
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Cell Types and Its function , kingdom of life
PPH.pptx obstetrics and gynecology in nursing
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
RMMM.pdf make it easy to upload and study
school management -TNTEU- B.Ed., Semester II Unit 1.pptx

CS301ES: ANALOG AND DIGITAL ELECTRONICS unit-3

  • 1. DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING Instructor D V S RAMANJANEYULU Associate Professor Accredited by NBA & NAAC with “A” Grade CS301ES : ANALOG & DIGITAL ELECTRONICS
  • 3. P.KIRAN KUMAR,ECE DEPARTMENT 3 Digital Operations of a system •A digital system functions in a binary manner •It employs devices which exist only in two possible states Binary State Terminology
  • 4. P.KIRAN KUMAR,ECE DEPARTMENT 4 Why are Binary Numbers Important? • We implement circuits using electronic components like transistors. – A transistor acts like a switch: either conducting (ON) or non- conducting (OFF). – There are billions of such miniature switches in modern-day VLSI chips. • A switch can represent two states. – Binary number system also has two digits, 0 and 1. – We can follow some convention: • Open switch represents 0, closed switch represents 1. • Low voltage represents 0, high voltage represents 1. • Absence of current represents 0, flow of current represents 1. • Absence of light represents 0, presence of light represents 1.
  • 5. P.KIRAN KUMAR,ECE DEPARTMENT 5 Why are Binary Numbers Important? • We concentrate on binary numbers in this course. • Some conventions followed: – Bit: – Nibble: – Byte: – Word: single binary digit (0 or 1) collection of 4 bits collection of 8 bits collection of 16/32/64 bits
  • 7. P.KIRAN KUMAR,ECE DEPARTMENT 7 Number Systems Decimal Binary Octal Hexa-decimal 0 0 0 0 1 1 1 1 2 10 2 2 3 11 3 3 4 100 4 4 5 101 5 5 6 110 6 6 7 111 7 7 8 1000 10 8 9 1001 11 9 10 1010 12 A 11 1011 13 B 12 1100 14 C 13 1101 15 D 14 1110 16 E 15 1111 17 F 16 10000 20 10
  • 10. P.KIRAN KUMAR,ECE DEPARTMENT 10 Binary to Decimal •Technique –Multiply each bit by 2n, where n is the “weight” of the bit –The weight is the position of the bit, starting from 0 on the right –Add the results
  • 11. P.KIRAN KUMAR,ECE DEPARTMENT 11 Binary to Decimal
  • 13. P.KIRAN KUMAR,ECE DEPARTMENT 13 Octal to Decimal •Technique –Multiply each digit by 8n, where n is the “weight” of the digit –The weight is the position of the digit, starting from 0 on the right –Add the results
  • 14. P.KIRAN KUMAR,ECE DEPARTMENT 14 Octal to Decimal
  • 15. P.KIRAN KUMAR,ECE DEPARTMENT 15 Number Systems
  • 16. P.KIRAN KUMAR,ECE DEPARTMENT 16 Hexadecimal to Decimal •Technique –Multiply each digit by 16n, where n is the “weight” of the digit –The weight is the position of the digit, starting from 0 on the right –Add the results
  • 17. P.KIRAN KUMAR,ECE DEPARTMENT 17 Hexadecimal to Decimal
  • 18. P.KIRAN KUMAR,ECE DEPARTMENT 18 Number Systems
  • 19. P.KIRAN KUMAR,ECE DEPARTMENT 19 Decimal to Binary •Technique –Divide by two, keep track of the remainder –First remainder is bit 0 (LSB, least-significant bit) –Second remainder is bit 1 –Etc.
  • 20. P.KIRAN KUMAR,ECE DEPARTMENT 20 Decimal to Binary
  • 21. P.KIRAN KUMAR,ECE DEPARTMENT 21 Number Systems
  • 22. P.KIRAN KUMAR,ECE DEPARTMENT 22 Octal to Binary •Technique –Convert each octal digit to a 3-bit equivalent binary representation
  • 23. P.KIRAN KUMAR,ECE DEPARTMENT 23 Number Systems
  • 24. P.KIRAN KUMAR,ECE DEPARTMENT 24 Hexadecimal to Binary •Technique –Convert each hexadecimal digit to a 4-bit equivalent binary representation
  • 25. P.KIRAN KUMAR,ECE DEPARTMENT 25 Number Systems
  • 26. P.KIRAN KUMAR,ECE DEPARTMENT 26 Decimal to Octal •Technique –Divide by 8 –Keep track of the remainder
  • 27. P.KIRAN KUMAR,ECE DEPARTMENT 27 Number Systems
  • 28. P.KIRAN KUMAR,ECE DEPARTMENT 28 Decimal to Hexadecimal •Technique –Divide by 16 –Keep track of the remainder
  • 29. P.KIRAN KUMAR,ECE DEPARTMENT 29 Number Systems
  • 30. P.KIRAN KUMAR,ECE DEPARTMENT 30 Binary to Octal •Technique –Group bits in threes, starting on right –Convert to octal digits
  • 31. P.KIRAN KUMAR,ECE DEPARTMENT 31 Number Systems
  • 32. P.KIRAN KUMAR,ECE DEPARTMENT 32 Binary to Hexadecimal •Technique –Group bits in fours, starting on right –Convert to hexadecimal digits
  • 33. P.KIRAN KUMAR,ECE DEPARTMENT 33 Number Systems
  • 34. P.KIRAN KUMAR,ECE DEPARTMENT 34 Octal to Hexadecimal •Technique –Use binary as an intermediary
  • 35. P.KIRAN KUMAR,ECE DEPARTMENT 35 Number Systems
  • 36. P.KIRAN KUMAR,ECE DEPARTMENT 36 Hexadecimal to Octal •Technique –Use binary as an intermediary
  • 37. P.KIRAN KUMAR,ECE DEPARTMENT 37 Number Systems
  • 38. P.KIRAN KUMAR,ECE DEPARTMENT 38 Number Systems
  • 39. P.KIRAN KUMAR,ECE DEPARTMENT 39 Binary Addition Two n-bit values –Add individual bits –Propagate carries –E.g., Two 1-bit values
  • 40. P.KIRAN KUMAR,ECE DEPARTMENT 40 Multiplication Binary, two 1-bit values Binary, two n-bit values –As with decimal values –E.g.,
  • 41. P.KIRAN KUMAR,ECE DEPARTMENT 41 Fractions Binary to decimal
  • 42. P.KIRAN KUMAR,ECE DEPARTMENT 42 Fractions Decimal to Binary
  • 43. P.KIRAN KUMAR,ECE DEPARTMENT 43 Number Systems
  • 45. P.KIRAN KUMAR,ECE DEPARTMENT 45 Negative Numbers 1. Sign and Magnitude Representation 2. 1’s Complement Representation 3. 2’s Complement Representation Goal of negative number systems •Signed system: Simple. Just flip the sign bit 0 = positive 1 = negative •One’s complement: Replace subtraction with addition –Easy to derive (Just flip every bit) •Two’s complement: Replace subtraction with addition –Addition of one’s complement and one produces the two’s complement.
  • 46. P.KIRAN KUMAR,ECE DEPARTMENT 46 Negative Numbers Given a positive integer x, we represent -x
  • 47. P.KIRAN KUMAR,ECE DEPARTMENT 47 Negative Numbers 4-Bit Example
  • 48. P.KIRAN KUMAR,ECE DEPARTMENT 48 Number Systems Given n-bits, what is the range of my numbers in each system?
  • 49. P.KIRAN KUMAR,ECE DEPARTMENT 49 Subtraction Using Addition :: 1’s Complement • How to compute A – B ? – Compute the 1’s complement of B (say, B1). – Compute R = A + B1 – If a carry is obtained after addition is ‘1’: • Add the carry back to R (called end-around carry). • That is, R = R + 1. • The result is a positive number. Else •The result is negative, and is in 1’s complement form in R.
  • 50. P.KIRAN KUMAR,ECE DEPARTMENT 50 Example 1 :: 6 – 2 1’s complement of 2 = 1101 6 :: 0110 -2 :: 1101 1 0011 1 0100 = +4 End- around carry Assume 4-bit representations. Since there is a carry, it is added back to the result. The result is positive.
  • 51. P.KIRAN KUMAR,ECE DEPARTMENT 51 Example 2 :: 3 – 5 1’s complement of 5 = 1010 Assume 4-bit representations. Since there is no carry, the result is negative. 1101 is the 1’s complement of 0010, that is, it represents –2. 3 :: 0011 -5 :: 1010 1101 = -2
  • 52. P.KIRAN KUMAR,ECE DEPARTMENT 52 Subtraction Using Addition :: 2’s Complement • How to compute A – B ? – Compute the 2’s complement of B (say, B2). – Compute R = A + B2 – If a carry is obtained after addition is ‘1’: • Ignore the carry. • The result is a positive number. Else • The result is negative, and is in 2’s complement form in R.
  • 53. P.KIRAN KUMAR,ECE DEPARTMENT 53 Example 1 :: 6 – 2 2’s complement of 2 = 1101 + 1 = 1110 6 :: 0110 -2 :: 1110 1 0100 = +4 Ignore carry Assume 4-bit representations. Presence of carry indicates that the result is positive. No need to add the end-around carry like in 1’s complement.
  • 54. P.KIRAN KUMAR,ECE DEPARTMENT 54 Example 2 :: 3 – 5 2’s complement of 5 = 1010 + 1 = 1011 Assume 4-bit representations. Since there is no carry, the result is negative. 1110 is the 2’s complement of 0010, that is, it represents –2. 3 :: 0011 -5 :: 1011 1110 = -2
  • 55. P.KIRAN KUMAR,ECE DEPARTMENT 55 OR Gate A Diode logic OR circuit Boolean Identities
  • 56. P.KIRAN KUMAR,ECE DEPARTMENT 56 AND Gate A Diode logic AND circuit Boolean Identities
  • 57. P.KIRAN KUMAR,ECE DEPARTMENT 57 NOT Gate or Inverter A Transistor logic NOT circuit
  • 58. P.KIRAN KUMAR,ECE DEPARTMENT 58 Exclusive OR gate (XOR gate) • The output of a two input XOR gate assumes the 1 state if one and only input assumes the 1 state • The boolean notation for the XOR is
  • 59. P.KIRAN KUMAR,ECE DEPARTMENT 59 Exclusive OR gate (XOR gate)
  • 60. P.KIRAN KUMAR,ECE DEPARTMENT 60 De Morgan’s Laws • The statement “if and only if all inputs are true(1), then the output is true(1)” is logically equivalent to the statement “If at least one input is false(0), then the output is false(0)” • In boolean notation this equivalence can be written as or and its dual are known as De Morgan’s laws
  • 61. P.KIRAN KUMAR,ECE DEPARTMENT 61 The NAND gate
  • 62. P.KIRAN KUMAR,ECE DEPARTMENT 62 The NOR gate
  • 63. P.KIRAN KUMAR,ECE DEPARTMENT 63 Logic Families
  • 64. P.KIRAN KUMAR,ECE DEPARTMENT 64 Characteristics ➢ Fan in : The number of inputs that the gate can handle properly with out disturbing the output level. ➢ Fan out : The number of inputs that can driven simultaneously by the output with out disturbing the output level. ➢ Noise immunity : Noise immunity is the ability of the logic circuit to tolerate the noise voltage. ➢ Noise Margin : The quantative measure of noise immunity is called noise margin.
  • 65. P.KIRAN KUMAR,ECE DEPARTMENT 65 Characteristics ➢ Propagation Delay : The propagation delay of gate is the average transition delay time for the signal to propagate from input to output. It is measured in nanoseconds ➢ Threshold Voltage : The voltage at which the circuit changes from one state to another state ➢ Operating Speed : The speed of operation of the logic gate is the time that elapses between giving input and getting output. ➢ Power Dissipation : The power dissipation is defined as power needed by the logic circuit.
  • 66. P.KIRAN KUMAR,ECE DEPARTMENT 66 Diode Transistor Logic •DTL was first commercial available IC logic family in 53/73 series. •The basic circuit in the DTL logic is the NAND gate. •Each input associated with one diode. •The diode and resistor form an AND gate. •The transistor services as a NOT gate A B Y=A.B 0 0 1 0 1 1 1 0 1 1 1 0
  • 67. P.KIRAN KUMAR,ECE DEPARTMENT 67 Diode Transistor Logic Working Three input positive NAND (or Negative NOR)gate with DTL Logic
  • 68. P.KIRAN KUMAR,ECE DEPARTMENT 68 Diode Transistor Logic Working If any input is low •The corresponding diode conducts current through Vcc and resistor into the input node. •The voltage at point p is equal to the input voltage + diode drop. •This is an insufficient voltage for conduction of a transistor •Since the voltage at point p is 0v then the transistor is cut off state and the output is logic 1. If all inputs are high •The transistor is driven into saturation region. •The voltage at point p is high. •Hence the output is low.
  • 69. P.KIRAN KUMAR,ECE DEPARTMENT 69 Diode Transistor Logic Characteristics It has fan-out of 8 It has high noise immunity. Power dissipation is 12mw. Propagation delay is average 30ns. Noise margin is about 0.7V.
  • 70. P.KIRAN KUMAR,ECE DEPARTMENT 70 Modified DTL Gates  Most logic gates are fabricated as an integrated circuit. In this all the transistors, diodes, resistors and capacitors in a fairly complicated circuit may be shaped within a tiny chip of single crystal silicon It turns out that large values of resistance and capacitance can not be fabricated economically In view of these facts the NAND gate is modified for integrated circuit implementation by eliminating the capacitor , reducing the resistance values drastically and using diodes or transistors to replace resistors wherever possible
  • 71. P.KIRAN KUMAR,ECE DEPARTMENT 71 Modified DTL Gates An integrated or Modified positive DTL NAND gate
  • 72. P.KIRAN KUMAR,ECE DEPARTMENT 72 High Threshold Logic(HTL) In an Industrial environment the noise level is quite high because of the presence of motors, high voltage switches, on – off control circuits ……etc By using a Zener diode in the place of diode D2 in the DTL gate this circuit is converted to the high noise immunity gate
  • 73. P.KIRAN KUMAR,ECE DEPARTMENT 73 Transistor Transistor Logic •TTL family is a modification to the DTL. It has come to existence so as to overcome the speed limitations of DTL family. The basic gate of this family is TTL NAND gate. • Modifications to DTL NAND- 1. The diodes D1, D2 and D3 are replaced by emitter-base junctions of a multiple-emitter transistor labeled T1. 2. Diode DA is replaced by collector-base junction of T1. 3. Diode DB is replaced by emitter-base junction of transistor labeled T2.
  • 74. P.KIRAN KUMAR,ECE DEPARTMENT 74 Transistor Transistor Logic
  • 75. P.KIRAN KUMAR,ECE DEPARTMENT 75 Transistor Transistor Logic Working The working of this circuit is identical to that of DTL circuit. Case1- When at least one input is logic LOW, transistor Q2 and Q3 are in cut-off and hence, output of Q3 is HIGH. Case2- When all inputs are HIGH, Q1 operates in active inverse mode, driving Q2 & Q3 in saturation. Since Q3 is ON, the output is LOW. Case3- While all inputs are HIGH, if any of the inputs suddenly goes LOW, then Q2 and Q3 will be turned off only when stored base charge is removed. The collector-base junction of Q1 is back- biased and Q1 operates in normal active region. A large collector current of Q1 is in such direction that it helps removing base charge of Q2 and Q3. In this way, the circuit speed is increased in TTL over speed of DTL.
  • 76. P.KIRAN KUMAR,ECE DEPARTMENT 76 Transistor Transistor Logic Characteristics TTL has greater speed than DTL. Less noise immunity. It has high noise immunity. Power dissipation is 10mw. It has fan-in of 6 and fan-out of 1  Propagation time delay is 5-15nsec.
  • 77. P.KIRAN KUMAR,ECE DEPARTMENT 77 Resistor Transistor Logic  RTL is the first logic family which is not available in monolithic form. The basic circuit of the RTL logic family is the NOR. Each input is associated with one resistor and one transistor. The collector of the transistor are tied together at the output The voltage levels for the circuit are 0.2v for the low level and from 1 to 3.6v for the high level
  • 78. P.KIRAN KUMAR,ECE DEPARTMENT 78 Resistor Transistor Logic A B Y=A+B 0 0 1 1 0 1 0 1 1 0 0 0 If any input is high the corresponding transistor is driven into saturation and the output goes low, regardless of the states of the other transistor. If all inputs are low then all transistor are in cutoff state and the output of the circuit goes high. Truth Table
  • 79. P.KIRAN KUMAR,ECE DEPARTMENT 79 Resistor Transistor Logic An RTL positive NOR gate with a Fan – in of 3 and Fan – out of 5
  • 80. P.KIRAN KUMAR,ECE DEPARTMENT 80 Resistor Transistor Logic Characteristics : •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. Poor noise immunity. •Low speed.
  • 81. P.KIRAN KUMAR,ECE DEPARTMENT 81 Direct Coupled Transistor Logic  DCTL configuration is the same as RTL except that the base resistors are omitted A positive NOR DTCL gate with a Fan – in of 3 and Fan – out of 2
  • 82. P.KIRAN KUMAR,ECE DEPARTMENT 82 Emitter Coupled Logic (ECL)
  • 83. P.KIRAN KUMAR,ECE DEPARTMENT 83 Emitter Coupled Logic (ECL) • ECL logic family implements the gates in differential amplifier configuration in which transistors are never driven in the saturation region thereby improving the speed of circuit to a great extent. The ECL family is fastest of all logic families. • The basic gate of ECL family is NOR gate (OR and NOR together) as shown in diagram. The output1 is OR output while ouput2 is NOR output. • Transistor T1 is applied with input and additional inputs are applied to transistors (T1’, T1’’, . . .) in parallel with T1. Thus transistor(s) T1 and T2 are connected in differential amplifier configuration.
  • 84. P.KIRAN KUMAR,ECE DEPARTMENT 84 Emitter Coupled Logic (ECL) • Transistors T3 and T4 are emitter-followers used for DC level-shifting of output voltages. •The positive supply terminal of the circuit is grounded while negative supply terminal is at negative 5.2V. This is done to minimize the effect of noise introduced by the power supply and also to protect the gate from short-circuit that might occur accidently. •Both the outputs (HIGH/LOW) for OR and NOR are negative. Thus, to interface this logic family with other, a translator circuit is needed which converts negative voltages to compatible positive voltage levels.
  • 85. P.KIRAN KUMAR,ECE DEPARTMENT 85 MOS Logic family •MOS logic family implements the logic gates using MOSFET devices. MOSFETs are high density devices which can easily and economically fabricated on ICs. MOS logic gates can be fabricated using either only NMOS or only PMOS devices. •MOS logic is vastly used in LSI and VLSI devices, such as microprocessor chips, due to their high density characteristic.
  • 86. P.KIRAN KUMAR,ECE DEPARTMENT 86 MOS Logic family NMOS NOR gate If both transistors T1 and T2 are off i.e. A = B = LOW, then output is HIGH = VDD. If either of the inputs is HIGH, then corresponding transistor(s) is/are ON, thus connecting output to GND i.e. LOW.
  • 87. P.KIRAN KUMAR,ECE DEPARTMENT 87 MOS Logic family NMOS NAND gate If both inputs are ON, then only both T1 and T2 are ON and output is LOW; otherwise (when either or both transistors are OFF,) the output is HIGH.
  • 88. P.KIRAN KUMAR,ECE DEPARTMENT 88 CMOS Logic family CMOS stands for complementary-MOS, in which both p-channel and n-channel enhancement MOSFET devices are fabricated on same chip. This causes density to be reduced and complex fabrication process. However, CMOS devices consume negligible power and hence are preferred over MOS devices in battery operated applications.
  • 89. P.KIRAN KUMAR,ECE DEPARTMENT 89 CMOS Logic family CMOS NAND gate T1 and T2 are n-channel MOSFETs while T3 and T4 are p-channel MOSFETs. When both inputs A & B are HIGH, then T1 & T2 are ON while T3 & T4 are OFF. Hence, output is connected to GND i.e. LOW. If either input is LOW, then either T3 or T4 is ON, connecting output is +Vcc i.e. HIGH.
  • 90. P.KIRAN KUMAR,ECE DEPARTMENT 90 CMOS Logic family CMOS NOR gate Similar is working of CMOS NOR gate shown in figure aside. Here, p-channel devices are in series and n-channel devices are in parallel.
  • 91. P.KIRAN KUMAR,ECE DEPARTMENT 91 Comparison of Logic Families
  • 92. P.KIRAN KUMAR,ECE DEPARTMENT 92 Comparison of Logic Families