Prelaboratory. EE223 Laboratory #1 Digital to Analog Converter

Similar documents
Designing Information Devices and Systems I Summer 2017 D. Aranki, F. Maksimovic, V. Swamy Midterm 2. Exam Location: 100 Genetics & Plant Bio

Overview. Multiplexor. cs281: Introduction to Computer Systems Lab02 Basic Combinational Circuits: The Mux and the Adder

Experiment #6. Thevenin Equivalent Circuits and Power Transfer

11.1 As mentioned in Experiment 10, sequential logic circuits are a type of logic circuit where the output of

What to Add Next time you update?

Introduction to 1118 Labs

Introduction. Pre-lab questions: Physics 1BL KIRCHOFF S RULES Winter 2010

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Digital Logic

Designing Information Devices and Systems I Fall 2018 Lecture Notes Note Introduction: Op-amps in Negative Feedback

Digital Circuits, Binary Numbering, and Logic Gates Cornerstone Electronics Technology and Robotics II

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

POLYTECHNIC UNIVERSITY Electrical Engineering Department. EE SOPHOMORE LABORATORY Experiment 2 DC circuits and network theorems

University of Florida EEL 3701 Fall 2014 Dr. Eric. M. Schwartz Department of Electrical & Computer Engineering Wednesday, 15 October 2014

Name Date Time to Complete

Binary addition example worked out

Arthur & Polly Mays Conservatory Of The Arts

Prepare for this experiment!

15EE103L ELECTRIC CIRCUITS LAB RECORD

Lab #8 Two Port Networks

Edited By : Engr. Muhammad Muizz bin Mohd Nawawi

ECE2019 Sensors, Circuits, and Systems A2015. Lab #2: Temperature Sensing

UNIVERSITY F P RTLAND Sch l f Engineering

Please read carefully. Good luck & Go Gators!!!

Math 1 Summer Assignment 2017

RC & RL Transient Response

first name (print) last name (print) brock id (ab17cd) (lab date)

Experiment 7: Magnitude comparators

farads or 10 µf. The letter indicates the part tolerance (how close should the actual value be to the marking).

Please bring the task to your first physics lesson and hand it to the teacher.

University of Maryland Department of Physics. Spring 2009 Final Exam 20. May (175 points) Post grades on web? (Initial, please) Yes No

RC Circuits. 1. Designing a time delay circuit. Introduction. In this lab you will explore RC circuits. Introduction

DESIGN AND IMPLEMENTATION OF ENCODERS AND DECODERS. To design and implement encoders and decoders using logic gates.

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER /2017

UC Berkeley, EECS Department EECS 40/42/100 Lab LAB2: Electronic Scale UID:

Midterm Examination # 1 Wednesday, February 25, Duration of examination: 75 minutes

Lab 5 RC Circuits. What You Need To Know: Physics 212 Lab

Binary addition (1-bit) P Q Y = P + Q Comments Carry = Carry = Carry = Carry = 1 P Q

How long is the arrow?

PHY222 - Lab 7 RC Circuits: Charge Changing in Time Observing the way capacitors in RC circuits charge and discharge.

Lab 5 RC Circuits. What You Need To Know: Physics 212 Lab

Review. Multiple Choice Identify the letter of the choice that best completes the statement or answers the question.

EE247 Analog-Digital Interface Integrated Circuits

Lab #3 Linearity, Proportionality, and Superposition

Designing Information Devices and Systems I Fall 2017 Midterm 2. Exam Location: 150 Wheeler, Last Name: Nguyen - ZZZ

Prepare for this experiment!

Analog to Digital Conversion

IMPORTANT Read these directions carefully:

LED s and R e sist or s

Measurement and Instrumentation. Sampling, Digital Devices, and Data Acquisition

CHAPTER 6 - THINKING ABOUT AND PRACTICING PROPOSITIONAL LOGIC

Significant Figures The Jacobs Way

EXPERIMENT 15. USING CONDUCTIVITY TO LOOK AT SOLUTIONS: DO WE HAVE CHARGED IONS OR NEUTRAL MOLECULES? rev 7/09

Counting. 1 Sum Rule. Example 1. Lecture Notes #1 Sept 24, Chris Piech CS 109

University of Florida EEL 3701 Summer 2015 Dr. Eric. M. Schwartz Department of Electrical & Computer Engineering Tuesday, 30 June 2015

ECE 220 Laboratory 4 Volt Meter, Comparators, and Timer

Voltage Dividers, Nodal, and Mesh Analysis

The Digital Multimeter (DMM)

SOLVING QUADRATIC EQUATIONS USING GRAPHING TOOLS

SAMPLE EXAMINATION PAPER

resistance in the circuit. When voltage and current values are known, apply Ohm s law to determine circuit resistance. R = E/I ( )

E40M. Binary Numbers. M. Horowitz, J. Plummer, R. Howe 1

HW9 Concepts. Alex Alemi November 1, 2009

Liquid-in-glass thermometer

Superposition theorem

Lab 4 CAPACITORS & RC CIRCUITS

Designing Information Devices and Systems I Spring 2018 Homework 7

Experiment 2: Analysis and Measurement of Resistive Circuit Parameters

Electric Field and Electric Potential

ALGEBRA 2 HONORS SUMMER WORK. June Dear Algebra 2 Students,

Laboratory 1. Introduction - Resistor Codes, Breadboard, and Basic Measurements. Learn how to construct basic electrical circuits using a breadboard.

Dr. Julie J. Nazareth

E11 Lecture 1: The Big Picture & Digital Systems. Profs. David Money Harris & Sarah Harris Fall 2011

Module 1, Add on math lesson Simultaneous Equations. Teacher. 45 minutes

STEAM Clown Production. Series Circuits. STEAM Clown & Productions Copyright 2017 STEAM Clown. Page 2

Administrative-Master Syllabus form approved June/2006 revised Page 1 of 1

Lab 1: Measurement Errors Adapted from Holtzman's Intro Lab for Astr110

LAMC Intermediate I & II October 12, Oleg Gleizer. Warm-up

LAB 01 Electrostatic Charge

EE 241 Experiment #5: TERMINAL CHARACTERISTICS OF LINEAR & NONLINEAR RESISTORS 1

#29: Logarithm review May 16, 2009

Study Guide. Science 3103 Electricity. Adult Basic Education Science. Prerequisite: Science Credit Value: 1

Liquid-in-glass thermometer

Fig. 1 Simple BJT (NPN) current mirror and its test circuit

CS1800 Discrete Structures Spring 2018 February CS1800 Discrete Structures Midterm Version A

ECE 241L Fundamentals of Electrical Engineering. Experiment 5 Transient Response

CHAPTER 2 BASIC MATHEMATICAL AND MEASUREMENT CONCEPTS

9.4 Radical Expressions

AP CALCULUS AB. Summer Assignment. Page 1

Solutions For the problem setup, please refer to the student worksheet that follows this section.

ALGEBRA 2 SUMMER WORK. June Dear Algebra 2 Students,

PHYSICS LAB: CONSTANT MOTION

CONSTRUCTION OF THE REAL NUMBERS.

Physics 1B ELECTRIC FIELDS AND POTENTIALS Rev. 3-AH. Introduction

Physics 123 Lab 2: Electric Field Physics 123: Electricity and Magnetism

Class #12: Experiment The Exponential Function in Circuits, Pt 1

June Mr. Brown

Phys1220 Lab Electrical potential and field lines

MATH 137 : Calculus 1 for Honours Mathematics. Online Assignment #2. Introduction to Sequences

ECE 202 Fall 2013 Final Exam

Transcription:

EE223 Laboratory #1 Digital to Analog Converter Objectives: 1) Learn how superposition and Thevenin conversions are used to analyze practical circuits 2) Become familiar with ground bus and power bus notation 3) Understand D/A conversion concepts 4) Be able to design a D/A converter to meet a particular specification 5) Keep Spice skills current Prelaboratory In this experiment, you will use your knowledge of superposition and Thevenin conversions to analyze a popular digital to analog conversion circuit. This circuit is similar to those found in CD and DVD players and in computer sound cards. It has the ability to convert a set of bits (which each occupy one of two states) into a continuous analog signal (which may occupy many intermediate states) representing sound. The bits are stored as logic levels on data buses inside a computer, as pits on the surface of a CD, or as the state of switches in this lab. Analog to digital conversion V ref (e.g. 8.0 V) V analog to be converted to digital signal (e.g. 3.2 V) A/D Converter 1 0 1 B digital out (N=3 bits shown; e.g. B= 101 2 ) Figure 1- Block diagram of generic A/D Converter In most of EE223, we deal exclusively with analog signals. An analog voltage or current is continuous and can occupy an infinite number of possible values (e.g. an analog voltage that varies between 0 and 5 volts may be 2.83623V). In contrast, a digital number must equal one of a finite number of values. For example, a 2 bit number can have binary values of {002, 012, 102, or 112} (where the subscript 2 indicates binary) corresponding to decimal numbers {0,1,2,3}. These values are usually written in binary and can be converted to an analog voltage by scaling the binary number by a constant. To complete an analog to digital conversion (i.e. to take an analog voltage of 2.83623V and represent it with a binary number such as 1012), we must know both the maximum possible range of the input signal (from 0V to a maximum traditionally called Vref) and the number of bits that will be used to represent it (called N). If there are N bits, there are 2 N unique voltages that can be encoded. For example, 3 bits can encode 000, 001, 010, 011, 100, 101, 110, and 111. A circuit powered by Vref volts will divide that Vref voltage into equal 2 N steps, so each voltage step will be Vref/2 N.

2 You might expect that if the maximum possible input voltage was 4V (i.e. Vref = 4) and we wanted to represent the input with 2 bits then the minimum number, 002, would correspond to the minimum voltage, 0V, and the maximum number, 112, would correspond to the maximum voltage, 4V. It makes sense, but that s wrong! The minimum voltage would be 0V, but the maximum is one step lower than Vref, or Vref Vref/2 N. For example, to code {0V to 4V} into binary with N=2 bits, the largest value possible 112 (i.e. 3 in decimal) maps to 3V. If you instead could use a more precise N=8 bit encoder, 11111111112 (i.e. 255 in decimal) maps to 3.98V, and for N=16 bits, 11111111 11111111112 (6553510) maps to 3.99994V. The scaling factor that is used to multiply the digital number to recover the analog voltage is therefore not arbitrary; it is a number such that an analog voltage range of {0V to Vref} maps to a binary number equal to {0 to 2 N -1}, where N is the number of bits. This is summarized in the following general formula that converts from an analog voltage Vanalog to a number B, represented in binary using N bits: V B V analog N 2 The odd-looking braces indicates a floor function that always rounds down to an integer. As an example, in a digital recording system that uses a Vref of 8V and uses groups of 4 bits to represent each sound level, a value of 4.63V coming in from the mike would be converted into 4.63 4 2 9 8 (decimal) which would be recorded on the CD as a binary 10012 (i.e. N=4 bits, and so bit0=1, bit1=0, bit2=0, and bit3=1). Digital to analog conversion The CD player must accomplish the inverse action and produce an analog voltage level given the binary number. The equation it implements is: B Vanalog V N ref 2 As an example, a 3-bit CD player using a Vref of 8.0V and reading binary values 111, 100, 001 would output analog voltages of 7 4 1 8, 8, 8 = (7, 4, 1) V. (Do you see that 3 3 3 Vref is simply a scaling factor with units of 2 2 2 Volts?) A circuit that can accomplish this conversion is shown below, where binary digits are represented by switches. ref

3 5k 5k 10k 10k 10k 10k V out B2 B1 B0 1 0 1 0 1 0 8V 8V 8V Figure 2 D/A Converter Circuit. The switches are set to 110 binary (110 means B2=1, B1=1, B0=0) and are read left to right with the most significant bit on the left. By hand analysis (not Spice), analyze the above circuit but alter the switches so that the circuit input is a binary 111 (i.e. all switches are set to 8.0V) and find Vout (show your work). Use superposition to solve (refer back to your EE122 notes if necessary). This will require first drawing three separate circuits (001, 010, 100). For each of these three circuits, solve using Norton/Thevenin source transforms and resistor simplification. Then, the result of 111 is simply the sum of the solutions for the 001, 010, and 100 cases. These hand calculations should be in your prelab. Verify using Spice (you will have to hard code the switches as wired connections, so a 0 means a wire connected to ground and a 1 would mean the wire is connected to an 8V source), and attach a printout. Forgotten how to use Spice? Refer to the Spice walkthrough on my website (www.jimsquire.com) under Teaching EE223 Lab 1. By superposition, you now know the contribution each bit makes to Vout! For instance, the output for an input of 011 by superposition is your output for 001 plus your output for 010 (i.e. 001 + 010 = 011). For your prelab, finish filling out the table below (and copy it to your prelab your prelab has to be complete by itself). B2 B1 B0 Binary Decimal Vout predicted GND GND GND 000 0 GND GND 8V 001 1 010 2 011 3 4 5 6 7

4 In summary, for your prelab: 1) Read this entire packet and be ready to start breadboarding. 2) Your prelab document should have 3 circuits analyzed corresponding to 001, 010, and 100 by hand as discussed above, showing your work. Analyze the switches by pretending they are either opens or shorts, depending on whether the switch is open or closed, and sum the results to find 111. Each lab partner has to have their own, individual prelab although you work the lab during the lab hour in pairs, the prelabs you must do on your own. You may consult your lab partner for help working the prelab problems if you don t understand a particular part, but if you find yourself copying his/her work because (although you may understand their work) you cannot do it independently, then you are setting yourself up for disaster on the first test when you won t be able to rely on their help. 3) Complete the above table in your individual prelab. 4) Attach a Spice printout of the circuit, again, for each student, not a single one shared among lab teams, for an input signal of 111. Model the switches as a open or short wires (i.e. replace each switch with either an 8V source or a ground). Check the output to make sure it agrees with your hand calculations in step 2 (you can screen-capture the Spice results). Have your individual prelabs out at the start of the lab for grading in the first five minutes of class. You need your prelab results to check your lab work; if you do not have it complete you will have to leave the lab to complete them, and then complete the lab with whatever time you have remaining. You do not want to fall behind this power curve complete the prelab completely, individually, and you will ace the lab.

5 Laboratory Procedure: Create the circuit shown in Figure 2 and find the experimental voltages for each binary combination (Think: how will you obtain a 5k resistor when the closest standard value is 5.1k? Consider using two 10ks ). Use the switches at the bottom of your protoboard to provide +8V and ground. Don t forget to measure and report the true values of the resistors. Part II (OPTIONAL: 5 points) 6-bit D/A converter Construct a 6-bit D/A converter and show the instructor. Answer these additional questions in your lab report: How many discrete output voltages can this circuit render? What is the smallest increment by which you can change the output voltage? Make a table for at least 6 switch combinations. Predict and measure the output voltage. How well do they compare? Discussion questions: Always answer the discussion questions quantitatively. For instance, not My errors were caused by resistor tolerance but The maximum errors were less than 4%. Since the resistors are only toleranced to 5%, resistor tolerance is the major source of error. 1. Common CD players record 16 bits of information for every voltage reading. a) How many discrete output voltages can 16 bits of information render? b) What is the smallest increment by which the output can vary given a Vref = 1.25V? c) What are the lowest and highest voltages it can output? 2. The circuit you constructed can output anywhere from 0 to 7V. An engineering firm requests you design a different 4 bit D/A converter that can output from 0 (with an input of 0000) to 10V (an input of 1111). a) What Vref would you select? (Hint: It is not 8, 10, 11, 15, or 16V) b) What is the resolution (smallest voltage step)? 3. (difficult: use Spice to help) Say you desire to construct an 8 bit D/A converter with a Vref=5V using 5k and 10k resistors. 10k resistors in a lab are not exactly 10k; any one chosen may be anywhere within 5% of nominal (e.g. from 9.5k to 10.5k). a) How precise, in %, must the resistor be that has the most control over the output (e.g. the leftmost 10k in the 3bit converter of Figure 1) so that, assuming all the other resistors are perfect, the output value varies less than one least-significant bit s worth? It makes no sense to design a bit converter whose output varies more from resistor tolerances than from its least significant bit. b) Could you design it using our 5% resistors? It would be pointless to add additional bits to the design unless better resistors could be found.