Measurement and Instrumentation. Sampling, Digital Devices, and Data Acquisition

Similar documents
Analog to Digital Converters (ADCs)

Digital Signal 2 N Most Significant Bit (MSB) Least. Bit (LSB)

EE 521: Instrumentation and Measurements

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

Sistemas de Aquisição de Dados. Mestrado Integrado em Eng. Física Tecnológica 2016/17 Aula 3, 3rd September

Digital Electronic Meters

Analog to Digital Conversion

Data Converter Fundamentals

Analog Digital Sampling & Discrete Time Discrete Values & Noise Digital-to-Analog Conversion Analog-to-Digital Conversion

Introduction to digital systems. Juan P Bello

LECTURE 28. Analyzing digital computation at a very low level! The Latch Pipelined Datapath Control Signals Concept of State

EECE 2510 Circuits and Signals, Biomedical Applications Final Exam Section 3. Name:

EE247 Lecture 16. Serial Charge Redistribution DAC

Edited By : Engr. Muhammad Muizz bin Mohd Nawawi

Digital Circuits, Binary Numbering, and Logic Gates Cornerstone Electronics Technology and Robotics II

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) SUMMER 14 EXAMINATION Model Answer

Q. 1 Q. 25 carry one mark each.

Sistemas de Aquisição de Dados. Mestrado Integrado em Eng. Física Tecnológica 2016/17 Aula 4, 10th October

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques

Analog and Telecommunication Electronics

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques

Successive Approximation ADCs

ELEN E4810: Digital Signal Processing Topic 11: Continuous Signals. 1. Sampling and Reconstruction 2. Quantization


of Digital Electronics

Department of Mechanical and Aerospace Engineering. MAE334 - Introduction to Instrumentation and Computers. Final Examination.

EECE 2150 Circuits and Signals, Biomedical Applications Final Exam Section 3

CSCI 255. S i g n e d N u m s / S h i f t i n g / A r i t h m e t i c O p s.

Chapter 5 Synchronous Sequential Logic

Nyquist-Rate D/A Converters. D/A Converter Basics.

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each)

Digital Signal Processing

Mark Redekopp, All rights reserved. Lecture 1 Slides. Intro Number Systems Logic Functions

Image Acquisition and Sampling Theory

CPE100: Digital Logic Design I

ETSF15 Analog/Digital. Stefan Höst

Chapter 2. Signals. Static and Dynamic Characteristics of Signals. Signals classified as

D/A-Converters. Jian-Jia Chen (slides are based on Peter Marwedel) Informatik 12 TU Dortmund Germany

Number Representation and Waveform Quantization

8/13/16. Data analysis and modeling: the tools of the trade. Ø Set of numbers. Ø Binary representation of numbers. Ø Floating points.

D/A Converters. D/A Examples

Switched-Capacitor Circuits David Johns and Ken Martin University of Toronto

CHAPTER 7. Exercises 17/ / /2 2 0

Exam for Physics 4051, October 31, 2008

A Nonuniform Quantization Scheme for High Speed SAR ADC Architecture

Summary Last Lecture

Lab 4 RC Circuits. Name. Partner s Name. I. Introduction/Theory

Data byte 0 Data byte 1 Data byte 2 Data byte 3 Data byte 4. 0xA Register Address MSB data byte Data byte Data byte LSB data byte

ECE Branch GATE Paper The order of the differential equation + + = is (A) 1 (B) 2

Prelaboratory. EE223 Laboratory #1 Digital to Analog Converter

ENGR-4300 Fall 2008 Test 3. Name SOLUTION. Section 1(MR 8:00) 2(TF 2:00) (circle one) Question I (20 points) Question II (15 points)

Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2.

ECE20B Final Exam, 200 Point Exam Closed Book, Closed Notes, Calculators Not Allowed June 12th, Name

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

on candidate s understanding. 7) For programming language papers, credit may be given to any other program based on equivalent concept.

Lecture 340 Characterization of DACs and Current Scaling DACs (5/1/10) Page 340-1

Sensor Characteristics

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value

Roger L. Tokheim. Chapter 8 Counters Glencoe/McGraw-Hill

Nyquist-Rate A/D Converters

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

The Design Procedure. Output Equation Determination - Derive output equations from the state table

Digital Techniques. Figure 1: Block diagram of digital computer. Processor or Arithmetic logic unit ALU. Control Unit. Storage or memory unit

EECE 2150 Circuits and Signals Final Exam Fall 2016 Dec 16

8/19/16. Fourier Analysis. Fourier analysis: the dial tone phone. Fourier analysis: the dial tone phone

EEO 401 Digital Signal Processing Prof. Mark Fowler

Four Important Number Systems

Week No. 06: Numbering Systems

ENGIN 112 Intro to Electrical and Computer Engineering

LABORATORY MANUAL MICROPROCESSOR AND MICROCONTROLLER

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER /2017

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date.

Digital Electronics Final Examination. Part A

LOGIC GATES. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

Sample Test Paper - I

Slide Set Data Converters. Digital Enhancement Techniques

Total Time = 90 Minutes, Total Marks = 100. Total /10 /25 /20 /10 /15 /20

SUMMER 18 EXAMINATION Subject Name: Principles of Digital Techniques Model Answer Subject Code:

Gurley Model A58 Absolute Encoder

2013 Technological Studies. Advanced Higher. Finalised Marking Instructions

INTRODUCTION TO DELTA-SIGMA ADCS

Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4

(A) (B) (D) (C) 1.5. Amplitude (volts) 1.5. Amplitude (volts) Time (seconds) Time (seconds)

Digital Circuits ECS 371

From Fourier Series to Analysis of Non-stationary Signals - II

CSCI 2150 Intro to State Machines

14:332:231 DIGITAL LOGIC DESIGN. Why Binary Number System?

You should be able to demonstrate and show your understanding of:

Digital Electronics. Part A

Introduction to Digital Logic Missouri S&T University CPE 2210 Number Systems

Correlator I. Basics. Chapter Introduction. 8.2 Digitization Sampling. D. Anish Roshi

74LS393 Dual 4-Bit Binary Counter

EXPERIMENT 5A RC Circuits

EE 435. Lecture 26. Data Converters. Differential Nonlinearity Spectral Performance

EE 230 Lecture 40. Data Converters. Amplitude Quantization. Quantization Noise

ENGR-2300 Electronic Instrumentation Quiz 3 Fall 2013 Name Section. Question III (25 Points) Question IV (25 Points) Total (100 Points)

5 8 LED MAX6950/MAX6951 MAX6950/MAX6951 SPI TM QSPI TM MICROWIRE TM 7 LED LED 2.7V MAX LED MAX LED 16 (0-9 A-F) RAM 16 7 LED LED

Chemical Instrumentation CHEM*3440 Mid-Term Examination Fall 2005 TUESDAY, OCTOBER 25, 2005

Transcription:

2141-375 Measurement and Instrumentation Sampling, Digital Devices, and Data Acquisition

Basic Data Acquisition System Analog Form Analog Form Digital Form Display Physical varialble Sensor Signal conditioning Analog to Digital Converter Storage Computer Advantages of Data Acquisition System Efficient in managing a large amount of data Rapid and intelligent data processing using digital computer

Numbering System: Binary Code The digital signals are formed by only two voltage values HI and LOW, or level 1 and level 0 and it is called binary digital signal. Therefore, the information contained in the digital signal is represented by the combination of the numbers 1 and 0. Binary numbers are comprised of the digits 0 and 1 and are based on powers of 2. Each digit of a binary number, 0 or 1, is called a bit. Four bits together is a nibble, 8 bits is called a byte. (8, 16, 32, 64 bit arrangements are also called words) 1010 1101 0110 1010 MSB nibble byte LSB word The left most bit is called the Least Significant Bit (LSB) The right most bit is called the Most Significant Bit (MSB).

Numbering Conversion Binary to Decimal Conversion The conversion of a binary number to a decimal number may be accomplished by taking the successive powers of 2 and summing for the result. 0 1 0 1 0x2 3 + 1x2 2 + 0x2 1 + 1x2 0 0 + 4 + 0 + 1 = 5 10

Numbering Conversion Decimal to Binary Conversion The conversion of a decimal number to a binary number is accomplished by successively dividing the decimal number by 2 and recording the remainder as 0 or 1 Remainder 62 2 = 31 + 0 LSB 31 2 = 15 + 1 15 2 = 7 + 1 7 2 = 3 + 1 0011 1110 2 3 2 = 1 + 1 1 2 = 0 + 1 MSB

Logic Level In most digital systems, the state 1 corresponds to a voltage range from 2 V to 5 V while the state 0 corresponds to a voltage range from a fraction of a volt to 1 volts. 5 V "1" generated output 2 V 0 "0" generated output

Sampling Concepts Amplitude (V) 15 10 5 0-5 -10-15 Amplitude (V) 15 10 5 0-5 -10-15 1 δt 2 3 4 Ν δt 5 6 7 8 N = 10 9 0 1 2 3 4 5 6 7 8 9 10 Time (s) Analog signal 0 1 2 3 4 5 6 7 8 9 10 Time (s) Discrete time signal Sampling is a process that generate a discrete time or digital signal from a continuous time signal The fundamental question therefore is how to sample a continuous time signal so that the resulting sampled signal retains the information of the original signal.

Discrete Fourier Transform Discrete Fourier Transform (DFT) of y r y r = y( rδt) r =1,2,..., N Y ( f k ) = 2 N N r= 1 y( rδt) e i2πrk / N k = 1,2,..., N 2 where f k = kδf and δf 1 = N δ t = fs N

Discrete Fourier Transform Example: Estimate the amplitude spectrum or frequency content of the discrete data taken from y(t) = 10 sin 2πt using a time increment of 0.125 s for the duration of 1 s. Known: δt = 0.125 s or f s = 8 Hz Solution:

Discrete Fourier Transform Discrete Data Set for y(t) = 10 sin2πt r y(r δt ) 1 7.071 2 10.000 3 7.071 4 0.000 5-7.071 6-10.000 7-7.071 8 0.000 A mplitude HVL Discrete Fourier Transform of y(t) 20 15 10 5 k f k (Hz) Y (f k ) Y (f k ) 1 1-10i 10 2 2 0 0 3 3 0 0 4 4 0 0 0 0 1 2 3 4 Frequency HHzL

Sample Rate In order to be able to reconstruct the original signal from the sampled signal the following two related constraints must be satisfied. 1. The original signal must be band-limited (i.e. must have a finite frequency content) 2. The samples must be taken with a sampling frequency which is higher than twice the highest frequency present in the original signal. (Sampling Theorem or the Nyquist-Shannon Sampling Theorem) Sampling rate: f s = 1/ δt The sampling rate requires fs 2 f m where f m is the maximum frequency in the analog signal Or in terms of the sample time increment 1 δt 2 f m

Sample Rate: Alias Frequency When the sampling frequency is less than twice the bandwidth of a signal the time continues signal can not reconstructed from the samples. Original 10-Hz sine wave f s = 100 Hz f s = 27 Hz f s = 12 Hz

Amplitude Ambiguity Another problem appears when Nδt is not coincident with an integer multiple of the fundamental period of y(t). The problem occur by the truncation of a complete cycle of the signal. 8T Ν = 256 δt = 0.3125 s δf =12.5 Hz 10T Ν = 1024 δt = 0.1 ms δf = 9.8 Hz

Digital to Analog Conversion (D/A) The digital to analog converter (D/A) is an M-bit digital device tht converts a digital binary word into an analog voltage. V ref A 16R B 8R C 4R D 2R Digital input - + R V out In case of A = 1 and B,C and D = 0, V o = V i /16 B = 1 and A,C and D = 0, V o = V i /8 C = 1 and A,B and D = 0, V o = V i /4 D = 1 and A,B and C = 0, V o = V i /2 Here V i = V ref ; An example of D/A converter

Digital to Analog Conversion (D/A) Digital inputs D C B A 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 0 1 Analog output 0 V i /16 2(V i 3(V i 4(V i 5(V i 6(V i 7(V i 8(V i 9(V i 10(V i 11(V i 12(V i 13(V i 14(V i 15(V i Summary: Full scale V ref = k 2 N V full scale = k (2 N -1)

Analog to Digital Converter (A/D) The analog to digital converter (A/D) is a device that receives as its input the analog signal along with instructions regarding the sampling rate and scaling parameters corresponding to the desired resolution of he system. The output of the A/D is a binary number at each sampling time. Reference Voltage Signal (V) Analog Signal 8-bit ADC Sampling Signal D7 D6 D5 D4 D3 D2 D1 D0 1 2 3 4 5 6 7 8 9 Time (s) MSB LSB 0011 0011 0101 1111 0111 1000 1010 0001 1100 1010 1100 1010 1000 0010 0101 1010 0100 1000

Analog to Digital Converter (ADC) Resolution The resolution of A/D converter is defined in terms of the smallest voltage increment that will cause a bit change (LSB). Reference voltage Resolution = N 2 N the number of the output bit Quantization error The limited resolution of A/D converter brings about the possibility of an error between the actual input analog value and the binary value assigned by the A/D converter Conversion error The total error can be calculated from all elementary errors occurring during the conversion, e.g. hysteresis, linearity, sensitivity etc.

Analog to Digital Converter (ADC) Binary output 111 110 101 100 011 010 001 000 ideal convesion 2 3 resolution A/D will give 010 digital code. 0 1 2 3 4 5 6 7 8 Binary output 111 110 101 100 011 010 001 000 1.5 2.5 ideal convesion resolution A/D will give 010 digital code. 0 1 2 3 4 5 6 7 8 Analog input (V) Analog input (V) Absolute Quantization error = 1 resolution Absolute Quantization error = ±1/2 resolution

Analog to Digital Converter (ADC) Example: The A/D converter with the following specifications listed to be used in an environment in which the A/D converter temperature may change by ±10 o C. Estimate the contribution of conversion and quantization errors to the uncertainty in the digital representation of an analog voltage by the converter. A/D converter Reference voltage 0 10 V The number of bits 12 bits Linearity ±3 bits Temperature drift 1 bit/5 o C Solution: u = u + u 2 2 A/ D 0 c u0 ½ Resolution = ½ Q uc e + 2 2 l e T

Comparator V+>V-; Vo = V(1) Logic high V+<V-; Vo = V(0) Logic low Vo V(1) V in + Vo V ref V(0) V ref V in Vo V ref + Vo V(1) V in V(0) V in V ref

Successive Approximation A/D Ex. To determine a number between 0 511 (9 bit binary), given, the number to be determined is 301 No. 1 2 3 4 5 6 7 8 9 Estimate 256 1 0000 0000 256+128 = 384 1 1000 0000 256+64 = 320 1 0100 0000 256+32 = 288 1 0010 0000 288+16 = 304 1 0011 0000 288+8 = 296 1 0010 1000 296+4 = 300 1 0010 1100 300+2 = 302 1 0010 1110 300+1 = 301 1 0010 1101 Results V in > V AX < < > < > > < Finished

Successive Approximation A/D V + in Comp. - V AX Compare the input voltage to the internally generated voltage D/A The most common A/D for general applications Conversion time is fixed (not depend on the signal magnitude) and relatively fast T C = N Clock period where N is the number of bits Digital output Full scale Clock Succesive Approximation Register Control circuit D/A output 3 4 1 2 1 4 Full scale Full scale Full scale V in V AX 1 2 3 4 5 6 7 8 Block diagram Clock period

Successive Approximation A/D Successive approximation method

Dual Slope A/D C C V in V ref R - + V out V in V ref R - + V out Phase 1: charging C with the unknown input for a given time. Assume V c (0) = 0 VinT Vout1 = RC where T is the charging time Charge Discharge time Phase 2: discharging C with the reference voltage until the output voltage goes to zero. Vref Tx V out = + V RC find T x at which V out becomes zero T = x V in V ref T out1 V out Phase 1 Phase 2

Dual-slope Digital Voltmeter 0 Conversion time Charge Discharge time Small input voltage Large input voltage Accuracy does not depend on R C and Clock (high accuracy) Relatively slow Capable to reject noise V out T = T + C const T variable V in R - + V ref C V out Zero crossing detector - + count Display Counter reset Clock generator Control logic

Ex A dual slope A/D has R= 100 kω and C = 0.01 µf. The reference voltage is 10 volts and the fixed integration time is 10 ms. Find the conversion time for a 6.8 volt input. T V T (6.8 V)(10 ms) (10 V) in x = = = Vref 6.8 ms The total conversion time is then 10 ms + 6.8 ms = 16.8 ms Ans Ex Find the successive approximation A/D output for a 4-bit converter to a 3.217 volt input if the reference is 5 volts. (1) Set D 3 = 1 V AX = 5/2 = 2.5 Volts V in > V AX leave D 3 = 1 (2) Set D 2 = 1 V AX = 5/2 + 5/4 = 3.75 Volts V in < V AX reset D 2 = 0 (3) Set D 1 = 1 V AX = 5/2 +5/8= 3.125 Volts V in > V AX leave D 1 = 1 (4) Set D 0 = 1 V AX = 5/2+5/8+5/16 = 3.4375 Volts V in < V AX reset D 0 = 0 By this procedure, we find the output is a binary word of 1010 2 Ans