Data Conversion and Lab Lab 4 Fall Digital to Analog Conversions

Similar documents
Conversion Between Analog and Digital Signals

Fundamentals of Signature Analysis

PCM Encoding and Decoding:

Lab 3 Rectifier Circuits

ECEN 1400, Introduction to Analog and Digital Electronics

Digital to Analog and Analog to Digital Conversion

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.

EXPERIMENT NUMBER 5 BASIC OSCILLOSCOPE OPERATIONS

Lab 3 - DC Circuits and Ohm s Law

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

AP-1 Application Note on Remote Control of UltraVolt HVPS

A Lesson on Digital Clocks, One Shots and Counters

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

FREQUENCY RESPONSE OF AN AUDIO AMPLIFIER

ANADOLU UNIVERSITY DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

A Lesson on Digital Clocks, One Shots and Counters

Digital To Analog Converter with Sine Wave Output

Content Map For Career & Technology

ADS9850 Signal Generator Module

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Electronic Circuits Spring 2007

Kit Watt Audio Amplifier

Electronic WorkBench tutorial

LAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS

Dashboard Digital Voltmeter

Lab #9: AC Steady State Analysis

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

A Digital Timer Implementation using 7 Segment Displays

The 2N3393 Bipolar Junction Transistor

PLL frequency synthesizer

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Step Response of RC Circuits

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

Study Guide for the Electronics Technician Pre-Employment Examination

MATERIALS. Multisim screen shots sent to TA.

LEVERAGING FPGA AND CPLD DIGITAL LOGIC TO IMPLEMENT ANALOG TO DIGITAL CONVERTERS

Inductors in AC Circuits

Bipolar Transistor Amplifiers

See Horenstein 4.3 and 4.4

Transistor Amplifiers

Lab 5 Operational Amplifiers

Op-Amp Simulation EE/CS 5720/6720. Read Chapter 5 in Johns & Martin before you begin this assignment.

Operational Amplifier - IC 741

The Operational Amplfier Lab Guide

Programmable Single-/Dual-/Triple- Tone Gong SAE 800

Lab 11 Digital Dice. Figure Digital Dice Circuit on NI ELVIS II Workstation

LABORATORY 2 THE DIFFERENTIAL AMPLIFIER

What you will do. Build a 3-band equalizer. Connect to a music source (mp3 player) Low pass filter High pass filter Band pass filter

Glolab Talking Phone Dial Monitor

Interfacing Analog to Digital Data Converters

Your Multimeter. The Arduino Uno 10/1/2012. Using Your Arduino, Breadboard and Multimeter. EAS 199A Fall Work in teams of two!

Simple Op-Amp Circuits

ETEC Digital Controls PIC Lab 10 Pulse Width Modulation

CONSTRUCTING A VARIABLE POWER SUPPLY UNIT

Laboratory 4: Feedback and Compensation

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

Objectives: Part 1: Build a simple power supply. CS99S Laboratory 1

Section 3. Sensor to ADC Design Example

Product Information. Gateway For Connecting EnDat Encoders to PROFIBUS-DP

Lock - in Amplifier and Applications

Experiment 2 Diode Applications: Rectifiers

PB-503. Analog & Digital Design Workstation Instruction Manual

PB-505. Advanced Analog & Digital Design Workstation Instruction Manual

ELABOTrainingsSysteme Aus- und Weiterbildung GmbH. Electrical Engineering Electronics Digital Technology.

ABCs of ADCs. Analog-to-Digital Converter Basics. Nicholas Gray Data Conversion Systems Staff Applications Engineer

POCKET SCOPE 2. The idea 2. Design criteria 3

SERIES-PARALLEL DC CIRCUITS

Lab Unit 4: Oscillators, Timing and the Phase Locked Loop

Oscilloscope, Function Generator, and Voltage Division

Frequency Response of Filters

Microcontroller to Sensor Interfacing Techniques

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

DAC Digital To Analog Converter

= V peak 2 = 0.707V peak

Physics 120 Lab 6: Field Effect Transistors - Ohmic region

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

ARDUINO SEVERINO SERIAL SINGLE SIDED VERSION 3 S3v3 (REVISION 2) USER MANUAL

US-SPI New generation of High performances Ultrasonic device

The components. E3: Digital electronics. Goals:

Annex: VISIR Remote Laboratory

Scaling and Biasing Analog Signals

Lab E1: Introduction to Circuits

Series and Parallel Resistive Circuits Physics Lab VIII

Reading: HH Sections , (pgs , )

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

DC Circuits (Combination of resistances)

US-Key New generation of High performances Ultrasonic device

Cornerstone Electronics Technology and Robotics I Week 15 Voltage Comparators Tutorial

Decimal Number (base 10) Binary Number (base 2)

DIODE CIRCUITS LABORATORY. Fig. 8.1a Fig 8.1b

Electrical Resonance

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

Digital to Analog Converter. Raghu Tumati

Using voltage regulator to convert 5-12V range to 3.3V. Huan Lin

Building an Auto-Ranging DMM with the ICL7103A/ICL8052A A/D Converter Pair

GLOLAB Universal Telephone Hold

Measuring Resistance Using Digital I/O

Points Position Indicator (PPI1) for Points Motors with Common Ground


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 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

DCBA Inputs Calculated Measured 0000 0001 0011 0101 1000 1011 1100 1111 Table 1 Function Table Vout 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. NOTE: The 10 volts is measured on the left side of the 5k resistor. 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 one 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. MSB LED LED LED LED LED LED LED LSB LED Vin (V) to the ADC Vout (V) from the Page 8 of 14

DAC Off Off Off Off Off Off Off Off 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