Lesson 8: Analog Signal Conversion

Slides:



Advertisements
Similar presentations
Analog to Digital Conversion (ADC)
Advertisements

Lecture Notes Part 2Lecture Notes Part 2 ET 438 b Digital Control and Data Acquisition et438b-2.pptx1.
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
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.
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
5/4/2006BAE Analog to Digital (A/D) Conversion An overview of A/D techniques.
Shuvra Das University of Detroit Mercy
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)
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
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.
EET260: A/D and D/A converters
Introduction to Analog-to-Digital Converters
PH4705/ET4305: A/D: Analogue to Digital Conversion
Digital to Analog and Analog to Digital Conversion
Digital to Analog Converters
Digital-to-Analog & Analog-to- Digital Conversion Anuroop Gaddam.
ACOE2551 Microprocessors Data Converters Analog to Digital Converters (ADC) –Convert an analog quantity (voltage, current) into a digital code Digital.
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
Digital to Analog Converters (DAC) 15 March 2006 Doug Hinckley Lee Huynh Dooroo Kim.
AD/DA Conversion Techniques - An Overview J. G. Pett  Introductory tutorial lecture for :- ‘Analogue and digital techniques in closed-loop regulation.
Data Acquisition ET 228 Chapter 15 Subjects Covered Analog to Digital Converter Characteristics Integrating ADCs Successive Approximation ADCs Flash ADCs.
High Speed Analog to Digital Converter
1 Data-Converter Circuits A/D and D/A Chapter 9 1.
Analog to Digital Converters
Analog/Digital Conversion
Embedded Systems Design 1 Lecture Set C Interfacing the MCS-51 to: –D/A Converter –A/D Converter.
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.
1 Basic Signal Conversion 센서 및 계측 공학 (Sensor and Instrumentation Engineering) 2016 년 1 학기 충북대학교 전기전자반도체공학과 박 찬식
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 to analog converter [DAC]
MECH 373 Instrumentation and Measurements
Microprocessors Data Converters Analog to Digital Converters (ADC)
Data Acquisition ET 228 Chapter
Digital-to-Analog Analog-to-Digital
What is a DAC? A digital to analog converter (DAC) converts a digital signal to an analog voltage or current output DAC.
ADC & DAC: Most of the physical quantities such as temperature, pressure, displacement, vibration etc exist in analog form. But it is difficult to process,
Analog-Digital Conversion
EI205 Lecture 13 Dianguang Ma Fall 2008.
Chapter 13 Linear-Digital ICs
Principles & Applications
Digital-to-Analog Analog-to-Digital
Lesson 9: Digital Input-Output Signal Interfacing
Analog to Digital Converters Electronics Unit – Lecture 7
Digital Control Systems Waseem Gulsher
Lesson 6: Sampling Analog Signals
Lesson 3: op amp fundamentals and open loop applications
Lesson 11: Transducer Electrical Interfaces
Lesson 7: Anti-Aliasing Filtering
Lesson 1: Overview of Sequential Control and Data Acquisition
Digital Control Systems Waseem Gulsher
Digital to Analog Converters (DAC)
Lesson 12: Analog Signal Conditioning
Conversation between Analogue and Digital System
Analogue Inputs and Processing
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:

Lesson 8: Analog Signal Conversion Lesson 8_et438b.pptx ET 438b Sequential Control and Data Acquisition Department of Technology

Learning Objectives After this presentation you will be able to: Determine the resolution and accuracy of a digitized analog signal. Explain how digital-to-analog converts operate Explain how commonly used analog-to-digital converts operate Compare and contrast the characteristics several commonly used analog-to-digital converters. Lesson 8_et438b.pptx

Analog Signal Conversion Two Problems Input Analog-to-digital conversion (ADC): continuous signals converted to discrete values after sampling Output Digital-to-analog conversion (DAC) Discrete values converted t continuous signals Lesson 8_et438b.pptx Number of bits in digital signal determines the resolution of the digital signals. Resolution also depends on voltage span..

Resolution and Accuracy of Digitized Signals Resolution - smallest number that can be measured Accuracy - is the number measured correct Infinite resolution line ADC Resolution Max. digital value 0 -7 in binary 000 001 010 011 100 101 110 111 Full scale analog input Vin The output is a discretized version of the continuous input. zero error pts. Error determined by the step size of the digital representation Lesson 8_et438b.pptx et438b-2.pptx 4

Resolution Formulas Resolution, in terms of full scale voltage of ADC, is equal to value of Least Significant Bit (LSB) Where Vfs = full scale voltage n = number of bits VLSB = voltage value of LSB Finite bit digital conversion introduces quantization errors that range from ± VLSB /2 Maximum quantization error is equal to: Where Q.E. = quantization error VLSB = voltage value of LSB Lesson 8_et438b.pptx

Digital Resolution and Error in ADC 000 001 010 011 100 101 110 111 Vin 1 LSB +1/2 LSB -1/2 LSB 10 V 1.25 8.75 Full scale analog input Error in natural binary coding is ±1/2 LSB Resolution 3-bit system Lesson 8_et438b.pptx All voltage values between 8.75-10 V map to the 111 code Number of counts reduced by 1

Resolution Formulas Percent Resolution- Based on the number of transitions (2n-1) Lesson 8_et438b.pptx Where n = number of bits in digital representation Example 1: An 8-bit digital system is used to convert an analog signal to digital signal for a data acquisition system. The voltage range for the conversion is 0-10 V. Find the resolution of the system and the value of the least significant bit n=8 so signal converted to 256 different levels. Vfs=10 Vdc

Example 2: The 8-bit converter of the previous example is replaced with a 12 bit system. Compute the resolution and the value of the least significant bit. Signal converted to 4096 different levels n = 12 n = 12 bits Vfs = 10 Vdc Difference between analog value and digital reconstruction is quantizing error Lesson 8_et438b.pptx

Maximum Voltage Output, Vomax Digital-to-Analog Conversion Digital-to-Analog Converter (DAC) Transfer Function Infinite resolution line Analog Output Signal 000 001 010 011 100 101 110 111 FS Full scale Digital Code Digital Input Code DAC produces discrete voltage values for each digital code (7/8)FS (3/4)FS Maximum Voltage Output, Vomax (5/8)FS (1/2)FS Lesson 8_et438b.pptx (3/8)FS (1/4)FS (1/8)FS Max output approaches FS as n goes to infinity

Type of Digital-to-analog converters Binary-Weighted Resistor DAC Lesson 8_et438b,pptx Summing amplifier with digitally controlled inputs Rules of Ideal OP AMPs Iin = 0, Zin = infinity In I3 I2 I1 Iin IA IF B0 B(n-3) B(n-2) B(n-1) R MSB LSB Formula for output V B0, B(n-3), B(n-2), ....B(n-1) take on values of 1 or 0 depending of the digital output controlling switch

Binary Weighted DAC Example Lesson 8_et438b.pptx Example: For the binary-weighted resistor DAC below find the output when the input word is 11012 V = 10 Vdc, Rf = R n=4 B(4-1)=B3=1 MSB B(4-2)=B2=1 B(4-3)=B1=0 B(4-4)=B0=1 LSB B3 B=11012 B2 Since Rf = R B1 B0

R-2R Binary Ladder DAC R-2R Ladder produces binary weighted current values from only 2 resistance values. Req3 Req2 Req1 Vref = 10 Vdc R= 10k 2R = 20k Lesson 8_et438b.pptx Find Req3 by assuming all switches are closed to ground Virtual Ground Circuit Analysis Currents through each 2R value resistor directed to OP AMP or ground by digital switch Network equivalent resistance is R

R-2R Ladder Analysis (Continued) Find Iin from Req3 and V 10k V=10 Vdc 20k V1 V2 V3 I1 I2 I3 I4 I I’ Iin R5 R1 R3 R6 Current Values I1 = 0.5 mA MSB I2 = 0.25 mA I3 = 0.125 mA LSB Lesson 8_et438b.pptx Current values directed to OP AMP summing junction or ground. At summing junction: Vo =-Rf∙IT

R-2R Example Find the output voltage for the R-2R DAC shown below. The digital input is 1102. R=15k, 2R=30k and Rf=15k , Vref=5 Vdc Lesson 8_et438b.pptx IT I0 I1 I2 Req Find currents I0, I1, I2 and use formula V0 = - ITRf All other currents reduced by factor of 2.

Commercial DACs: DAC0800 Family Devices used in practical designs use integrated R-2R networks and transistor switching. They have TTL compatible inputs. 4 2 14 Design Equations Iref Lesson 8_et438b.pptx D = decimal equivalent of binary input 8-bit binary code converted to 256 levels of I0. Full scale value set by reference current. 1 bit change produces change of 1/256 in I0 Full scale output

DAC0800 Example Use OP AMP to convert current to voltage. The reference voltage is +10 V dc and the reference resistance is 5kW. The value of Rf = 2.5kW Io Lesson 8_et438b.pptx a.) convert binary to decimal a.) Digital input 000011012 b.) Digital input 100011012 Find I0 Io enters so negative

DAC0800 Example (Continued) b.) Digital input 100011012 Io I0 Lesson 8_et438b.pptx b.) convert binary to decimal Io enters so negative

Analog-to-Digital Conversion (ADC) Converting continuous signals to digital values requires 3 steps 1 Sample analog signal. Nyquist rate or above Need a minimum of 2x highest frequency Higher rates ease signal reconstruction Lesson 8_et438b.pptx 2 Hold analog sample while conversion is in progress 3 Convert analog value to digital value (binary)

Types of Analog-to-digital Converters Integrating Tracking (Counter Type) Successive Approximation High Accuracy Low Speed Low Cost Not commonly used in DAQ High Speed in tracking mode Slow Conversion times (Some Sub-types) Noise Sensitive Conversion time independent of input value Most commonly used in DAQ applications Lesson 8_et438b.pptx

Types of Analog-to-digital Converters “Flash” or Parallel Delta/Sigma Multi-Comparators Highest Speed High Cost One bit Conversion High Resolution Ratio of 1-to-0 represent input Uses digital filtering Lesson 8_et438b.pptx

Counter-Type Analog-to-Digital Converter Operation Clock AND C O U N T E R D A + - V+ V- B V Digital output V When V+ = V- Lesson 8_et438b.pptx 1.) Input a constant value. Requires a sample and hold circuit. (Not Shown) 2.) AND gate passes clock signal when point A logic high 3.) Counter incremented by signal B 4.) DAC output increases as counter output increases

Counter-Type Analog-to-Digital Converter Operation Clock AND C O U N T E R D A + - V+ V- B V Digital output Tracking A/D converters use up/down counters to minimize conversion times Lesson 8_et438b.pptx 5.) Counter stops when DAC V exceeds input V Input V Time Input Value Conversion time depends on the input level DAC Output Value

Successive Approximation ADC Counter A/D converters conversion time proportional to the input level. Improve conversion speed using a binary search technique. Procedure 1. Set MSB to 1 2. Test input, Vin, against DAC output, VDAC 3. If VDAC > Vin, reset bit to 0, else bit = 1 (VDAC < Vin) 4. Move to next bit and repeat steps 1 - 3 Lesson 8_et438b.pptx The input is converted to digital value in n steps, where n = the number of bits in digital representation

Successive Approximation ADCs Successive Approx. Register Lesson 8_et438b.pptx

Successive Approximation ADC Example: An 8-bit successive approximation ADC has an input voltage of 13.478 V. The ADC full scale input voltage is 20 V. Use the successive approximation algorithm given previously to determine the binary value. Assuming that each bit test takes a single clock cycle, determine the maximum conversion time for the ADC if it is clocked at 4.77 MHz. Lesson 8_et438b.pptx

Example Solution Bit D7 D6 D5 D4 D3 D2 D1 D0 1 2 3 4 5 6 7 8 Set D7 Voltage Weight 10.0 5.0 2.5 1.25 0.625 0.3125 0.15625 0.078125 Cycle Bit D7 D6 D5 D4 D3 D2 D1 D0 1 2 3 4 5 6 7 8 Set D7 Set D6 1 Set D5 1 Set D4 1 1 Set D3 1 1 Lesson 8_et438b.pptx Set D2 1 1 1 Set D1 1 1 1 1 Set D0 1 1 1 1 1 1 1 1 1 1 1 1 1. 10<13.478 bit remains set 5. 10+2.5+0.625<13.478 bit remains set 2. 10+5>13.478 reset bit 6. 10+2.5+0.625+0.3125<13.478 bit remains set 3. 10+2.5<13.478 bit remains set 7. 10+2.5+0.625+0.3125+.15625>13.478 bit reset 4. 10+2.5+1.25>13.478 reset bit 8. 10+2.5+0.625+0.3125+.15625+0.078125>13.478 bit reset

Example Solution (Continued) Summary Results Final binary value: B=101011002 Final voltage: 10+2.5+0.625+0.3125 = 13.4375 V Quantization Error voltage: VQE=13.478 V-13.4375 V = 0.0405 V or 40.5 mV Determine conversion time Define Tc as clock period = 1/fc Where fc = ADC Clock = 4.77 MHz Lesson 8_et438b.pptx All conversions take 8 clock cycles so maximum conversion time is 8∙Tc Tcon = 8∙Tc = 8 ∙(0.2096 mS) = 1.667 mS Ans

Example Solution (Continued) What is the highest frequency that the system can convert without folding or aliasing. Assume that the sample and hold time is zero. Define the maximum conversion rate frequency, fcon(max) Lesson 8_et438b.pptx Signals must be sampled at least twice per period (Nyquist rate) Ans

End Lesson 8: Analog Signal Conversion Lesson 8_et438b.pptx ET 438b Sequential Control and Data Acquisition Department of Technology