Chapter 7 Converters.

Slides:



Advertisements
Similar presentations
Interfacing to the Analog World
Advertisements

Interfacing to the Analog World
Analog to Digital Conversion (ADC)
Digital to Analog Conversion
Analog-to-Digital Converter (ADC) And
Lecture 17: Analog to Digital Converters Lecturers: Professor John Devlin Mr Robert Ross.
Sensors Interfacing.
Digital to Analog and Analog to Digital Conversion
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.
5/4/2006BAE Analog to Digital (A/D) Conversion An overview of A/D techniques.
Shuvra Das University of Detroit Mercy
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)
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.
Analog-to-Digital Converter (ADC)
EE174 – SJSU Lecture #4 Tan Nguyen
EET260: A/D and D/A converters
Introduction to Analog-to-Digital Converters
Analogue Input/Output
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
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
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.
Data Acquisition ET 228 Chapter 15 Subjects Covered Analog to Digital Converter Characteristics Integrating ADCs Successive Approximation ADCs Flash ADCs.
Digital to Analog Converters (DAC) 1 Technician Series ©Paul Godin March 2015.
1 Data-Converter Circuits A/D and D/A Chapter 9 1.
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.
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.
EKT 314/4 WEEK 9 : CHAPTER 4 DATA ACQUISITION AND CONVERSION ELECTRONIC INSTRUMENTATION.
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.
Networked Embedded Systems Sachin Katti & Pengyu Zhang EE107 Spring 2016 Lecture 13 Interfacing with the Analog World.
Digital to analog converter [DAC]
MECH 373 Instrumentation and Measurements
Microprocessors Data Converters Analog to Digital Converters (ADC)
Data Acquisition ET 228 Chapter
What is a DAC? A digital to analog converter (DAC) converts a digital signal to an analog voltage or current output DAC.
Electronic Devices Ninth Edition Floyd Chapter 13.
Analog-Digital Conversion
EI205 Lecture 13 Dianguang Ma Fall 2008.
Principles & Applications
Quantization and Encoding
Digital Control Systems Waseem Gulsher
Simple ADC structures.
Simple ADC structures.
Lesson 8: Analog Signal Conversion
Digital Control Systems Waseem Gulsher
Digital to Analog Converters (DAC)
Conversation between Analogue and Digital System
Analog-to-digital converter
 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:

Chapter 7 Converters

Signal Types Analog Signals Any continuous signal that a time varying variable of the signal is a representation of some other time varying quantity Measures one quantity in terms of some other quantity Examples Speedometer needle as function of speed Radio volume as function of knob movement t

Signal Types Digital Signals Consist of only two states Binary States On and off Computers can only perform processing on digitized signals 1

What is a DAC? A digital to analog converter (DAC) converts a digital signal to an analog voltage or current output. DAC 100101…

What is a DAC? Analog Output Signal Digital Input Signal

Types of DACs Many types of DACs available. Usually switches, resistors, and op-amps used to implement conversion Two Types: Binary Weighted Resistor R-2R Ladder

Binary Weighted Resistor Utilizes a summing op-amp circuit Weighted resistors are used to distinguish each bit from the most significant to the least significant Transistors are used to switch between Vref and ground (bit high or low)

Binary Weighted Resistor Assume Ideal Op-amp No current into op-amp Virtual ground at inverting input Vout= -IRf - + R 2R 4R 2nR Rf Vout I Vref

Binary Weighted Resistor - + R 2R 4R 2n-1R Rf Vout Vref V1 V2 V3 Vn Voltages V1 through Vn are either Vref if corresponding bit is high or ground if corresponding bit is low V1 is most significant bit Vn is least significant bit MSB LSB

Binary Weighted Resistor If Rf=R/2 For example, a 4-Bit converter yields Where b3 corresponds to Bit-3, b2 to Bit-2, etc.

Binary Weighted Resistor Advantages Simple Construction/Analysis Fast Conversion Disadvantages Requires large range of resistors (2000:1 for 12-bit DAC) with necessary high precision for low resistors Requires low switch resistances in transistors Can be expensive. Therefore, usually limited to 8-bit resolution.

R-2R Ladder Each bit corresponds to a switch: Vref If the bit is high, the corresponding switch is connected to the inverting input of the op-amp. If the bit is low, the corresponding switch is connected to ground. Vref Bit: 0 0 0 0 Vout 4-Bit Converter

R-2R Ladder 2R V3 Vref V2 V1 V3 Ideal Op-amp

R-2R Ladder V2 V3 R Vref V2 V1 V3 Vout I Likewise,

R-2R Ladder Results: Vref V2 V1 V3 Where b3 corresponds to bit 3, b2 to bit 2, etc. If bit n is set, bn=1 If bit n is clear, bn=0 Vout

R-2R Ladder For a 4-Bit R-2R Ladder For general n-Bit R-2R Ladder or Binary Weighted Resister DAC

R-2R Ladder Advantages Disadvantage Only two resistor values (R and 2R) Does not require high precision resistors Disadvantage Lower conversion speed than binary weighted DAC

Specifications of DACs Resolution Speed Linearity Settling Time Reference Voltages Errors

Resolution Smallest analog increment corresponding to 1 LSB change An N-bit resolution can resolve 2N distinct analog levels Common DAC has a 8-16 bit resolution

Speed Rate of conversion of a single digital input to its analog equivalent Conversion rate depends on clock speed of input signal settling time of converter When the input changes rapidly, the DAC conversion speed must be high.

Linearity The difference between the desired analog output and the actual output over the full range of expected values

Settling Time Time required for the output signal to settle within +/- ½ LSB of its final value after a given change in input scale Limited by slew rate of output amplifier Ideally, an instantaneous change in analog voltage would occur when a new binary word enters into DAC

Reference Voltages Used to determine how each digital input will be assigned to each voltage division Types: Non-multiplier DAC: Vref is fixed Multiplier DAC: Vref provided by external source

Types of Errors Associated with DACs Gain Offset Full Scale Resolution Non-Linearity Non-Monotonic Settling Time and Overshoot

Applications Digital Motor Control Computer Printers Sound Equipment (e.g. CD/MP3 Players, etc.) Electronic Cruise Control Digital Thermostat

Analog-Digital Converter (ADC) An electronic integrated circuit which converts a signal from analog (continuous) to digital (discrete) form Provides a link between the analog world of transducers and the digital world of signal processing and data handling

Analog-Digital Converter (ADC) An electronic integrated circuit which converts a signal from analog (continuous) to digital (discrete) form Provides a link between the analog world of transducers and the digital world of signal processing and data handling t

Analog-Digital Converter (ADC) An electronic integrated circuit which converts a signal from analog (continuous) to digital (discrete) form Provides a link between the analog world of transducers and the digital world of signal processing and data handling t

ADC Conversion Process Two main steps of process Sampling and Holding Quantization and Encoding Analog-to-Digital Converter t Input: Analog Signal Sampling and Hold Quantizing and Encoding

ADC Process Sampling & Hold Measuring analog signals at uniform time intervals Ideally twice as fast as what we are sampling Digital system works with discrete states Taking samples from each location Reflects sampled and hold signal Digital approximation t

ADC Process Quantizing Analog quantization size Encoding Separating the input signal into a discrete states with K increments K=2N N is the number of bits of the ADC Analog quantization size Q=(Vmax-Vmin)/2N Q is the Resolution Encoding Assigning a unique digital code to each state for input into the microprocessor

ADC Process Quantization & Coding Use original analog signal Apply 2 bit coding 11 10 01 00 K=22 00 01 10 11

ADC Applications ADC are used virtually everywhere where an analog signal has to be processed, stored, or transported in digital form Microphones Strain Gages Thermocouple Digital Multimeters

Types of ADC Successive Approximation A/D Converter Flash A/D Converter Dual Slope A/D Converter Delta-Sigma A/D Converter

Successive Approximation ADC Elements DAC = Digital to Analog Converter EOC = End of Conversion SAR = Successive Approximation Register S/H = Sample and Hold Circuit Vin = Input Voltage Comparator Vref = Reference Voltage

Successive Approximation ADC Algorithm Uses an n-bit DAC and original analog results Performs a binary comparison of VDAC and Vin MSB is initialized at 1 for DAC If Vin < VDAC (VREF / 2^n=1) then MSB is reset to 0 If Vin > VDAC (VREF / 2^n) Successive Bits set to 1 otherwise 0 Algorithm is repeated up to LSB At end DAC in = ADC out N-bit conversion requires N comparison cycles

Successive Approximation ADC - Example DAC bit/voltage 5-bit ADC, Vin=0.6V, Vref=1V Cycle 1 => MSB=1 SAR = 1 0 0 0 0 VDAC = Vref/2^1 = .5 Vin > VDAC SAR unchanged = 1 0 0 0 0 Cycle 2 SAR = 1 1 0 0 0 VDAC = .5 +.25 = .75 Vin < VDAC SAR bit3 reset to 0 = 1 0 0 0 0 Cycle 3 SAR = 1 0 1 0 0 VDAC = .5 + .125 = .625 Vin < VDAC SAR bit2 reset to 0 = 1 0 0 0 0 Cycle 4 SAR = 1 0 0 1 0 VDAC = .5+.0625=.5625 Vin > VDAC SAR unchanged = 1 0 0 1 0 Cycle 5 SAR = 1 0 0 1 1 VDAC = .5+.0625+.03125= .59375 Vin > VDAC SAR unchanged = 1 0 0 1 1 Bit 4 3 2 1 Voltage .5 .25 .125 .0625 .03125

Flash ADC Also known as parallel ADC Elements Encoder – Converts output of comparators to binary Comparators

Flash ADC Algorithm Vin value lies between two comparators Resolution ∆𝑉= 𝑉 𝑟𝑒𝑓 2 𝑁 ; N= Encoder Output bits Comparators => 2N-1 Example: Vref8V, Encoder 3-bit Resolution ∆𝑉= 8 2 3 = 1.0V Comparators 23-1=7 1 additional encoder bit -> 2 x # Comparators

Flash ADC Example Vin = 5.5V, Vref= 8V Vin lies in between Vcomp5 & Vcomp6 Vcomp5 = Vref*5/8 = 5V Vcomp6 = Vref*6/8 = 6V Comparator 1 - 5 => output 1 Comparator 6 - 7 => output 0 Encoder Octal Input = sum(0011111) = 5 Encoder Binary Output = 1 0 1 1 1 1 1 5.5V 1

Dual Slope A/D Converter Also known as an Integrating ADC Clock Counter Control Logic + _ Start Stop

Dual-Slope ADC – How It Works An unknown input voltage is applied to the input of the integrator and allowed to ramp for a fixed time period (tu) Then, a known reference voltage of opposite polarity is applied to the integrator and is allowed to ramp until the integrator output returns to zero (td) The input voltage is computed as a function of the reference voltage, the constant run-up time period, and the measured run-down time period The run-down time measurement is usually made in units of the converter's clock, so longer integration times allow for higher resolutions The speed of the converter can be improved by sacrificing resolution

Comparison of ADC’s Type Speed (relative) Cost (relative) Resolution (bits) Dual Slope Slow Med 12-16 Flash Very Fast High 4-12 Successive Approx Medium – Fast Low 8-16 Sigma – Delta 12-24