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.

Slides:



Advertisements
Similar presentations
Interfacing to the Analog World
Advertisements

Analog-to-Digital Converter (ADC) And
Lecture 17: Analog to Digital Converters Lecturers: Professor John Devlin Mr Robert Ross.
Sensors Interfacing.
Digital to Analogue Conversion Chapter 13. Why is conversion needed? Most signals in the world are analogue. Microprocessors and most computers computers.
Digital to Analogue Conversion
Digital to Analog and Analog to Digital Conversion
Digital Fundamentals Tenth Edition Floyd Chapter 12.
CE 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Analog to Digital (and back again) Interfacing a microprocessor-based system.
COMP3221: Microprocessors and Embedded Systems
LSU 06/04/2007Electronics 71 Analog to Digital Converters Electronics Unit – Lecture 7 Representing a continuously varying physical quantity by a sequence.
5/4/2006BAE Analog to Digital (A/D) Conversion An overview of A/D techniques.
Analog to Digital Converters (ADC) 2 ©Paul Godin Created April 2008.
Lecture 9: D/A and A/D Converters
10/23/2003ME DAC Lecture1 DAC Sunij Chacko Pierre Emmanuel Deliou Thomas Holst Used with modification.
Analogue to Digital Conversion
Interfacing Analog and Digital Circuits
DIGITAL SYSTEMS TCE INTERFACING WITH ANALOG DEVICES (Week 12)
1 Analog-to-digital converter Prepared by: Selah al-Battah Mohammed Al-khabbaz Atiyah Alnakhli Ali Dumyati.
Interfacing with the Analog World Wen-Hung Liao, Ph.D.
1 Dr. Un-ki Yang Particle Physics Group or Shuster 5.15 Amplifiers and Feedback: 3.
Embedded Systems Development and Applications
EE174 – SJSU Lecture #4 Tan Nguyen
EET 252 Unit 7 Digital-to-Analog Conversion
EET260: A/D and D/A converters
Introduction to Analog-to-Digital Converters
PH4705/ET4305: A/D: Analogue to Digital Conversion
1 Digital to Analog Converter Nov. 1, 2005 Fabian Goericke, Keunhan Park, Geoffrey Williams.
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 to Analog Converters (DAC)
Digital to Analog Converters
ADC & DAC Signal Conversions.
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.
Digital to Analog Converters (DAC) 15 March 2006 Doug Hinckley Lee Huynh Dooroo Kim.
Lecture 15: Digital to Analog Converters Lecturers: Professor John Devlin Mr Robert Ross.
1 Successive Approximation Analog-to- Digital Conversion at Video Rates 指導教授 :汪輝明 學 生:陳柏宏.
Data Acquisition ET 228 Chapter 15 Subjects Covered Analog to Digital Converter Characteristics Integrating ADCs Successive Approximation ADCs Flash ADCs.
CHAPTER 19 Data Conversion. Objectives Describe and Analyze: Analog vs. Digital Signals Resolution Digital-to-Analog Conversion Analog-to Digital Conversion.
Analog-to-Digital and Digital-to-Analog Conversion
Digital Voltmeter (DVM)
Analog to Digital Converters
Analog/Digital Conversion
Digital to Analog Converter (DAC)
Embedded Systems Design 1 Lecture Set C Interfacing the MCS-51 to: –D/A Converter –A/D Converter.
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.
0808/0809 ADC. Block Diagram ADC ADC0808/ADC Bit μP Compatible A/D Converters with 8-Channel Multiplexer The 8-bit A/D converter uses successive.
Lecture Notes / PPT UNIT III
Analog-Digital Conversion. Other types of ADC i. Dual Slope ADCs use a capacitor connected to a reference voltage. the capacitor voltage starts at zero.
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)
Analog-Digital Conversion
EI205 Lecture 13 Dianguang Ma Fall 2008.
Chapter 13 Linear-Digital ICs
Digital Control Systems Waseem Gulsher
Lesson 8: Analog Signal Conversion
Digital to Analog Converters (DAC)
Conversation between Analogue and Digital System
Analog-to-digital converter
Chapter 7 Converters.
 Both data about the physical world and control signals sent to interact with the physical world are typically "analog" or continuously varying quantities.
Presentation transcript:

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 demonstrations in the lab (no presentations) –Sunday 12/11 project reports due to me by –Tuesday 12/13 final exam, 1pm-3pm here.

Last Topic! Analog / Digital Conversion

Introduction Most signals are naturally analog (e.g. a voltage) Digital techniques are often more useful: data storage, processing, computing, error free signal transmission etc. We need ways to convert analog signals to digital Want A/D converters to be fast, accurate and cheap There are various methods of analog to digital conversion Digital to analog conversion is also important: e.g. CRT video monitors convert computer generated digital information into analog signals used to guide an electron beam. MP3 players convert music stored digitally into analog signals to drive an amplifier and speaker. Digital to analog conversion is an integral part of some types of analog to digital converters

Digital to Analog Conversion D/A or DAC: convert a quantity specified as a binary number to a voltage or current proportional to the value of the digital input Simplest approach - recall the weighted summing opamp circuit: Binary weighting - if each binary input is a 5V signal, Voltage output corresponds to 1V per bit. LSB (‘ones’ – largest R) MSB (‘eights’ –smallest R)

N-bit Weighted DAC What if we want higher resolution (more bits)?: In practice, binary weighted adder is not used for resolution exceeding 4 bits Typical value of smallest R=10kΩ, Consider a 10-bit converter, V ref =1V, giving 1/1024~1mV resolution Three problems: Biggest R = 2 9 R =5MΩ; too large (noisy, expensive, large error)! Precision: for LSB to be meaningful, R must be precise to 1 part in 2 10 R=10.00±0.01kΩ - 0.1% Conversion time: If C stray =100pF, RC=5MΩ  100pF=0.5ms (too slow)

Solution: R-2R Ladder Using just R and 2R removes the problems of the weighted adder R values are reasonable Precision requirements can be met RC time constants are small V out These are digital switches

R-2R Ladder: Thevenin analysis How do we end up with these weights? Apply Thevenin's...

D/A converter Specifications In reality, you can buy DACs prebuilt in a chip. Some specs to look out for: Resolution (precision): maximum output resolution is 1 bit in 2 n -1 times the voltage range (Size of the smallest possible voltage step) Accuracy: percentage error in voltage output Linearity: deviation of the stepwise output from a straight line Settling time: Minimum time required for conversion Output range: Range of output analog voltage for max digital input swing Input digital code: e.g. straight binary, BCD, Gray code V out digital input Ideal DAC:

D/A converter Specifications What is the best resolution attainable for a range of 10V? What is the maximum allowable conversion frequency given a settling time of 1μs? R-2R ladder

D/A converter Specifications What is the best resolution attainable for a range of 10V? =10/(2 8 -1) = 39.2mV What is the maximum allowable conversion frequency given a settling time of 1μs?

D/A converter Specifications What is the best resolution attainable for a range of 10V? =10/(2 8 -1) = 39.2mV What is the maximum allowable conversion frequency given a settling time of 1μs? =1/ 1μs = 1MHz

ADC Type I: Digital Ramp ADC Counter counts up with each clock pulse DAC outputs a slightly higher voltage each clock pulse Compare this to the input voltage using the comparator Comparator output goes to counter and parallel input/output shift register when the DAC output exceeds the input voltage comparator output goes low Storage register receives a clock pulse and latches the counter values Counter receives a LOAD input to reset to 0 comparator storage register input voltage

ADC Type I: Digital Ramp ADC Big drawback: sampling interval depends on voltage level: Sampling is also slow - need to count up from 0 every time.

ADC Type II: Tracking ADC A more efficient method Compares analog signal input with the output of a DAC connected to an up/down counter. Comparator determines whether DAC output is larger or smaller than analog input If DAC output is smaller, comparator output starts counter counting up If DAC output is larger, comparator starts counter counting down The digital output "tracks" the analog input signal by changing 1 bit at a time The rate at which the counter changes is determined by an external clock

ADC Type II: Tracking ADC Digital output has to "catch up" to analog input Digital output is not latched so is never perfectly stable oscillates by +/- 1 bit. "bit bobble"

ADC Type III: Successive Approximation ADC Shift register successive approximation register Uses a digital feedback loop which iterates once per clock cycle Similar structure to the digital slope ADC, but replace the counter with a "successive approximation register" (SAR) The SAR is used to make a digital estimate of the analog input based on the comparator output The estimate is converted back to analog by the DAC and compared to the input The cycle repeats until the "best estimate is achieved Best estimate is then latched into the output shift register Different algorithms exist for the SAR - the most common is the binary search algorithm

Binary search example The algorithm can be summarized as "go to the midpoint of the non-excluded range" Assume an 8-bit ADC with an analog input voltage range of 0 to 10V 0V = = V = = one bit (Least Significant Bit, LSB) is 10/255=39.22mV Assume a signal input of 7.09V The comparator outputs HIGH if the estimate < the signal input LOW if the estimate > the signal input The SAR does the following (n is the current clock cycle): comparator is HIGH (estimate too small): adds 1 to MSB-(n+1) comparator is LOW (estimate too large): subtracts 1 from MSB-(n+1)

This algorithm is guaranteed to find the best possible estimate in a number of clock cycles equal to the number of bits In this example, best estimate was on the 7 th clock cycle, but the difference between the 7 th and 8 th is within the ADC resolution adds 1 to MSB-(n+1)=bit 7 subtracts 1 from MSB-(n+1)=bit 6 start at the midpoint

The binary search algorithm is fast and efficient It completes its estimation in a fixed number of clock cycles The final result is latched after a fixed number of clock cycles (=number of bits), so the sampling occurs at regular intervals (unlike the digital ramp ADC)

Example ADC question: A 10-bit digital slope integrating A/D converter has a full-scale input of 10V. If the clock period is 15 μS, how long will it take to convert an input of 4V? How long for an input of 10V? 10 bits means 2 10 =1024 levels. Full scale input of 10V means each level is 10V/1024=9.77mV 4V corresponds to 4/9.77  = round up to 410 A clock period of 15μs mean 4V will take 15μs  410 =6.15ms 10V will take 15μs  1024=15.36ms

Example ADC question: A 10-bit digital slope integrating A/D converter has a full-scale input of 10V. If the clock period is 15 μS, how long will it take to convert an input of 4V? How long for an input of 10V? 10V will take 15μs  1024=15.36ms What increase in speed can be gained by using a 12-bit successive approximation converter instead of the digital slope converter, assuming a full-scale input voltage.? A 12-bit SA converter will take 12 clock cycles = 180 μs, regardless of the input voltage so for 10V full scale input, the speed increase is 15.36ms/180 μs =85.3 times. So the SA converter is both faster and more accurate (12 bits gives 4096 levels, compared to 1024 levels for 10 bit)