Interfacing Analog and Digital Circuits

Slides:



Advertisements
Similar presentations
Interfacing to the Analog World
Advertisements

Analog to Digital Conversion (ADC)
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.
Analog to Digital Conversion. Introduction  An analog-to-digital converter (ADC, A/D, or A to D) is a device that converts continuous signals to discrete.
5/4/2006BAE Analog to Digital (A/D) Conversion An overview of A/D techniques.
Lecture 9: D/A and A/D Converters
10/23/2003ME DAC Lecture1 DAC Sunij Chacko Pierre Emmanuel Deliou Thomas Holst Used with modification.
Digital to Analog Converters Alexander Gurney Alexander Pitt Gautam Puri 1.
Analogue to Digital Conversion
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.
Storey: Electrical & Electronic Systems © Pearson Education Limited 2004 OHT 26.1 Data Acquisition and Conversion  Introduction  Sampling  Signal Reconstruction.
Embedded Systems Development and Applications
EET260: A/D and D/A converters
Introduction to Analog-to-Digital Converters
COMP3221: Microprocessors and Embedded Systems Lecture 20: Analog Output Lecturer: Hui Wu Session 2, 2004.
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.
Content Op-amp Application Introduction Inverting Amplifier
Electronic Devices Ninth Edition Floyd Chapter 13.
Digital to Analog Converters
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.
ADC & DAC Signal Conversions.
Understanding ADC Specifications September Definition of Terms 000 Analogue Input Voltage Digital Output Code FS1/2.
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.
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.
CHAPTER 19 Data Conversion. Objectives Describe and Analyze: Analog vs. Digital Signals Resolution Digital-to-Analog Conversion Analog-to Digital Conversion.
1 Data-Converter Circuits A/D and D/A Chapter 9 1.
PREPARED BY V.SANDHIYA LECT/ ECE UNIT- 3 APPLICATIONS OF OP-AMP 1.
Analog/Digital Conversion
Digital to Analog Converter (DAC)
Figure Analog-to-digital conversion.. Figure The DAC output is a staircase approximation to the original signal. Filtering removes the sharp.
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.
A/D and D/A Converters. Digital-to-analogue converters The digital-to-analog converter, known as the D/A converter (read as D-to-A converter) or the DAC,
Digital-to-Analog Analog-to-Digital
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.
Analog-Digital Conversion. Analog outputs from sensors and analog front- ends (analog signal conditioning) have to be converted into digital signals.
Digital to analog converter [DAC]
MECH 373 Instrumentation and Measurements
Electronic Devices Ninth Edition Floyd Chapter 13.
Analog-Digital Conversion
EI205 Lecture 13 Dianguang Ma Fall 2008.
Introduction to data converters
Introduction to data converters
Digital Control Systems Waseem Gulsher
Lesson 8: Analog Signal Conversion
Digital to Analog Converters (DAC)
Conversation between Analogue and Digital System
Chapter 7 Converters.
Presentation transcript:

Interfacing Analog and Digital Circuits Chapter 12 Interfacing Analog and Digital Circuits

Analog Signals Signals that vary continuously throughout a defined range. Representative of many physical quantities, such as temperature and velocity. Usually a voltage or current level.

Digital Signals Signals that take on specific values only. Required for operation with digital logic. A representative of physical quantities by a series of binary numbers.

Advantages of Analog Representation Varies continuously, like the property being measured. Represents continuous values.

Advantages of Digital Representation Values are limited to specific discrete segments. Not subject to the same distortions as an analog signal. Can be easily copied and stored.

Advantages of Digital Representation

Analog Voltage Sampling A sample is an instantaneous measurement of an analog voltage. Sampling frequency is the number of samples taken per unit time.

Accuracy of Digital Representation Depends on sampling frequency and quantization. Quantization is the number of bits used to represent an analog voltage as a digital number. Resolution is the analog step size.

Accuracy of Digital Representation

Accuracy of Digital Representation

Accuracy of Digital Representation

Accuracy of Digital Representation

Resolution of a Digital Representation The difference in analog voltage corresponding to two adjacent digital codes. Directly proportional to the reciprocal of 2n, where n is the number of bits used in the digital code.

Analog-to-Digital Conversion Uses a circuit that converts an analog signal at its input to a digital code. Called an A-to-D converter, A/D converter, or ADC.

Unipolar ADC Converts positive input voltages. Generates a 2n-bit binary code for any given input voltage.

Unipolar ADC Code Equation Va = analog input voltage to be sampled. FS = Full scale range of input voltage. n = number of bits in the output code.

Unipolar ADC Code Equation

Unipolar ADC Output Codes

Bipolar ADC (Offset Binary Coding) Used to represent positive and negative input voltages. Output code an unsigned binary number. Numbers below 0 V are negative. Numbers above 0 V are positive.

Bipolar ADC (Offset Binary Coding)

Bipolar ADC Code Equation

Bipolar ADC Output Codes

Bipolar ADC (2’s Complement Coding) Uses a 2’s complement number system. Most significant bit (MSB) is the sign bit. MSB = ‘1’ sign negative. MSB = ‘0’ sign negative.

2’s Complement Output Codes

2’s Complement Output Codes

Digital-to-Analog Conversion Uses a circuit that converts a digital code at its input to an analog voltage or current. Called a D-to-A converter, D/A converter, or DAC.

Unipolar DAC One input code corresponds to a single digital code. DAC has 2n discrete output voltage values.

Unipolar DAC

Unipolar DAC Equation

Bipolar DAC (Offset Binary Coding) Input code for 0 V is halfway through the range of digital input codes. Output voltage equation:

Bipolar DAC (Offset Binary Coding)

Bipolar DAC (2’s Complement) Accepts digital codes in 2’s complement format. Code = a 2’s complement signed number.

Bipolar DAC (2’s Complement)

DAC General Operation Uses digital inputs to control proportionally weighted currents. Currents are binary weighted – the MSB has the largest, the second LSB has ½ the current, and so on. Currents feed an op-amp that converts current to voltage.

DAC General Operation

DAC Output Voltage If Va is the output, Iref a fixed reference current, and RF the op-amp feedback resistor, then for n bits:

DAC Characteristics The maximum output is always one least significant bit less than full scale. An n-bit converter has 2n input codes, ranging from 0 to 2n – 1.

Weighted Resistor D/A Converter Uses a parallel network of binary-weighted resistors to feed the op-amp. Seldom used since a wide range of resistor values is required for a large number of bits. Difficult to achieve accuracy for a high number of bits.

Weighted Resistor D/A Converter

R-2R Ladder DAC Produces an analog current that is the sum of binary-weighted currents. Uses only two values of resistors. Easily modified to add additional bits – each new bit requires 2 resistors, values R and 2R.

R-2R Ladder DAC

R-2R DAC Equation b3, b2, b1, and b0 are binary values either ‘1’ or ‘0’.

MC1408 Integrated Circuit DAC Popular, inexpensive 8-bit multiplying DAC. Also designated DAC0808. Output is proportional to the reference voltage.

Operation of the MC1408 Requires an external op-amp to increase the output voltage and current. Can be wired to produce a bipolar output voltage, that is, voltages that have both positive and negative values.

Operation of the MC1408

MC1408 Equations

DAC Performance Specifications – 1 Monotonicity means that the magnitude of the output voltage increases every time the input digital code increases. Absolute accuracy is the measure of the DAC output voltage with respect to its expected value.

DAC Performance Specifications – 2

DAC Performance Specifications – 3

DAC Performance Specifications – 4 Relative accuracy is the deviation of the actual from the ideal output voltage as a fraction of the full-scale voltage. Settling time is the time required for the outputs to switch and settle within ½ LSB when the input switches form all 0s to all 1s.

DAC Performance Specifications – 5 Gain error occurs when the output saturates before reaching the maximum output code. Linearity error is the deviation from a straight line output with increasing digital input codes.

DAC Performance Specifications – 6

DAC Performance Specifications – 7

DAC Performance Specifications – 8 Differential nonlinearity is the difference between actual and expected step size when the input code is changed by 1 LSB. Offset error occurs when the DAC output is not 0 V when the input code is all 0s.

DAC Performance Specifications – 9

Flash ADC Uses a resistive voltage divider, comparators, and a priority encoder to produce a digital code. Conversion occurs in one clock cycle (fastest conversion time).

Flash ADC

Flash ADC

Disadvantage of Flash ADC Requires 2n resistors and 2n – 1 comparators for an n-bit output. For any large number of bits, the circuit becomes overly complex.

Successive Approximation ADC The most widely used ADC. Finds the digital representation using a “binary search.” Also called a SAR.

Binary Search – 1 Set the MSB of the digital representation to 1, all other bits to 0. Compare the analog value produced in the first step to the voltage being converted. 2A. If the test voltage is higher than the voltage being converted, reset the MSB and set the second MSB.

Binary Search – 2 2B. If the test voltage is less than the voltage being converted, leave the MSB set and set the second MSB. 3. Repeat Steps 2, 2A, and 2B until all the bits have been tested.

Binary Search – 3

Binary Search – 4

Binary Search – 5

SAR - ADC Characteristics Final answer is always less than the input voltage. Conversion always requires a fixed number of clock cycles. Conversion requires n clock cycles where n is the number of bits in the digital representation.

Dual Slope ADC Based on an integrator, a circuit whose output is the accumulated sum of all previous input values. Circuit relies on storing charge representing current flow in a capacitor.

Dual Slope ADC Characteristics High accuracy. Relatively slow conversion time.

Dual Slope ADC Characteristics

Dual Slope ADC Characteristics

Sigma - Delta ADC – 1 Uses an integrator and DAC to produce a serial bit stream based on the sum of the voltage changes at the input to the ADC. Alternately recognized by - ADC.

Sigma - Delta ADC – 2 Output is a serial stream of bits rather than the standard parallel outputs. Produces a highly accurate digital outputs of up to 24 bits. 24-bit precision not available in standard parallel ADCs.

Sigma - Delta ADC – 3 Begins by integrating an input value then sending a ‘0’ or ‘1’ to the output of the comparator. The output of the comparator is converted to one of two values (–Vref or +Vref) by a 1-bit DAC.

Sigma - Delta ADC – 4 DAC output is then subtracted from the input voltage (Va) at a summing junction. Sum is inverted and added to the previous output value of the integrator. In effect, the integrator sums the changes introduced by the DAC.

Sigma - Delta ADC – 5 Process continues for a defined number of iterations. Each iteration represents a new sample of Va. Each iteration produces a bit in the serial output stream (Figure 12.38 in textbook).

Sigma - Delta ADC – 6

Sample and Hold Circuit Required to sample an analog signal at periodic intervals and hold the value long enough for the ADC to convert it to a digital code. Generally consists of an input voltage follower, a hold capacitor, and an output voltage follower.

Sample and Hold Circuit

Sample and Hold Circuit

Track and Hold Circuit Used in cases where large changes in signal levels between samples are expected. Samples the analog signal continuously, minimizing charging delays of the hold capacitor.

Sampling Frequency A signal must be sampled at a high enough frequency so that no information is lost. Aliasing occurs when an unwanted low-frequency component is produced by too slow a sampling frequency.

Sampling Frequency

Nyquist Sampling Theorem To preserve all information in a signal, the signal must be sampled at a rate of twice the highest-frequency component of the signal .

Sampling Frequency Examples Since the range of human hearing is 20 Hz to 20 kHz, the sampling frequency for compact disks is set at 44.1 kHz. Since the classic telephone bandwidth is 300 Hz to 3300 Hz, telephone-quality signals are sampled at 8 kHz.

Filtering An anti-aliasing filter is used to remove unwanted high frequency components. The filter is a low-pass filter with the corner frequency set to 2fs.

Filtering

ADC0808 IC ADC – 1 Successive approximation ADC. Able to convert analog information from up to 8 (multiplexed) channels. Can form the basis of a data acquisition network.

ADC0808 IC ADC – 2 START conversion with HIGH pulse. Conversion process driven by the clock. End-of-conversion indicated by a HIGH on EOC. Making OE HIGH allows the digital output to be read. When OE inactive, outputs in Hi-Z state.

ADC0808 IC ADC – 3

ADC0808 IC ADC – 4