Experiment 10 Comparators and Schmitt Triggers

Slides:



Advertisements
Similar presentations
Differential Amplifiers and Integrated Circuit (IC) Amplifiers
Advertisements

Chapter 7 Operational-Amplifier and its Applications
CHAPTER 3: SPECIAL PURPOSE OP-AMP CIRCUITS
Unijunction Transistor
Sequential Logic Building Blocks – Flip-flops
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
CP208 Digital Electronics Class Lecture 11 May 13, 2009.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Introduction to Digital Systems By Dr. John Abraham UT-Panam.
Describe and analyze the operation of several types of comparator circuits. Describe and analyze the operation of several types of summing amplifiers.
Transistors These are three terminal devices, where the current or voltage at one terminal, the input terminal, controls the flow of current between the.
Experiment 6 -- Digital Switching
Comparator circuits An ideal comparator compares two input voltages and produces a logic output signal whose value (high or low) depends on which of the.
Transistor. BJT Transistors: NPN Transistor PNP Transistor Sandwiching a P-type layer between two n- type layers. Sandwiching a N-type layer between.
Electronic Instrumentation 1 Experiment 7 Digital Logic Devices and the 555 Timer Part A: Basic Logic Gates Part B: Flip Flops Part C: Counters Part D:
Astable multivibrators I
As an Astable Multivibrator 1. 2  An integrated chip that is used in a wide variety of circuits to generate square wave and triangular shaped single.
TIMERS.
Digital Logic Design CHAPTER 5 Sequential Logic. 2 Sequential Circuits Combinational circuits – The outputs are entirely dependent on the current inputs.
Chapter 12 Digital Logic Circuit Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Content Op-amp Application Introduction Inverting Amplifier
Semiconductor circuit elements and dependent sources
Unit 7, Chapter 24 CPO Science Foundations of Physics.
Logic Gate A logic gate is an electronic circuit which makes logic decisions. It has one output and one or more inputs. The output signal appears only.
Storey: Electrical & Electronic Systems © Pearson Education Limited 2004 OHT 21.1 Bipolar Transistors  Introduction  An Overview of Bipolar Transistors.
10/6/2004EE 42 fall 2004 lecture 161 Lecture #16 Bipolar transistors Reading: transistors Bipolar: chapter 6 MOS: chapter 14.
Chapter 6. Bipolar Junction Transistors (BJTs). Bipolar Junction Transistor Three terminal device Voltage between two terminals to control current flow.
Chapter 2 Operational Amplifier Circuits
Engineering Lecture 3 Digital Electronics by Jaroslaw Karcz.
Flip Flop
Engineering Lecture1: Logic Circuits & Concepts about basic Electrical Engineering Devices by Christin Sander.
Chapter 13 Linear-Digital ICs. Copyright ©2009 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. Electronic Devices.
Chapter 2: Fundamentals of Digital Electronics Dr Mohamed Menacer Taibah University
General Licensing Class Oscillators & Components Your organization and dates here.
Bipolar Junction Transistors (BJTs) The bipolar junction transistor is a semiconductor device constructed with three doped regions. These regions essentially.
School of Computer Science G51CSA 1 Computer Systems Architecture Fundamentals Of Digital Logic.
PHY 202 (Blum)1 Analog-to-Digital Converter and Multi-vibrators.
BJTs. Transistor The transistor is the main building block “element” of electronics. A transistor is a semiconductor device used to amplify and switch.
PHY 202 (Blum)1 Analog-to-Digital Converter and Multi-vibrators.
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
1 Fundamentals of Microelectronics  CH1 Why Microelectronics?  CH2 Basic Physics of Semiconductors  CH3 Diode Circuits  CH4 Physics of Bipolar Transistors.
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
Fundamentals of Electric Circuits Chapter 5 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CHAPTER-2 Fundamentals of Digital Logic. Digital Logic Digital electronic circuits are used to build computer hardware as well as other products (digital.
Transistor.
Chapter 4 Bipolar Junction Transistors
Digital to Analog Converters (DAC) 1 Technician Series ©Paul Godin March 2015.
Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.
Chapter 3 – Transistor Amplifiers – Part 2 Special Amplifiers 1.Difference Amplifier 2.Complementary Symmetry 3.Cascading.
1 Chapter 8 Operational Amplifier as A Black Box  8.1 General Considerations  8.2 Op-Amp-Based Circuits  8.3 Nonlinear Functions  8.4 Op-Amp Nonidealities.
COMBINATIONAL AND SEQUENTIAL CIRCUITS Guided By: Prof. P. B. Swadas Prepared By: BIRLA VISHVAKARMA MAHAVDYALAYA.
Chapter 3 Boolean Algebra and Digital Logic T103: Computer architecture, logic and information processing.
An operational amplifier (Op-Amp) is a differential amplifier that amplifies the difference of voltages applied to its two input terminals (differential.
Electronic Devices and Circuit Theory
Op-amp Comparators part I of 3
Electronics SL – Option C.3 HL – Option F.5. Operational Amplifier An amplifier is a device that takes a signal and makes its bigger. – An mp3 player.
SIGNAL TRAINING SCHOOL – BORDER SECIRITY FORCE - TIGRI
Different Types of Transistors and Their Functions
Fundamentals of Electric Circuits Chapter 5
Introduction Molecules: made up of atoms of individual elements.
Chapter 13 Linear-Digital ICs
Intro to Engineering Electronics
SOLIDS AND SEMICONDUCTOR DEVICES - IV
Intro to Engineering Electronics
Digital Electronics Lab 2 Instructor:
SOLIDS AND SEMICONDUCTOR DEVICES - IV
Fundamentals of Electric Circuits Chapter 5
Chapter 5 Operational Amplifiers
SOLIDS AND SEMICONDUCTOR DEVICES - IV
Presentation transcript:

Experiment 10 Comparators and Schmitt Triggers Analog vs. Digital Circuits Comparators and Schmitt Triggers Combinational Logic Devices Sequential Logic Devices Bipolar Junction Transistors Inside the 555 Timer

Analog Circuits vs. Digital Circuits An analog signal is an electric signal whose value varies continuously over time. A digital signal can take on only finite values as the input varies over time. 12 April 2004 Electronic Instrumentation

Electronic Instrumentation A binary signal, the most common digital signal, is a signal that can take only one of two discrete values and is therefore characterized by transitions between two states. In binary arithmetic, the two discrete values f1 and f0 are represented by the numbers 1 and 0, respectively. 12 April 2004 Electronic Instrumentation

Electronic Instrumentation In binary voltage waveforms, these values are represented by two voltage levels. In TTL convention, these values are nominally 5V and 0V, respectively. Note that in a binary waveform, knowledge of the transition between one state and another is equivalent to knowledge of the state. Thus, digital logic circuits can operate by detecting transitions between voltage levels. The transitions are called edges and can be positive (f0 to f1) or negative (f1 to f0). 12 April 2004 Electronic Instrumentation

Comparators and Schmitt Triggers In this section we will use op-amps to create binary signals. Comparators are the simplest way to create a binary signal with an op amp. They take advantage of the very high gain of the chip to force it to saturate either high (VS+) or low (VS-) creating two (binary) states. Schmitt Triggers are a modified version of a comparator which uses a voltage divider to improve the performance of the comparator in the presence of noise. 12 April 2004 Electronic Instrumentation

Electronic Instrumentation Op-Amp Comparator The prototype of op-amp switching circuits is the op-amp comparator. The circuit does not employ feedback. 12 April 2004 Electronic Instrumentation

Electronic Instrumentation Because of the large gain that characterizes open-loop performance of the op-amp (A > 105), any small difference between the input voltages will cause large outputs; the op-amp will go into saturation at either extreme, according the voltage supply values and the polarity of the voltage difference. One can take advantage of this property to generate switching waveforms. Consider the following. Non-inverting Op-Amp Comparator 12 April 2004 Electronic Instrumentation

Electronic Instrumentation The comparator is perhaps the simplest form of an analog-to-digital converter, i.e., a circuit that converts a continuous waveform to discrete values. The comparator output consists of only two discrete levels. Input and Output of Non-Inverting Comparator Vsat = ± 13.5 volts V = 1 volt 12 April 2004 Electronic Instrumentation

Electronic Instrumentation It is possible to construct an inverting comparator by connecting the non-inverting terminal to ground and connecting the input to the inverting terminal. Input and Output of Inverting Comparator 12 April 2004 Electronic Instrumentation

Electronic Instrumentation Comparator with Offset A simple modification of the comparator circuit consists of connecting a fixed reference voltage to one of the input terminals; the effect of the reference voltage is to raise or lower the voltage level at which the comparator will switch from one extreme to the other. 12 April 2004 Electronic Instrumentation

Electronic Instrumentation Below is the waveform of a comparator with a reference voltage of 0.6 V and an input voltage of sin(ωt). Note that the comparator output is no longer a symmetric square wave. 12 April 2004 Electronic Instrumentation

Another useful interpretation of the op-amp comparator can be obtained by considering its input-output transfer characteristic. Non-Inverting Zero-Reference (no offset) Comparator often called a zero-crossing comparator 12 April 2004 Electronic Instrumentation

Electronic Instrumentation Shown below is the transfer characteristic for a comparator of the inverting type with a nonzero reference voltage. 12 April 2004 Electronic Instrumentation

Electronic Instrumentation Comparator Response to Noisy Inputs Note how the output swings between high and low. 12 April 2004 Electronic Instrumentation

Electronic Instrumentation Schmitt Trigger One very effective way of improving the performance of the comparator is by introducing positive feedback. Positive feedback can increase the switching speed of the comparator and provide noise immunity at the same time. The voltage range over which the signal does not switch is called the hysteresis (In this case, h=2d) Can you explain how this works? 12 April 2004 Electronic Instrumentation

Electronic Instrumentation In effect, the Schmitt trigger provides a noise rejection range equal to ± Vsat [R2 / (R2 + R1)] within which the comparator cannot switch. Thus if the noise amplitude is contained within this range, the Schmitt trigger will prevent multiple triggering. 12 April 2004 Electronic Instrumentation

Electronic Instrumentation If it is desired to switch about a voltage other than zero, a reference voltage can also be connected to the non-inverting terminal. In this case, d+ is not equal to d-, and the hysteresis is given by h=d+ + d- Switching levels for the Schmitt Trigger are: positive-going transition negative-going transition 12 April 2004 Electronic Instrumentation

Combinational Logic Devices Logic Gates perform basic logic operations, such as AND, OR and NOT, on binary signals. In this class, we use them as black boxes. This means that we do not worry about how these chips are built inside, but only about what output they produce for all possible inputs. In order to show this behavior, we use truth tables, which show the output for all input combinations. The outputs of combinational logic gates depend only on the instantaneous values of the inputs. 12 April 2004 Electronic Instrumentation

Electronic Instrumentation Logic Gates 12 April 2004 Electronic Instrumentation

Logic Gate Example: XOR Question: What common household switch configuration corresponds to an XOR? Input Output A B X 1 12 April 2004 Electronic Instrumentation

Electronic Instrumentation Boolean Algebra The variables in a boolean, or logic, expression can take only one of two values, 0 (false) and 1 (true). We can also use logical mathematical expressions to analyze binary operations, as well. 12 April 2004 Electronic Instrumentation

Electronic Instrumentation The basis of boolean algebra lies in the operations of logical addition, or the OR operation, and logical multiplication, or the AND operation. OR Gate If either X or Y is true (1), then Z is true (1) AND Gate If both X and Y are true (1), then Z is true (1) Logic gates can have an arbitrary number of inputs. Note the similarities to the behavior of the mathematical operators plus and times. 12 April 2004 Electronic Instrumentation

Electronic Instrumentation Laws of Boolean Algebra 12 April 2004 Electronic Instrumentation

Electronic Instrumentation DeMorgan’s Laws 12 April 2004 Electronic Instrumentation

Electronic Instrumentation Using DeMorgan’s Laws Important Principal based on DeMorgan’s Laws: Any logic function can be implemented by using only OR and NOT gates, or only AND and NOT gates. 12 April 2004 Electronic Instrumentation

Sequential Logic Devices In a sequential logic device, the timing or sequencing of the input signals is important. Devices in this class include flip-flops and counters. Positive edge-triggered devices respond to a low-to-high (0 to 1) transition, and negative edge-triggered devices respond to a high-to-low (1 to 0) transition. 12 April 2004 Electronic Instrumentation

Electronic Instrumentation Flip-Flops A flip-flop is a sequential device that can store and switch between two binary states. It is called a bistable device since it has two and only two possible output states: 1 (high) and 0 (low). It has the capability of remaining in a particular state (i.e., storing a bit) until the clock signal and certain combinations of the input cause it to change state. 12 April 2004 Electronic Instrumentation

Electronic Instrumentation Simple Flip Flop Example: The RS Flip-Flop Q = 0 Note that the output depends on three things: the two inputs and the previous state of the output. Q = 1 12 April 2004 Electronic Instrumentation

Inside the R-S Flip Flop Note that the enable signal is the clock, which regularly pulses. This flip flop changes on the rising edge of the clock. It looks at the two inputs when the clock goes up and sets the outputs according to the truth table for the device. 12 April 2004 Electronic Instrumentation

Inside the J-K Flip Flop Note this flip flop, although structurally more complicated, behaves almost identically to the R-S flip flop, where J(ump) is like S(et) and K(ill) is like R(eset). The major difference is that the J-K flip flop allows both inputs to be high. In this case, the output switches state or “toggles”. 12 April 2004 Electronic Instrumentation

Electronic Instrumentation Binary Counters Binary Counters do exactly what it sounds like they should. They count in binary. Binary numbers are comprised of only 0’s and 1’s. Decimal QD QC QB QA 1 2 3 4 5 12 April 2004 Electronic Instrumentation

Electronic Instrumentation Binary – Decimal -- Hexadecimal Conversion 10110101110001011001110011110110 binary number 11 5 12 5 9 12 15 6 equivalent base 10 value for each group of 4 consecutive binary digits (bits) B 5 C 5 9 C F 6 corresponding hexadecimal (base 16) digit equivalent hexadecimal number B5C59CF6 Decimal 8 = 1x23 + 0x22 + 0x21 +0x20 = 01000 in Binary Calculator Applet 12 April 2004 Electronic Instrumentation

Binary Counters are made with Flip Flops Each flip flop corresponds to one bit in the counter. Hence, this is a four-bit counter. 12 April 2004 Electronic Instrumentation

Typical Output for Binary Counter Note how the Q outputs form 4 bit numbers 12 April 2004 Electronic Instrumentation

Bipolar Junction Transistors The bipolar junction transistor (BJT) is the salient invention that led to the electronic age, integrated circuits, and ultimately the entire digital world. The transistor is the principal active device in electrical circuits. When inputs are kept relatively small, the transistor serves as an amplifier. When the transistor is overdriven, it acts as a switch, a mode most useful in digital electronics. 12 April 2004 Electronic Instrumentation

Electronic Instrumentation B There are two types of BJTs, npn and pnp, and the three layers are called collector (C), base (B), and emitter (E). npn transistor E C All current directions are reversed from the npn-type to the pnp-type. A BJT consists of three adjacent regions of doped silicon, each of which is connected to an external lead. The base, a very thin slice of one type, is sandwiched by the complementary pair of the other type, hence the name bipolar. 12 April 2004 Electronic Instrumentation

Electronic Instrumentation MOSFET Applying a gate voltage that exceeds the threshold voltage opens up the channel between the source and the drain This is from an excellent collection of java applets at SUNY Buffalo http://jas.eng.buffalo.edu/ 12 April 2004 Electronic Instrumentation

pnp and npn transistors Note: The npn-type is the more popular; it is faster and costs less. VCE < 0 VBE < 0 VCE > 0 VBE > 0 pnp BJT npn BJT Apply voltage LOW to base to turn ON Apply voltage HIGH to base to turn ON 12 April 2004 Electronic Instrumentation

Electronic Instrumentation Regions of the npn BJT Cutoff Region Not enough voltage at B for the diode to turn on. No current flows from C to E and the voltage at C is Vcc. Saturation Region The voltage at B exceeds 0.7 volts, the diode turns on and the maximum amount of current flows from C to E. The voltage drop from C to E in this region is about 0.2V but we often assume it is zero in this class. Active Region As voltage at B increases, the diode begins to turn on and small amounts of current start to flow through into the doped region. A larger current proportional to IB, flows from C to E. As the diode goes from the cutoff region to the saturation region, the voltage from C to E gradually decreases from Vcc to 0.2V. 12 April 2004 Electronic Instrumentation

Electronic Instrumentation Model of the npn BJT The diode is controlled by the voltage at B. When the diode is completely on, the switch is closed. This is the saturation region. When the diode is completely off, the switch is open. This is the cutoff region. When the diode is in between we are in the active region. 12 April 2004 Electronic Instrumentation

Electronic Instrumentation npn Common Emitter Characteristics IC = βIB VBE = 0.7 V VBE < 0.6 V 12 April 2004 Electronic Instrumentation

Using the transistor as a switch 12 April 2004 Electronic Instrumentation

Building logic gates with transistors Input Output 1 12 April 2004 Electronic Instrumentation

Electronic Instrumentation Inside the 555 Timer animation 12 April 2004 Electronic Instrumentation