INTERFACE WITH ANALOG WORLD

Slides:



Advertisements
Similar presentations
EET260 Introduction to digital communication
Advertisements

Interfacing to the Analog World
Interfacing to the Analog World
Thomas L. Floyd Digital Fundamentals, 9e
Analog to Digital Conversion (ADC)
Analog-to-Digital Converter (ADC) And
EET 2261 Unit 14 INCOMPLETE Analog-to-Digital Conversion (ADC) & Digital-to-Analog Conversion (DAC)  Read.  Homework #13 and Lab #13 due next week. 
Lecture 17: Analog to Digital Converters Lecturers: Professor John Devlin Mr Robert Ross.
Sensors Interfacing.
Data Acquisition ET 228 Chapter
EET 252 Unit 6 Analog-to-Digital Conversion
Digital to Analogue Conversion
Digital to Analog and Analog to Digital Conversion
Digital Fundamentals Tenth Edition Floyd Chapter 12.
Announcements Assignment 8 posted –Due Friday Dec 2 nd. A bit longer than others. Project progress? Dates –Thursday 12/1 review lecture –Tuesday 12/6 project.
Data Acquisition Concepts Data Translation, Inc. Basics of Data Acquisition.
Digital Systems: Introductory Concepts Wen-Hung Liao, Ph.D.
COMP3221: Microprocessors and Embedded Systems
Shuvra Das University of Detroit Mercy
Presented by- Md. Bashir Uddin Roll: Dept. of BME KUET, Khulna-9203.
Lecture 9: D/A and A/D Converters
Analogue to Digital Conversion
Interfacing Analog and Digital Circuits
DIGITAL SYSTEMS TCE INTERFACING WITH ANALOG DEVICES (Week 12)
Interfacing with the Analog World Wen-Hung Liao, Ph.D.
Chapter 11 – Interfacing with the Analog World Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey
Storey: Electrical & Electronic Systems © Pearson Education Limited 2004 OHT 26.1 Data Acquisition and Conversion  Introduction  Sampling  Signal Reconstruction.
Discussion #25 – ADCECEN 3011 Conversion Mosiah 5:2 2 And they all cried with one voice, saying: Yea, we believe all the words which though has spoken.
EET 252 Unit 7 Digital-to-Analog Conversion
EET260: A/D and D/A converters
PH4705/ET4305: A/D: Analogue to Digital Conversion
Digital to Analog Converters
Digital to Analog and Analog to Digital Conversion
Computer Data Acquisition and Signal Conversion Chuck Kammin ABE 425 March 27, 2006.
Digital Communication Techniques
Figure 1–1 Graph of an analog quantity (temperature versus time). Thomas L. Floyd Digital Fundamentals, 9e Copyright ©2006 by Pearson Education, Inc. Upper.
Digital-to-Analog & Analog-to- Digital Conversion Anuroop Gaddam.
Data Converters ELEC 330 Digital Systems Engineering Dr. Ron Hayne
1 Sensors and Measurements Penderia & Pengukuran ENT 164 Signal Processing Elements Hema C.R. School of Mechatronics Engineering Northern Malaysia University.
Digital Fundamentals Floyd Chapter 1 Tenth Edition
Chapter 13 Linear-Digital ICs. Copyright ©2009 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. Electronic Devices.
ACOE2551 Microprocessors Data Converters Analog to Digital Converters (ADC) –Convert an analog quantity (voltage, current) into a digital code Digital.
Analog to Digital Converters (ADC) 1
Analog to Digital conversion. Introduction  The process of converting an analog signal into an equivalent digital signal is known as Analog to Digital.
Data Acquisition Systems
University of Tehran 1 Interface Design Transforms Omid Fatemi.
Introduction to Chapter 6  Digital circuits are frequently used for arithmetic operations  Fundamental arithmetic operations on binary numbers and digital.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals with PLD Programming.
Data Acquisition ET 228 Chapter 15 Subjects Covered Analog to Digital Converter Characteristics Integrating ADCs Successive Approximation ADCs Flash ADCs.
Analog-to-Digital and Digital-to-Analog Conversion
PREPARED BY V.SANDHIYA LECT/ ECE UNIT- 3 APPLICATIONS OF OP-AMP 1.
School of Computer and Communication Engineering, UniMAP Mohd ridzuan mohd nor DKT 122/3 - DIGITAL SYSTEM I Chapter.
Analog/Digital Conversion
Digital to Analog Converter (DAC)
ECE 2799 Electrical and Computer Engineering Design ANALOG to DIGITAL CONVERSION Prof. Bitar Last Update:
Digital-to-Analog Analog-to-Digital Week 10. Data Handling Systems  Both data about the physical world and control signals sent to interact with the.
Digital-to-Analog Analog-to-Digital
Task 2: Define digital and analogue signals
Lecture Notes / PPT UNIT III
Digital Logic & Design Dr. Waseem Ikram Lecture 45.
Electronic Devices and Circuit Theory
Digital to analog converter [DAC]
MECH 373 Instrumentation and Measurements
Microprocessors Data Converters Analog to Digital Converters (ADC)
EI205 Lecture 13 Dianguang Ma Fall 2008.
Chapter 13 Linear-Digital ICs
Digital Systems: Introductory Concepts
Lesson 8: Analog Signal Conversion
Conversation between Analogue and Digital System
Chapter 7 Converters.
Presentation transcript:

INTERFACE WITH ANALOG WORLD Conversion between analog and digital signals is common. The following aspects will be examined: DAC and ADC Troubleshooting Different conversion methods Analog multiplexing DSP

11-1 Interfacing With the Analog World A review of the difference between digital and analog quantities Digital quantities – values can take on one of two possible values. Actual values can be in a specified range so the exact value is not important. Example: 0 V to 0.8 V = logic 0 2 V to 5 V = logic 1 Analog quantities – values can take on an infinite number of values, and the exact value is important. Example: 2.76 V or 27.6 0C

11-1 Interfacing With the Analog World ADC and DAC are used to interface a computer to the analog world so that the computer can monitor and control a physical variable. There are FIVE elements involved: Transducer: convert physical qty to elect. Qty (thermistor, flow meters, tachometers) ADC: convert analog value to binary Computer: stores digital value and process according to program instruction DAC: convert binary value to analog Actuator: control physical variables based on the signal from DAC

11-2 Digital to Analog Conversion The conversion process: Digital code (binary or BCD) is converted to a proportional voltage or current Vref, Reference voltage determines the max output DAC can output Analog (pseudo analog) output Analog output = K x digital input Input weights; weighted according to their position in the binary number Resolution (step size) What resolution means; smallest change that can occur in the analog output

11-2 Digital to Analog Conversion The output from 4-bit binary counter provide input to DAC, the DAC output is a staircase waveform that goes up 1V per step. When counter is at 1111, the DAC output is maximum value of 15V. When counter is recycles to 0000, the DAC returns to 0V. The resolution or step size is the size of jumps in the staircase waveform, in this case, each step is 1V.

11-2 Digital to Analog Conversion EXAMPLE: Figure shows a computer controlling the speed of a motor. The 0 to 2-mA analog current from the DAC is amplified to produce motor speeds from 0 to 1000 rpm. How many bits should be used if the computer is to be able to produce a motor speed that is within 5 rpm of the desired speed? The motor seed, 0-1000rpm, goes from 0 to full-scale. Each step in DAC output produce a step in motor speed. We want the step size not greater than 5 rpm. Thus, at least we need 200 steps (1000/5). Number of steps: 2N – 1 ≥ 200 or 2N ≥ 201, since 28=256, therefore 8 bits. Using 8 bits, how close to 366 rpm can the motor speed be adjusted? With 8 bits, 255 steps, the motor speed1000/255=3.921 rpm. The number of steps is 366/3.921=93.34 or 93. So the actual speed 93 x 3.921=364.65 rpm or 365 rpm.

11-3 DAC Specifications Many DACs are available as ICs or self contained packages. Key specifications are: Resolution Accuracy: Full scale error and linearity error Offset error: small output voltage Settling time Monotonicity: no downward steps

11-4 DAC Applications Used when a digital circuit output must provide an analog voltage or current Control Use a digital computer output to adjust motor speed or furnace temperature Automatic testing Computer generated signals to test analog circuitry Signal reconstruction Restoring an analog signal after it has been converted to digital. Audio CD systems, and audio/video recording A/D conversion Serial DACs

11-5 Troubleshooting DACs Logic probes/pulsers used for digital input Meter and oscilloscope used for analog output Static accuracy test Binary input is set to a fixed value while analog output is checked with a very accurate meter Staircase test Binary input is incremented and output is checked for problems on the “steps”

11-6 Analog to digital Conversion ADC – digital code represents the analog input Generally more complex and time consuming than DAC Several types of ADC use DAC circuits The Op amp comparator ADC Variations differ in how the control section continually modifies numbers in the register

11-7 Digital Ramp ADC A binary counter is used as the register and allows clock to increment the counter a step at a time until VAX VA

11-8 Digital Ramp ADC A/D resolution and accuracy Measurement error is unavoidable Reducing the step size can reduce but not eliminate potential error This is called quantization error

Digitizing analog data and transferring to memory is data acquisition Acquiring a single data point value is sampling Reconstructing a digitized signal Ronald Tocci/Neal Widmer/Gregory Moss Digital Systems: Principles and Applications, 10e Copyright ©2007 by Pearson Education, Inc. Columbus, OH 43235 All rights reserved..

Caused by under sampling Harry Nyquist 11-10 Data Acquisition Aliasing To make the signal reconstruction nearly identical to original analog signal. Caused by under sampling Harry Nyquist The sampling frequency must be at least twice the highest input frequency Sampling at a frequency less than twice the input frequency results in under sampling and incorrect reproduction Ronald Tocci/Neal Widmer/Gregory Moss Digital Systems: Principles and Applications, 9e Copyright ©2004 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.

11-11 Successive Approximation ADC Widely used ADC More complex than digital ramp but has a shorter conversion time Conversion time is fixed and not dependent on the analog input Many SACs are available as ICs.

11-11 Successive Approximation ADC

11-12 Flash ADCs High speed conversion Much more complex circuitry 6 bit flash ADC requires 63 analog comparators 8 bit flash ADC requires 255 comparators 10 bit flash ADC requires 1023 comparators A 3 bit flash converter is described in figure 11-22 Conversion time – No clock signal is used, so the conversion is continuous. This makes for very short conversion times, typically under 17 ns.

11-13 Other A/D Conversion Methods There are many other methods of A/D conversion. Each has pros and cons: Up/down digital-ramp ADC (tracking ADC) Dual slope integrating ADC Voltage to frequency ADC Sigma/delta modulation The method used will depend on the application

11-15 Multiplexing Multiple analog signals can be converted through time sharing of an ADC The process is illustated. The multiplexing clock controls the rate at which the analog signals are switched to the ADC CMOS semiconductor switches can be used to reduce switch delay time The ADC0808 can multiplex eight different analog inputs to one ADC

11-16 Digital Storage Oscilloscope Makes use of D/A and A/D converters Advantages of the DSO over the CSO Waveform storage Stored waveform display for comparison Store and display waveforms before the trigger point Print waveforms or transfer to a PC

11-16 Digital Storage Oscilloscope The block diagram of a DSC

11-17 Digital Signal Processing Specialized microprocessor optimized for repetitive calculations on streams of digitized data DSP is used frequently in filtering and conditioning of analog signals Perform the same function as analog filters but allow greater flexibility Can perform dynamic frequency adjustment

11-17 Digital Signal Processing Digital filtering process Read the newest sample from A/D Replace the oldest sample with the new one Multiply each of the 256 samples by corresponding weight constant Add all products Output the resulting sum of products to the D/A

11-17 Digital Signal Processing Basic DSP architecture

11-17 Digital Signal Processing DSP concepts involve: ADC and DAC, data acquisition, sampling, signed binary numbers, signed binary addition and multiplication, and shift registers DSP applications: Filters in CD players to minimize quantization noise Echo canceling in telephone systems PC modems Musical instrument special effects Digital television Voice recognition DSP continues to row into almost all electronic systems