Introduction to Data Conversion EE174 – SJSU Tan Nguyen.

Slides:



Advertisements
Similar presentations
Analog to digital conversion
Advertisements

EET260 Introduction to digital communication
Digital Coding of Analog Signal Prepared By: Amit Degada Teaching Assistant Electronics Engineering Department, Sardar Vallabhbhai National Institute of.
Analog-to-Digital Converter (ADC) And
Lecture 17: Analog to Digital Converters Lecturers: Professor John Devlin Mr Robert Ross.
Digital Fundamentals Tenth Edition Floyd Chapter 12.
Analog-to-digital Conversion and Digital-to-analog Conversion (with DSP) ES-3.
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.
COMP3221: Microprocessors and Embedded Systems
LSU 06/04/2007Electronics 71 Analog to Digital Converters Electronics Unit – Lecture 7 Representing a continuously varying physical quantity by a sequence.
Analog to Digital Converters (ADC) 2 ©Paul Godin Created April 2008.
Lecture 9: D/A and A/D Converters
Mixed Signal Chip Design Lab Analog-to-Digital Converters Jaehyun Lim, Kyusun Choi Department of Computer Science and Engineering The Pennsylvania State.
Analogue to Digital Conversion
Interfacing Analog and Digital Circuits
DIGITAL SYSTEMS TCE INTERFACING WITH ANALOG DEVICES (Week 12)
Unit 4 Sensors and Actuators
Interfacing with the Analog World Wen-Hung Liao, Ph.D.
Quantization Prof. Siripong Potisuk.
Analogue to Digital Conversion
Introduction to Data Conversion
EET260: A/D and D/A converters
CEN352, Dr. Ghulam Muhammad King Saud University
Data Converter Performance Metric
PH4705/ET4305: A/D: Analogue to Digital Conversion
Data Acquisition. Data Acquisition System Analog Signal Signal Conditioner ADC Digital Processing Communication.
Chapter 4 Digital Transmission
Digital to Analog Converters
Digital to Analogue Conversion Natural signals tend to be analogue Need to convert to digital.
11 Lecture Slides ME 3222 Kinematics and Control Lab Lab 2 AD DA and Sampling Theory By Dr. Debao Zhou.
Pulse Modulation 1. Introduction In Continuous Modulation C.M. a parameter in the sinusoidal signal is proportional to m(t) In Pulse Modulation P.M. a.
Digital audio. In digital audio, the purpose of binary numbers is to express the values of samples that represent analog sound. (contrasted to MIDI binary.
LE 460 L Acoustics and Experimental Phonetics L-13
DIGITAL VOICE NETWORKS ECE 421E Tuesday, October 02, 2012.
Understanding ADC Specifications September Definition of Terms 000 Analogue Input Voltage Digital Output Code FS1/2.
Sampling Theorems. Periodic Sampling Most signals are continuous in time. Example: voice, music, images ADC and DAC is needed to convert from continuous-time.
ACOE2551 Microprocessors Data Converters Analog to Digital Converters (ADC) –Convert an analog quantity (voltage, current) into a digital code Digital.
Data Acquisition Systems
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2009.
Why Data Conversion? Real world is analog Mostly, communication and computation is digital Need a component to convert analog signals to digital (ADC)
4.2 Digital Transmission Pulse Modulation Pulse Code Modulation
Analog/Digital Conversion
Figure Analog-to-digital conversion.. Figure The DAC output is a staircase approximation to the original signal. Filtering removes the sharp.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2014.
COMMUNICATION SYSTEM EEEB453 Chapter 5 (Part III) DIGITAL TRANSMISSION Intan Shafinaz Mustafa Dept of Electrical Engineering Universiti Tenaga Nasional.
Lecture 2 Analog to digital conversion & Basic discrete signals.
PAM Modulation Lab#3. Introduction An analog signal is characterized by the fact that its amplitude can take any value over a continuous range. On the.
Data Converter Performance Metric EE174 – SJSU Tan Nguyen.
ΨΗΦΙΑΚΟΣ ΕΛΕΓΧΟΣ (22Δ802) Β΄ ΕΞΑΜΗΝΟ Καθηγητής Πέτρος Π. Γρουμπός  Ώρες Γραφείου: Τετάρτη Πέμπτη Παρασκευή 11:00- 12:00 Γραφείο: 1.
Lecture Notes / PPT UNIT III
Analog-Digital Conversion. Analog outputs from sensors and analog front- ends (analog signal conditioning) have to be converted into digital signals.
Lifecycle from Sound to Digital to Sound. Characteristics of Sound Amplitude Wavelength (w) Frequency ( ) Timbre Hearing: [20Hz – 20KHz] Speech: [200Hz.
MECH 373 Instrumentation and Measurements
Microprocessors Data Converters Analog to Digital Converters (ADC)
Analog to digital conversion
Topics discussed in this section:
DIGITIAL COMMUNICATION
4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Quantization and Encoding
Introduction to data converters
Introduction to data converters
Analog to Digital Converters Electronics Unit – Lecture 7
Soutenance de thèse vendredi 24 novembre 2006, Lorient
Digital Control Systems Waseem Gulsher
Lesson 8: Analog Signal Conversion
Conversation between Analogue and Digital System
Sampling and Quantization
Chapter 7 Converters.
ELEN E4810: Digital Signal Processing Topic 11: Continuous Signals
Presentation transcript:

Introduction to Data Conversion EE174 – SJSU Tan Nguyen

ADC (Analog-to-Digital Converter): converts an analog signal (voltage/current) to a digital value DAC (Digital-to-Analog Converter): converts a digital value to an analog value (voltage/current) Sample period: for ADC, time between each conversion Typically, samples are taken at a fixed rate V FS / V ref (Full scale or Reference Voltage): Analog signal varies between 0 and V ref, or between +/-V ref Resolution: Number of bits used for conversion (8 bits, 10 bits, 12 bits, 16 bits, etc). Conversion Time: The time it takes for a analog-to-digital conversion Quantization is the process of converting a continuous range of values into a finite range of discreet values. This is a function of ADC, which create a series of digital values to represent the original analog signal. Differential Nonlinearity (DNL) error is the difference between an actual step width (for an ADC) or step height (for a DAC) and the ideal value of 1 LSB. Integral Nonlinearity (INL) error is the deviation of the values on the actual transfer function from a straight line. Effective Number Of Bits (ENOB) is a measure of the dynamic performance of an ADC. Vocabulary

Data Conversion System Real world signals are analog (temp, pressure, position, sound, light, speed, etc): Continuous time and continuous amplitude DSP can only process: Discrete time and discrete amplitude Digital data conversion system requires ADC and DAC. The ADC process utilizes sampling and quantization of the continuous analog signal. ADC converts an input analog value to an output digital representation. ADC is operated at a rate of f S samples per second. Anti-alias filter is used to avoid any aliasing phenomena. ADCs usually require the input be held constant during the conversion process, indicating that the ADC must be preceded by an Sample-and-Hold Amplifier (SHA) to freeze the band-limited signal just prior to each conversion. Because ADC is commonly needed, most modern microcontrollers has an in-built ADC unit. The digital data is processed by a microprocessor and output to a DAC. DAC is usually operated at the same rate f S as the ADC When the application demands, it is equipped with appropriate circuitry to remove any output glitches arising in connection with input code changes. The resulting staircase-like signal is finally passed through a smoothing filter to ease the effects of quantization noise.

There are two related steps in A-to-D conversion: Sampling and holding:  The analogue signal is extracted, usually at regularly spaced time instants.  The samples have real values. Quantization and Encoding:  The samples are quantized to discrete levels.  Each sample is represented as a digital value. ADC Process

Sampling is the process of recording an analog signal at regular discrete moments of time. The sampling rate f s is the number of samples per second. The time interval between samples is called the sampling interval T s =1/f s. Sampling In this example, v(t)=cos(2πft) is sampled with sampling interval T s =T/3 to produce the following v[n]. v[n] = cos(2πfnT s )by substituting t=nT s = cos(2πfnT/3)since T s =T/3 = cos(2πn3) since T=1/f The samples are shown as the sequence v[n] indexed by integer values of n. This expression for v[n] evaluates to the sample values as shown below.

If a sinusoidal signal is sampled with a high sampling rate, the original signal can be rec overed exactly by connecting the samples together in a smooth way (called ideal low pass filtering). In contrast, if a sinusoidal signal is sampled with a low sampling rate, the samples may be too infrequent to recover the original signal. Sampling The signal v(t)=cos(2πft) is sampled uniformly with 4 sampling intervals within every 3 signal periods. Therefore, 4Ts=3T and the sampling rate f s =(4/3)f. Notice that a different sinusoid cos(2πft/3) with lower frequency f/3 also fits these samples. Attempting to recover v(t)=cos(2πft) by ideal low pass filtering instead produces cos(2πft/3) since the latter has a lower frequency. So, the sampling rate fs=(4/3)f is insufficient to recover v(t)from the samples. The question that arises is: for which values of sampling rate f s can we sample and then perfectly recover a sinusoidal signal v(t) = cos(2πft)?

The Nyquist-Shannon Sampling Theorem states that the sampling rate for exact recovery of a signal composed of a sum of sinusoids is larger than twice the maximum frequency of the signal. This rate is called the Nyquist sampling rate f Nyquist. Nyquist-Shannon Sampling Theorem f s > f Nyquist = 2f max Example 1: Given the signal v(t) = 7 + 5cos(2π440t) + 3sin(2π880t)  the sampling rate f s > f Nyquist = 2(880)=1760 Hz. Example 2: Given the signal v(t) = 5 sin(2π50t) is sampled at f s = 40 Hz, what signal can be recovered after sampled? Solution: v[n] = 5 cos(2πn 50/40) = 5 cos(2πn(1.25)) = 5 cos(2πn( )) = 5 cos(2πn(0.25)) = 5 cos(0.5 π n) Recovering signal: v r (t) = 5 cos(0.5π 40t) = 5 cos(2π 10t)  Sampling rate less than Nyquist rate results in original signal is not recovered known as aliasing phenomena

Analog-to-Digital Converter (ADC) ADC converts an input analog value to an output digital representation. ADC is operated at a rate of f S samples per second. Anti-alias filter is used to avoid any aliasing phenomena. ADCs usually require the input be held constant during the conversion process, indicating that the ADC must be preceded by an Sample-and- Hold Amplifier (SHA) to freeze the band-limited signal just prior to each conversion.

ADC Process t Continuous Signal 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 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 ADC Process

t 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 a sample from each location Reflects sampled and hold signal Digital approximation ADC Process

t 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 Sample and hold: The output only changes at periodic instants of time. The independent variable now takes values in a discrete set ADC Process

Quantization & Coding Use original analog signal Apply 2 bit coding Use original analog signal Apply 3 bit coding Better representation of input information with additional bits Quantizing: Partitioning the reference signal range into a number of discrete quanta, then matching the input signal to the correct quantum. Encoding: Assigning a unique digital code to each quantum, then allocating the digital code to the input signal. Quantization error

A 5 kHz Sine Wave sampled by a 3-bit versus a 16-bit ADC

Improve the accuracy in ADC Increase the sampling rate which increases the maximum frequency that can be measured. Increase the resolution which improves the accuracy in measuring the amplitude of the analog signal.

ADC Characteristics Out- put code

Quantization Noise Model When an ADC converts a continuous signal into a discrete digital representation, there is a range of input values that produces the same output. That range is called quantum (Q) and is equivalent to the Least Significant Bit (LSB). The difference between input and output is called the quantization error. Therefore, the quantization error can be between ±Q/2. Ideal 3-bit ADC Quantization Noise Any value of the error is equally likely, so it has a uniform distribution ranging from −Q/2 to +Q/2. Then, this error can be considered a quantization noise with RMS: Ideal ADC transfer function

Signal-Noise Ratio (SNR) relates to N-bits in digital presentation Assuming an input sinusoidal with peak-to-peak amplitude V ref, where V ref is the reference voltage of an N-bit ADC (therefore, occupying the full-scale of the ADC), its RMS value is To calculate the Signal-Noise Ratio, we divide the RMS of the input signal by the RMS of the quantization noise: SNR = 6.02 x N (dB) This SNR equation generalizes to any system using a digital representation.

Number of bits N: The higher is the number of bits, the more precise is the digital output. Quantisation error E q : The average difference between the analogue input and the quantized value. The quantization error of an ideal ADC is half of the step size. Sample time T sample : A sampling capacitor must be charged for a duration of T sample before conversion taking place. Conversion time T conv : Time taken to convert the voltage on the sampling capacitor to a digital output. ADC : Parameters

Examples

3) Given V ref = 10V, and a 10-bit A/D output code is 0x12A. a) What is the ADC input voltage? b) If the input voltage is V in = V, what is the output code? c) What is the input voltage range that yield an output code of 0x005? Solution: 1 LSB = Q = 10V / 2 10 = V = 9.76 mV  Q/2 = 4.88 mV a) V in = output_code / 2 N * V ref = (0x12A) / 2 10 x 5 V = 298/1024 x 10 V = V = mV (ADC Vin) b) For the output code 0x12A, the input voltage range is ± Q/2 or mV < V 0x12A < mV So for V in = V the out put code is also 0x12A c) The ideal input voltage to produce output code 5 is V 0x005 = 5 x 9.76 mV = 48.8 mV The range for output code 0x005 is 48.8 ± 4.88 mV or mV < V 0x005 < mV Examples

Digital-to-Analog Converter (DAC) The digital data is processed by a microprocessor and output to a DAC. DAC is usually operated at the same rate f S as the ADC When the application demands, it is equipped with appropriate circuitry to remove any output glitches arising in connection with input code changes. The resulting staircase-like signal is finally passed through a smoothing filter to ease the effects of quantization noise.

DAC Characteristics

Example DAC Computations

Some Data Sheet Examples

References: ume.gatech.edu/mechatronics_course/ADC_F10.pptx specifications ume.gatech.edu/mechatronics_course/ADC_F12.pptx