Introduction to Data Conversion

Slides:



Advertisements
Similar presentations
Analog to digital conversion
Advertisements

EET260 Introduction to digital communication
Analog-to-Digital Converter (ADC) And
Lecture 17: Analog to Digital Converters Lecturers: Professor John Devlin Mr Robert Ross.
Learning Objectives Static and Dynamic Characteristics of Signals
EET 252 Unit 6 Analog-to-Digital Conversion
ECE 265 – LECTURE 14 Analog Signal Acquisition The A/D converters 5/14/ ECE265.
Digital to Analog and Analog to Digital Conversion
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.
4-Integrating Peripherals in Embedded Systems (cont.)
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.
CHAPTER 4 DIGITAL MODULATION Part 1.
COMP3221: Microprocessors and Embedded Systems
Analog to Digital Converters (ADC) 2 ©Paul Godin Created April 2008.
Khaled A. Al-Utaibi  Digital Vs Analog Signals  Converting an Analog Signal to a Digital One  Reading Analog Sensors with the.
Lecture 9: D/A and A/D Converters
Sampling and quantization Seminary 2. Problem 2.1 Typical errors in reconstruction: Leaking and aliasing We have a transmission system with f s =8 kHz.
Analogue to Digital Conversion
Interfacing Analog and Digital Circuits
ADC AND DAC Sub-topics: Analog-to-Digital Converter -. Sampling
Unit 4 Sensors and Actuators
Interfacing with the Analog World Wen-Hung Liao, Ph.D.
Storey: Electrical & Electronic Systems © Pearson Education Limited 2004 OHT 26.1 Data Acquisition and Conversion  Introduction  Sampling  Signal Reconstruction.
Analogue to Digital Conversion
Discussion #25 – ADCECEN 3011 Conversion Mosiah 5:2 2 And they all cried with one voice, saying: Yea, we believe all the words which though has spoken.
EE174 – SJSU Lecture #4 Tan Nguyen
CEN352, Dr. Ghulam Muhammad King Saud University
Analog-to-Digital Converters Prepared by: Mohammed Al-Ghamdi, Mohammed Al-Alawi,
PH4705/ET4305: A/D: Analogue to Digital Conversion
Data Acquisition. Data Acquisition System Analog Signal Signal Conditioner ADC Digital Processing Communication.
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.
EE421, Fall 1998 Michigan Technological University Timothy J. Schulz 08-Sept, 98EE421, Lecture 11 Digital Signal Processing (DSP) Systems l Digital processing.
Computer Based Data Acquisition Basics. Outline Basics of data acquisition Analog to Digital Conversion –Quantization –Aliasing.
Digital to Analog Converters (DAC) 1
Data Converters ELEC 330 Digital Systems Engineering Dr. Ron Hayne
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.
1 4-Integrating Peripherals in Embedded Systems (cont.)
Professor: Dr. Miguel Alonso Jr.
Data Acquisition Systems
University of Tehran 1 Interface Design Transforms Omid Fatemi.
Data Acquisition ET 228 Chapter 15 Subjects Covered Analog to Digital Converter Characteristics Integrating ADCs Successive Approximation ADCs Flash ADCs.
V. Rouillard  Introduction to measurement and statistical analysis DIGITAL SAMPLING - DIGITISATION Digital sampling is mainly used in data acquisition.
Digital to Analog Converters (DAC) 1 Technician Series ©Paul Godin March 2015.
Analog-to-Digital and Digital-to-Analog Conversion
Analog Capture- Port E. Digital to Analog and Analog to Digital Conversion D/A or DAC and A/D or ADC.
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.
Lecture 2 Analog to digital conversion & Basic discrete signals.
Introduction to Data Conversion EE174 – SJSU Tan Nguyen.
Sampling Theory ADC Types EE174 – SJSU Tan Nguyen.
ΨΗΦΙΑΚΟΣ ΕΛΕΓΧΟΣ (22Δ802) Β΄ ΕΞΑΜΗΝΟ Καθηγητής Πέτρος Π. Γρουμπός  Ώρες Γραφείου: Τετάρτη Πέμπτη Παρασκευή 11:00- 12:00 Γραφείο: 1.
Lecture Notes / PPT UNIT III
1 Summary Lecture: Part 1 Sensor Readout Electronics and Data Conversion Discovering Sensor Networks: Applications in Structural Health Monitoring.
Networked Embedded Systems Sachin Katti & Pengyu Zhang EE107 Spring 2016 Lecture 13 Interfacing with the Analog World.
MECH 373 Instrumentation and Measurements
Microprocessors Data Converters Analog to Digital Converters (ADC)
Chapter 3 Sampling.
Digital Control Systems Waseem Gulsher
Soutenance de thèse vendredi 24 novembre 2006, Lorient
Lesson 8: Analog Signal Conversion
Conversation between Analogue and Digital System
CEN352, Dr. Ghulam Muhammad King Saud University
Presentation transcript:

Introduction to Data Conversion EE174 – SJSU Lecture #2 Tan Nguyen

Vocabulary Typically, samples are taken at a fixed rate 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 VFS / Vref (Full scale or Reference Voltage): Analog signal varies between 0 and Vref, or between +/-Vref 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

Data Converter Basics • Real world signals are analog (temp, pressure, position, sound, light, speed, etc) : – Continuous time – Continuous amplitude • DSP can only process: – Discrete time – Discrete amplitude Data conversion from analog to digital and digital to analog is needed

Typical embedded application • Real world signals are analog (temp, pressure, position, sound, light, speed, etc) : – Continuous time – Continuous amplitude • DSP can only process: – Discrete time – Discrete amplitude Physical variables (temperature, pressure, light,…) Transducer electrical signals Signal conditioning voltages Processor Input ports Output ports Because ADC is commonly needed, most modern microcontrollers has an in-built ADC unit. Analogue-to-digital converter digital signals Digital-to-analogue converter Actuator analogue control signals

Analog-to-Digital Converter (ADC) ADC converts an input analog value to an output digital representation. ADC is operated at a rate of fS 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 Transfer Characteristics An ideal ADC: Accepts analog input in the form of either voltage or current Produces digital output either in serial or parallel form N = # of bits VFS= Full scale output Δ = min. resolvable input  1 LSB = VFS /2N

1-bit ADC

ADC Resolution The resolution of a N-bit ADC is a function of how many parts the maximum signal can be divided into. (Vref+ - Vref-) / 2N Note: VFS = (Vref+ - Vref-) = Full scale output Where Vref+ is the positive reference voltage and Vref- is the negative reference voltage. When Vref- = 0 V, we refer to Vref+ as simply Vref or VFS Example: For Vref = 10V, and N=12, what is 1 LS b? A 12 bit ADC has a resolution of 212 = 4,096. Therefore, our best resolution is 1 part out of 4,096, or 0.0244% of the full scale or 10V / 212 = 2.44 mV Resolution is the smallest input voltage change a digitizer can capture

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

Sampling an analogue signal points sampling period Ts What is a suitable sampling period for a signal?

The sampling theorem An analogue signal x(t) with frequencies of no more than Fmax can be reconstructed exactly from its samples if the sampling rate satisfies: Fs ≥ 2 × Fmax. Significance If maximum frequency of the signal is Fmax, the sampling rate should be at least: If the sampling rate is Fs, the maximum frequency in the signal must not exceed:

Example of signal with fmax = 90 Hz sinusoid sampled Fig 1 Fig 2 Fig 1: Sample fs = 1000 Hz (11xFmax) These samples represent accurately the sinusoid because there is no other sinusoid that can produce the same samples Fig 2: Sample fs = 290 Hz (3.2xFmax) Strange as it seems, it can be proven that no other sine wave can produce the same type of samples Fig 3: Sample fs = 95 Hz (1.05xFmax) Clearly, this is an improper sampling of the signal because another sine wave can produce the same samples The original sine misrepresents itself as another sine. This phenomenon is called aliasing. Fig 3

Quantizing the sampled signal A-to-D converter Consider an n-bit ADC. Let Vref be the reference voltage. Let Vin be the analogue input voltage. Let Vmin be the minimum allowable input voltage, usually Vmin = 0. The ADC’s digital output, d = Dn-1Dn-2 …D0, is given as The step size (resolution) is the smallest change in input that can be discerned by the ADC: Step size = 𝑽𝒓𝒆𝒇 − 𝑽𝒎𝒊𝒏 𝟐𝑵

Quantizing the sampled signal step size Maximum digital output 23 levels Reference Voltage Vref A 3-bit A-to-D converter

Quantizing the sampled signal quantization error analogue signal quantized signal 8 levels (N =3) sampling points 3-bit ADC sampling period

ADC : Parameters Number of bits N: The higher is the number of bits, the more precise is the digital output. Quantisation error Eq: 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 Tsample: A sampling capacitor must be charged for a duration of Tsample before conversion taking place. Conversion time Tconv: Time taken to convert the voltage on the sampling capacitor to a digital output.

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

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 fS 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 Transfer Characteristics An ideal DAC: Accepts digital input b1-bN Produces either analog output voltage or current N = # of bits VFS= Full scale output Δ = min. step size  1 LSB = VFS /2N

ADC Equations Vin = input voltage, Vref+ = ref voltage, Vref- = 0 V, (Note: Vref = VFS) N = number of bits of precision output_code = Vin / Vref * 2N Vin = output_code / 2N * Vref 1 LSB = Vref / 2N

DAC Equations Vout = output voltage, Vref = reference voltage, N = number of bits of precision Input_code = Vout/ Vref * 2N Vout = input_code / 2N * Vref 1 LSB = Vref / 2N

Sample ADC, DAC Computations Example: Given N=3, VFS= 1.6V and input code = 101. Find the output value V0ut Solution: V0 = Δ (b1x22 + b2x21 + b3x20) Δ = VFS /23 = 1.6V / 8 = 0.2V V0 = 0.2V (1x22 + 0x21 + 1x20) = 0.2V x 5 = 1V

Sample ADC, DAC Computations If Vref = 5V, and a 10-bit A/D output code is 0x12A, what is the ADC input voltage? Vin = output_code / 2N * Vref = (0x12A) / 210 x 5 V = 298/1024 x 5 V = 1.46 V (ADC Vin) If Vref = 4V, and an 8-bit A/D input voltage is 2.35 V, what is the ADC output code? output code = Vin / Vref x 2N = 2.35 V / 4 V x 28 = 0.5875 x 256 = 150.4 = 150 = 0x96 (ADC output code)

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.

References: http://www.ni.com/white-paper/4806/en/ Home > Products and Services > White Papers > Understanding Resolution in High-Speed Digitizers/Oscilloscopes http://inst.eecs.berkeley.edu/~ee247/fa10/files07/lectures/L11_2_f10.pdf http://194.81.104.27/~brian/DSP/ADC_notes.pdf ume.gatech.edu/mechatronics_course/ADC_F10.pptx