Analog-Digital Interface

Similar documents
EE 351M Digital Signal Processing

Ch 5 Hardware Components for Automation

Signal Characteristics

Analog to Digital Conversion

Analogue Interfacing. What is a signal? Continuous vs. Discrete Time. Continuous time signals

ESE 531: Digital Signal Processing

ELG3336: Converters Analog to Digital Converters (ADCs) Digital to Analog Converters (DACs)

Digital Signal Processing +

II Year (04 Semester) EE6403 Discrete Time Systems and Signal Processing

! Analog VLSI Circuit Design. ! Convex Optimization. " System Hierarchical Optimization. ! Biomedical Electronics. ! Biometric Data Acquisition

ESE 531: Digital Signal Processing

Analog to Digital Converters

EECS 373 Design of Microprocessor-Based Systems

EECS 373 Design of Microprocessor-Based Systems

Continuous vs. Discrete signals. Sampling. Analog to Digital Conversion. CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

Introduction to Electronic Circuit for Instrumentation

Electronics A/D and D/A converters

UNIT III Data Acquisition & Microcontroller System. Mr. Manoj Rajale

ELG3336 Design of Mechatronics System

Chapter 2 Analog-to-Digital Conversion...

Measurement, Sensors, and Data Acquisition in the Two-Can System

Introduction to signals and systems

CMPT 318: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

P a g e 1. Introduction

Sampling and Reconstruction of Analog Signals

PHYS225 Lecture 22. Electronic Circuits

Theoretical 1 Bit A/D Converter

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

The need for Data Converters

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

ELG4139: Converters Analog to Digital Converters (ADCs) Digital to Analog Converters (DACs)

Chapter 5: Signal conversion

Figure 1: Block diagram of Digital signal processing

The quality of the transmission signal The characteristics of the transmission medium. Some type of transmission medium is required for transmission:

DIGITAL SIGNAL PROCESSING. Chapter 1 Introduction to Discrete-Time Signals & Sampling

Digital Design Laboratory Lecture 7. A/D and D/A

Laboratory Assignment 1 Sampling Phenomena

MECE 3320 Measurements & Instrumentation. Data Acquisition

Media Devices: Audio. CTEC1465/2018S Computer System Support

Cyber-Physical Systems ADC / DAC

Analyzing A/D and D/A converters

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering

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

Data Converters. Dr.Trushit Upadhyaya EC Department, CSPIT, CHARUSAT

Hideo Okawara s Mixed Signal Lecture Series. DSP-Based Testing Fundamentals 6 Spectrum Analysis -- FFT

Analog and Telecommunication Electronics

Pulse Code Modulation

Analog and Telecommunication Electronics

System analysis and signal processing

Lab.3. Tutorial : (draft) Introduction to CODECs

MULTIMEDIA SYSTEMS

SAMPLING THEORY. Representing continuous signals with discrete numbers

DSP Project. Reminder: Project proposal is due Friday, October 19, 2012 by 5pm in my office (Small 239).

Based with permission on lectures by John Getty Laboratory Electronics II (PHSX262) Spring 2011 Lecture 9 Page 1

Embedded Systems Lecture 2: Interfacing with the Environment. Björn Franke University of Edinburgh

EE 421L Digital Electronics Laboratory. Laboratory Exercise #9 ADC and DAC

Lecture 3: Sensors, signals, ADC and DAC

APPLICATION BULLETIN PRINCIPLES OF DATA ACQUISITION AND CONVERSION. Reconstructed Wave Form

Advanced Digital Signal Processing Part 2: Digital Processing of Continuous-Time Signals

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

Microcomputer Systems 1. Introduction to DSP S

Terminology (1) Chapter 3. Terminology (3) Terminology (2) Transmitter Receiver Medium. Data Transmission. Direct link. Point-to-point.

3D Distortion Measurement (DIS)

EE482: Digital Signal Processing Applications

Sensing. Autonomous systems. Properties. Classification. Key requirement of autonomous systems. An AS should be connected to the outside world.

! Where are we on course map? ! What we did in lab last week. " How it relates to this week. ! Sampling/Quantization Review

Receiver Architecture

ENGR 210 Lab 12: Sampling and Aliasing

Spectrum Analysis: The FFT Display

TE 302 DISCRETE SIGNALS AND SYSTEMS. Chapter 1: INTRODUCTION

Chapter 3 Data Transmission COSC 3213 Summer 2003

CHEMICAL ENGINEERING 2I03

Fundamentals of Data Converters. DAVID KRESS Director of Technical Marketing

Design IV. E232 Spring 07

Data Communication. Chapter 3 Data Transmission

Communications IB Paper 6 Handout 3: Digitisation and Digital Signals

ni.com Sensor Measurement Fundamentals Series

Speech, music, images, and video are examples of analog signals. Each of these signals is characterized by its bandwidth, dynamic range, and the

Lecture 2 Review of Signals and Systems: Part 1. EE4900/EE6720 Digital Communications

Dr. Cahit Karakuş ANALOG SİNYALLER

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

EITF25 Internet Techniques and Applications L2: Physical layer. Stefan Höst

Telecommunication Electronics

Interfacing a Microprocessor to the Analog World

Embedded System Hardware

Speech Coding in the Frequency Domain

Analog and Telecommunication Electronics

Статистическая обработка сигналов. Введение

Digital to Analog Conversion. Data Acquisition

System on a Chip. Prof. Dr. Michael Kraft

Digital to Analog Converters (DAC) Adam Fleming Mark Hunkele 3/11/2005

PC-based controller for Mechatronics System

Chapter 7. Introduction. Analog Signal and Discrete Time Series. Sampling, Digital Devices, and Data Acquisition

Modulation is the process of impressing a low-frequency information signal (baseband signal) onto a higher frequency carrier signal

Applications of Linear Algebra in Signal Sampling and Modeling

!"!#"#$% Lecture 2: Media Creation. Some materials taken from Prof. Yao Wang s slides RECAP

Developer Techniques Sessions

Data acquisition and instrumentation. Data acquisition

Chapter 4. Digital Audio Representation CS 3570

Chapter 3. Data Transmission

Transcription:

Analog-Digital Interface Tuesday 24 November 15

Summary Previous Class Dependability Today: Redundancy Error Correcting Codes Analog-Digital Interface Converters, Sensors / Actuators Sampling DSP Frequency spectrum of signals 2

Computer Analog Interface Instructions (program) Environment Input (sensors) Output (actuators) Processor State (memory) Reality (analogical) Interface (analog-digital) Controller / Observer (digital) Everything in the physical world is an analog signal Sound Light Temperature Gravitational force 3

Small Computers Rule the Marketplace 4

Diversity of Devices 5

An Analog World Need to convert into electrical signals Transducers: device that converts a primary form of energy into a corresponding signal with a different energy form Primary Energy Forms: mechanical, thermal, electromagnetic, optical, chemical, etc. take form of a sensor or an actuator Sensor (e.g., thermometer) a device that detects/measures a signal or stimulus acquires information from the real world Actuator (e.g., heater) a device that generates a signal or stimulus 6

Transducers LED Valve Control Microphone/speakers Motor Control Microaccelerometer cantilever beam suspended mass Pressure Diaphragm (Upper electrode) Gyroscope (rotation) Lower electrode 7

Sensor Calibration Sensors can exhibit non-ideal effects offset: nominal output nominal parameter value nonlinearity: output not linear with parameter changes cross parameter sensitivity: secondary output variation with, e.g., temperature Calibration = adjusting output to match parameter analog signal conditioning look-up table digital calibration T = a + bv +cv 2, T= temperature; V=sensor voltage; Compensation remove secondary sensitivities must have sensitivities characterized can remove with polynomial evaluation P = a + bv + ct + dvt + ev 2, where P=pressure, T=temperature offset linear non-linear T3 Tuesday 24 November 15-30 -20-10 0 10 20 30 40 50 60 70 T1 T2 8

Going from Analog to Digital Physical Phenomena Voltage ADC Counts Engineering Units Sensor ADC Software Analog-to-Digital Converter (ADC, A/D, or A to D): a device that converts continuous signals to discrete digital numbers. Quantizing - breaking down analog value in a set of finite states Encoding - assigning a digital word or number to each state and matching it to the input signal 9

Sampling V Counts f (x) f sampled (x) t ADC reads periodic samples of the input and generates a binary value. T S 10

Workings of an A/D 11

Sampling Resolution Resolution Number of discrete values that represent a range of analog values Eg, 3-bit ADC, 8 values Range / 8 = Step Quantization Error How far off discrete value is from actual ½ LSB à Range / 16 Tuesday 24 November 15 12

Quantizing For an n-bit ADC, the number of possible states that the converter can output is: N = 2 n Analog quantization size: Q = (V max - V min ) / N Example: For a 0-10V signals and a n=3-bit A/D converter. N = 2 3 = 8 Analog quantization size: Q = (10V 0V) / 8 = 1.25V Output States Discrete Voltage Ranges (V) 0 0.00-1.25 1 1.25-2.50 2 2.50-3.75 3 3.75-5.00 4 5.00-6.25 5 6.25-7.50 6 7.50-8.75 7 8.75-10.0 13

Bit Weight Each bit is weighted with an analog value, such that a 1 in that bit position adds its analog value to the total analog value represented by the digital encoding. With: range = 10V n = 8 (number of states = 2 8 = 256) Digital Bit Bit Weight (V) 7 10/2 = 5 6 10/4 = 2.5 5 10/8 = 1.25 4 10/16 = 0.625 3 10/32 = 0.313 2 10/64 = 0.157 1 10/128 = 0.078 0 10/256 = 0.039 14

What range to use? Sampling Range V r+ V r+ V r V r Range Too Small t Range Too Big t V r+ V r Ideal Range t 15

Digital-to-Analog Converters Digital-to-Analog Converter (DAC, D/A or D to A): device for converting a digital (usually binary) code to an analog signal (current, voltage or charges). Digital-to-Analog Converters are the interface between the abstract digital world and the analog real life. Simple switches, a network of resistors, current sources or capacitors may implement this conversion. 17

Digital-to-Analog Resolution Poor Resolution (1 bit) Better Resolution (3 bits) Vout Vout Desired Analog signal Desired Analog signal 111 2 Volt. Levels 1 0 0 Digital Input Approximate output 8 Volt. Levels 000 001 010 011 100 101 110 Approximate output 110 101 100 011 010 001 000 Digital Input 18

Digital-to-Analog Output Smoothing Signal from DAC can be smoothed by a Low-pass filter Digital Input 0 bit Piece-wise Continuous Output Analog Continuous Output 011010010101010100101 101010101011111100101 000010101010111110011 010101010101010101010 111010101011110011000 100101010101010001111 n bit DAC Filter n th bit 19

Analog Circuits Most real-world signals are analog They are continuous in time and amplitude Analog circuits process these signals using Resistors Capacitors Inductors Amplifiers Analog signal processing examples Audio processing in FM radios Video processing in traditional TV sets 20

Limitations of Analog Signal Processing Accuracy limitations due to Component tolerances Undesired nonlinearities Limited repeatability due to Tolerances Changes in environmental conditions Temperature Vibration Sensitivity to electrical noise Limited dynamic range for voltage and currents Inflexibility to changes Difficulty of implementing certain operations Nonlinear operations Time-varying operations Difficulty of storing information 21

Digital Signal Processing Represent signals by a sequence of numbers Sampling or analog-to-digital conversions Perform processing on these numbers with a digital processor Digital signal processing Reconstruct analog signal from processed numbers Reconstruction or digital-to-analog conversion analog signal digital signal digital signal A/D DSP D/A analog signal Analog input analog output Digital recording of music Analog input digital output Touch tone phone dialing Digital input analog output Text to speech Digital input digital output Compression of a file on computer 22

Software Radio Antenna RF IF Baseband Bandpass Filter ADC/DAC DSP Variable Frequency Oscillator Local Oscillator (fixed) Antenna RF IF Baseband ADC/DAC DSP Antenna RF IF Baseband Local Oscillator (fixed) ADC/DAC DSP 23

Pros and Cons of Digital Signal Processing Pros Accuracy can be controlled by choosing word length Repeatable Sensitivity to electrical noise is minimal Dynamic range can be controlled using floating point numbers Flexibility can be achieved with software implementations Non-linear and time-varying operations are easier to implement Digital storage is cheap Digital information can be encrypted for security Price/performance and reduced time-to-market Cons Sampling causes loss of information A/D and D/A requires mixed-signal hardware Limited speed of processors Quantization and round-off errors 24

Sampling Rate Sampling Rate: frequency at which ADC evaluates analog signal What sample rate do we need? Too little: we can t reconstruct the signal we care about Too much: waste computation, energy, resources 25

Aliasing Aliasing: different frequencies are indistinguishable when they are sampled. For example, a 2 khz sine wave being sampled at 1.5 khz would be reconstructed as a 500 Hz (the aliased signal) sine wave. 26

Nyquist Sampling Theorem If a continuous-time signal contains no frequencies higher than f max, it can be completely determined by discrete samples taken at a rate: f sample > 2 x f max f sample = 2f max is known as the Nyquist Sampling frequency Example: Humans can process audio signals 20 Hz 20 KHz Audio CDs: sampled at 44.1 KHz 27

Fourier Series Jean Fourier proposed a wild idea in 1807: Any periodic function can be rewritten as a weighted sum of Sines and Cosines of different frequencies. f(t) = a 0 + ( a n cos ( nω 0 t) + b sin ( nω t )) n 0 n=1 Lagrange, Laplace, Poisson and others found it hard to believe! Called Fourier Series Odd functions only need the sine Even functions only need the cosine 28

Building block: A n sin( nωx+ϕ ) n A Sum of Sinusoids Add enough of them to get any signal f(x) you want! 29

A Sum of Sinusoids 30

Fourier Transform Reparametrize the signal by ω instead of x: f(x) Fourier Transform F(ω) For every ω from 0 to, F(ω) holds the amplitude A and phase φ of the corresponding sine: Asin(ωx+φ) F ω ( ) = f x - ( )e -i2πωx dx Time domain (x) è Frequency domain (ω) F(ω) is the frequency spectrum of f(x) e ik = cos k + i sin k i = 1 31

Inverse Fourier Transform Using a similar, but inverse transformation, the signal in the x domain can be obtained from the frequency domain ω: F(ω) f x Inverse Fourier Transform ( ) = F ω ( )e i2πωx dx f(x) Many operations, specially with sound, image and video, are more easily computed in the frequency domain. 32

Common Transform Pairs v v v v 33

Discrete Fourier Transform Fourier transform applies equally to discretetime signals: h k = 1 N N 1 H n e 2πikn N H n = h k e 2πikn N n=0 N 1 k=0 34

Conclusions Physical quantities need to be converted to binary in order to be processed by computers Sensors translate to electric signals Actuators perform physical actions with electric commands To levels of discretization: Amplitude DACs & ADCs Time Sampling Signals can be converted to the frequency domain Frequency spectrum Nyquist theorem Many operations easier in this domain: DSP 35

Analog-Digital Interface Tuesday 24 November 15