Data Conversion and Lab Lab 4 Fall Digital to Analog Conversions

Similar documents
Data Conversion and Lab Lab 3 Spring Analog to Digital Converter

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering

Lab Exercise 6: Digital/Analog conversion

Data Conversion and Lab Lab 1 Fall Operational Amplifiers

EXPERIMENT 4 LIMITER AND CLAMPER CIRCUITS

BINARY AMPLITUDE SHIFT KEYING

Lab 2: Diode Characteristics and Diode Circuits

EXAMPLE. Use this jack for the red test lead when measuring. current from 0 to 200mA. Figure P-1

University of Pennsylvania. Department of Electrical and Systems Engineering. ESE Undergraduate Laboratory. Analog to Digital Converter

EE 368 Electronics Lab. Experiment 10 Operational Amplifier Applications (2)

DIGITAL / ANALOG TRAINER

Junior Digital circuit experiment board. Use for the experimentation of digital circuits both TTL IC and CMOS DC supply :

EE283 Electrical Measurement Laboratory Laboratory Exercise #7: Digital Counter

Electronics. RC Filter, DC Supply, and 555

Assembly Manual for VFO Board 2 August 2018

Lab: Operational Amplifiers

Physics 309 Lab 3 Bipolar junction transistor

Digital Signal Processing

LINEAR APPLICATIONS OF OPERATIONAL AMPLIFIERS

Instructions for the final examination:

Digital Applications of the Operational Amplifier

EE 210 Lab Exercise #4 D/A & A/D Converters

Applications of the LM392 Comparator Op Amp IC

Lab 7: DELTA AND SIGMA-DELTA A/D CONVERTERS

ENGR 210 Lab 12: Analog to Digital Conversion

Lab 4: Analysis of the Stereo Amplifier

CHAPTER ELEVEN - Interfacing With the Analog World

Not Recommended for New Designs

Lab 10: Oscillators (version 1.1)

Exercise Generation and Demodulation of DPSK Signal

ECE 454 Homework #1 Due 11/28/2018 This Wednesday In Lab

Lab #7: Transient Response of a 1 st Order RC Circuit

Electronic Fundamentals (Digital and Analogue) (2hours)

Practical 2P12 Semiconductor Devices

When you have completed this exercise, you will be able to relate the gain and bandwidth of an op amp

PreLab 6 PWM Design for H-bridge Driver (due Oct 23)

Digital-to-Analog Converter. Lab 3 Final Report

BME/ISE 3511 Laboratory One - Laboratory Equipment for Measurement. Introduction to biomedical electronic laboratory instrumentation and measurements.

VCC. Digital 16 Frequency Divider Digital-to-Analog Converter Butterworth Active Filter Sample-and-Hold Amplifier (part 2) Last Update: 03/19/14

CHARACTERISTICS OF OPERATIONAL AMPLIFIERS - I

EXPERIMENT 1 PRELIMINARY MATERIAL

Electrical Engineer. Lab2. Dr. Lars Hansen

Microprocessors A Lab 4 Fall Analog to Digital Conversion Using the PIC16F684 Microcontroller

Digital Logic Troubleshooting

ECE Electronics Circuits and Electronics Devices Laboratory. Gregg Chapman

ELG3336: Converters Analog to Digital Converters (ADCs) Digital to Analog Converters (DACs)

IR add-on module circuit board assembly - Jeffrey La Favre January 27, 2015

DEPARTMENT OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCE MASSACHUSETTS INSTITUTE OF TECHNOLOGY CAMBRIDGE, MASSACHUSETTS 02139

Sampling and Quantization

Lab 6: Building a Function Generator

Lab 3 Final report: Embedded Systems Digital Potentiometer Subsystem TEAM: RAR

Lab 12: Timing sequencer (Version 1.3)

ENGR4300 Test 3A Fall 2002

University of Jordan School of Engineering Electrical Engineering Department. EE 204 Electrical Engineering Lab

Breadboard Primer. Experience. Objective. No previous electronics experience is required.

12-Bit Successive-Approximation Integrated Circuit A/D Converter AD ADC80

555 Morse Code Practice Oscillator Kit (draft 1.1)

Operation and Maintenance Manual

LAB II. INTRODUCTION TO LAB EQUIPMENT

UNIVERSITI MALAYSIA PERLIS

EE 210 Lab Exercise #5: OP-AMPS I

DEPARTMENT OF E.C.E.

Diode Applications Half-Wave Rectifying

MASSACHUSETTS INSTITUTE OF TECHNOLOGY

ENGN Analogue Electronics Digital PC Oscilloscope

ELG4139: Converters Analog to Digital Converters (ADCs) Digital to Analog Converters (DACs)

RC Filters and Basic Timer Functionality

LABORATORY EXPERIMENT. Infrared Transmitter/Receiver

DEPARTMENT OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCE MASSACHUSETTS INSTITUTE OF TECHNOLOGY CAMBRIDGE, MASSACHUSETTS 02139

ECE 2010 Laboratory # 5 J.P.O Rourke

LumiDax Electronics LLC Bakerboard Analog Trainer. Operator's Guide with Example Projects

Federal Urdu University of Arts, Science & Technology Islamabad Pakistan SECOND SEMESTER ELECTRONICS - I

Lab 11: 555 Timer/Oscillator Circuits

Lab 3 DC CIRCUITS AND OHM'S LAW

CSE208W Lecture #1 Notes Barry E. Mapen

LABORATORY EXPERIMENTS DIGITAL COMMUNICATION

Analog-to-Digital Conversion

Final Project Stereo Audio Amplifier Final Report

LINEAR IC APPLICATIONS

DIGITAL COMMUNICATIONS LAB

CD V Low Power Subscriber DTMF Receiver. Description. Features. Ordering Information. Pinouts CD22204 (PDIP) TOP VIEW. Functional Diagram

ADS9850 Signal Generator Module

Software Programmable Gain Amplifier AD526

Multi-Transistor Configurations

ENGINEERING TRIPOS PART II A ELECTRICAL AND INFORMATION ENGINEERING TEACHING LABORATORY EXPERIMENT 3B2-B DIGITAL INTEGRATED CIRCUITS

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE. Department of Electrical and Computer Engineering

EE2304 Implementation of a Stepper Motor using CMOS Devices Fall 2004 WEEK -2-

University of California at Berkeley Donald A. Glaser Physics 111A Instrumentation Laboratory

Lab 8: SWITCHED CAPACITOR CIRCUITS

Getting Started. 0.1 Breadboard

Sequential Logic Circuits

UNIVERSITI MALAYSIA PERLIS

Physics 120 Lab 6 (2018) - Field Effect Transistors: Ohmic Region

ANALOG TO DIGITAL (ADC) and DIGITAL TO ANALOG CONVERTERS (DAC)

When you have completed this exercise, you will be able to determine the frequency response of an

ELEG 205 Analog Circuits Laboratory Manual Fall 2017

Laboratory Assignment 1 Sampling Phenomena

Electronics Fundamentals Courseware

EK307 Active Filters and Steady State Frequency Response

ECE 203 LAB 6: INVERTED PENDULUM

Transcription:

Digital to Analog Conversions Objective o o o o o To construct and operate a binary-weighted DAC To construct and operate a Digital to Analog Converters Testing the ADC and DAC With DC Input Testing the ADC and DAC With A Sinusoidal Input Integrated Digital to Analog Converter Signal Generator References (a) Agilent Technologies EducatorsCorner.com Experiment on A/D and D/A Materials o 1 Breadboard o 1 Oscilloscope o 1 Dual Power Supply (+18 V and 18 V) o 1 5 V DC Supply o 1 Oscillator of Function Generator for signal source o 1 741 Linear IC o 1 DAC0800LCN (Digital to Analog Converter) o 1 DIP Switch (8 switches minimum) o 1 1 k Ohm Resistor Pack (8 Resistors, minimum) or (8) 1 K Ohm Resistors (Brown Black Red) o 2 7493 Synchronous 4-Bit Up/Down Counters o 1 10 V Zener Diode o 1 LM78L05 voltage regulator o 1 470 k Ohm Resistor (Yellow Violet Brown) o 2 5.1 k Ohm Resistors (Green Brown Red) o 2 10 k Ohm Resistors (Brown Black Orange) o 1 16 k Ohm Resistor (Brown Blue Orange) o 1 20 k Ohm Resistor (Red Black Orange) o 1 39 k Ohm Resistor (Orange White Orange) o 1 82 k Ohm Resistor (Grey Red Orange) o 1 100 k Ohm Potentiometer o 1 0.01 μf Capacitors (103) o 3 0.1 μf Capacitor (104) o 1 10 μf Capacitor WARNINGS AND PRECAUTIONS 1. Never install or remove the components from an energized circuit 2. Do not construct circuits while energized 3. Follow electrical safety precautions Page 1 of 14

Background Information None. Pre-Lab Preparation 1. Download the component Data Sheets available on the course web page. Procedure Experiment 1. (Binary-Weighted D/A Converter) a. Assemble the circuit shown in Figure 1. FIGURE 1 Binary-weighted D/A Converter b. Calculate the values of V OUT for the circuit shown in Figure 1 for each input specified in Table 1. What formula did you use? Why? Page 2 of 14

Table 1 Function Table DCBA Vout Inputs Calculated Measured 0000 0001 0011 0101 1000 1011 1100 1111 c. Measure V OUT for the circuit shown in Figure 1 for each input specified in Table 1 by positioning the switches in the circuit to the binary numbers listed in the input section. Record results in Table 1. How do the measured values compare to the calculated values? Experiment 2. (8-Bit D/A Converter - Basic Bipolar Output Operation) a. Review the DAC0800 Data Sheets for the features of this device. b. The supply voltages will be the +15 and the 15 volts D.C., the reference voltage will be +10 volts D.C. (use a 10 volt Zener diode with a resistor to make a 10 volts D.C. source OR use a potentiometer and adjust to 10 V). Pin 14 (the reference) voltage is critical. You need to be as close to 10 volts as you can. 1. The digital input will be the standard TTL 5 volt signal levels (use a voltage regulator to get +5 volts for TTL levels, LM78L05, 100 ma. Output max. or you can use a power supply). c. A DIP Switch will be used for the Digital Signal input control with 1 K Ohms pull-up SIP resistor pack or you can use (8) 1 K Ohm resistors. The schematic will be the same as in the DAC0800 Data Sheet Figure 1 on page 1 and as modified by Figure 2 of this Lab. d. When the circuit is working measure the output voltages for the seven switch input configurations on page 7 (figure 7) of the DAC0800 Data Sheets and record in a similar table. e. Choose on digital input. Record the output voltage. Vary the reference voltage to Pin 14. Note the effect on the output voltage as you vary the reference. What effect, if any, do you see at the output? How much of a change to the reference voltage is required to see an effect on the output, if any? Page 3 of 14

Closed = 0 Open = 1 Can replace this circuit with a pot Figure 2 Page 4 of 14

Experiment 3. (Testing the ADC and DAC With DC Input) Background Information This experiment requires that you tie the Analog to Digital circuit from lab #3 (also shown in Figure 3) to the input of the Digital to Analog circuit, Figure 4. The 8-bit output of the ADC, Figure 3, gets connected to the 8-bit input of the DAC0800, Figure 4. Do this as follows: connect the MSB of the ADC (pin 11 of the ADC0804), to the MSB of the DAC (pin 5 = A1 of the DAC0800). Next, connect pin 12 above to pin 6. Do this for each bit, ending with the LSB, so that pin 18 (LSB output of the ADC) is connected to pin 12 (LSB input of the DAC). NOTE: Steps a through d has already been accomplished in Lab # 3 and are shown below just to build upon the remainder of the experiment. a. Construct the ADC circuit shown in Figure 3 (this is the same circuit used in Lab #3). Do not connect the circuit to the DC power supply, or to an input signal at this time. Make the MSB LED on the left, and the LSB LED on the right. Be VERY careful to include all needed components and wires, and to NOT put in wires that aren't needed. It's much easier to build it correctly, even if it takes a bit longer to do so, than it is to make a mistake and have to troubleshoot it later. Page 5 of 14

This circuit is from page 24 of National Semiconductors document : http://www.national.com/ds/ad/adc0801.pdf IMPORTANT NOTES for the ADC0804: 1. Separate grounds must be used: one for analog, and one for digital. This is a VERY important concept, to avoid digital noise from getting into the analog input circuit. Use a separate bus for each ground, and bring them together only at a single point: the negative terminal of the 5 V power supply. 2. A "START" switch may be needed. As shown, the ADC is in "free-running" mode. At the end of one conversion, another starts. Under certain conditions, the circuit may not begin the analog-todigital conversion process unless pins 3 & 5 are momentarily grounded. This may be done manually, or may be done with a series R-C circuit (a power-on "start" circuit): 10k Ω to =5 V, 0.1μF to ground, junction to pins 3 & 5. Every time power is applied, the 0.1μF will hold pins 3 & 5 low, until it charges through the 10k Ω. Figure 3 Page 6 of 14

Figure 4 b. Now build the DC input circuit shown in Figure 5. The value of the potentiometer is quite unimportant; anything from a 1k to a 100k will be fine. Figure 5 Page 7 of 14

c. Set the current limit controls on both of your power supplies to about 50 ma (proper use of current limiting can prevent an LED from becoming an SED [smoke-emitting diode]). Now turn on the DC power (for the +5 V and the -15 V supply). d. With the wiper of the input circuit potentiometer at ground (analog V in = 0 V), the 8-bit output of the ADC should be all zeros (0000 0000 2 ). The way the LEDs are connected, each LED will light up when the bit it represents is low = 0 2. So, all LEDs should be lit at this time. Now move the wiper slowly from 0 V to +5 V, while observing the LEDs. The LEDs should turn on and off in a binary counting order. For example, the LED pattern should follow the following pattern: MSB LSB ON ON ON ON ON ON ON ON = 0000 0000 2 = 000 10 ON ON ON ON ON ON ON OFF = 0000 0001 2 = 001 10 ON ON ON ON ON ON OFF ON = 0000 0010 2 = 002 10 ON ON ON ON ON ON OFF OFF = 0000 0011 2 = 003 10 ON ON ON ON ON OFF ON ON = 0000 0100 2 = 004 10 ON ON ON ON ON OFF ON OFF = 0000 0101 2 = 005 10 : : : : OFF OFF OFF OFF OFF OFF OFF OFF = 1111 1111 2 = 255 10 This counting pattern above is in 255 steps from 0000 0000 2 (all LEDs ON) until, with the wiper at +5 V, the pattern should be: = 1111 1111 2 (all LEDs OFF): e. Now construct the DAC circuit shown in Figure 4. Connect the eight bits at the output of the ADC to the eight-bit input of the DAC. Remember that the way the LEDs are connected, each LED will light up when the bit it represents is low = 0 2. f. We will now test the ADC and the DAC as a system, using different DC input voltages (set by you using the potentiometer) so that one bit at a time is tested. Page 8 of 14

MSB LED 17.368 Data Conversion and Lab LED LED LED LED LED LED LSB LED Off Off Off Off Off Off Off Off Vin (V) to the ADC Vout (V) from the DAC Off ON ON ON ON ON ON ON ON Off ON ON ON ON ON ON ON ON Off ON ON ON ON ON ON ON ON Off ON ON ON ON ON ON ON ON Off ON ON ON ON ON ON ON ON Off ON ON ON ON ON ON ON ON Off ON ON ON ON ON ON ON ON Off ON ON ON ON ON ON ON ON In the table above, you should see that the input voltage to the ADC decreases from about 5 V to 0 V as you go from the top row to the bottom row. Likewise, the output voltage from the DAC changes from about +4.2 V to 0 V as you go from the top row to the bottom row. Based on the data in the table above, what is the "resolution", in volts, of the ADC? Show how you determine the answer (there are several ways). Based on the data in the table above, what is the "resolution", in volts, of the DAC? Show how you determine the answer (there are several ways). Page 9 of 14

Experiment 4. (Testing the ADC and DAC With A Sinusoidal Input) a. Don't connect the function generator to the circuit yet. Set it to produce a sinusoid as follows: 2.5 Vp = 5.0 Vpp, at 20 Hz. Do this with only the generator connected to the oscilloscope. b. Turn off the power to the ADC/DAC circuit. Apply a 5 Vpp sinusoid signal to pin 6 of the ADC. c. Turn on power. Using two 10X probes, connect Channel 1 to the input to the ADC, and Channel 2 to the output of the DAC. The display should look similar to the one below. Notice that Vin and Vout are 180 out of phase. The input sinewave (top trace) is at 20 Hz., and is the input signal to the ADC. The bottom trace is the output from the DAC. While it's hard to see, it is made up of 255 steps of voltage. Page 10 of 14

Fall 2005 d. Now increase the frequency of the function generator to 100 Hz. The output (shown below) now doesn't look like a clean sine wave; clearly it is a step approximation to a sine wave. The input sinewave (top trace) is at 100 Hz., and is the input signal to the ADC. The bottom trace is the output from the DAC. It is easier to see, at this frequency, that the output waveform is made up of steps of voltage (and far fewer than 255 steps - Why?). Page 11 of 14

Fall 2005 e. Now increase the frequency of the function generator to 200 Hz. The output (shown below) now doesn't look like a clean sine wave; clearly it is a step approximation to a sine wave. The input sinewave (top trace) is at 200 Hz., and is the input signal to the ADC. The bottom trace is the output from the DAC. It is easier to see, at this frequency, that the output waveform is made up of steps of voltage, some of them quite large. Recall that the resolution of our DAC is 16.1 mv; some of the steps above are over 200 mv! Page 12 of 14

Fall 2005 f. Now increase the frequency of the function generator to 2,000 Hz. The output (shown below) now doesn't look like a clean sine wave; clearly it is a 2-step 3- level approximation to a sine wave. The input sinewave (top trace) is at 2,000 Hz., and is the input signal to the ADC. The bottom trace is the output from the DAC. At this frequency the output waveform is made up of TWO steps of voltage, and three levels. The width of each step is the conversion time of the ADC0804 analog-to-digital converter (about 166 μs). Page 13 of 14

Fall 2005 Experiment 5. (Integrated Digital to Analog Converter Signal Generator) NOTE: This Experiment is optional. Those that are interested in exploring other circuitry used with DACs can perform this Experiment. Whether you do this Experiment or not will not result in any points being deducted or added to your final lab grade for Lab #4. a. Assemble the circuit shown in Figure 6. b. Turn on the power and apply a clock frequency of 10 khz to the cascade counters. c. Observe the analog output with an oscilloscope. NOTE: The clock must be TTL Signal (zero to five volts). Figure 6 Page 14 of 14