Based with permission on lectures by John Getty Laboratory Electronics II (PHSX262) Spring 2011 Lecture 9 Page 1

Similar documents
Analog ó Digital Conversion Sampled Data Acquisition Systems Discrete Sampling and Nyquist Digital to Analog Conversion Analog to Digital Conversion

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

Design IV. E232 Spring 07

Microprocessors & Interfacing

The need for Data Converters

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

Digital to Analog Conversion. Data Acquisition

DSP Project. Reminder: Project proposal is due Friday, October 19, 2012 by 5pm in my office (Small 239).

The Fundamentals of Mixed Signal Testing

Analog Input and Output. Lecturer: Sri Parameswaran Notes by: Annie Guo

A-D and D-A Converters

Data Converters. Dr.Trushit Upadhyaya EC Department, CSPIT, CHARUSAT

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

P a g e 1. Introduction

Digital Design Laboratory Lecture 7. A/D and D/A

Lecture 9, ANIK. Data converters 1

EECS 373 Design of Microprocessor-Based Systems

Electronics A/D and D/A converters

Fundamentals of Data Converters. DAVID KRESS Director of Technical Marketing

ADC and DAC converters. Laboratory Instruction

SIGMA-DELTA CONVERTER

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

EE251: Tuesday October 10

Analog to Digital Conversion

System on a Chip. Prof. Dr. Michael Kraft

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

Chapter 2 Signal Conditioning, Propagation, and Conversion

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

Analog to Digital Conversion

Data acquisition and instrumentation. Data acquisition

CHAPTER ELEVEN - Interfacing With the Analog World

Outline. Analog/Digital Conversion

EECS 373 Design of Microprocessor-Based Systems

Computerized Data Acquisition Systems. Chapter 4

Lab.3. Tutorial : (draft) Introduction to CODECs

Theoretical 1 Bit A/D Converter

Data Acquisition & Computer Control

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

Time Matters How Power Meters Measure Fast Signals

Lecture #6: Analog-to-Digital Converter

II Year (04 Semester) EE6403 Discrete Time Systems and Signal Processing

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.

DIGITAL FILTERING OF MULTIPLE ANALOG CHANNELS

ANALOG TO DIGITAL (ADC) and DIGITAL TO ANALOG CONVERTERS (DAC)

EEE312: Electrical measurement & instrumentation

Working with ADCs, OAs and the MSP430

Analog to Digital Conversion

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

! Where are we on course map? ! What we did in lab last week. " How it relates to this week. ! Sampling/Quantization Review

Figure 1: Block diagram of Digital signal processing

Laboratory Assignment 1 Sampling Phenomena

Analog-to-Digital i Converters

In The Name of Almighty. Lec. 2: Sampling

LAB Week 7: Data Acquisition

EE 230 Lecture 39. Data Converters. Time and Amplitude Quantization

APPLICATION NOTE. Atmel AVR127: Understanding ADC Parameters. Atmel 8-bit Microcontroller. Features. Introduction

AD9772A - Functional Block Diagram

Analyzing A/D and D/A converters

UNIVERSITY OF CALIFORNIA College of Engineering Department of Electrical Engineering and Computer Sciences

UNIVERSITY OF CALIFORNIA. EECS 145M: Microcomputer Interfacing Lab

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

ANALOGUE AND DIGITAL COMMUNICATION

Analog I/O. ECE 153B Sensor & Peripheral Interface Design Winter 2016

SYLLABUS of the course BASIC ELECTRONICS AND DIGITAL SIGNAL PROCESSING. Master in Computer Science, University of Bolzano-Bozen, a.y.

Workshop ESSCIRC. Low-Power Data Acquisition System For Very Small Signals At Low Frequencies With12-Bit- SAR-ADC. 17. September 2010.

!"!#"#$% Lecture 2: Media Creation. Some materials taken from Prof. Yao Wang s slides RECAP

Chapter 5: Signal conversion

Cyber-Physical Systems ADC / DAC

In this lecture, we will look at how different electronic modules communicate with each other. We will consider the following topics:

Analog to Digital Converters

Data Converter Topics. Suggested Reference Texts

Analog-Digital Interface

Lecture Schedule: Week Date Lecture Title

EE247 Lecture 11. Example: Switched-capacitor filters in CODEC integrated circuits. Switched-capacitor filter design summary

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

Media Devices: Audio. CTEC1465/2018S Computer System Support

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

Sampling and Reconstruction of Analog Signals

Analog to Digital Converters (ADC) Rferences. Types of AD converters Direct (voltage comparison)

Summary Last Lecture

Linear Integrated Circuits

NPTEL. VLSI Data Conversion Circuits - Video course. Electronics & Communication Engineering.

PC-based controller for Mechatronics System

PHYS225 Lecture 22. Electronic Circuits

FFT Analyzer. Gianfranco Miele, Ph.D

Analog to digital and digital to analog converters

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

INTEGRATED CIRCUITS. AN109 Microprocessor-compatible DACs Dec

Choosing the Best ADC Architecture for Your Application Part 3:

ENGR 210 Lab 12: Sampling and Aliasing

Specifying A D and D A Converters

Chapter 2 Analog-to-Digital Conversion...

SAMPLING AND RECONSTRUCTING SIGNALS

Data Conversion and Lab (17.368) Fall Lecture Outline

DATA CONVERSION AND LAB (17.368) Fall Class # 07. October 16, 2008

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

5 V, 14-Bit Serial, 5 s ADC in SO-8 Package AD7894

ANALOG-TO-DIGITAL CONVERTERS

145M Final Exam Solutions page 1 May 11, 2010 S. Derenzo R/2. Vref. Address encoder logic. Exclusive OR. Digital output (8 bits) V 1 2 R/2

The simplest DAC can be constructed using a number of resistors with binary weighted values. X[3:0] is the 4-bit digital value to be converter to an

Transcription:

Today 3// Lecture 9 Analog Digital Conversion Sampled Data Acquisition Systems Discrete Sampling and Nyquist Digital to Analog Conversion Analog to Digital Conversion Homework Study for Exam next week (in class 3/9/) Covers everything up through Lecture 8 and Lab 7 Reading A/D converters (pages 6-64). Lab Do DAC pre-lab before lab meeting. Graded at start of lab!!! Sequential logic lab book due 3/5 at 0am. Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page

Analog Digital Analog Why convert from analog to digital Digital transmission and storage of analog signals Compression, Reliability, Error Correction Digital signal processing Powerful algorithm, adaptable, ease of implementation Why convert from digital to analog We live (see, hear, and feel) in an analog world Replay stored, transmitted, or processed data Music, messages, movies Relay information from computers to humans Digital control of analog systems Convert virtual worlds to reality Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page

Key Elements of a Sampled Signal Processing System * *ref: Analog Devices; Application Note AN-8 Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page 3

In many systems the signal is Converts the analog signal converted Key back Elements into analog of a Sampled into a digital Data representation: System (sometimes The final after part short of the or process long A DSP is a term storage includes in additional memory): conditioning Sample microprocessor and Hold * is in the analog domain. Interface to sampled analog optimized circuitry system: for that Latch holds the digital data Precision buffer/gain ensures manipulating the amplifiers ADC digitized sees a until the Some D/A can D/As finish can produce the inband glitches This also that allows must be preserve the stable, integrity analog unchanging signals: of analog conversion. signal. Sometimes signal Perform auto-scale the time operations input the DSP removed processor at this to move stage. required to accurately on to Anti-alias filter perform is such a the LPF, as conversion. typically digital other Analog tasks. filtering can be used with steep roll-off (allows to ensure filtering for undersampling Often >f there and are FFTs. no The D/A to reverses compensate the for the signal components sample advanced is also /. process discrete used on nature the input of the D/A, used for side of improving the system. overall system topic in system A/D) control. fidelity. Some systems are made to A/D can Vector be any processors. of a wide faithfully reproduce (CD range of Field devices. programmable More players) or improve (noise on this gate later. arrays (FPGA). cancelling headphones) on *ref: Analog Devices; Application Note AN-8 the original analog input. Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page 4

Discrete Sampling of 0 Hz Signal at 5Hz fsignal 0Hz 5Hz fsample 0.8 0.6 0.4 0. 0-0. -0.4-0.6-0.8 - Sample interval = 00mS Sample Rate = 5Hz 0 50 00 50 00 50 300 350 400 Milliseconds Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page 5

Discrete Sampling of 0Hz signal at 0Hz fsignal 0Hz 0Hz fsample 0.8 0.6 0.4 0. 0-0. -0.4-0.6-0.8 - Sample interval = 00mS Sample Rate = 0Hz 0 50 00 50 00 50 300 350 400 Milliseconds Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page 6

Discrete Sampling at 0Hz fsignal 0Hz fsample 0Hz 0.8 0.6 0.4 0. 0-0. -0.4-0.6-0.8-0 50 00 50 00 50 300 350 400 Milliseconds Sample interval = 50mS Sample Rate = 0Hz Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page 7

Nyquist Sampling Theorem The sampling theorem states that for a limited bandwidth (band-limited) signal with maximum frequency f max, the equally spaced sampling frequency f sample must be GREATER THAN twice the maximum frequency of the signal, f max, in order to uniquely reconstruct the signal without aliasing. fsample f max => f max is called the Nyquist sampling rate. Half of the sampling rate of an A/D is sometimes called its Nyquist frequency, and is the max frequency that a A/D can record. Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page 8

Discrete Sampling at f s =f max 0.8 0.6 0.4 0. 0-0. -0.4-0.6-0.8 - f F 0Hz f 0Hz S Sample interval = 50mS Sample Rate = 0Hz 0 50 00 50 00 50 300 350 400 Milliseconds f s =f max is not sufficient, Nyquist sampling requires f s f max Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page 9

Aliasing 0.5 0-0.5-0 0. 0.4 0.6 0.8 Original Signal fsig Hz Seconds Sample Freq. fsamp 0Hz Sample Period TSamp 50mS Sample_Rate_.XLS Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page 0

Aliasing in the Frequency Domain The frequency of aliased signals is the difference between and sum of the sampling frequency f S and signal being sampled, f F. These aliased signals repeat around each integer multiple of the sampling frequency. f F f A L f 8 S f F f f and f f f 4 S S f F fs f F F fs.5 A f AL H f S S f AH f F Nyquist Frequency If you low pass filtered at f s, the you know only f<f s are real. Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page Hz

Digital to Analog Converter (DAC) Terminology Number of Bits: A DAC with n bits provides n discrete output steps or counts. For example an 8 bit DAC has 56 possible output values. Output Range: Difference between the maximum and minimum output values. Resolution: Also known as the step size, represents the minimum change in output voltage. Typically equal to output range / ( n -) Dynamic Range: Output Range divided by Resolution or Noise Voltage. Would be ( n -) if the noise was less than step size of DAC. Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page

In-Class Exercise Assume a 0 bit DAC is set up to output a voltage from -V dc to +V dc. Determine the resolution. The 0 bits produce a total of 0 = 04 steps. The range is +V dc -(-V dc ) = +4V dc. Therefore the resolution is 4Vdc/03 = 0.0346V. 3.5mV/step! Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page 3

One Approach to DAC: R-R Ladder Circuit Vout kohm kohm kohm kohm kohm kohm kohm kohm Key = D Key = C Key = B Key = A V ref 5V V out A B C D 5 3 4 V What is V max? V max =V ref *5/6=4.69V V min =0 Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page 4

nd Approach to DAC: Scaled Summing Junction DAC 50kohm 3 Vout V 0kohm 0kohm 40kohm 80kohm Key = D Key = C Key = B Key = A This approach is the one we will implement in lab. V out A50k B50k C50k D50k V 80k 40k 0k 0k A B C D 0 4 3 V What is Range? V max =0, V min =-0V*5/6=-4.69V Range=4.69V Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page 5

Analog to Digital Converter (ADC) Terminology Number of Bits: An ADC with n bits divides the input range into n discrete steps. For example, an 8 bit ADC can produce a total of 56 different output codes. Full Scale Input Range Difference between the minimum and maximum input voltage that can be measured. Resolution: Quantization, also known as the step size, is the change in input voltage represented by each count at the output. Often referred to as LSB (least significant bit) Dynamic Range: Input Range divided by resolution or noise. Typically equals n -, if noise is less than LSB. Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page 6

ADC Accuracy QUANTIZATION ERROR Inherent accuracy (±/LSB, least significant bit) INTEGRAL NON-LINEARITY (INL) is a measure of the deviation of each individual code from a line drawn from zero scale or negative full scale ( LSB below the first code transition) through positive full scale ( LSB above the last code transition). The deviation of any given code from this straight line is measured from the center of that code value. DIFFERENTIAL NON-LINEARITY (DNL) is the measure of the maximum deviation from the ideal step size of LSB. DNL is commonly measured at the rated clock frequency with a ramp input. MISSING CODES are output codes that are skipped or never appear at the ADC outputs. These codes cannot be reached by any input value. OFFSET ERROR is the difference between the ideal and actual LSB transition point. FULL SCALE ERROR is how far the last code transition is from the ideal.5 LSB below positive V_ref (V_ref is n times step size) GAIN ERROR is number of LSB gained from conversion from lowest to highest output. It is a measure of the deviation of the ADC from linear (gain = ) conversion. See figure 9.44 in H&H page 65 Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page 7

Ideal ADC: Quantization Error Quantization Error 8 7.5 LSB QUANTIZATION ERROR 6 5 4 3 0.5 LSB FULL SCALE ERROR 0 000 00 00 0 00 0 0 -Quantization error is the inherent deviation of the output from a straight line. -Note last transition is.5 LSB from V ref (used to measure full scale error) Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page 8

Sampled System Errors - INL INL Error 8 7 6 5 4 3 0.7 LSB @ 00 LSB @ 0 0 000 00 00 0 00 0 0 Integral Non-Linearity is the deviation of the output from a straight line. Can be measured at each code or stated as maximum for all codes. Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page 9

Sampled System Errors - DNL DNL Error 8 7 6 DNL= 5 0 LSB @ 00 4.0 LSB 3 @ 0 0 000 00 00 0 00 0 0 (step is correct, but INL of 00 is.0lsb) Differential Non-Linearity is the maximum difference between the expected stepsize ( LSB) and that steps actually produced by the DAC. Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page 0

Sampled System Errors - Offset Offset Error 9 8 7 6 5 4 3 0 LSB @ 000 000 00 00 0 00 0 0 Offset Error is measured at 000. Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page

Sampled System Errors - Gain Gain Error 8 7 6.5 LSB @ 5 4 3 0 000 00 00 0 00 0 0 Gain Error is measured at. The offset error must be known to compute slope. (y=mx+b) Gain Error is given in LSB over full scale. Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page

Sampled System Errors - Gain Gain Error 8 7 6 5 4 3 0 - - -.0LSB offset 000 00 00 0 00 0 0.5 LSB @ Gain Error is measured at. The offset error must be known to compute this value. (y=mx+b) Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page 3

References. Paul Horowitz and Winfield Hill (989). The Art of Electronics, nd Ed., Cambridge. Analog Devices, Fundamentals of Sampled Data Systems, accessed MAR 008 http://www.analog.com/en/cat/0,878,760,00.html 3. Efunda, Engineering Fundamentals web site; accessed MAR 008 http://www.efunda.com/designstandards/sensors/methods/dsp_nyquist.cfm 4. National Semiconductor: accessed MAR 008 http://www.national.com/appinfo/adc/files/definition_of_terms.pdf Laboratory Electronics II (PHSX6) Spring 0 Lecture 9 Page 4