JF 12/04111 BSC Data Acquisition and Control Data Representation Computers use base 2, instead of base 10: Internally, information is represented by binary.

Slides:



Advertisements
Similar presentations
Chapter 3: Pulse Code Modulation
Advertisements

Lecture Notes Part 2Lecture Notes Part 2 ET 438 b Digital Control and Data Acquisition et438b-2.pptx1.
Analog-to-Digital Converter (ADC) And
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 Fundamentals Tenth Edition Floyd Chapter 12.
Analog to Digital Conversion of Sound Adam White.
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
Analog to Digital Conversion. 12 bit vs 16 bit A/D Card Input Volts = A/D 12 bit 2 12 = Volts = Volts = 2048 −10 Volts = 0 Input Volts.
Analog to Digital Converters (ADC) 2 ©Paul Godin Created April 2008.
Presented by- Md. Bashir Uddin Roll: Dept. of BME KUET, Khulna-9203.
Lecture 9: D/A and A/D Converters
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
1 Dr. Un-ki Yang Particle Physics Group or Shuster 5.15 Amplifiers and Feedback: 3.
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
Digital Signal Processing (DSP) Fundamentals. Overview What is DSP? Converting Analog into Digital –Electronically –Computationally How Does It Work?
Analog-to-Digital Converters Prepared by: Mohammed Al-Ghamdi, Mohammed Al-Alawi,
Fourier Theory and its Application to Vision
EKT343 –Principle of Communication Engineering
Digital to Analog Converters
Sampling Theory. Time domain Present a recurring phenomena as amplitude vs. time  Sine Wave.
4.2 Digital Transmission Pulse Modulation (Part 2.1)
Digital to Analog Converters
Digital to Analogue Conversion Natural signals tend to be analogue Need to convert to digital.
Formatting and Baseband Modulation
Dr Martin Hendry, Dept of Physics and Astronomy University of Glasgow, UK Astronomical Data Analysis I 11 lectures, beginning autumn 2008.
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.
Computer Based Data Acquisition Basics. Outline Basics of data acquisition Analog to Digital Conversion –Quantization –Aliasing.
Chapter 5 Frequency Domain Analysis of Systems. Consider the following CT LTI system: absolutely integrable,Assumption: the impulse response h(t) is absolutely.
Fundamentals of Digital Communication
Ni.com Data Analysis: Time and Frequency Domain. ni.com Typical Data Acquisition System.
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
DATA ACQUISITION Today’s Topics Define DAQ and DAQ systems Signals (digital and analogue types) Transducers Signal Conditioning - Importance of grounding.
Sampling Theorems. Periodic Sampling Most signals are continuous in time. Example: voice, music, images ADC and DAC is needed to convert from continuous-time.
10/6/2015 3:12 AM1 Data Encoding ─ Analog Data, Digital Signals (5.3) CSE 3213 Fall 2011.
AD/DA Conversion Techniques - An Overview J. G. Pett  Introductory tutorial lecture for :- ‘Analogue and digital techniques in closed-loop regulation.
Chapter 5 Frequency Domain Analysis of Systems. Consider the following CT LTI system: absolutely integrable,Assumption: the impulse response h(t) is absolutely.
Active Filter A. Marzuki. 1 Introduction 2 First- Order Filters 3 Second-Order Filters 4 Other type of Filters 5 Real Filters 6 Conclusion Table of Contents.
CSCI1600: Embedded and Real Time Software Lecture 14: Input/Output II Steven Reiss, Fall 2015.
Analog to Digital Converters
Analog/Digital Conversion
Digital to Analog Converter (DAC)
Figure Analog-to-digital conversion.. Figure The DAC output is a staircase approximation to the original signal. Filtering removes the sharp.
Digital Audio I. Acknowledgement Some part of this lecture note has been taken from multimedia course made by Asst.Prof.Dr. William Bares and from Paul.
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.
ΨΗΦΙΑΚΟΣ ΕΛΕΓΧΟΣ (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.
1 Basic Signal Conversion 센서 및 계측 공학 (Sensor and Instrumentation Engineering) 2016 년 1 학기 충북대학교 전기전자반도체공학과 박 찬식
Task 2: Define digital and analogue signals
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.
Networked Embedded Systems Sachin Katti & Pengyu Zhang EE107 Spring 2016 Lecture 13 Interfacing with the Analog World.
Sistem Telekomunikasi, Sukiswo, ST, MT Sukiswo
What is a DAC? A digital to analog converter (DAC) converts a digital signal to an analog voltage or current output DAC.
B.Sc. Thesis by Çağrı Gürleyük
ΨΗΦΙΑΚΟΣ ΕΛΕΓΧΟΣ (22Δ802) Β΄ ΕΞΑΜΗΝΟ 
Signal conditioning.
Analog to Digital Converters Electronics Unit – Lecture 7
Lesson 6: Sampling Analog Signals
Chapter 3: Pulse Code Modulation
Lesson 8: Analog Signal Conversion
Conversation between Analogue and Digital System
9.3 Analog-to-Digital Conversion
Presentation transcript:

JF 12/04111 BSC Data Acquisition and Control Data Representation Computers use base 2, instead of base 10: Internally, information is represented by binary digits; “switches” that are either on or off.

JF 12/04111 BSC Data Acquisition and Control Data Converters Signals must be converted to their digital representation: –ADC: Analog to Digital Converter. ADCs and DAQs are imperfect. Important parameters include: –Sample rate. –Resolution. –Linearity. Computer Digital information must be converted to analog signals: –DAC: Digital to Analog Converter. Computer

JF 12/04111 BSC Data Acquisition and Control Conversion: Sampling

JF 12/04111 BSC Data Acquisition and Control Conversion: Sample Rate High Sample Rates can better represent high frequency waveforms.

JF 12/04111 BSC Data Acquisition and Control Conversion: Nyquist Theorem What is the lowest sample rate that can represent a signal? The Nyquist Theorem states that a wave can be correctly represented when sampled at a rate equal to twice the highest frequency of the wave.

JF 12/04111 BSC Data Acquisition and Control Conversion: Aliasing Sampling below the Nyquist frequency leads to aliasing:

JF 12/04111 BSC Data Acquisition and Control Conversion: What rate? Preferably, one should operate far above the Nyquist limit. Sampling 10 to 100 times higher than the signal frequency generally works very well.

JF 12/04111 BSC Data Acquisition and Control Conversion: What rate? Unfortunately, it is often impossible to sample this fast. –The employed device may not be capable of sampling at the desired rate. –The desired rate may be technologically impossible. –Even if it is possible, you may not be able to afford the required device. ADC’s –250kS/s --- $375 for a computer card. –10MS/s --- $4000. –200MS/s --- $6000. –1GS/s ---$10,000. DAC’s –Static Channels for $700. –1MS/s Channels for $800. –200M/s Channel for $6000.

JF 12/04111 BSC Data Acquisition and Control Conversion: What rate? Unfortunately, it is often impossible to sample this fast. –The employed device may not be capable of sampling at the desired rate. –The desired rate may be technologically impossible. –Even if it is possible, you may not be able to afford the required device. –Fast sampling may produce or require too much data. Limited buffer sizes Limited computational speeds.

JF 12/04111 BSC Data Acquisition and Control Conversion: Near Nyquist Sampling Using the “Sampling Simulator,” explore the effects of various sampling rates on different waveforms with interpolation off. Using interpolation, explore the effects of various sampling rates on different waveforms. Note: that well above the Nyquist frequency, ramp interpolation represents the signal better than flat interpolation. Real world signals are continuous. Sampling is discontinuous. Interpolation is used to turn the discontinuous samples into a continuous signal. No Interpolation“Flat” Interpolation Commonly used by DACs “Ramp” Interpolation Option on expensive DACs Comb Interpolation Theoretically optimal

JF 12/04111 BSC Data Acquisition and Control Conversion: Near Nyquist Sampling Below the Nyquist Frequency, aliasing can produce deceptively pretty waveforms. Be careful. Just above the Nyquist Frequency, the sampled waveforms look nothing like the original waveform. Is the Nyquist Theorem wrong?

JF 12/04111 BSC Data Acquisition and Control Conversion: Near Nyquist Sampling The sampled spectrum has two peaks; –One at the original signal frequency. –One above the Nyquist frequency. We observe an apparent beat between these frequencies.

JF 12/04111 BSC Data Acquisition and Control Conversion: Near Nyquist Sampling The sampled spectrum has two peaks; –One at the original signal frequency. –One above the Nyquist frequency. We observe an apparent beat between these frequencies. The higher frequency can be filtered away to recover the original signal from the sampled signal. Filtering must be done carefully.

JF 12/04111 BSC Data Acquisition and Control Conversion: Near Nyquist Sampling Two Tone Signal

JF 12/04111 BSC Data Acquisition and Control Conversion: Near Nyquist Sampling AM Modulated Signal

JF 12/04111 BSC Data Acquisition and Control Conversion: RC Filtering We need to kill frequencies higher than the Nyquist Frequency. Could use an RC filter: First Order RC filters are not sharp enough.

JF 12/04111 BSC Data Acquisition and Control Conversion: RC Filtering Try a 2 nd order filter:

JF 12/04111 BSC Data Acquisition and Control Conversion: RC Filtering We need even higher order. A 6 th order RC filter kills the amplitude by a factor of 100 one octave above its cutoff.

JF 12/04111 BSC Data Acquisition and Control Conversion: RC Filtering But the signal is significantly reduced in the passband as well!

JF 12/04111 BSC Data Acquisition and Control Conversion: Sharper Filters Filter designs using inductors (or gyrator synthesized inductors) are much sharper. Using, as a figure of merit, a reduction by a factor of 100 one octave above the cutoff: Chebyshev has the best frequency response.

JF 12/04111 BSC Data Acquisition and Control Conversion: Temporal Response Unfortunately, good frequency response generally yields poor temporal response. Bessel filters have the best temporal response.

JF 12/04111 BSC Data Acquisition and Control Conversion: When is Filtering Required? Both DACs and ADC usually require filters. –DACs: Filtering turns the discontinuous output from your DAC into a continuous signal. Occasionally, the device being driven by the DAC is insensitive to the high frequency components in the unfiltered DAC output. If so, filtering is unnecessary.

JF 12/04111 BSC Data Acquisition and Control Conversion: When is Filtering Required? Both DACs and ADC usually require filters. –ADCs: Filtering prevents aliasing. –Input signals are often noisy, and this noise may extend above the Nyquist frequency.

JF 12/04111 BSC Data Acquisition and Control Conversion: When is Filtering Required? Both DACs and ADC usually require filters. –ADCs: Filtering prevents aliasing. –Input signals are often noisy, and this noise may extend above the Nyquist frequency. On sampling: Frequencies above the Nyquist Frequency mirror:

JF 12/04111 BSC Data Acquisition and Control Both DACs and ADC usually require filters. –ADCs: Filtering prevents aliasing. –Aliasing artifacts confuse the spectrum and distort the waveforms. –Unless the spectrum is very quiet above the Nyquist frequency, the signal must be filtered before it is converted by the ADC. –But filtering itself introduces artifacts: »Spectral amplitude errors in the passband. »Distortions to the temporal waveform. Conversion: When is Filtering Required?

JF 12/04111 BSC Data Acquisition and Control Both DACs and ADC usually require filters. –ADCs: Filtering prevents aliasing. Very occasionally aliased signals can still be used. –Spectrum is predictable, but reversed. –The DAC’s analog bandwidth may make Conversion: When is Filtering Required?

JF 12/04111 BSC Data Acquisition and Control Conversion: When is Filtering Required? Both DACs and ADC usually require filters. –ADCs: Filtering prevents aliasing. Filtering turns the discontinuous measurements from your ADC into a continuous signal. “Ideal” filters for static signal reconstruction can be developed using Fourier Transforms. Filtering is unnecessary if you are only interested in the spectral content of your signal.

JF 12/04111 BSC Data Acquisition and Control Conversion: Resolution Resolution specified in number of bits. n-bit converter can represent 2 n levels.

JF 12/04111 BSC Data Acquisition and Control BSC Data Acquisition Card FunctionNumberRateResolution ADC8200kS/s * 12 bits DAC21MS/s12 bits Digital In/Out8 bits *Though not spec’d to do this the card will digitize faster than 1.6MS/s when acquiring a single channel.

JF 12/04111 BSC Data Acquisition and Control DAC Circuits: Scaled Resistor b n is either 0 (off) or 1 (on.) Then:

JF 12/04111 BSC Data Acquisition and Control DAC Circuits: Scaled Resistor DAC Errors Focus on a low and high order bit: What happens if the high order bit resistor is off by 1%? Say: or: Instead of changing the output from 4095 to 4096, it would change to 4055 or 4137.

JF 12/04111 BSC Data Acquisition and Control DAC Circuits: Scaled Resistor DAC Errors A 16bit DAC requires resistors accurate to 0.002% over a 1:65536 resistance range. Such accurate resistors cannot be fabricated. Accurate resistors can be fabricated over a narrow resistance range. Laser trimming.

JF 12/04111 BSC Data Acquisition and Control DAC Circuits: R-2R Virtual Ground

JF 12/04111 BSC Data Acquisition and Control DAC Circuits: R-2R Ladder

JF 12/04111 BSC Data Acquisition and Control DAC Circuits: R-2R Ladder

JF 12/04111 BSC Data Acquisition and Control DAC Circuits: R-2R Ladder

JF 12/04111 BSC Data Acquisition and Control ADC Circuits: Flash (Parallel) Converters Very fast. Low Resolution Expensive

JF 12/04111 BSC Data Acquisition and Control 1.ADC Circuits: Successive Approximation 1.Make a guess. 2.Convert the guess to a voltage with a DAC. 3.Compare the guess voltage to the actual voltage. 4.Refine the guess Stop when satisfied with the accuracy of the answer.