Analog-Digital Conversion. Analog outputs from sensors and analog front- ends (analog signal conditioning) have to be converted into digital signals.

Slides:



Advertisements
Similar presentations
Analog to digital conversion
Advertisements

Analog to Digital Conversion (ADC)
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.
EET 252 Unit 6 Analog-to-Digital Conversion
The Illinois Society of Electroneurodiagnostic Technologists (ISET) Fall Meeting: Electronics Crash Course for Technologists Saturday, November 9, 2013.
Digital to Analog and Analog to Digital Conversion
Digital Fundamentals Tenth Edition Floyd Chapter 12.
CE 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Analog to Digital (and back again) Interfacing a microprocessor-based system.
COMP3221: Microprocessors and Embedded Systems
Shuvra Das University of Detroit Mercy
Analog to Digital Converters (ADC) 2 ©Paul Godin Created April 2008.
Lecture 9: D/A and A/D Converters
TRANSMISSION FUNDAMENTALS Review
CHAPTER 5 Discrete Sampling and Analysis of Time-Varying Signals Analog recording systems, which can record signals continuously in time, digital data-acquisition.
Analogue to Digital Conversion
Interfacing Analog and Digital Circuits
DIGITAL SYSTEMS TCE INTERFACING WITH ANALOG DEVICES (Week 12)
Quantization Prof. Siripong Potisuk.
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.
EET260: A/D and D/A converters
Analog-to-Digital Converters Prepared by: Mohammed Al-Ghamdi, Mohammed Al-Alawi,
JF 12/04111 BSC Data Acquisition and Control Data Representation Computers use base 2, instead of base 10: Internally, information is represented by binary.
EKT343 –Principle of Communication Engineering
COMMUNICATION SYSTEM EECB353 Chapter 2 Part IV AMPLITUDE MODULATION Dept of Electrical Engineering Universiti Tenaga Nasional.
Department of Electrical & Computer Engineering 1 ES585a - Computer Based Power System Protection Course by Dr.T.S.Sidhu - Fall 2005 Class discussion presentation.
Digital to Analogue Conversion Natural signals tend to be analogue Need to convert to digital.
PULSE MODULATION.
Formatting and Baseband Modulation
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.
Fall 2004EE 3563 Digital Systems Design Audio Basics  Analog to Digital Conversion  Sampling Rate  Quantization  Aliasing  Digital to Analog Conversion.
Lecture 1 Signals in the Time and Frequency Domains
ADC & DAC Signal Conversions.
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.
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.
ECE 4710: Lecture #6 1 Bandlimited Signals  Bandlimited waveforms have non-zero spectral components only within a finite frequency range  Waveform is.
Data Acquisition ET 228 Chapter 15 Subjects Covered Analog to Digital Converter Characteristics Integrating ADCs Successive Approximation ADCs Flash ADCs.
High Speed Analog to Digital Converter
1 Data-Converter Circuits A/D and D/A Chapter 9 1.
◦ We sometimes need to digitize an analog signal ◦ To send human voice over a long distance, we need to digitize it, since digital signals are less prone.
4.2 Digital Transmission Pulse Modulation Pulse Code Modulation
Pulse Modulation Techniques
Analog/Digital Conversion
Lecture 3: The Sampling Process and Aliasing 1. Introduction A digital or sampled-data control system operates on discrete- time rather than continuous-time.
Introduction to Data Conversion EE174 – SJSU Tan Nguyen.
ΨΗΦΙΑΚΟΣ ΕΛΕΓΧΟΣ (22Δ802) Β΄ ΕΞΑΜΗΝΟ Καθηγητής Πέτρος Π. Γρουμπός  Ώρες Γραφείου: Τετάρτη Πέμπτη Παρασκευή 11:00- 12:00 Γραφείο: 1.
5-2-3 Analogue to Digital Converters (ADC). Analogue to Digital Conversion The process is now the opposite of that studied in Topic Now we wish.
Lecture Notes / PPT UNIT III
1 Summary Lecture: Part 1 Sensor Readout Electronics and Data Conversion Discovering Sensor Networks: Applications in Structural Health Monitoring.
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.
MECH 373 Instrumentation and Measurements
Microprocessors Data Converters Analog to Digital Converters (ADC)
Analog-Digital Conversion
Chapter 3 Sampling.
Digital Control Systems Waseem Gulsher
Chapter 2 Signal Sampling and Quantization
Created by Luis Chioye Presented by Cynthia Sosa
Soutenance de thèse vendredi 24 novembre 2006, Lorient
Chapter 3: Pulse Code Modulation
Digital Control Systems Waseem Gulsher
Lesson 8: Analog Signal Conversion
Conversation between Analogue and Digital System
Sampling and Quantization
9.3 Analog-to-Digital Conversion
Chapter 7 Converters.
Presentation transcript:

Analog-Digital Conversion

Analog outputs from sensors and analog front- ends (analog signal conditioning) have to be converted into digital signals. This process has two steps: Analog signal sampling (Continuous time to discrete time) Analog to digital conversion (Continuous voltage to discrete amplitude values)

Analog outputs from sensors and analog front- ends (analog signal conditioning) have to be converted into digital signals. This process has two steps: Analog signal sampling (Continuous time to discrete time) Analog to digital conversion (Continuous voltage to discrete amplitude values)

To process signals digitally, they must be converted from analog to digital numbers. After a signal is processed, it is then often converted back to analog form. Digital processing offers some clear advantages that include: Programmability Stability Repeatability Special Applications

To illustrate the operation of sampling, we will use the example of variations in stock market prices over a period of several weeks. A sampling period is the time between samples. Sampling time is ideally an instant in time when a sample is taken. SAMPLING

In the diagram below, the share prices are recorded at one-week intervals.

Must decide how often we must take the sample This would give us a much more precise representation of the stock market fluctuations Everyday? Every Minute? Does the stock price changes significantly every minute?

NON PERIODIC SAMPLING stock market index is only published at irregular times must inferred what happened between the published values - joining the values don’t see the dip in the stock index that actually occurred between T3 and T4. non-periodic sampling has two drawbacks it is not easy to interpret the data we may miss important information. PERIODIC SAMPLING stock market index is published at periodic times BUT don’t see the dip in the stock index that actually occurred between T2 and T3 because the sampling rate is infrequent Still can miss important information. THE KEY IS THE SAMPLING FREQUENCY

Higher frequency, f 2 Frequency, f 1

Getting the sampling right; CASE 1 ensure that we do not miss important information if we plot the inferred signal from the samples, we will get a waveform very similar to the original. multiple images of the spectrum occur in the frequency domain. These images are centered around the base band (original signal)

CASE 2This sampling frequency is referred to as Nyquist rate Let’s say, f a = 1 kHz, hence, f s = 2 kHz, hence, the sampling period is at every 0.5 ms The inferred graph still looks almost the same as the original signal 0.5 ms The caution here is that if the signal were shifted by 90 degrees we would loose all amplitude information because the samples would occur on the zero crossings. Thus, it is important to sample at a rate slightly over the Nyquist rate

CASE 2 In the frequency domain, we would see the multiple images of our signal centered at 1f s, 2f s and so on

CASE 3 Let’s say, f a = 1 kHz, hence, 2f a = 2 kHz, let’s choose f s = 1 kHz i.e one sample every 1 ms the inferred signal does not look like the original signal and hence, not possible to reconstruct the original signal from our samples This effect is called aliasing in signal processing as shown in the frequency domain figure - where an alias of our original signal spectrum appears near the frequency of our original signal. 1 ms CONCLUSION: the minimum sampling rate must be twice that of the highest frequency component of the signal. This frequency is called the Nyquist Limit. The theory behind this originated from Nyquist’s Sampling Theorem

Aliasing occurs

Hence, normally, the analog signal is pass through a filter to remove signals that are higher than frequency of interest (normally due to noise) - signal conditioning stage. And then ensure that the sampling rate is HIGHER than the Nyquist sampling rate. REF:

covered the concept of sampling a signal and filtering it with an anti-aliasing filter. next stage is to convert the signal to a digital representation. the basic sampling function is achieved by using a sample and hold circuit, which maintains the sampled level until the next sample is taken. The result of this is the staircase effect DIGITIZING AND QUANTIZATION

Sample and Hold Circuit Sampling and hold circuits are used to store the analog value of the signal at the sampling instant during the analog to digital conversion time.  Whenever the switch is closed the capacitor charges to the voltage at the input. The time for the capacitor to be charged is controlled by the switch timer  After the switch is opened, the capacitor holds the charge and hence the voltage across capacitor cannot change since it does not have any path to discharge.  Then the voltage across the capacitor is replicated at the output by a voltage follower.

v out v in NOTE: sampling period, T = t s + t H

For each sample, choose the upper level digital value – round up value PERIODDIGITAL VALUE 0 – t s 10 t s – 2t s 10 2t s – 3t s 01 3t s – 4t s 01 4t s – 5t s 00 5t s – 6t s 00 6t s – 7t s 01 7t s – 8t s 8t s – 9t s 9t s – 10t s Quantization can be thought of as classifying the signal into certain bands.

Quantization Error There are two primary sources of errors. One is sampling, which only takes the amplitude of the signal at a point in time and holds it until the next sample. The second source of errors comes from the quantizer, which pulls up or pushes down the amplitude of the signal to its digital representation. Methods to reduce errors increase the number of quantization levels For example: a DSP system will use an ADC with 10 or 12 bit resolution. This means that the input signal will be measured against 1024 or 4096 levels, respectively. Therefore, if our input signal varies between 0 and 5V, the least significant bit (LSB), i.e., a single bit, would correspond to just 4.88 mV for the 10-bit ADC (5V/2 10 ) and 1.22 mV for the 12-bit ADC (5V/2 12 ) assuming a uniform quantization step.

Methods to reduce errors apply a non-uniform quantization For example: Consider a case where signal amplitudes are grouped, as shown in the graph where the bottom portions of the graph contain more variations in amplitude. The top portion of the waveform does not change much apply a non-uniform quantization to this waveform by allowing more digitization levels where there are more variations A step size is used that varies according to the signal amplitude. Can ensure that there are more levels at the lower amplitudes.

Summary: to convert an analog signal to digital, the steps are: i. Limit the spectrum ii. Sample and hold iii. Quantize each sample iv. Obtain digital data stream Common types of ADC Flash ADC Successive Approximation ADC

FLASH ADC called the parallel A/D converter It is formed of a series of comparators, each one comparing the input signal to a unique reference voltage The outputs connect to the inputs of a priority encoder circuit, which then produces a binary output. The following illustration shows a 3-bit flash ADC circuit: Disadvantages: high cost and high power consumption

V ref is a stable reference voltage provided by a precision voltage regulator as part of the converter circuit, (not shown in the schematic). When V in > V ref at each comparator, the comparator outputs will produce a high state. The priority encoder generates a binary number based on the highest-order active input, ignoring all other active inputs.

The encoder circuit itself can be made from a matrix of diodes Encoder

To illustrate, we use a 2-bit Flash ADC The circuit above has three comparators. (2 2 – 1) If the input voltage (V in ) is too low, all the comparators will be turned off. If V in is a little higher, only the bottom comparator will turn on. If V in is a little high still, the bottom two comparators will turn on. If V in is high enough, all the comparators will turn on equivalent to 1 Diode is on

Deduce the digital output if V in = 5.5 V and the V ref = 8 V Y2 Y1Y Y1 Y2

The most widely use class of ADCs. Low cost and moderate conversion speeds. The successive approximation ADC consists of four primary functional blocks. i. Comparator ii. Control Logic iii. Successive Approximation iv. Digital to Analog Converter (DAC) SUCCESSIVE APPROXIMATION ADC Block Diagram of of 2-bit SA ADC

Start at MSB: 1000 = 8 8 > 7.2 Reset bit D3 to = 4 4 < 7.2  maintain bit D2 at = 6 6 < 7.2  maintain bit D1 at = 7 7 < 7.2  maintain bit D0 at 1 All bits been checked Number in register is: D3D2 D1D Take note that 0111 is equivalent to 7 which is approximately equal to 7.2 V

An N-bit SA ADC will require N comparison periods and will not be ready for the next conversion until the current one is complete. Therefore, although, these ADCs are power- and space- efficient, SA ADC is considered slow.