KITHUATDIENTU

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 431

TRƯỜNG ĐẠI HỌC BÁCH KHOA

KHOA CƠ KHÍ
BỘ MÔN CƠ ĐIỆN TỬ

KỸ THUẬT ĐIỆN TỬ
(Cho sinh viên ngành Cơ điện tử)
Firma convenzione
Năm học: 2023 - 2024
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
MercoledìTS. Đặng Phước
27 maggio 2015 Vinh
Email: dpvinh@dut.udn.vn
2
Content – 30 hours
Chapter 1: Introduction

Chapter 2: Diode & Application

Chapter 3: BJT & Application

Chapter 4: OPAMP & Application

Chapter 5: Fundamental of Digital Electronics

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


3
References
1. Slides Kỹ thuật Điện Tử

2. Slide “Kỹ thuật điện tử”, Huỳnh Việt Thắng, DUT

3. Đỗ Xuân Thụ, “Kỹ thuật Điện Tử”, NXB Giáo dục


Việt Nam, 2011

4. Trần Quang Vinh, “Nguyên lý kỹ thuật điện tử”,


NXB Giáo dục, 2009.

5. Internet
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
4
Evaluation
 3 elements: Process + Mid-term + Final exam
 Weight:
 Process: Diligence 15% + Exercises 15%
• 01 absence -2 of diligence
• 05 absences  No final exam
 Mid-term exam: 20%
 Final exam: 50%
 Exam: written exam, materials are not allowed (60 min)
 “Liêm chính học thuật”

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


5
Liêm chính học thuật
 Đình chỉ học tập 6 tháng: mang phương tiện kỹ thuật mang tin,
truyền - nhận tin (như điện thoại, máy ảnh, đồng hồ thông minh,...)
vào phòng thi
 Đình chỉ học tập 12 tháng: đi thi hộ hoặc nhờ người khác thi hộ,
làm bài hộ đối với trường hợp vi phạm lần thứ nhất; người học sử
dụng phương tiện kỹ thuật mang tin, truyền - nhận tin trong thời
gian thi.
 Buộc thôi học: đã bị kỷ luật với hình thức “Đình chỉ học tập 6
tháng” hoặc “Đình chỉ học tập 12 tháng” và sau đó phạm lỗi có mức
độ “Đình chỉ học tập 6 tháng” hoặc “Đình chỉ học tập 12 tháng”; sử
dụng giấy tờ giả mạo và nhờ thi hộ; tổ chức thi hộ; tổ chức làm giả
các giấy tờ liên quan đến kỳ thi.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


6
Role of subject
 Provide basic knowledge for:
 Digital Technique
 Microcontroller + Practice
PBL3
 Industrial Sensor
 Workshop Practice 2
 Applied Electronics
 Mechatronics System + PBL4
 Final Project

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


7
PBL3

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


8
PBL3

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


9
PBL4 & Final Project

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


10
PBL4 & Final Project

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


11
Software

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


12
Proteus

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


13
Altium Designer

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


14
Altium Designer – 3D

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


Chapter 1

Introduction
Firma convenzione
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
16
Content
1. History
2. Popular electronic devices
 Passive devices
 Active devices
 Opto-Electronic devices
3. Voltage, current and fundamental laws
 Voltage and Current
 Voltage source and Current source
 Ohm law
 Kirchoff voltage law (KVL)
 Kirchoff current law (KCL)

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


17
Symbols

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


18
Symbols
Power supply Ground/Masse

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


19
Analog vs. Digital
 Analog (Điện tử tương tự )
 Digital (Điện tử số)
 0V - 0.8V  “0” / Low
 2.7V - 5V  “1” / High

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


20
Analog vs. Digital

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


21
Analog vs. Digital

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


22
Analog vs. Digital

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


23
Datasheet

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


24
Datasheet

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


History
Firma convenzione
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
26
History
 Thomas Alva Edison
(11/1847 - 10/1931) was an
American inventor and
businessman, who has been
described as America's
greatest inventor

 Edison patented 1,093 of his


inventions

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


27
History
 In 1876, he established his first
laboratory facility in Menlo
Park, New Jersey.
 In 1878, Edison began working
on a system of electrical
illumination.
 In 12/1879, Thomas Edison's
first successful light bulb model,
used in public demonstration at
Menlo Park

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


28
History - Transistor
In 1948, the point contact
transistor was independently
invented by German physicists
Herbert Mataré and Heinrich
Welker while working at the
Compagnie des Freins et
Signaux, in Paris.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


29
History – BJT

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


30
History – FET
The most widely used transistor is the MOSFET (metal–
oxide–silicon field-effect transistor), also known as the MOS
transistor, which was invented by Mohamed
Atalla and Dawon Kahng at Bell Labs in 1959.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


31

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


32
History – IC
 1960: First Planar Integrated Circuit was fabricated
 An integrated circuit or monolithic integrated circuit (also
referred to as an IC, a chip, or a microchip) is a set
of electronic circuits on one small flat piece (or "chip“) of
semiconductor material that is normally silicon

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


Popular Electronic
Firma convenzione

Devices
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
34
Classification
1. Passive device

2. Active device

3. Opto-Electronic devices

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


35

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


36
Passive Device
A passive element is an electrical component that does
not generate power, but instead dissipates, stores,
and/or releases it, includes:

 Resistor

 Capacitor

 Inductor

 Relay
 …
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
37
Resistor
 Resistor: is a passive two-terminal electrical
component that implements electrical resistance as a
circuit element
 Resistivity is a fundamental property of a material that
measures how strongly it resists electric current.

 A low resistivity indicates a material that readily allows


electric current and vice versa.
 The SI unit of electrical resistivity is the ohm-meter (Ω.m).

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


38
Electrical Resistivity

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


39
Electrical Resistivity

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


40
Resistor
SI unit: Ohm ().
– 1k = 103 .
– 1M = 106 .

Resistor Variable Resistor


Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
41
Resistor

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


42
Power Resistor

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


43
Variable Resistor

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


44
Potentiometers
Potentiometers are used to vary the resistance in a
circuit by turning a rotary knob

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


45
Measure R?

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


46
Resistor Color Codes

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


47
Resistor Color Codes

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


48
Surface-mount device (SMD)

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


49
Linh kiện dán (SMD)

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


50

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


51

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


52
Surface-mount device

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


53
Bar Resistor

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


54
Bar Resistor

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


55
Capacitor
 A capacitor is a device
that stores electrical
energy in an electric
field.
 It is passive electronic
component with
two terminals.
 Capacitance: Fara (F)
– 1F = 10-6 F.
– 1nF = 10-9 F.
– 1pF = 10-12 F.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


56
Capacitor
• A capacitor consists of two conductors separated by a
non-conductive region.
• The non-conductive region can either be a vacuum or an
electrical insulator material known as a dielectric.
• In the long-time limit, after the charging/discharging
current has saturated the capacitor, no current would
come into (or get out of) either side of the capacitor 
the long-time equivalence of capacitor is an open circuit.
• In the short-time limit, if the capacitor starts with a
certain voltage V, since the voltage drop on the capacitor
is known at this instant, we can replace it with an ideal
voltage source of voltage V. Specifically, if V=0 (capacitor
is uncharged), the short-time equivalence of a capacitor is
a short circuit.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


57
Application
– Filter: smooth the output of power supplies

– High frequency noise filter: capacitor can be consider as


short circuit at high frequency  use for high frequency filter.

– Amplifier stage: allowing AC and blocking DC  block DC


signal in the amplifier stages.

– Frequency filter: combine with other passive devices such


as resistor or inductor to become the certain frequency filter
circuits.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


58
DC Power Supply

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


59
DC Power Supply

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


60
DC Power Supply

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


61
Classification

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


62
Ceramic Capacitor

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


63
Electrolytic Capacitor

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


64
Electrolytic Capacitor

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


65
Electrolytic Capacitor

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


66
Capacitor Symbols

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


67
Variable Capacitor

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


68
Exercises
1. How to test a capacitor?

2. What are functions of capacitor?

3. The differences between ceramic and


Electrolytic capacitor?

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


69
Inductor
 An inductor, also called a coil, choke, or reactor, is a passive two-
terminal electrical component that stores energy in a magnetic
field when electric current flows through it.
 An inductor typically consists of an insulated wire wound into a coil.
 Many inductors have a magnetic core made of iron or ferrite inside the coil.
 When the current flowing through the coil changes, the time-varying
magnetic field induces an electromotive force (e.m.f.) (voltage) in the
conductor, described by Faraday's law of induction.
 According to Lenz's law: inductors oppose any changes in current through
them.
 They are used to block high frequency AC while allowing DC to pass. They
are also used in electronic filters to separate signals of different frequencies
 SI Unit: Henry (H) 1mH = 10-3H.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


70
Inductor
An inductor is characterized by its inductance, which is the ratio
of the voltage to the rate of change of current.

= 2. .f.L

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


71
Cuộn cảm

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


72

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


73
Classification

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


74
Classification
Variable core
Air core

Iron core

Ferrite core
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
75
Exercises
1. Characteristics, functions and applications of
4 kinds of inductors?

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


76
Transformer
A transformer is a device that transfers electric energy from one
alternating-current circuit to one or more other circuits, either
increasing (stepping up) or reducing (stepping down) the voltage.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


77
Transformer

Where N is the
number of turns
in winding

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


78
Step down transformer
Primary Secondary

1000 V 50 turns 10 turns 200 V


2A 10 A

2000 W 2000 W

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


79
Transformer

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


80
Biến áp

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


81
DC Power Supply

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


82
Transformer

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


83
Relay
 A relay is an electrically operated switch
 Consists of a coil of wire wrapped around a soft iron core (a solenoid),
an iron yoke which provides a low reluctance path for magnetic flux, a
movable iron armature, and one or more sets of contacts2 status: ON
and OFF
 Widely application in domestic and industrial devices

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


84
Construction

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


85
Cấu tạo

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


86
Cấu tạo

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


87
Cấu tạo

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


88
Thermal Relay
 The basic working principle of thermal
relay is that, when a bimetallic strip is
heated up by a heating coil carrying over
current of the system, it bends and makes
normally open contacts.
 The bimetallic strips are made of the alloy
of nickel and steel.
 When the fault occurs on the system, the
bimetallic spring is heated and getting
bent.
 The contact of the relay energizes the trip
circuit because of which the contacts of the
circuit breaker close. Thus, the system
remains safe.
 This relay has low overloading
capability. It is designed to operate under
6 ~ 7 times more than the fullFaculty
Dr. Dang Phuoc Vinh
load of Mechanical Engineering
current.
89
Thermal Relay

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


90
Thermal Relay

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


91
Applications

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


92
Active Devices
 An active device is any type of circuit component with the ability
to electrically control electric charge flow (electricity controlling
electricity) such as diodes, transistors, SCRs, TRIACs,…
 In order for a circuit to be properly called electronic, it must
contain at least one active device.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


93
Diode
A diode is a type of two-terminal electronic component with nonlinear
resistance and conductance (i.e., a nonlinear current–voltage
characteristic), distinguishing it from components such as two-
terminal linear resistors which obey Ohm's law

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


94
Diode – Function
 Allowing an electric current to pass in one direction (called the
diode's forward direction)
 Blocking current in the opposite direction (the reverse
direction).

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


95
Diode Bridge
A diode bridge is an arrangement of four (or more) diodes in a bridge
circuit configuration that provides the same polarity of output for
either polarity of input. When used in its most common application,
for conversion of an Alternating Current (AC) input into Direct
Current a (DC) output, it is known as a bridge rectifier

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


96
Diode Bridge

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


97
Classification
 Rectifier Diode (Diode chỉnh lưu)
 Zener Diode
 Diode varicap or varactor (Diode biến dung)
 Diode Tunnel (Diode hầm)

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


98
Transistor
 BJT (Bipolar Junction Transistor)
 Three-terminal electronic device constructed of
doped semiconductor material.
 2 types:
 NPN
 PNP NPN PNP
 BJT is an important device in the electronic circuits.
 Switching
 Amplifying

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


99

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


100
BJT

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


101
Opto-Electronic Devices
 Light Dependent Resistor
 Photo Diode
 Photo Transistor

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


102
Light Dependent Resistor
Light Dependent Resistor (LDR): is a passive component that
decreases resistance with respect to receiving luminosity (light) on
the component's sensitive surface. The resistance of a photo-
resistor decreases with increase in incident intensity

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


103
Photo Diode
 A semiconductor diode
 Converts light into an electrical current
 Operate at reverse biased.
 Traditional solar cell used to generate
electric solar power is a large area
photodiode

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


104
Photo Tranzito
 The Phototransistors are manufactured in the
similar way by which normal transistor is
manufactured
 Only difference is the area of the base and
collector region in case of phototransistors is quite
large as compared to the normal transistor. This is
because the more the light falls on the
phototransistor the more current it will generate

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


105
Light Emitting Devices
 LED: Light Emitting Diode
 7-segment Display (LED 7 đoạn)

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


106
LED
 In 1962: Low-Density red LED
 As diode is forward biased  electron combines hole 
releases energy in the form of a photon
 Note: The maximum current for the standard LED is
about 10-20 mA

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


107
LED

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


108
Application
 In the domestic and industrial field
 High-Density LED (LED siêu sáng)
 Red & Yellow: 1.9V – 2.1V
 Blue: 3.0V – 3.4V
 White: 3.4V – 4.0V

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


109
Flexible LED Strip Lights

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


110
7-segment Display
2 types: Common Anode & Cathode
CA: Common Anode
Anode chung

A B C D E F G Dp

A B C D E F G Dp

CC: Common Cathode


Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
Cathode chung
111
4-Digit Display

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


112

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


113
Digital Clock

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


114
4 x 14 Affichages LED

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


115
LCD
Liquid-crystal display (LCD) is a flat-panel display or other
electronically modulated optical device that uses the light-modulating
properties of liquid crystals

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


116
LCD

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


Voltage, Current &
Firma convenzione
Basic Laws
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
118
Voltage
 Voltage, electric potential difference is the difference
in electric potential between two points.
 A voltmeter can be used to measure the voltage (or
potential difference) between two points in a system.
 Often a common reference potential such as
the ground of the system is used as one of the points.
 SI unit: Volt (V).

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


119
Current
 Electric current is flow of electrons in a conductor.
 2 different kinds of charge:
– Hole: Positive charge
– Electron: Negative charge
 Current flow is reverse with electron flow
 SI Unit: Ampere (A).

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


120
Current & Voltage Source
Current source: delivers or absorbs an electric current which is
independent of the voltage across it
Voltage source: is a two-terminal device which can maintain a
fixed voltage and is independent of the load resistance or the
output current

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


121
Ohm’s Law
 A well known law: V = IR
 Linearity between voltage and
current.
 He was considered crazy,
because he assumed that the
current was the same in different
elements connected in series.
 He lost his professor position.
Georg Simon Ohm
(1789 – 1854)
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
122
Ohm’s Law

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


123
Ohm’s Law

What is now known as Ohm's law


appears in the famous book Die
galvanische Kette, mathematisch
bearbeitet (1827) in which he gave his
complete theory of electricity

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


124
Ohm’s Law in book

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


125
Kirchhoff Law
Kirchhoff’s Voltage Law (KVL)
– Sum of the voltage differences around any
closed loop in a circuit must be zero.
– V=0.

Gustav Kirchhoff
(1824 – 1887)

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


126
Kirchhoff Law
Kirchhoff’s Current Law (KCL): current flowing into a node (or a
junction) must be equal to the current flowing out of it.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


127
Kirchhoff Law
What is the magnitude of the electric potential difference across
resistor R2?
A: 8V B: 12V C: 3V D: 6V

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


128
Kirchhoff Law

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


Chapter 2
Diode
Applications
Firma convenzione
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
130
Content
 Semiconductor
 Diode
 Construction
 Characteristics & Parameters
 DC Power Supply

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


Semiconductor
Firma convenzione
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
132
Semiconductor
Based on the resistivity , we have 3 kinds of material:
– Conductor
– Semiconductor
– Insulator
Conductor characteristic of some materials are dependent on
environment such as temperature, humidity, pressure…

Conductor Semiconductor Insulator


Điện trở suất
10-610-4 10-4104 1051022
 (cm)
T0    
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
133
R vs. T

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


134
R vs. T

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


135
Electrical Charge
 Electric current is flow of electrons in a conductor.

 2 different kinds of charge:


– Hole: Positive charge
– Electron: Negative charge

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


136
Energy Band
 Valence Band: the band of electron orbitals that electrons can
jump out of, moving into the conduction band when excited.
 Conduction Band: the band of electron orbitals that electrons
can jump up into from the valence band when excited.
 Band gap: the minimum energy required to excite an electron
that is stuck in its bound state into a free state where it can
participate in conduction.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


137
Energy Band
Insulator Semiconductor Conductor

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


138
Electric current flow
 In order to generate an electric current  need 2 conditions
 Generate free charges thanks to energy supply
 These charges move in a certain flow
 Current flow is reverse with electron flow

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


139
Intrinsic Semiconductor
 2 typical intrinsic (pure) semiconductor
– Ge: Germanium small energy is needed in order
– Si: Silicium to break the covalent bond

 Belong to the IV group of the Periodic Table.

 Consists of 4 electrons in the valence shell

 4 covalent bonds are formed between the electrons of


the silicon atom.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


140
Intrinsic Semiconductor
n: number of electron n = p
p: number of hole
• When the temperature of the
crystal is increased  the
electrons in the covalent bond
gain kinetic energy  breaking
the covalent bond  free.
• Thus, the movement of free
electrons generates current.
• The rise in temperature
somewhat increases the
number for free electrons for
conduction.
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
141
Doped Semiconductor
N type: major carrier is electron 10 − 10
P type: major carrier is hole atom/

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


142
N-type Semiconductor
 Adding the group V elements or pentavalent impurity
to a pure semiconductor, such as Phosphor.

 These are termed as donor impurity

 A pentavalent impurity holds 5 electrons in its valence


shell

 n>p

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


143
N-type Semiconductor

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


144
P-type Semiconductor
 Introducing group III elements or trivalent impurity
into the pure semiconductor, such as Boron (Bo).

 These are termed as acceptor impurity

 A trivalent impurity has only 3 electrons in the valence


shell

 p>n

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


145
P-type Semiconductor

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


146
Doped Semiconductor

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


147
Chất bán dẫn tạp

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


148
Semiconductor

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


DIODE
Firma convenzione
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
150
Diode
Diode is a crystalline piece of semiconductor material with
a P–N junction connected to two electrical terminals.
Two Electrode
Di ode
P N
Greek
D1
ANODE CATHODE
DIODE

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


151
Price

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


152
Application

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


153
Biasing Mode

 Unbiased

 Reverse Biased

 Forward Biased

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


154
Unbiased
 At the across of P-N junction,
electrons of N-type combine
with the hole of P-type 
Depletion Zone (100 µm)

 A voltage barrier is generated.


– Ge: U = V ~ 0.3V
– Si: U = V ~ 0.6V

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


155
Reverse Biased
 Free holes of that region are attracted
towards the negative terminal of the E
source
 Free electrons of that region are
attracted towards the positive terminal
of the source
 Depletion layer is larger.
 Ideally: no current flows in diode when
reverse biased.
 Tiny current flow from N-type region
to P-type region due to minority
carriers that are thermally generated
electrons in P-type semiconductor and
holes in an N-type semiconductor.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


156
Forward Biased
 Free holes of that region are E
attracted towards the positive
terminal of the source
 Free electrons of that region are
attracted towards the negative
terminal of the source
 Depletion layer is disappear
 Free electrons from the N-type
region can easily drift to the P-type
region
 Holes from the P-type region to the
N-type region in the crystal.
 Ideally, there will be no obstruction
of flowing current, and the PN
Dr.junction behaves
Dang Phuoc Vinh as the short circuit
Faculty of Mechanical Engineering
157
Operating Principle

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


158
Classification

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


159
Current in Diode
The diode equation gives an expression for the current through a
diode as a function of voltage. The Ideal Diode Law, expressed as:

I =I −1
where
• q: absolute value of electron charge (q = 1,6.10 C)
• k: Boltzmann's constant (k = 1,38.10-23 J/K)
• T: Kelvin temperature (K).
• U: applied voltage across the terminals of the diode
• I : "dark saturation current", the diode leakage current
density in the absence of light.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


160
Current in Diode
When diode is biased (I , U0):
= / −1

Equation of
Set UT = kT/q is the thermal voltage Diode characteristic
At 300 K: UT ~ 25.5 mV.
/
= −1
Dark saturation current :
= . /°
= ( ) ( ) ° = − ;

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


Static Characteristic
&
Firma convenzione
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Parameters
Mercoledì 27 maggio 2015
 Forward biased 162
Static characteristics  U remains constant
when I change
 Working range of
Diode equation I =I −1 rectifier

 Reverse biased
 U remains
constant when
I change
 Working range
Dr. Dang Phuoc Vinh of ZenerFaculty
diodeof Mechanical Engineering
Avalanche breakdown? 163

Both breakdown types are used


in Zener diodes with the Zener
effect predominating at lower
voltages and avalanche
breakdown at higher voltages.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


164
Datasheet

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


165
Datasheet

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


166

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


167
Working conditions
 Diode is forward biased (+ connect to P, - connect to N)
 Applied voltage to the diode must be larger than the
threshold voltage: V
 Ge: V ~ 0.3 (V)
 Si: V ~ 0.6 (V)

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


168
Freewheel/Flyback diode?
Function?

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


169
Freewheel/Flyback diode?

Function?

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


170
If no diode?

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


171
If wrong position

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


172
Freewheel/Flyback diode?

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


173
Freewheel/Flyback diode?
Good Better Best

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


DC Power
Firma convenzione
Supply
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
175
Schematic

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


Rectifier
Firma convenzione
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
177
Rectifier
 Half Wave Rectifier (Bộ chỉnh lưu bán kỳ)

 Full Wave Rectifier (Bộ chỉnh lưu toàn kỳ)

 Full Wave Bridge Rectifier (Bộ chỉnh lưu cầu)

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


178
Half Wave Rectifier

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


179
Half Wave Rectifier

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


180
Half Wave Rectifier

V0 ?

V0 = 0, vs < VD0
V0 = (vs-VD0)R/(R+rD)
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
181
Half Wave Rectifier

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


182
Chỉnh lưu bán kỳ

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


183
Mạch lọc tụ C

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


184
Full Wave Rectifier

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


185
Full Wave Rectifier

V0 ?

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


186
Chỉnh lưu toàn kỳ

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


187
Full Wave Bridge Rectifier

D1
D2
D4
D3

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


188
Full Wave Bridge Rectifier

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


189
Full Wave Bridge Rectifier

V0 ?

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


190
Full Wave Bridge Rectifier

D1
D2
D4
D3

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


191
Chỉnh lưu toàn kỳ

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


192
Diode bridge

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


193
Price

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


194
Digital Oscilloscope

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


195
Rectifier Circuit

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


196
Sơ đồ khối

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


197
DC Power Supply

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


198
DC Power Supply

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


Zener Diode
Firma convenzione
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
200
Diode Zener

Clarence Melvin Zener


(12/1905 – 7/1993)

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


201
Zener Diode
 The basic function of Zener diode is to maintain a specific voltage
across its terminals within given limits of line or load change.
 Typically it is used for providing a stable reference voltage for use
in power supplies and other equipment .

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


202
Zener Diode

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


203
Application
Producing Nonstandard
Driving a Relay Output Voltages

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


204
Waveshaping
• Positive half-cycle: conducts and breaks down. Therefore, the
output is clipped.
• Negative half-cycle: the action is reversed. conducts and
breaks down. In this way the output is approximately a square wave.

= + .

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


Voltage Regulator IC
Firma convenzione
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
206
Voltage Regular IC
1. IC provides fixed voltage
 Positive voltage regular – 78XX
 Negative voltage regular – 79XX
2. IC provides variable voltage

Voltage regulator IC

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


207
Positive voltage – 78XX
• 78XX Family
• XX is replaced with two
digits, indicating the
output voltage

7805; 7806; 7808; 7809


7812; 7815; 7818; 7824

Input voltage: U ≤ 35 V
U >U +3

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


208
Positive voltage – 78XX

Input voltage : U ≤ 35 V
U >U +2÷3 Out

In

Ground
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
209
Positive voltage – 78XX

Input voltage:
U ≤ 35 V
U >U +2÷3

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


210
Positive voltage – 78XX
Type Imax
78XX 1A
78MXX 500 mA
78LXX 100 mA

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


211
Negative voltage – 79XX
• 79XX Family
• XX is replaced with two
digits, indicating the
output voltage

7905; 7906; 7908


7912; 7915; 7918; 7924

Input voltage : U ≤ 35 V
U > U +3

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


212
Negative voltage – 79XX
Type
79XX 1A
79MXX 500 mA
79LXX 100 mA

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


213
78XX vs. 79XX

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


214
Voltage Regulator Circuit

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


215
DC Power Supply

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


216
Variable voltage - LM317
• LM317 is a 3-terminal device
• U >U +2÷3 R
U = 1.25 1 +
•I = 1.5 A R

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


217
DC Supply - LM317

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


218
Variable voltage – LM2596
• LM2596 has 5 pins
• U : 3 ÷ 40 V
• U : 1.5 ÷ 35 V
• I =3A

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


219
Variable voltage – LM2596
• LM2596 has 5 pins
• U : 3 ÷ 40 V
• U : 1.5 ÷ 35 V
• I =3A

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


220
DC Supply – LM2596

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


221
LM2596 Price

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


222
DC Supply – LM2596s

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


223
DC Supply – LM2596s

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


224
DC Supply Power

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


225
Adapter

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


226
DC Power for PLC

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


Chapter 3

BJT & Application


Firma convenzione
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
228
Content
1. Introduction and Construction of BJT
2. Classification
3. Pinout
4. Operating Principle
5. Specifications
6. BJT Polarization
7. Amplifier Circuit using BJT
8. Multistage Amplifier
9. BJT Power Amplifier

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


229
BJT Introduction
 Bipolar Junction Transistor (BJT): three-terminal electronic device
constructed of doped semiconductor material
 Bipolar: operation involves both electrons and holes.
 Application: amplifying or switching applications.
 Charge flow in a BJT is due to bidirectional diffusion of charge
carriers across a junction between two regions of different charge
concentrations.
 Most of the BJT collector current is due to the flow of charges
injected from a high-concentration emitter into the base where they
are minority carriers that diffuse toward the collector, and so BJTs
are classified as minority-carrier devices.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


230
BJT Construction
 BJT: Bipolar Junction Transistor
 2 junctions between two semiconductor: N-type & P-type
 3 terminals: E-Emitter, B-Base, C:-Collector

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


231
BJT Construction
 BJT: Bipolar Junction Transistor
 2 junctions between two semiconductor: N-type & P-type
 3 terminals: E-Emitter, B-Base, C:-Collector

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


232
BJT Aplication

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


233
BJT Aplication

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


234
BJT Aplication

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


Classification
Firma convenzione
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
236
2 types: NPN & PNP
NPN PNP

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


237
2 types: NPN & PNP

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


238
2 types: NPN & PNP

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


239
NPN Transitor

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


240
PNP Transitor

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


241
PNP Transitor Connection

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


242
C945 Transitor Pinout

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


243
BJT Pinout

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


Operating
Principle
Firma convenzione
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
245
Operating Principle

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


246
Operating Principle

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


247
Nguyên lý hoạt động

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


248
Current & Voltage
NPN PNP

IE IC IE IC
- UCE + + UEC -
E C E C
- - + +
VBE IB VBC VEB IB VCB
+ + - -
B B

IE = IB + IC IE = IB + IC
UCE = -VBC + VBE UEC = VEB - VCB
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
249
Specifications
• IE = IB + IC
• Ratio of the collector current to the =  IC = IE
emitter current 

• Current gain: 
IC = IB
= (  100 with low-power BJT)
IE IC
 = IC / (IE – IC) =  / (1- ) E
- UCE +
C
 =  / ( + 1) - -
IB = (1 - )IE VBE IB VBC
+ +
IE = (1 + )IB B
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
250
Specifications

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


251
Example
IE ? IE = IB + IC = 0.05 mA + 1 mA = 1.05 mA
1 mA

50 A

β? β = IC / IB = 1 mA / 0.05 mA = 20

 = IC / IE = 1 mA / 1.05 mA = 0.95238
?
 = β / (β + 1) = 20/21 = 0.95238

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


Operating
Regions
Firma convenzione
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
253
Operating Regions
• Supply DC current to three terminals of BJT
• Determine the static operating regions of BJT
 Active region (Amplifier region – Linear region)
 Saturation region
 Cut-off region

Active Region Saturation Region


 B-E is forward biased.  B-E is forward biased.
 B-C is reverse biased.  B-C is forward biased.

• Because the B-E junction can be considered as a diode 


in order to active a BJT BJT Ge : V ~ 0.3V
VBE  V BJT Si : V ~ 0.6V

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


254
Operating Regions

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


255
DC Load Line
 The DC Load Line of BJT Biasing Circuit is a straight line
drawn on the transistor output characteristics.

 For a common-emitter circuit, the load line is a graph of


collector current (IC) vs. collector-emitter voltage (VCE), for a
given value of collector resistance (RC) and a given supply
voltage (VCC).

 The load line shows all corresponding levels of IC and VCE that
can exist in a particular circuit.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


256
DC Load Line
DC Load line
IC
mA

IB
µA Q V UCE RC

RB

VB VCC

Remain IB , change VCC , we have: =

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


257
Output Characteristics
• DC Load Line is determined by
IB=max
using the Ohm law.
• Q point or the operating point of
a device is the steady-state DC
voltage or current at a specified K
terminal of an active device such
as a diode or transistor with no
input signal applied.
• Q point is the intersection of IB=0
DC load line and the IB curve L
when no input signal.
• Q is located in the center of the K-
L range  BJT is more stable.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


258
Output Characteristics
Saturation region B-E & B-C is forward biased
( )
= BJT “fully ON” VBE(sat) ≥ 0,8V & VCE(sat) = 0,2V
=
=

=
B-E is forward biased
B-C is reverse biased (Vc > Vb > Ve)
DC Load line =
Active (Linear) region
=
Q-Point
= Cut-off region
BJT “fully OFF”
=

=
( )

Dr. Dang Phuoc Vinh ( ) =


Faculty of Mechanical Engineering
=
259
Operating Regions

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


260
BJT C1815
( )

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


261
Example 1
BJT in the circuit as shown in figure is Vc
2SC1815 type with following specifications:

VB = 3 V ; RB = 10 kΩ
VC = 5 V ; RC = 1 kΩ
VBE = 1 V ; VCE Sat = 0.1 V
β(hFE) = 100

• Determine IB ; IC ; VCE
• Power consumption? E

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


262
Example 1
= 5V = +
= +
RC = 1 kΩ
− 3−1
= = = 0.2 mA
10 kΩ
= 3V

Suppose that BJT works in Active Region


RB = 10 kΩ =
= = 100 × 0.2 = 20 mA

= − = 5 − 20 mA × 1kΩ = −15 V

E Re-check: < ( ) = 0.1

Wrong Assumption

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


263
Example 1
= 5V = +
= +
RC = 1 kΩ Suppose that BJT works in the
Saturation Region
= ( ) = 0.1
= 3V

− 3−1
= = = 0.2 mA
10 kΩ
RB = 10 kΩ − ( ) 5 − 0.1
( ) = = = 4.9 mA
1 kΩ
( ) 4.9
Re-check: = = = 0.049 mA
E ( )
100
> ( ) Suitable Assumption

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


264
Example 1
Vc = 0.2 ; = 4.9
= +
= 0.2 × 1 + 4.9 × 0.1 = 0.69 mW
4.9 mA
Power consumption on load:
=
= 1kΩ × 4.9mA = 24.01 mW
Power consumption on system:
= + +
= + + +
0.2 mA
= 25.1 mW
E
24.01
Efficiency: = = = 95.00%
25.1
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
265
Example 2
BJT in the circuit as shown in figure is Vc
2SC1815 type with following specifications:

VB = 3 V ; RB = 100 kΩ
VC = 5 V ; RC = 1 kΩ
VBE = 1 V ; VCE Sat = 0.1 V
β(hFE) = 100

• Determine IB ; IC ; VCE
• Power consumption? E

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


266
Example 2
Vc Voltage equation in the part
= +
− 3−1
= = = 0.02 mA
100 kΩ
Suppose that BJT works in Active Region
= = 100 × 0.02 = 2 mA
Voltage equation in the part
= +
= − = 5 − 2 mA × 1kΩ = 3 V

E Re-check: > ( ) = 0.1


Suitable Assumption

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


267
Example 2
Vc = 0.02 ; =2
= +
= 0.02 × 1 + 2 × 3 = 6.02 mW
2 mA
Power consumption on load:
= = 1kΩ × 2mA = 4 mW

Power consumption on circuit:


= + +
= + + +
0.02 mA = 10.024 mW
E
4
Efficiency: = = = 39.9%
10.024
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
268
Active and Saturation Region
Active region: IC =  IB

Saturation region: IC =  IB is not valid


IB =
− ( )
( ) =

( )
( ) =

IB < ( ): Active

IB ≥ ( ): Saturation In practice: IB = kI ( ) ; k = 2-5

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


269
Cut-off Characteristics

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


270
Saturation Characteristics

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


271
Basic NPN Switching Circuit
• Common Emitter circuit
• Transistor can be turned either
fully “OFF” (cut-off) or fully “ON”
(saturated).
• An ideal transistor switch infinite
circuit resistance between the
Collector and Emitter when turned
“fully-OFF”  zero current flowing
through it.
• Zero resistance between the
Collector and Emitter when turned
“fully-ON”, resulting in maximum
current flow.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


BJT Biasing
Firma convenzione
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
273
BJT Biasing

1. Constant current bias

2. Feedback voltage bias

3. Automatic bias (voltage divider

circuit)

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


274
Constant current bias
Apply KVL for the “1” loop:
• IBRB + UBE = VB
 IB: constant

Apply KVL for the “2” loop :


• UCE = VCC − ICRC

KVL: Kirchhoff's Voltage Law


KCL: Kirchhoff’s Current Law
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
275
Constant current bias
Apply KVL for the “1” loop :
• IBRB + UBE = VCC
 IB: constant

Apply KVL for the “2” loop :


• UCE = VCC − ICRC

KVL: Kirchhoff's Voltage Law


KCL: Kirchhoff’s Current Law
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
276
Constant current bias
Determine the Q point IB = max
Đường tải tĩnh
 DC load line Ic(mA)
VCC/RC
Điểm làm
K
• VCC = ICRC + UCE việc tĩnh IBQ

ICQ
• Straight line. Q(UCEQ, ICQ)

• UCE = 0  I =
IB = 0
L
• IC = 0  UCE = VCC UCE(V)
UCEQ VCC

 Q point

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


277
Constant current bias
Thermal Stability
• As temperature increases 
IC increases  A move to A’.
• Stronger BJT works  more
temperature increases.
• If no heat sink radiator (tản
nhiệt), A’  A’’...
 Signal is distorted.
 BJT can be damaged.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


278
Example
Vc

VB = 5 V ; RB = 107.5 kΩ.
VC = 10 V ; RC = 1 kΩ.
Vγ = 0.6 V ; β = 100.

• Calculate IB ; IC ; UCE
• Determine Q point?
E

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


279
Calculation iB ; iC ; UCE
Vc
BJT works in the active region  UBE = V

 Apply KVL for the “B-E” loop


• IB = ~ 41 A.
• IC =  IB = 4.1 mA

 Apply KVL for the “C-E” loop


• UCE = VC – ICRC E
= 10 – 4.1(mA)×1(k Ω) = 5.9 V

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


280
DC Q-Point
Ic (mA)
– DC load line
10
• VC = ICRC + UCE
• Straight line Q
(5.9V - 4.1mA)
• UCE = 0  = = 10 mA
4.1 41 A
• IC = 0  UCE = VCC = 10 V

UCE (V)

5.9 10
– Q Point
• Q locates in the middle of the DC load line  BJT works stable.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


281
BJT Biasing
1. Constant current bias
2. Feedback voltage bias
3. Automatic bias (voltage
divider circuit)

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


282
Polarization using feedback voltage
Apply KVL for the “I” loop
•I =
Apply KCL at the “C” point
• I = IB + IC = IE
Apply KVL for the “II” loop
• VCC = IRC + UCE


=
+ (1 + )

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


283
Feedback voltage bias
Determine the Q point
– DC load line
• VCC = IRC + UCE = R +U
• Straight line
•U =0I =α
• I = 0  UCE = VCC

 Q point

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


284
Feedback voltage bias
Thermal Stability
• As temperature increases
 ICA  ICA’
 A  A’
• UCE decreases  UCEA’

• =

 IB decreases  IC decreases

• A’  A
• Circuit has thermal stability

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


285
Feedback voltage bias
 Negative voltage feedback
 Circuit has thermal stability; but the
current gain decreases
 Solutions:
• Separate RB into 2 resistors which
connect with C capacitor.
• C: short-circuit capacitor for AC signal.
• The feedback AC signal is shorted to the
ground through C capacitor  cannot
back to the Base terminal.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


286
BJT Biasing
1. Constant current bias
2. Feedback voltage bias
3. Automatic bias
(voltage divider circuit)

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


287
Thevenin Theorem
It is possible to simplify any linear circuit, no matter how complex, to an
equivalent circuit with just a single voltage source and series resistance
connected to a load

Một mạch tuyến tính hay phức tạp có thể thay thế dòng và điện áp nguồn
bằng một mạch tương đương có chứa một điện áp độc lập VTH và một điện
trở nối tiếp RTH.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


288
Thevenin Theorem
It is possible to simplify any linear circuit, no matter how complex, to an
equivalent circuit with just a single voltage source and series resistance
connected to a load

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


289
Step #1: e ?

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


290
Step #2: r ?

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


291
Results

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


292
Example

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


293
Example

VTH = 8 V
RTH = 766.67 Ω

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


294
Automatic bias
=
+
.
=
+

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


295
Automatic bias
.
= =
+ +

Apply KVL for the “1” loop:


 VB – IBRB – UBE – IERE = 0
 IE = IB + IC = (1+ )IB


=
+ 1+

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


296
Automatic bias
Apply KVL for the “2” loop
 VCC = ICRC + UCE + IERE

=
1+

We can have:
 = + +
where α =

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


297
Automatic bias
Determine Q point
 DC load line
+
• = + +
• Straight line.
• UCE = 0  =
• = 0  UCE = VCC

 Q point

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


298
Automatic bias
Thermal Stability
• As temperature increases +

 ICA  ICA’  IE increases


 A  A’
• VB = IBRB + VBE + IERE
If IB decreases  IC decreases.
• A’ comes back to A.
• Circuit has thermal stability.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


299
Automatic bias
 Thermal stability is obtained by the
Emitter current through RE.
 RE : thermal stability resistor.
 The larger the RE , more stable is the
system.
 Most popular.
 However, this negative feedback
decreases the current gain.
 Solutions:
• CE // RE.
• CE: short-circuit capacitor for AC signal.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


300
Operating Regions

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


301
Class A
– BJT works with full-wave input (2 cycles).
– Advantage: Nonlinear distortion ratio is small.
– Disadvantage: Low efficiency  < 50%

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


302
Class B
– BJT is unbiased, BJT only works with one half-cycle of input.
– Advantage: High efficiency ~78% .
– Disadvantage : Nonlinear distortion ratio is quite large

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


303
Class AB
 Class AB is somewhere between class A and class B: the
transistor spends more than 50% but less than 100% of the
time conducting current.
 The output waveform will be further “clipped” than it was with
class B biasing, resulting in an operation where the transistor
spends most of the time in cutoff mode.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


Common Aplifier
Configuration
Firma convenzione
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
305
Common Aplifier Configuration
E-C B-C C-C
Emitter Common Base Common Collector Common
B: input E: input B: input
C:output C:output E:output
E: common B: common C: common

E C
C

B ra
vào B ra
vào E

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


306
E-C Type Circuit
• RB1, RB2: for the BJT biasing. The most common amplifier configuration
for an NPN transistor
• RC: identify amplifier mode.
VCC
• RE: thermal stability.
• Rt: resistor of load. RB1 RC
• en, Rn: value and inside resistor
of supply power. C
Q 2
• C1, C2: input and output C1
capacitor  blocking DC and Rn
RB2 RE Rt
allowing AC signal.
en CE
• CE: short-circuit capacitor for AC
signal, increase the current gain
of the system.
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
307
E-C Type Circuit
Equivalent Circuit
iv B iB C

Rn rBE=rp iB it
RC Rt

ur
O
uv

RB
en
rv iE Rr
Rv

RB = R1//R2 E

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


308
Small Signal Amplifier
• The most common configuration for an NPN
transistor
• Using of the DC load line of an amplifier allows
seeing all the possible operating points of the
transistor from fully “ON” to fully “OFF”
• The aim of this circuit is to amplify all of the
input signal with the minimum amount of
distortion possible to the output signal  the
output signal must be an exact reproduction of
the input signal but only bigger (amplified)
• The best possible position for this Q-point is as
close to the center position of the load line as
reasonably possible, thereby producing a Class
A type amplifier operation, ie. Vce = 1/2Vcc

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


309
Small Signal Amplifier

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


310
Output Characteristics

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


311
B-C Type Circuit
• RE: for the BJT biasing. +VE -VC
• RC: resistor of C terminal.
RE RC
• Rt: resistor of load.
• en, Rn: value and inside Q
resistor of supply power. C1 C2
Rn
• C1, C2: input and output Rt
capacitor  blocking DC en
and allowing AC signal.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


312
B-C Type Circuit
Equivalent Circuit

v E re O C

Rn t

RE RC Rt
en
rv Rr
Rv
B
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
313
C-C Type Circuit
• RB1, RB2: for the BJT biasing. VCC
• RC: resistor of C terminal.
RB1 RC
• RE: resistor of E terminal.
• Rt: resistor of load.
Q
• en, Rn: value and inside C1
Rn
resistor of supply power. RB2 RE
C2
Rt
• C1, C2: input and output en
capacitor  blocking DC and
allowing AC signal.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


314
C-C Type Circuit
Equivalent Circuit
uv

ur
RB = R1//R2
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
Applications
Firma convenzione
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
316
Application: Amplifier

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


317
Application: Amplifier

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


318
Application: Amplifier

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


319
Application: TDA 7279

TDA7297 15W + 15W


Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
320
Application: TDA 2030

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


321
Application: TPA3116D2
 Chip: TPA3116D2 +
NE5532
 Điện áp: 12 - 24VDC
 Ngõ vào: jack header 3
pin
 Ngõ ra: 2 kênh
 Công suất: 80W - 80W
 Hiệu suất: > 90%

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


322
Application: IC

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


323
Application: IC 741

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


324
Application: Switch

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


325
Darlington pair

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


326
Darlington pair

= + +

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


327
Darlington pair
NPN Pair PNP Pair

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


328
Application: ULN 2003A

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


329
Application: Amplifier

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


330
Sziklai pair

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


331
Sziklai pair

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


332
Darlington & Sziklai
Advantages of Sziklai pair
 Sziklai pair have lower quiescent current for better linear
operations.
 Thermal stability of Sziklai pair is superior to the Darlington pair.
 It has faster response time than Darlington pair.
 The turn-on voltage of Sziklai pair is equal to a normal transistor,
while Darlington takes twice the input voltage.

Disadvantages of Sziklai pair:


 Gain of the Sziklai pair is lesser than the Darlington pair

Darlington Pair Gain: βQ1 × βQ2 + βQ1 + βQ2


Sziklai Pair Gain: βQ1 × βQ2 + βQ1

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


Chapter 4
OPAMP
& Firma convenzione
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato

Applications
Mercoledì 27 maggio 2015
334
Content
 What is an OPAMP?
 Applications:
1. Comparator
2. Inverting & Non- Inverting Amplifier
3. Voltage Follower
4. Inverting & Non- Inverting summing Amplifier
5. Differential Amplifier
6. Differentiator Amplifier
7. Integrator Amplifier
8. Instrumentation Amplifier

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


335
OPAMP
 OPAMP (Operational Amplifier)

 Amplifier: give an output which has the same features with


input but larger amplitude

 Operational Amplifier: perform mathematical operations in


linear, non-linear, and frequency-dependent circuits.

 It is a DC-coupled high-gain electronic voltage amplifier with


a differential input and, usually, a single-ended output

 OPAMPs are used widely in electronic devices today, including a


vast array of consumer, industrial, and scientific devices

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


336
OPAMP

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


337
OPAMP

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


338
OPAMP
Power supply +15V  Rin : input resistance.
 Idea OPAMP: =∞
 Vin : voltage of inverting and
i+
Non-inverting non-inverting input.
input

i-
Inverting input
 G : Gain of OPAMP.
i(+), i(-) : input  Idea OPAMP: G = ∞
current of OP-AMP at
 : output resistance
inverting and non-
inverting input -15V  Idea OPAMP: R = 0.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


339
OPAMP

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


340
OPAMP

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


341
OPAMP

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


342
OPAMP

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


343
IC 741

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


344
IC 741

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


345
LM324

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


346
Comparator


Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
347
Inverting amplifier
=0
=0

Virtual
Earth

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


348
Non-inverting Amplifier

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


349
Voltage Follower

=∞
=0
=
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
350
Inverting Summing Amplifier

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


351
Non-inverting Summing Amplifier

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


352
Differential Amplifier

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


353
Differentiator Amplifier

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


354
Integrator Amplifier

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


355
Instrumentation Amplifier

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


Chapter 5

Fundamental of
Firma convenzione
Politecnico di Milano e Veneranda Fabbrica

Digital Electronics
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
357
Content
1. Basic of Digital Electronic

2. Algebraic Logic

3. Basic Logic Functions

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


Basic of Digital
Electronic
Firma convenzione
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
359
Analog vs. Digital
 Analog: Điện tử tương tự
 Digital: Điện tử số
 0V - 0.8V  “0” / LOW
 2.7V - 5V  “1” / HIGH

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


360
Analog vs. Digital

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


361
Analog vs. Digital

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


362
Analog vs. Digital

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


363
Binary number
 Binary Numbers are the flow of information in the form of
zeros and ones used by digital computers and systems

 Digital circuits process signals that contain just two voltage


levels or states: Logic “0” and Logic “1”.

 Logic “1”: a higher voltage, such as 5V, which is commonly


referred to as a HIGH value

 Logic “0”: a low voltage, such as 0V or ground, and is commonly


referred to as a LOW value

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


364
Binary number
 These two discrete voltage levels representing the digital values
of “1” and “0” are commonly called: BInary digiTS, and in digital
and computational circuits and applications they are normally
referred to as binary BITS.
 The binary number system is a Base-2 numbering system which
follows the same set of rules in mathematics as the commonly
used decimal or base-10 number system

 Binary numbers use powers of two, ( 2n ) effectively doubling


the value of each successive bit as it goes, for example: 1, 2, 4, 8,
16, 32….

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


365
Binary number
Electronic circuits and systems can be divided into 2 main
categories.
 Analogue Circuits – Analogue or Linear circuits amplify or
respond to continuously varying voltage levels that can
alternate between a positive and negative value over a
period of time.
 Digital Circuits – Digital circuits produce or respond 2
distinct voltage levels representing either a logic level “1” or
a logic level “0”.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


366
3 kinds of Number
 Binary number (base-2)
 Only “0” and “1”
 Decimal number (base-10)
 The decimal or “denary” counting system uses the Base-
of-10 numbering system where each digit in a number
takes on one of ten possible values, called “digits”,
from 0 to 9
 Hexadecimal number
 Hexadecimal Numbers group binary numbers into sets of
four allowing for the conversion of 16 different binary
digits
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
367
Binary to Decimal
 Base-2 to Base-10

 Decimal, base-10 or denary numbering system

 Important concept to understand as the binary numbering


system forms the basis for all computer and digital systems

 The decimal or “denary” counting system uses the Base-of-


10 numbering system where each digit in a number takes
on one of ten possible values, called “digits”, from 0 to 9,
e.g. 21310

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


368
Binary to Decimal
Most Least
Significant Bit Significant Bit

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


369
Binary to Decimal
Binary number: 101100101  Decimal number ?

(256) + (64) + (32) + (4) + (1) = 35710

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


370
Decimal to Binary
Decimal number: 29410  Binary number ?
Repeated Division-by-2 Method
100100110

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


371
Binary Number Names & Prefixes

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


372
Binary to Hexadecimal
 Hexadecimal Numbers group
binary numbers into sets of 4-
bit allowing for the conversion
of 16 different binary digits
 The “Hexadecimal” or simply
“Hex” numbering system uses
the Base of 16 system
 There are 16 possible digit
symbols
 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B,
C, D, E, F
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
373
Binary to Hexadecimal
Binary number: 1101 0101 1100 11112
 Hexadecimal number: D5CF

Binary number: 11 0010 1101 10012


 Adding of Additional 0’s to a Binary Number

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


374
Binary Coded Decimal
 Binary Coded Decimal, or BCD, is another process for
converting decimal numbers into their binary equivalents

BCD 8421
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
375
Binary to Hexadecimal
1101 0101 1100 1111  D5CF
0b1101 0101 1100 1111
0xD5CF

11 0010 1101 1001  32D9

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


376
7 segment LED

CA: Common Anode


Anode chung

A B C D E F G Dp

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


377
7 segment LED
0 V = Segment On: B, C, F, G CA: Common Anode
Anode chung
5 V = Segment Off: A, D, E
A

F G B
A B C D E F G Dp

E C
1 0 0 1 1 0 0
D
0b.0001.1001
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
378
7 segment LED

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


Mathematical
Firma convenzione
Logic
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
380
Mathematical Logic
 Using for digital circuits
 Study the relationship between logic variables
 Logic values involve elements that take on one of two
values, 0 and 1. Therefore, a logic variable can only be
equal to “0” or “1”

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


381
Mathematical Logic
Logic Negation (Inverse)
x = 1, x = 0 ; x = 0, x = 1 ; (x) = x ; (x) = x

Logic Sum
0+0=0 0+1=1 1+0=1 1+1=1
x+0=x x+1=1 x+x=x x+x=1

Logic Product
0.0 = 0 0.1 = 0 1.0 = 0 1.1 = 1
x.0 = 0 x.1 = x x.x = x x.x = 0
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
382
Laws of Boolean
Commutative (hoán vị) Absorptive (hấp thu)
x+y=y+x x + x.y = x
x.y = y.x x.(x+y) = x

Associative (kết hợp) Morgan’s Theorem


x+y+z = (x+y)+z = x+(y+z) x + y = x. y
x.y.z = (x.y).z = x.(y.z) x. y = x + y
Distributive (phân phối)
x.(y+z) = x.y+x.z
x+(y.z) = (x+y)(x+z)
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
383
Laws of Boolean

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


384
Laws of Boolean

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


Logic Gate
Firma convenzione
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015
386
Logic Gates
 If a Boolean function, f, takes n inputs and
produces m outputs, the gate must have n input pins,
and m output pins.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


387
AND gate
 Giving a high output only when both input A and input B
are high.
 As an electric circuit involving 2 switches in series: A and B.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


388
AND gate
The relationship of inputs and outputs can be expressed
in an equation: Boolean equation.

A B Output
A.B = Y 0 0 0
0 1 0
Ex: Burglar alarm = AND (alarm
switch ; door). 1 0 0
1 1 1

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


389
Timing Diagram
X
Z
AND Gate
Y

A B Output
0 0 0
0 1 0
1 0 0
1 1 1

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


390
Working Principle
A
Z
AND Gate
B

A B Output
0 0 0
0 1 0
1 0 0
1 1 1

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


391
3-input AND gate

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


392
OR gate
 Giving a high output when input A OR input B are high.
 As an electric circuit involving 2 switches in parallel: A and B

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


393
OR gate
 The relationship of inputs and outputs can be
expressed in an equation: Boolean equation.

A B Output
A+B=Y 0 0 0
 OR gates can also have more 0 1 1
than two inputs
1 0 1
1 1 1
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
394
NOT gate
 Just one input and one output
 Giving an output which is the inversion of the input 
inverse gate
 Giving a “1” output when input is “0” and vice versa.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


395
NOT gate
 The relationship of input and output can be expressed
in an equation: Boolean equation.

A =Y
 A bar over a symbol indicate the inverse of output.

Input Output
1 0
0 1
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
396
NAND gate
 Can be considered as a combination of an AND gate
followed by a NOT gate
 Output is “0” only when input A and B are “1”
 Symbol: the AND symbol followed by a circle

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


397
NAND gate
 The relationship of inputs and outputs can be expressed in
an equation: Boolean equation.

A B Output
0 0 1
A. B = Y 0 1 1
1 0 1
1 1 0

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


398
NOR gate
 Can be considered as a combination of an OR gate followed
by a NOT gate
 Output is “1” only when input A and B are “0”
 Symbol: the OR symbol followed by a circle

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


399
NOR gate
 The relationship of inputs and outputs can be expressed in
an equation: Boolean equation.

A B Output
0 0 1
A+ B = Y
0 1 0
1 0 0
1 1 0
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
400
XOR gate
 XOR stands for exclusive OR
 Output will be “1” when the inputs are different
 XOR operation is represented by the symbol 

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


401
XOR gate
 The relationship of inputs and outputs can be expressed
in an equation: Boolean equation.

A B Output
0 0
Y=A⊕B= + 0 1
1 0
1 1
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
402
XNOR gate
 XNOR stands for exclusive NOR
 It is an XOR gate with its output inverted.
 XNOR operation is represented by the symbol (.)

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


403
XNOR gate
 The relationship of inputs and outputs can be expressed
in an equation: Boolean equation.

A B Output
0 0
Y = A (·) B = + .( + ) 0 1
1 0
1 1

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


404
Logic gate symbols

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


405
IC 7400: 2-input NAND gate

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


406
IC 7402: 2-input NOR gate

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


407
Application: AND gate

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


408
Application: AND & OR gate

A B
B

B+
B A B Output
0 0
0 1
1 0
1 1

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


409
F ( x, y, z )  x. y.z  x. y.z  x. y.z  x. y.z  x. y.z  x. y.z

x.y.z

x.y.z

x.y.z
F

x.y.z

x.y.z

x.y.z

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


x y z x y z
410
Boolean Expression
Sum of Products (SOP) Form
F = x. y. z + x. y. z + x. y. z

Product of Sums (POS) Form


F= x+y+z x+y+z x+y+z

Note: The SOP is more popular.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


411
Example
Design an logic circuit with following functions:
F ( x, y, z )  x. y.z  x. y.z  x. y.z  x. y.z  x. y.z  x. y.z

Logic circuit: Previous slide

Comment: Complicated circuit.

Solution: Simplifying the Boolean function

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


412
Simplifying the Boolean function
Using logic functions/laws to simplify Boolean function
Example: Simplifying using logic laws
F ( x, y, z )  x. y.z  x. y.z  x. y.z  x. y.z  x. y.z  x. y.z
F ( x, y, z )  y.z  y.z  x.z
F ( x, y, z )  z  x.z
F ( x, y, z )  z  x.z  x.z
F ( x, y, z )  z  x.
Comment: Not easy or even cannot be successful
Simplifying using the Karnaugh-map

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


413
Karnaugh-map
xy
00 01 11 10
z
3-variable Karnaugh-map
0
1

xy
00 01 11 10
zt
00
4-variable Karnaugh-map 01
11
10
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
414
Truth Table Expression
A B C S
0 0 0 0
0 0 1 0
0 1 0 1
S= + + + ABC
0 1 1 0
1 0 0 1
1 0 1 1
Non-inverting variation  1
1 1 0 0
Inverting variation  0 1 1 1 1
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
415
Karnaugh - map
 Value of variations are expressed in blocks.
 Consecutive blocks have only one different variation.
Example: S = ABC + + +
A B C S
AB B AB A 0 0 0 0
C 00 01 11 10 0 0 1 0
0 1 0 1 0 1 0 1
0
0 1 1 0
1 0 0 1 1
1 0 0 1
1 0 1 1
Not Consecutive Consecutive
1 1 0 0
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
1 1 1 1
416
Rules
1. Groups may not include any cell containing a zero

2. Groups may be horizontal or vertical, but not diagonal

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


417
Rules
3. Groups must contain 1, 2, 4, 8, or in general 2n cells.
n≥0

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


418
Rules
4. Each group should be as large as possible.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


419
Rules
5. Each cell containing a one must be in at least one group.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


420
Rules
6. Groups may overlap.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


421
Rules
7. Groups may wrap around the table. The leftmost cell in a row
may be grouped with the rightmost cell and the top cell in a
column may be grouped with the bottom cell.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


422
Rules
7. Groups may wrap around the table. The leftmost cell in a row
may be grouped with the rightmost cell and the top cell in a
column may be grouped with the bottom cell.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


423
Rules
8. There should be as few groups as possible, as long as this does
not contradict any of the previous rules.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


424
Rules

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


425
Rules

= + + +

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


426
Performance Steps
 B1: Convert logic function to the sum of product.
 B2: Set-up the Karnaugh-map according to number of
variations.
 B3: Fill values of logic function to the Karnaugh-map.
 B4: Set-up groups which have “1” value in the
consecutive blocks.
 B5: Re-write simplified functions.

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


427
Example
Simplifying the Boolean function using Karnaugh-map:
( , , )= . . + . . + . . + . . + . . + . .

Step 1: Convert logic function to the sum of product

Step 2: Set-up the Karnaugh-map according to number


of variations. xy
00 01 11 10
• 3 variations z
0
• Karnaugh-map will be
1

Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering


428
Example
Step 3: Fill values of logic function to the Karnaugh-map.
F ( x, y, z )  x. y.z  x. y.z  x. y.z
X Y Z F
0 0 0 0  x. y.z  x. y.z  x. y.z
0 0 1 1 6 blocks Non-inverting variation  1
0 1 0 0 have “1” value Inverting variation  0
0 1 1 1
1 0 0 1 xy
00 01 11 10
1 0 1 1 z
1 1 0 1 0 1 1
Dr. Dang Phuoc Vinh Faculty of Mechanical Engineering
1 1 1 1 1 1 1 1 1
429
Example
Step 4: Set-up groups which have “1” value in the consecutive
blocks. xy
00 01 11 10
z A
0 1 1
1 1 1 1 1 B

Step 5: Re-write simplified function.


• F=A+B
• Group A: x = 1 unchanged  keep; y, z change  remove.
So: A = x
• Group B: z = 1 unchanged  keep; x, y change  remove.
So: B = z
Dr. Dang Phuoc Vinh F = A +Faculty
B = xof Mechanical
+z Engineering
430
Example
Simplifying the Boolean function using Karnaugh-map
F ( x, y, z , t )  x. y.z.t  x. y.z.t  x. y.z.t  x. y.z.t
 x. y.z.t  x. y.z.t  x. y.z.t  x. y.z.t

A
xy
00 01 11 10
zt A  z.t B  x. y.t
00 1 1 1 1 C  x.z.t D  x. y.t
01 1 F  A B C  D
11 1 1  z.t  x. y.t  x.z.t  x. y.t
10 1
Dr. Dang Phuoc Vinh DMechanical Engineering
Faculty of
B C
Firma convenzione

the END !
Politecnico di Milano e Veneranda Fabbrica
del Duomo di Milano
Aula Magna – Rettorato
Mercoledì 27 maggio 2015

You might also like