Sampling. Introduction to Digital Data Acquisition: Physical world is analog CSE/EE Digital systems need to

Similar documents
Encode Decode Sample Quantize [ ] [ ]

Objectives. Some Basic Terms. Analog and Digital Signals. Analog-to-digital conversion. Parameters of ADC process: Related terms

APPLICATION NOTE UNDERSTANDING EFFECTIVE BITS

Embedded Microcomputer Systems Lecture 9.1

COMPRESSION OF TRANSMULTIPLEXED ACOUSTIC SIGNALS

Subband Coding of Speech Signals Using Decimation and Interpolation

PRACTICAL ANALOG DESIGN TECHNIQUES

10GBASE-T. length of precoding response, and PMA training

PRACTICAL FILTER DESIGN & IMPLEMENTATION LAB

CHAPTER 5 A NEAR-LOSSLESS RUN-LENGTH CODER

Tehrani N Journal of Scientific and Engineering Research, 2018, 5(7):1-7

信號與系統 Signals and Systems

The counterpart to a DAC is the ADC, which is generally a more complicated circuit. One of the most popular ADC circuit is the successive

A Novel Small Signal Power Line Quality Measurement System

信號與系統 Signals and Systems

Lossless image compression Using Hashing (using collision resolution) Amritpal Singh 1 and Rachna rajpoot 2

Measurement of Equivalent Input Distortion AN 20

Outline. Motivation. Analog Functional Testing in Mixed-Signal Systems. Motivation and Background. Built-In Self-Test Architecture

Design of FPGA- Based SPWM Single Phase Full-Bridge Inverter

EECE 301 Signals & Systems Prof. Mark Fowler

Single Bit DACs in a Nutshell. Part I DAC Basics

Delta- Sigma Modulator with Signal Dependant Feedback Gain

Direct Link Networks - Encoding

Multisensor transducer based on a parallel fiber optic digital-to-analog converter

Chapter 2: Sample Questions, Problems and Solutions Bölüm 2: Örnek Sorular, Problemler ve Çözümleri

High Speed Area Efficient Modulo 2 1

Lecture 28: MOSFET as an Amplifier. Small-Signal Equivalent Circuit Models.

Cyber-Physical Systems ADC / DAC

Massachusetts Institute of Technology Dept. of Electrical Engineering and Computer Science Fall Semester, Introduction to EECS 2.

Department of Electrical and Computer Engineering, Cornell University. ECE 3150: Microelectronics. Spring Due on April 26, 2018 at 7:00 PM

Cascaded Feedforward Sigma-delta Modulator for Wide Bandwidth Applications

4. INTERSYMBOL INTERFERENCE

Fingerprint Classification Based on Directional Image Constructed Using Wavelet Transform Domains

11.11 Two-Channel Filter Banks 1/27

Hardware Technologies for Robust Personal Communication Transceivers

Measuring and generating signals with ADC's and DAC's

Wavelet Transform. CSEP 590 Data Compression Autumn Wavelet Transformed Barbara (Enhanced) Wavelet Transformed Barbara (Actual)

Pipelined ADC Design. Mathematical Model for Ideal Pipelined ADC. Sources of Errors

Analysis of SDR GNSS Using MATLAB

Fitting Signals into Given Spectrum Modulation Methods

ECE 333: Introduction to Communication Networks Fall Lecture 4: Physical layer II

Functional Testing. approach. In this paper, we discuss the effect of phase delay on the. The mixed-signal BIST architecture, illustrated in Fig.

Sensors & Transducers 2015 by IFSA Publishing, S. L.

Lecture 13: DUART serial I/O, part I

Continuous-Time Delta-Sigma. Shifting Dynamic Element Matching

X-Bar and S-Squared Charts

Intermediate Information Structures

Electronics A/D and D/A converters

Introduction to CPM-OFDM: An Energy Efficient Multiple Access Transmission Scheme

Analog to digital and digital to analog converters

Harnessing oversampling in correlation-coded OTDR

SQUID-based Readout Schemes for Microcalorimeter Arrays

CHAPTER 6 IMPLEMENTATION OF DIGITAL FIR FILTER

Reducing Power Dissipation in Complex Digital Filters by using the Quadratic Residue Number System Λ

ELEC 204 Digital Systems Design

Design and Construction of a Three-phase Digital Energy Meter

IEEE Protocol Implementation And Measurement Of Current Consumption by Rajan Rai

E X P E R I M E N T 13

The Fast Haar Wavelet Transform for Signal & Image Processing

CP 405/EC 422 MODEL TEST PAPER - 1 PULSE & DIGITAL CIRCUITS. Time: Three Hours Maximum Marks: 100

INCREASE OF STRAIN GAGE OUTPUT VOLTAGE SIGNALS ACCURACY USING VIRTUAL INSTRUMENT WITH HARMONIC EXCITATION

Voice Command Recognition System Based on MFCC and VQ Algorithms

Delta- Sigma Modulator based Discrete Data Multiplier with Digital Output

Resolution. Learning Objectives. What are the four types of resolution?

FLEXIBLE ADC: A DITHER AND OVERSAMPLING BASED SOLUTION TO IMPROVE THE PERFORMANCE OF ADC SYSTEMS

A Simplified Method for Phase Noise Calculation

Application of Image Fusion to Wireless Image Transmission

HB860H 2-phase Hybrid Servo Drive

A Study of Implementation of Digital Signal Processing for Adaptive Array Antenna

A GHz Constant KVCO Low Phase Noise LC-VCO and an Optimized Automatic Frequency Calibrator Applied in PLL Frequency Synthesizer

Experimental Noise Analysis of Reed Switch Sensor Signal under Environmental Vibration

EMPIRICAL MODE DECOMPOSITION IN AUDIO WATERMARKING BY USING WAVELET METHOD

Analog to Digital Converters

IMPLEMENTING LOUDNESS MODELS IN MATLAB. J. Timoney, T. Lysaght Marc Schoenwiesner L. McManus

CAEN Tools for Discovery

Design Considerations for Direct RF Sampling Receiver in GNSS Environment

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

Enhanced Performance Fully-Synthesizable ADC for Efficient Digital Voltage-Mode Control

OPTIMIZATION OF RNS FIR FILTERS FOR 6-INPUTS LUT BASED FPGAS

Design of FPGA Based SPWM Single Phase Inverter

Fundamentals of Data Converters. DAVID KRESS Director of Technical Marketing

Geometrical Optics Fiber optics

SELEX Elsag. 5/18/2012 R. Pucci SDR 12 WinnComm 1

Modelig the Curret Profile Switchig capacitace is oe of the factors that determie dyamic power cosumptio. Power estimatio tools ca be categorized by t

GENERATE AND MEASURE STANDING SOUND WAVES IN KUNDT S TUBE.

Spread Spectrum Signal for Digital Communications

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

A Study on Performance Analysis for Error Probability in SWSK Systems

Potential of SiC for Automotive Power Electronics. Departement Vehicle Electronics Fraunhofer IISB Page 1

TMCM BLDC MODULE. Reference and Programming Manual

Summary of Random Variable Concepts April 19, 2000

A New 3-Bit Integrating Time to Digital Converter Using Time to Voltage Conversion Technique

Indicator No mark Single preset Dual preset DIN W144 H72mm DIN W48 H96mm No mark DIN W72 H72mm (4 digit) (6 digit) Counter/Timer

Making sure metrics are meaningful

By: Pinank Shah. Date : 03/22/2006

MEASUREMENT AND CONTORL OF TOTAL HARMONIC DISTORTION IN FREQUENCY RANGE 0,02-10KHZ.

SEVEN-LEVEL THREE PHASE CASCADED H-BRIDGE INVERTER WITH A SINGLE DC SOURCE

A New Peak Detection Method for Single or Three-Phase Unbalanced Sinusoidal Signals

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

A SELECTIVE POINTER FORWARDING STRATEGY FOR LOCATION TRACKING IN PERSONAL COMMUNICATION SYSTEMS

Transcription:

Itroductio to Digital Data Acuisitio: Samplig Physical world is aalog Digital systems eed to Measure aalog uatities Switch iputs, speech waveforms, etc Cotrol aalog systems Computer moitors, automotive egie cotrol, etc Aalog-to-digital: A/D coverter (ADC) Example: CD recordig Digital-to-aalog: D/A coverter (DAC) Example: CD playback CSE/EE 474 1

A little backgroud For periodic waveforms, the duratio of the waveform before it repeats is called the period of the waveform 3 Freuecy the rate at which a regular vibratio patter repeats itself (freuecy = 1/period) 4 CSE/EE 474

Freuecy of a Waveform The uit for freuecy is cycles/secod, also called Hertz (Hz). The freuecy of a waveform is eual to the reciprocal of the period. 5 Freuecy of a Waveform Examples: freuecy = 10 Hz period =.1 (1/10) secods freuecy = 100 Hz period =.01 (1/100) secods freuecy = 61.6 Hz (middle C) period =.00386 (1/ 61.6) secods 6 CSE/EE 474 3

Waveform Samplig To represet waveforms i digital systems, we eed to digitize or sample the waveform. side effects of digitizatio: itroduces some oise limits the maximum upper freuecy rage 7 Samplig Rate The samplig rate (SR) is the rate at which amplitude values are digitized from the origial waveform. CD samplig rate (high-uality): SR = 44,100 samples/secod medium-uality samplig rate: SR =,050 samples/secod phoe samplig rate (low-uality): SR = 8,19 samples/secod 8 CSE/EE 474 4

Samplig Rate Higher samplig rates allow the waveform to be more accurately represeted 9 Digital Data Acuisitio Data Represetatio - Digital vs. Aalog Aalog-to-Digital Coversio Number Systems Biary Numbers Biary Arithmetic Samplig & Aliasig 10 CSE/EE 474 5

Aalog-to-Digital Coversio Coverts aalog voltages to biary itegers. Aalog Voltage Samplig ADC Biary Itegers (0s & 1s) 1.5 1 Voltage 0.5 0-0.5-1 -1.5 0 1 3 4 5 6 7 8 9 Time 11 Aalog-to-Digital Coversio ADC calibratio Calibratio Curve ( 3 bit ADC) Iteger Code 7 6 5 4 3 1 0 0 0.5 1.0 1.5.0.5 3.0 3.5 Aalog Voltage 1 CSE/EE 474 6

Aalog-to-Digital Coversio Iput Rage Uipolar: ( 0, V ADCMAX ) Bipolar: ( -V ADCMAX, +V ADCMAX ) (Nomial Rage) Clippig: If V IN > V ADCMAX, the V OUT = V ADCMAX V ADCMAX time -V ADCMAX 13 Aalog-to-Digital Coversio Quatizatio Iterval (Q) bit ADC, the iput rage is divided ito -1 itervals. Iteger Code 7 6 5 4 3 bit ADC: Q V V ADCMAX = 1 Iteger Code 7 6 5 4 ADC mi 3 1 0 0 0.5 1.0 1.5.0.5 3.0 3.5 Aalog Voltage 3 1 0 - -1.5-1.0 -.5 0.0 0.5 1.0 1.5 Aalog Voltage 14 CSE/EE 474 7

Aalog-to-Digital Coversio Voltage to Iteger Code bit ADC Voltage: V ADCmi Q V IN V ADCMAX Code: 0-1 Positive Codig: V Code = Roud - -1-1 -1 IN V Q ADC mi Positive ad Negative Codig: Code = Roud VIN Q 15 Why A/D-coversio? Aalog iput Aalog sigal processig ADC DAC Aalog sigal Processig Aalog output Sigle chip Digital sigal processig Sigals are aalog by ature ADC ecessary for DSP Digital sigal processig provides: Close to ifiite SNR Low system cost Repetitive system ADC bottle ecks: Dyamic rage Coversio speed Power cosumptio 16 CSE/EE 474 8

A/D-coverter basics t t t T S v f IN IN, A ( t) f Ati-alias filter f IN v IN ( t) f Sample & hold Quatizer fin D OUT [ ] F S / FS f Time cotiuos Amplitude cotiuos F S Time discrete Amplitude cotiuos Time discrete Amplitude discrete D D ideal OUT real OUT Samplig clock [ ] = Gideal vin ( Ts) + ( ) [ ] = G ( 1+ ε ) v ( Ts) + ( ) + e ( ) + e ( ) + e ( ) + e ( ) ideal IN offset oise jitter distortio 17 The Theory Samplig theory is a subset of commuicatios theory Same basic math Wat to record sigal, ot oise Quatizatio: Coversio from aalog to discrete values Codig: Assigig a digital word to each discrete value Thermometer code, Gray code... Quatizatio adds oise Aalog sigal is cotiuous Digital represetatio is approximate Differece (error) is oiselike 18 CSE/EE 474 9

Some termiology Resolutio (): Number of states i bits Example: A 3-bit A/D Full-scale rage (FSR): The iput or output voltage rage Example: ADC iputs outside the FSR are always 111 or 000 Step size (Q): FSR Q RMS uatizatio error: 1 RMS value of triagle wave http://www.aalog.com/media/e/traiig-semiars/tutorials/mt-001.pdf 19 Quatizatio oise N-bit coverter: δ = V FSR N 0 CSE/EE 474 10

Quatizatio oise V Noise eergy: Q( RMS ) = Sigal eergy: V i ( RMS ) 1 δ δ / VQ δ / dv N Q = δ 1 SNR for ideal ADC: V SNR = 0 log( V i( RMS ) Q( RMS ) N SNR = 0log( = δ SNR = 6. 0 N + 1. 76[ db] ) 3 ) 1 Quatizatio oise V Noise eergy: Q( RMS ) = Sigal eergy: V i ( RMS ) 1 δ δ / VQ δ / dv N Q = δ 1 SNR for ideal ADC: V SNR = 0 log( V i( RMS ) Q( RMS ) N SNR = 0log( = δ SNR = 6. 0 N + 1. 76[ db] ) 3 ) CSE/EE 474 11

D/A coverters Easier to desig ad use tha A/ Ds Types Weighted curret source DAC R R DAC Multiplyig DAC Need to smooth the output 3 You will use DACs DAC specs are tricky! Check the errors Check the settlig Vedors use deceptive advertisig 16-bit DAC!!! But errors may give oly 1- bit accuracy You have to figure this out from the specs Datel Data Acuisitio ad Coversio Hadbook 4 CSE/EE 474 1

A/D coverters Hard to desig Cotai digital parts Ecoders FSMs May types Successive approximatio Flash Pipelied-flash Itegratig Sigma-delta Charge balaced Foldig Others 5 Example: Flash A/D Advatages Ultra-fast Disadvatages High power Low resolutio Metastability Sample/hold improves performace 6 CSE/EE 474 13

Example: Successive approximatio ADC Advatages Low power High resolutio Disadvatages Slow Problem: DAC must settle to LSB accuracy at every step Datel Data Acuisitio ad Coversio Hadbook 7 Samplig Quatizig a sigal 1) We sample it ) We ecode the samples Questios: How fast do we sample? How do we so this i hardware? What resolutio do we eed? Datel Data Acuisitio ad Coversio Hadbook 8 CSE/EE 474 14

Shao's samplig theorem If a cotiuous, bad-limited sigal cotais o freuecy compoets higher tha f c, the we ca recover the origial sigal without distortio if we sample at a rate of at least f c samples/ secod f c is called the Nyuist rate Real life Sample at.5f c or faster Sample clock should ot be coheret with the iput sigal http://www.videomicroscopy.com/vacouverlecture/yuist.htm 9 Freuecy domai aalysis Take the Fourier Trasform of the sigal Shows a sigal s freuecy compoets Udersampled freuecy compoets fold back! Datel Data Acuisitio ad Coversio Hadbook 30 CSE/EE 474 15

Samplig speed versus bit resolutio Hardware issues Samplig speed depeds o bit resolutio Thik time costats Examples: 8-bit resolutio takes 5.5τ 1-bit resolutio takes 8.3τ Settlig error t = e τ 16-bit resolutio takes 11τ Datel Data Acuisitio ad Coversio Hadbook 31 Nyuist Shao samplig theorem A theorem, developed by Harry Nyuist, ad prove by Claude Shao, which states that a aalog sigal waveform may be uiuely recostructed, without error, from samples take at eual time itervals. 3 CSE/EE 474 16

Nyuist Shao samplig theorem The samplig rate must be eual to, or greater tha, twice the highest freuecy compoet i the aalog sigal. Stated differetly: The highest freuecy which ca be accurately represeted is oe-half of the samplig rate. 33 Nyuist Theorem ad Aliasig Nyuist Theorem: We ca digitally represet oly freuecies up to half the samplig rate. Example: CD: SR=44,100 Hz Nyuist Freuecy = SR/ =,050 Hz Example: SR=,050 Hz Nyuist Freuecy = SR/ = 11,05 Hz 34 CSE/EE 474 17

Nyuist Theorem ad Aliasig Freuecies above Nyuist freuecy "fold over" to soud like lower freuecies. This foldover is called aliasig. Aliased freuecy f i rage [SR/, SR] becomes f': f' = f SR/ 35 Nyuist Theorem ad Aliasig f' = f - SR/ Example: SR = 0,000 Hz Nyuist Freuecy = 10,000 Hz f = 1,000 Hz --> f' = 8,000 Hz f = 18,000 Hz --> f' =,000 Hz f = 0,000 Hz --> f' = 0 Hz 36 CSE/EE 474 18

Nyuist Theorem ad Aliasig Graphical Example 1a: SR = 0,000 Hz Nyuist Freuecy = 10,000 Hz f =,500 Hz (o aliasig) 37 Nyuist Theorem ad Aliasig Graphical Example 1b: SR = 0,000 Hz Nyuist Freuecy = 10,000 Hz f = 5,000 Hz (o aliasig) (left ad right figures have same freuecy, but have differet samplig poits) 38 CSE/EE 474 19

Nyuist Theorem ad Aliasig Graphical Example : SR = 0,000 Hz Nyuist Freuecy = 10,000 Hz f = 10,000 Hz (o aliasig) 39 Nyuist Theorem ad Aliasig Graphical Example : BUT, if sample poits fall o zero-crossigs the soud is completely cacelled out 40 CSE/EE 474 0

Nyuist Theorem ad Aliasig Graphical Example 3: SR = 0,000 Hz Nyuist Freuecy = 10,000 Hz f = 1,500 Hz, f' = 7,500 41 Nyuist Theorem ad Aliasig Graphical Example 3: Fittig the simplest sie wave to the sampled poits gives a aliased waveform (dotted lie below): 4 CSE/EE 474 1

Method to reduce aliasig oise Iput voltage = V Use low pass filter to remove high freuecy before samplig e.g. Max fre =0KHz Gai(dB) 0-3dB cut off Low Pass Filter: f corer =0KHz ADC Samplig at 40KHz Fre. output code = 0110001 0100010 0100100 0101011 : : : 43 CSE/EE 474