Digital-to-Analog conversion

Similar documents
Analog-to-Digital conversion

Voltage/current converter opamp circuits

Conversion Between Analog and Digital Signals

A Digital Timer Implementation using 7 Segment Displays

DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

Digital to Analog and Analog to Digital Conversion

Parallel DC circuits

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Interfacing Analog to Digital Data Converters

Design Project: Power inverter

Unit/Standard Number. High School Graduation Years 2010, 2011 and 2012

EET272 Worksheet Week 9

Basic voltmeter use. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

Electronics. Discrete assembly of an operational amplifier as a transistor circuit. LD Physics Leaflets P

Transformer circuit calculations

DC mesh current analysis

Series-parallel DC circuits

Chapter 6: From Digital-to-Analog and Back Again

Differential transistor amplifiers

Digital To Analog Converter with Sine Wave Output

Inductors. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

CHAPTER 11: Flip Flops

Study Guide for the Electronics Technician Pre-Employment Examination

Bipolar transistor biasing circuits

Bipolar Transistor Amplifiers

WHAT DESIGNERS SHOULD KNOW ABOUT DATA CONVERTER DRIFT

Potentiometers. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Measuring Resistance Using Digital I/O

Basic circuit troubleshooting

Digital codes. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

Energy, Work, and Power

Numeration systems. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

AP-1 Application Note on Remote Control of UltraVolt HVPS

Thévenin s, Norton s, and Maximum Power Transfer theorems

Capacitors. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

OPERATIONAL AMPLIFIER

LAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS

Transistor Amplifiers

CONSTRUCTING A VARIABLE POWER SUPPLY UNIT

= V peak 2 = 0.707V peak

OPERATIONAL AMPLIFIERS

Parallel DC circuits

6 Series Parallel Circuits

PLL frequency synthesizer

Module 3: Floyd, Digital Fundamental

Operational Amplifier - IC 741

ARRL Morse Code Oscillator, How It Works By: Mark Spencer, WA8SME

LM 358 Op Amp. If you have small signals and need a more useful reading we could amplify it using the op amp, this is commonly used in sensors.

Trigonometry for AC circuits

Analog signals are those which are naturally occurring. Any analog signal can be converted to a digital signal.

AVR127: Understanding ADC Parameters. Introduction. Features. Atmel 8-bit and 32-bit Microcontrollers APPLICATION NOTE

Evaluating AC Current Sensor Options for Power Delivery Systems

POWER SUPPLY MODEL XP-15. Instruction Manual ELENCO

Sum-of-Products and Product-of-Sums expressions

Experiment 8 : Pulse Width Modulation

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Series and Parallel Circuits

6.025J Medical Device Design Lecture 3: Analog-to-Digital Conversion Prof. Joel L. Dawson

Model AD558J AD558K AD558S 1 AD558T 1 Min Typ Max Min Typ Max Min Typ Max Min Typ Max Units

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

Analog/Digital Conversion. Analog Signals. Digital Signals. Analog vs. Digital. Interfacing a microprocessor-based system to the real world.

Lab 7: Operational Amplifiers Part I

Part Number Description Packages available

Cornerstone Electronics Technology and Robotics I Week 15 Voltage Comparators Tutorial

How To Calculate The Power Gain Of An Opamp

Display Board Pulse Width Modulation (PWM) Power/Speed Controller Module

GROUND DETECTION CIRCUITS FOR STATIONARY APPLICATIONS (IN PLAIN DOWN TO EARTH LANGUAGE)

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

SAMPLE CHAPTERS UNESCO EOLSS DIGITAL INSTRUMENTS. García J. and García D.F. University of Oviedo, Spain

Features. Note Switches shown in digital high state

Pulse Width Modulation (PWM) LED Dimmer Circuit. Using a 555 Timer Chip

Elementary circuits. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

What Is Regeneration?

LSI/CSI LS7362 BRUSHLESS DC MOTOR COMMUTATOR/CONTROLLER DESCRIPTION:

Digital Electronics Detailed Outline

Theory of Operation. Figure 1 illustrates a fan motor circuit used in an automobile application. The TPIC kω AREF.

Understanding Delta Conversion Online "Power Regulation" - Part 2

Fundamentals of Signature Analysis

V out. Figure 1: A voltage divider on the left, and potentiometer on the right.

Pulse Width Modulation

Scaling and Biasing Analog Signals

Lecture 18: Common Emitter Amplifier. Maximum Efficiency of Class A Amplifiers. Transformer Coupled Loads.

7-41 POWER FACTOR CORRECTION

Diode Applications. As we have already seen the diode can act as a switch Forward biased or reverse biased - On or Off.

Constructing a precision SWR meter and antenna analyzer. Mike Brink HNF, Design Technologist.

Ammeter design. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1

DATA SHEET. TDA1543 Dual 16-bit DAC (economy version) (I 2 S input format) INTEGRATED CIRCUITS

Operating Manual Ver.1.1

Content Map For Career & Technology

Current Loop Tuning Procedure. Servo Drive Current Loop Tuning Procedure (intended for Analog input PWM output servo drives) General Procedure AN-015

Fundamentals of Microelectronics

Solar Energy Conversion using MIAC. by Tharowat Mohamed Ali, May 2011

Micro-Step Driving for Stepper Motors: A Case Study

3.Basic Gate Combinations

Measuring Electric Phenomena: the Ammeter and Voltmeter

MAS.836 HOW TO BIAS AN OP-AMP

Diodes have an arrow showing the direction of the flow.

RTD and thermocouple circuits, with millivolt calculations

Transcription:

Digital-to-Analog conversion This worksheet and all related files are licensed under the Creative Commons Attribution License, version 1.0. To view a copy of this license, visit http://creativecommons.org/licenses/by/1.0/, or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. The terms and conditions of this license allow for free copying, distribution, and/or modification of all licensed works by the general public. esources and methods for learning about these subjects (list a few here, in preparation for your research): 1

Question 1 Explain what the purpose of a digital-to-analog converter, or DAC circuit is, in your own words. file 03997 Answer 1 The most basic definition for this device should be obvious: a circuit that takes a digital input and creates an analog output. What I m looking for, though, is something a little less obvious. In your own words, explain what it means for a circuit to have a digital input and an analog output. You may give an example of such a circuit if you find it easier to answer the question in context. Notes 1 Informational sources abound which your students can research. Be sure to ask them to answer specifically, explaining what it means for a circuit to have a digital input and an analog output. 2

Question 2 Explain how this digital-to-analog converter (DAC) circuit is supposed to function: A 400 kω CMOS bilateral switches U 1 B 1 200 kω U 2 C 2 100 kω U 3 50 kω D D 1 5 50 kω 3 4 = -5 volts 1 kω U 4 + 6 U5-15 V file 03996 Answer 2 Notes 2 I ll let you figure out the operation of this circuit on your own! This question is a good review of op-amp theory, especially for students who might not have studied operational amplifiers in a while. 3

Question 3 This digital-to-analog converter (DAC) circuit takes a four-bit binary input (input terminals A through D) and converts it to an analog voltage ( ). Predict how the operation of this circuit will be affected as a result of the following faults. Consider each fault independently (i.e. one at a time, no multiple faults): A 400 kω CMOS bilateral switches U 1 B 1 200 kω U 2 C 2 100 kω U 3 50 kω D D 1 I D1 5 50 kω 3 4 = -5 volts 1 kω U 4 + 6 U5-15 V (Arrow points in direction of electron flow) Bilateral switch U 1 fails open: Zener diode fails shorted: Solder bridge (short) past resistor 1 : esistor 6 fails open: file 03849 Answer 3 Bilateral switch U 1 fails open: same for all odd numbered input conditions as it is for next lowest even-numbered input condition (e.g. input value of 5 gives same output as input value of 4). Zener diode fails shorted: is nearly zero volts for any input condition. Solder bridge (short) past resistor 1 : saturates positive for any given odd-valued input condition. esistor 6 fails open: always saturated. Follow-up question #1: is the arrow showing zener diode current drawn in the direction of electron flow or conventional flow? Follow-up question #2: which input bit is the most significant (MSB) and which is the least significant (LSB)? 4

Notes 3 Questions like this help students hone their troubleshooting skills by forcing them to think through the consequences of each possibility. This is an essential step in troubleshooting, and it requires a firm understanding of circuit function. 5

Question 4 A type of resistor network known as an -2 ladder is often used in digital-to-analog conversion circuits: 2 2 2 2 2 2 When all switches in the -2 ladder are in the ground position, the network has a very interesting property regardless of its size. Analyze the Thévenin equivalent resistance (as seen from the output terminal) of the following -2 ladder networks, then comment on the results you obtain: thev =??? 2 kω 2 kω 6

1 kω thev =??? 2 kω 2 kω 2 kω 1 kω 1 kω thev =??? 2 kω 2 kω 2 kω 2 kω 7

1 kω 1 kω 1 kω thev =??? 2 kω 2 kω 2 kω 2 kω 2 kω 1 kω 1 kω 1 kω 1 kω thev =??? 2 kω 2 kω 2 kω 2 kω 2 kω 2 kω file 03999 Answer 4 Notes 4 Did you honestly think I d do all the work for you and just give you the answer? The answer is not difficult to obtain if you use each Thévenin equivalent resistance to model the lefthand portion of each successive -2 ladder network as they become more complex! Those students who do not take this problem-solving step are doomed to perform a lot of series-parallel calculations! 8

Question 5 When only the most significant bit (MSB) of an -2 ladder resistor network is activated (all other bits inactive, their switches connecting to ground), the output voltage will be the same, regardless of how many bits the network has:... =??? 2 2 2 2 2 2 LSB MSB... Explain why this output voltage magnitude stands independent of the number of bits (sections) in the -2 ladder network. file 04000 Answer 5 Notes 5 = 2 The key to understanding the answer is to apply Thévenin s theorem to the inactive sections of the network. Here, the unique property of constant output impedance for an -2 network yields a useful feature when applied to DAC circuitry. 9

Question 6 Thévenin s theorem is a powerful tool for analyzing -2 ladder networks. Take for instance this foursection network where the next-to-most-significant bit is activated, while all the other bits are inactive (switched to ground): =??? 2 2 2 2 2 LSB MSB If we Thévenize all sections to the left of the activated section, replacing it with a single resistance to ground, we see the network becomes far simpler: 10

=??? 2 2 2 2 2 LSB MSB =??? (Equivalent) 2 2 2 MSB Explain how we may apply Thévenin s theorem once again to the shaded section of this next circuit (simplified from the previous circuit shown above) to simplify it even more, obtaining a final result for : 11

=??? 2 2 2 MSB file 04001 Answer 6 Once you get to this point, solving for in terms of is trivial: =??? 2 2 MSB Notes 6 Students might not realize it is valid to iteratively apply Thévenin s theorem to the solution of a circuit problem. You can, and this stands as a good example of how (and why!) you should do it. 12

Question 7 Determine the voltage output by the following -2 ladder network given the switch states shown in the table: 2 2 2 2 2 SW 0 SW 1 SW 2 SW 3 = 16 VDC SW 0 SW 1 SW 2 SW 3 Ground Ground Ground Ground Ground Ground Ground Ground Ground Ground Ground Ground Ground Ground Ground Ground file 04007 Answer 7 SW 0 SW 1 SW 2 SW 3 Ground Ground Ground 8 volts Ground Ground Ground 4 volts Ground Ground Ground 2 volts Ground Ground Ground 1 volt Ground Ground Ground Ground 0 volts Follow-up question: the fact that an -2 resistor network is inherently linear, we may readily apply the Superposition Theorem to figure out what happens when more than one switch is moved to the position. Explain how you would apply Superposition to determine all output voltages for all possible combinations of switch positions. 13

Notes 7 As you can see, the reference voltage value of 16 volts was not chosen at random! I wanted students to see the pattern between single switch closures and binary place-weights for a four-bit number. The actual electrical analyses for each condition are best expedited by applying Thévenin s theorem repeated to the circuit, condensing sections to single resistances and voltage sources until a simple voltage divider circuit is obtained at the output terminal. The follow-up question is quite important. Be sure to ask your students about it, for it holds the key to figuring out all output voltage values for all binary input possibilities. 14

Question 8 Explain why DAC circuits based on -2 ladder networks are more popular than binary-weighed resistor networks. Either one will work well if properly designed and built, so why would one design be more widely manufactured? file 04009 Answer 8 The answer to this question has to do with business and production-line priorities. Just because two designs work equally well in theory does not mean they are equally easy to mass-produce! Notes 8 It is important for your students to grasp basic principles and practices of business, because that is the arena their technical skills will most likely find challenge and value. This question is a way to get your students thinking about real-life, practical manufacturing concerns that go beyond basic principles of electrical theory. 15

Question 9 Explain what a digital potentiometer is, and give one example of a digital potentiometer in integratedcircuit (IC) form. file 02817 Answer 9 Analog Devices manufactures a 64-position digital potentiometer under the part number AD5227, for example. This is by no means the only digital potentiometer in production! Follow-up question: would you classify a digital potentiometer as an ADC (analog-to-digital converter) or as a DAC (digital-to-analog converter)? Notes 9 arely is the digital potentiometer mentioned in introductory textbooks as a digital-to-analog converter device, but it is! 16

Question 10 This is a digitally-set motor speed controller circuit, using PWM to modulate power to the motor. Predict how the operation of this circuit will be affected as a result of the following faults. Consider each fault independently (i.e. one at a time, no multiple faults): +V +V supply (motor) 8-bit digital input DAC Analog output +V + U U 2 1 Q 1 Mtr +V U 3 Sawtooth wave generator DAC output fails low (output = 0 volts DC): DAC output fails high (output = +V): IGBT Q 1 fails open (collector to emitter): Solder bridge (short) between MSB input on U 1 and ground: file 03850 Answer 10 DAC output fails low (output = 0 volts DC): Motor will not run. DAC output fails high (output = +V): Motor runs full speed all the time. IGBT Q 1 fails open (collector to emitter): Motor will not run. Solder bridge (short) between MSB input on U 1 and ground: Speeds 0 through 127 work normally, but speeds 128 through 255 just duplicate speeds 0 through 127, respectively. Notes 10 Questions like this help students hone their troubleshooting skills by forcing them to think through the consequences of each possibility. This is an essential step in troubleshooting, and it requires a firm understanding of circuit function. 17

Question 11 If a pulse-width modulated (PWM) signal is sent to a passive integrator circuit from a circuit capable of both sourcing and sinking current (as is the case with the dual-mosfet output stage), the output will be a DC voltage (with some ripple): Output stage of PWM-generating circuit V DD PWM signal V DD... 0 V Passive integrator V DD 0 V Determine the relationship between the PWM signal s duty cycle and the DC voltage output by the integrator. What does this suggest about PWM as a means of communicating information, such as analog data from a measuring device? file 02156 Answer 11 There is a direct-proportional relationship between duty cycle and DC output voltage in this circuit, making it possible for a PWM signal to represent analog data. Follow-up question #1: why is it important that the circuit generating the PWM signal for the integrator be able to both source and sink current? Follow-up question #2: what would have to be done to reduce the ripple voltage at the integrator s output? Notes 11 Although it should not be difficult for students to discern the relationship between duty cycle and DC output voltage, the application of this relationship to data communication might be difficult for some students to grasp, especially on their own. Further elaboration on your part may be necessary. An excellent example of this principle applied is the generation of an analog voltage by a 1-bit digital circuit. This technique is useful in microcontroller systems where output ports may be scarce, provided that ripple voltage (or slow response) is not a problem. 18

Question 12 The following circuit generates an analog output voltage proportional to the value of the binary input, using pulse-width modulation (PWM) as an interim format. An eight-bit binary counter (CT) continually counts in the up direction, while an 8-bit magnitude comparator (CMP) checks when the 8-bit binary input value matches the counter s output value. The AND gate and inverter simply prevent the S- latch from being set and reset simultaneously (when both A and B are maximum, both at a hex value of $FF), which would cause the output to be invalid when S and were both active, and unpredictable when both S and inputs returned to their inactive states: CMP Input 8 A A=B B S Q 8 PWM signal Q 0 -Q 7 CT TC Q Explain how this circuit works, using timing diagrams if necessary to help show the PWM signal at Q for different input values. file 03998 19

Answer 12 Here is a timing diagram to help get you started on a complete answer: B = $00 B = $FF Clk... TC Q Q goes low when A = B (input = count) I ll leave it to you to explain the relationship between the input value (A), the PWM duty cycle, and the analog output voltage. Notes 12 This circuit provides students with an interesting exercise in timing analysis, as well as being a simple means of converting large binary values into analog output voltages without resorting to using large resistor networks. 20

Question 13 What is meant by the word resolution in reference to an ADC or a DAC? Why is resolution important to us, and how may it be calculated for any particular circuit knowing the number of binary bits? file 04008 Answer 13 The resolution of either a digital-to-analog converter (DAC) or an analog-to-digital converter (ADC) is the measure of how finely its output may change between discrete, binary steps. For instance, an 8-bit DAC with an output voltage range of 0 to 10 volts will have a resolution of 39.22 mv. Notes 13 Note that I did not hint how to calculate the resolution of a DAC or an ADC, I just gave the answer for a particular example. The goal here is for students to inductively work backwards from my example to a general mathematical statement about resolution. There are actually two different ways to calculate the resolution, depending on the actual range of the converter circuit. For the answer given, I assumed that a digital value of 0x00 = 0.00 volts DC and that a digital value of 0xFF = 10.00 volts DC. If a student were to calculate the resolution for a circuit where 0xFF generated an output voltage just shy of 10.00 volts DC (e.g. an -2 ladder network where = 10 volts DC, and a full-scale binary input generates an output voltage just one step less than ), the correct answer for resolution would be 39.06 mv. You may want to bring up such practical examples of resolution as the difference between a handheld digital multimeter and a lab-bench digital multimeter. The number of digits on the display is a sure clue to a substantial difference in ADC resolution. 21