Measuring and generating signals with ADC's and DAC's

Similar documents
Data Converter Fundamentals

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

Pulse Code Modulation

ELG3336: Converters Analog to Digital Converters (ADCs) Digital to Analog Converters (DACs)

CHAPTER 6 Frequency Response, Bode. Plots, and Resonance

Music 270a: Fundamentals of Digital Audio and Discrete-Time Signals

CMPT 318: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

Continuous vs. Discrete signals. Sampling. Analog to Digital Conversion. CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

10. Chapter: A/D and D/A converter principles

Analog-to-Digital Converter Survey & Analysis. Bob Walden. (310) Update: July 16,1999

Homework Assignment 06

CHAPTER 4. PULSE MODULATION Part 2

The Real World is Analog ADC are necessary to convert the real world signals (analog) into the digital form for easy processing. Digital Processing

System on a Chip. Prof. Dr. Michael Kraft

Communication Systems Lecture-12: Delta Modulation and PTM

Michael F. Toner, et. al.. "Distortion Measurement." Copyright 2000 CRC Press LLC. <

A-D and D-A Converters

Electronics A/D and D/A converters

Digital Sampling. This Lecture. Engr325 Instrumentation. Dr Curtis Nelson. Digital sampling Sample rate. Bit depth. Other terms. Types of conversion.

Data Encoding g(p (part 2)

Summary Last Lecture

The counterpart to a DAC is the ADC, which is generally a more complicated circuit. One of the most popular ADC circuit is the successive

10 Speech and Audio Signals

3.2 Measuring Frequency Response Of Low-Pass Filter :

EECS40 RLC Lab guide

The Fundamentals of Mixed Signal Testing

Electronics II Physics 3620 / 6620

Understanding Data Converters SLAA013 July 1995

Analog to Digital Conversion

EEE482F: Problem Set 1

Problems from the 3 rd edition

ELG4139: Converters Analog to Digital Converters (ADCs) Digital to Analog Converters (DACs)

Analogue-to-Digital Conversion

Design IV. E232 Spring 07

ECE 556 BASICS OF DIGITAL SPEECH PROCESSING. Assıst.Prof.Dr. Selma ÖZAYDIN Spring Term-2017 Lecture 2

EXPERIMENT 4: RC, RL and RD CIRCUITs

Basic Concepts in Data Transmission

EE247 Lecture 11. EECS 247 Lecture 11: Intro. to Data Converters & Performance Metrics 2009 H. K. Page 1. Typical Sampling Process C.T. S.D. D.T.

Analog and Digital Signals

Analog to Digital Conversion

EE 421L Digital Electronics Laboratory. Laboratory Exercise #9 ADC and DAC

Cyber-Physical Systems ADC / DAC

A New Class of Asynchronous Analog-to-Digital Converters Based on Time Quantization

Introduction to Communications Part Two: Physical Layer Ch3: Data & Signals

Find Those Elusive ADC Sparkle Codes and Metastable States. by Walt Kester

CHAPTER ELEVEN - Interfacing With the Analog World

TUTORIAL 283 INL/DNL Measurements for High-Speed Analog-to- Digital Converters (ADCs)

Chapter 2: Digitization of Sound

EXPERIMENT 4: RC, RL and RD CIRCUITs

Chapter 5: Signal conversion

Fundamentals of Data Converters. DAVID KRESS Director of Technical Marketing

Introduction to Discrete-Time Control Systems

Chapter 3 Data and Signals 3.1

Chapter 7. Introduction. Analog Signal and Discrete Time Series. Sampling, Digital Devices, and Data Acquisition

Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback

FYS3240 PC-based instrumentation and microcontrollers. Signal sampling. Spring 2017 Lecture #5

CHAPTER 6 INTRODUCTION TO SYSTEM IDENTIFICATION

Analog to Digital Converters

APPLICATION BULLETIN PRINCIPLES OF DATA ACQUISITION AND CONVERSION. Reconstructed Wave Form

2.0 AC CIRCUITS 2.1 AC VOLTAGE AND CURRENT CALCULATIONS. ECE 4501 Power Systems Laboratory Manual Rev OBJECTIVE

two computers. 2- Providing a channel between them for transmitting and receiving the signals through it.

Topic 2. Signal Processing Review. (Some slides are adapted from Bryan Pardo s course slides on Machine Perception of Music)

Columbia University. Principles of Communication Systems ELEN E3701. Spring Semester May Final Examination

AUDL Final exam page 1/7 Please answer all of the following questions.

Analog to Digital Conversion

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering

Chapter 17 Waves in Two and Three Dimensions

APPLICATION NOTE 3942 Optimize the Buffer Amplifier/ADC Connection

Module 5. DC to AC Converters. Version 2 EE IIT, Kharagpur 1

SAMPLING AND RECONSTRUCTING SIGNALS

Analog-to-Digital Converter (ADC) And Digital-to-Analog Converter (DAC)

Tabor Electronics Signal Amplifiers. Quick Start Guide

Advanced Lab LAB 6: Signal Acquisition & Spectrum Analysis Using VirtualBench DSA Equipment: Objectives:

Dynamic Specifications for Sampling A D Converters

5.1 Graphing Sine and Cosine Functions.notebook. Chapter 5: Trigonometric Functions and Graphs

UNIT III Data Acquisition & Microcontroller System. Mr. Manoj Rajale

In this lecture. System Model Power Penalty Analog transmission Digital transmission

Reference Sources. Prelab. Proakis chapter 7.4.1, equations to as attached

Oscilloscope (dual channel, xy, time division, trigger); log, lines, bar, octaves band analysis 1/3, 1/6, 1/9, 1/12, 1/24);

Analog to digital and digital to analog converters

Data Acquisition: A/D & D/A Conversion

Chapter 3 Data Transmission COSC 3213 Summer 2003

CHAPTER 9. Solutions for Exercises

User Guide. 1-Clock duty cycle 2-Clock jitter 3-Voltage references 4-Input bandwidth 5-Differential approach. Marc Sabut - STMicroelectronics 1

Implementation of Digital Signal Processing: Some Background on GFSK Modulation

P a g e 1. Introduction

Chapter 2 Analog-to-Digital Conversion...

ECE 201: Introduction to Signal Analysis

THE STATE UNIVERSITY OF NEW JERSEY RUTGERS. College of Engineering Department of Electrical and Computer Engineering

PYKC 27 Feb 2017 EA2.3 Electronics 2 Lecture PYKC 27 Feb 2017 EA2.3 Electronics 2 Lecture 11-2

17. Delta Modulation

EEE 309 Communication Theory

The Case for Oversampling

Glossary of VCO terms

New Features of IEEE Std Digitizing Waveform Recorders

Analog-to-Digital Converters

Combination Notch and Bandpass Filter

PMU (algorithm) Testing to C (a) in software. Dr. Andrew Roscoe

Lab 12 Laboratory 12 Data Acquisition Required Special Equipment: 12.1 Objectives 12.2 Introduction 12.3 A/D basics

EEE 309 Communication Theory

Transcription:

Measuring and generating signals with ADC's and DAC's 1) Terms used Full Scale Range, Least Significant Bit (LSB), Resolution, Linearity, Accuracy, Gain Error, Offset, Monotonicity, Conversion time, Settling time. ) Quantization Error and resultant Signal - to - Noise Ratio Suppose that the instantaneous value of the input voltage is measured by an ADC with a Full scale range of V fs volts, and a resolution of n bits. The real value can change through a range of q V fs / n volts without a change in measured value occurring. It follows that the value of the measured signal is V m V s ± e, where V m is the measured value, V s is the actual value, and e is the error. The maximum value of error in the measured signal is emax ( 1 / )(V fs / n ) or emax q / since q V fs / n (Assuming that the measured value represents the value at the centre of the measurement band). The RMS value of quantization error voltage is eqe q 1 / e de q whence e qe q/ 3 volts rms q / The Signal to Noise Ratio (SNR) is defined as Signal Power SNR Noise Power It is normally quoted on a logarithmic scale, in decibels ( db ). Signal Power RMS Signal Voltage SNR db 10log10 or SNR db 0log10 Noise Power RMS Noise Voltage In this case if a sinusoidal input signal is matched to the Full Scale Range of the converter, then the peak - to - peak value of the signal is V fs. The RMS signal voltage is then Vin( RMS) V fs / volts RMS The error, or quantization noise signal is eqe q/ 3 volts RMS Thus the signal - to - noise ratio in db. is SNR db 0log10 ( V fs / ) /( q / 3) since Vfs n n q, then SNR 0log10 ( q / ) /( q / 3) db which simplifies to SNR db. 0n 1. 78 N.B. This equation is true only if the input signal is exactly matched to the Full Scale Range of the converter. For signals whose amplitude is less than the FSR the Signal - to - Noise Ratio will be reduced.

Resolution and Signal:Noise Ratio for signals coded as n bits bits, n levels, Weighting of LSB, ^-n SNR, db ^n 1 0.5 8 0.5 1 3 8 0.15 0 1 0.05 5 3 0.0313 3 0.015 38 7 18 0.00781 8 5 0.00391 50 9 51 0.00195 5 10 10 0.00098 11 08 0.0009 8 1 09 0.000 7 13 819 0.0001 80 1 138 0.00001 8 15 378 0.000031 9 1 553 0.000015 98 3) Limit of resolution of measurements on a changing signal Errors can arise if the voltage being measured changes significantly during the measurement period. The magnitude of the error that such a change causes depends on the process by which the conversion is carried out. Integrating converters such as dual-slope converters will produce a result which describes the average value at the input during the measurement interval; counter-ramp converters will indicate the input value at the end of the conversion period; whilst successive approximation converters can give a measurement which is in error by the total amount of change during the conversion period. It follows that the rate at which the input signal changes imposes a limit on the resolution of the conversion process. If we wish to achieve a maximum resolution of ½ LSB then the input signal must not change by more than ½ LSB during the conversion period. If we suppose that we are measuring a sinusoidal waveform of amplitude * Vpeak then v sin ( π f t ) and dv / dt ( π f ) cos ( π f t ) This is a maximum at t 0, π, π,... and has a value of (dv / dt)max π f During a conversion time of τ the input voltage will change by π f τ We already know the limit of change in input voltage for maximum resolution is

V FS / * n, so we have V FS / * n π f τ This can be rearranged to give f (V FS / * ) * ( 1 / n ) * ( 1 / πτ ) or τ (V FS / * ) * ( 1 / n ) * ( 1 / πf ) In the same way, if we wish to evaluate the maximum resolution available for a particular converter at a particular frequency we can rearrange the equation to give R (V FS / * ) * ( 1 / n ) * ( 1 / πfτ) where R is the resolution expressed in terms of number of LSB's. Example We have an 8 bit successive approximation converter with a conversion time of 10 microseconds. What is the maximum frequency sinewave which can be applied at the input if we are to preserve the measurement accuracy at ±½ LSB. Assume the sinewave input amplitude is matched to the FSR of the converter, i.e. V FS * f (V FS / * ) * ( 1 / n ) * ( 1 / πτ ) f (1) * ( 1 / 8 ) * ( 1 / π*10-5 ) f ( 1 / 5 ) * ( 10 5 / π) f 10 5 / ( 51 π ) Hz

How often should we measure an incoming signal? The calculations above imply that if we are to accurately record a signal we must take 1,00 measurements within one period of the highest frequency present in the wave, which is clearly a very demanding task. The criterion we have applied is really only appropriate if we need to be able to determine with a single measurement the instantaneous value of an incoming signal to the limit of resolution of our converter. An alternative argument is that we can reconstruct all the frequency information present in the signal if we take samples at a rate higher than twice the maximum frequency present. ( i.e. two samples per cycle of the highest frequency component) This is called the "Nyquist criterion". This criterion is most appropriate if we are aquiring data from a modulated carrier signal. We need a more generally appropriate criterion which will allow us to decide how often we should measure an incoming signal. If we sample an incoming signal v ƒ(t) at regular intervals T with a converter having a conversion time of τ, the signal is modified by a factor Venv(f) (τ / T)( sin πτf )/( πτf ) due to the transfer function of the sampling system. (Reference: Kripps, M. Microcomputer Interfacing) this results in a measurement error given by / 1 - (( sin πτf )/( πτf )) if we expand (sin x) using the MacLaurin expansion we get hence 3 5 7 x x x x sin( x) 1! sin( x) x x x 1 x...... and ( πτf) ( πτf) ( πτf)... Example If we use a successive approximation ADC with a conversion time of 10 microseconds to take measurements on a sinusoidal signal at a frequency of 1000Hz. then the error introduced by the sampling function is ( πτf) ( πτf) ( πτf)... and πτf π * 10-5 * 1000 πτf 3.1 * 10 - / (1.5 * 10 - ) - (8.1 * 10-9 ) -... / 0.015 % Although it is not easy to solve this equation for f or τ, we find by experiment that if we use a conversion time which allows us to take twenty samples within one period of a wave, we obtain a measurement accuracy of 0.1%. This matches the resolution of an 8 bit converter. Proof: Let f 1 khz and τ 50 microseconds.

Then πτf π * 5 * 10-5 * 1000 and πτf 0.157 ( πτf ) ( πτf ) ( πτf )... / (.11 * 10-3 ) - (5.07 * 10 - )... /.107 * 10-3 or 0.1% It is interesting to see that at *τ 1/f (Nyquist) πτf π * 0.5 / 1 - (( sin πτf )/( πτf)) / 1 - (( sin π/ )/( π/ )) and thus / 0.33 This shows that we cannot make accurate measurements of signal level at or near the Nyquist frequency.