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

Similar documents
Developer Techniques Sessions

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

The need for Data Converters

Analog to digital and digital to analog converters

Signal Characteristics

Analog I/O. ECE 153B Sensor & Peripheral Interface Design Winter 2016

Data acquisition and instrumentation. Data acquisition

MECE 3320 Measurements & Instrumentation. Data Acquisition

Microprocessors & Interfacing

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

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

Analog Input and Output. Lecturer: Sri Parameswaran Notes by: Annie Guo

Interfacing a Microprocessor to the Analog World

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

Analog-Digital Interface

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

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

Analog-to-Digital Converter (ADC) And Digital-to-Analog Converter (DAC)

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

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

Analog to Digital Converters

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

10. Chapter: A/D and D/A converter principles

Analog to Digital Conversion

Analog/Digital and Sampling

PHYS225 Lecture 22. Electronic Circuits

Cyber-Physical Systems ADC / DAC

A DSP IMPLEMENTED DIGITAL FM MULTIPLEXING SYSTEM

P a g e 1. Introduction

Lecture Schedule: Week Date Lecture Title

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

Embedded System Hardware

ELG3336 Design of Mechatronics System

3. DAC Architectures and CMOS Circuits

Chapter 5: Signal conversion

Chapter 2 Analog-to-Digital Conversion...

System on a Chip. Prof. Dr. Michael Kraft

Data Acquisition: A/D & D/A Conversion

Fundamentals of Data Converters. DAVID KRESS Director of Technical Marketing

Data Acquisition & Computer Control

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

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

EE251: Tuesday October 10

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

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

EE 230 Lecture 39. Data Converters. Time and Amplitude Quantization

Basic Concepts in Data Transmission

A/D Converter An electronic circuit that transforms an analog signal into a digital form that can be used by a computer or other digital circuits.

SIGMA-DELTA CONVERTER

Digital Sampling. This Lecture. Engr325 Instrumentation. Dr Curtis Nelson. Digital sampling Sample rate. Bit depth. Other terms. Types of conversion.

Introduction to Discrete-Time Control Systems

ANALOG-TO-DIGITAL CONVERTERS

Introduction. These two operations are performed by data converters : Analogue-to-digital converter (ADC) Digital-to-analogue converter (DAC)

Analog to Digital Conversion

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

Telecommunication Electronics

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

Hardware Platforms and Sensors

Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which

Electronics A/D and D/A converters

Chapter 2: Digitization of Sound

Data Converters. Lecture Fall2013 Page 1

EECS 373 Design of Microprocessor-Based Systems

A-D and D-A Converters

Design Implementation Description for the Digital Frequency Oscillator

EE482: Digital Signal Processing Applications

! Multi-Rate Filter Banks (con t) ! Data Converters. " Anti-aliasing " ADC. " Practical DAC. ! Noise Shaping


ESE 531: Digital Signal Processing

How do ADCs work? Martin Rowe, Senior Technical Editor -- 7/1/2002 Test & Measurement World

Outline. Discrete time signals. Impulse sampling z-transform Frequency response Stability INF4420. Jørgen Andreas Michaelsen Spring / 37 2 / 37

Outline. Analog/Digital Conversion

Lecture 3: Sensors, signals, ADC and DAC

Lecture #6: Analog-to-Digital Converter

Pulse Code Modulation (PCM)

ANALOGUE AND DIGITAL COMMUNICATION

Chapter 2 Signal Conditioning, Propagation, and Conversion

Data Communication. Chapter 3 Data Transmission

Pipeline vs. Sigma Delta ADC for Communications Applications

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

Multirate DSP, part 3: ADC oversampling

Lecture 9, ANIK. Data converters 1

Ch 5 Hardware Components for Automation

Design And Simulation Of First Order Sigma Delta ADC In 0.13um CMOS Technology Jaydip H. Chaudhari PG Student L. C. Institute of Technology, Bhandu

Choosing the Best ADC Architecture for Your Application Part 4:

Sampling and Reconstruction of Analog Signals

10 Speech and Audio Signals

Design IV. E232 Spring 07

Islamic University of Gaza. Faculty of Engineering Electrical Engineering Department Spring-2011

Digital Signal Processing +

FFT Analyzer. Gianfranco Miele, Ph.D

The simplest DAC can be constructed using a number of resistors with binary weighted values. X[3:0] is the 4-bit digital value to be converter to an

Communications IB Paper 6 Handout 3: Digitisation and Digital Signals

ESE 531: Digital Signal Processing

EECS 373 Design of Microprocessor-Based Systems

Nyquist's criterion. Spectrum of the original signal Xi(t) is defined by the Fourier transformation as follows :

The University of Texas at Arlington Lecture 10 ADC and DAC

In this lecture. System Model Power Penalty Analog transmission Digital transmission

EE445L Spring 2018 Final EID: Page 1 of 7

Introduction to Real-Time Digital Signal Processing

Transcription:

Analogue Interfacing What is a signal? Signal: Function of one or more independent variable(s) such as space or time Examples include images and speech Continuous vs. Discrete Time Continuous time signals Defined at all instances in time (or other I.V.s) e.g. f(t) = sin(t)

Discrete time signals Defined only at a set of discrete (possibly infinite in number) times Time sequence {x[n], n = 0,±1,±2,.} e.g. x[n] = sin(2πn/n), n integer Not the same as digital which is discrete in the dependent variable as well e.g. a sampled continuous time signal with analog digital converter Signal level (voltage) represented by a binary number with limited precision (8, 10, 12, or 16- bit fixed point number) Often x[n] is a sampled version of x(t) at rate 1/T S (uniform spacing) x[n] = x(nt S ), n = 0,±1,±2, The world is analogue One of the key functions of many embedded systems is to control and react to events in the real world In digital systems we deal entirely with discrete signals The real world is temporally continuous and analogue Signals are not electronic: heat, pressure, light,.

Need to Convert signals of interest into electrical form suitable for electronic processing (sensing and transduction) Perform signal conditioning to amplify, filter and otherwise transform analogue signals Convert continuous-time, analogue signals to discrete-time sequence of binary numbers (or other digital form) Process the discrete signals, need to retain the relationship with physical properties Convert and digital outputs to analogue signals. May need to filter and condition. Convert electrical signals to heat, light, motion, pressure as appropriate (transduction, actuation) Physical Signal Sensing/ Transduction Signal Conditioning ADC Processing DAC Physical Signal Actuation/ Display Filtering/ Conditioning

Sensors and transduction Sensors Many sensors exist to convert a wide range of analogue signals to electronic form Temperature Pressure Speed or Displacement Acceleration Acidity Many others Example: Optical Encoder From www.usdigital.com

Ex: Analog Devices ADXRS300 Gyroscopic Sensor From www.analogdevices.com Ex: Linear Variable Differential Transformer From www.analogdevices.com

Example: Thermocouple Seebeck Effect: junction between two dissimilar metals creates temperature dependent voltage Basis for thermocouple, a common temperature sensor widely used in process control http://www.picotech.com/applications/thermocouple.html Typically convert signal of interest to analogue electrical signal Voltage or current varies monotonically with physical signal of interest Need to calibrate, amplify and filter Signal Conditioning

Signal Conditioning Amplification and level shifting Convert the range and mean value (offset) of a signal to fit the range of the analogue to digital converter Amplify Attenuate Level shift Filtering Remove unwanted frequency components in a signal (noise, interference ) Shape signal to account for effects of signal transduction and transmission (equalisation) Many filtering operations can be performed after conversion to digital form; some cannot (antialias filtering)

Linearisation, calibration Many sensors have nonlinear relationships between the physical signal and its electrical analogue Can be calibrated before (analogue) or after (digital) analogue to digital conversion Calibration before conversion allows faster processing; After is more precise, flexible and reconfigurable Inverting Non-Inverting Figures from Sedra and Smith Filter Differential Amplifier Buffer

Analogue to Digital Conversion Analogue-Digital Conversion Convert voltage (analogue signal) to time series of digital numbers Key considerations include resolution, dynamic range, sampling frequency and accuracy 8, 10, 12, 16-bit ADCs are common, higher resolutions available Acronyms ADC, A/D, ATD Typically, analogue signal is sampled by analogue sample and hold circuit Maintains a stable signal to convert HCS12 has two built-in 8/10-bit analogue-digital converters 8 channels can share each converter in time-multiplexed manner Interrupt-based interface possible

Quantization Error Representation as digital number Digital signal can only change as fast as least significant bit Changes are quantized to increments of the digital number. 12-bit ADC with linear mapping, each increment is 1/4096 of fullscale Causes numerical error between the true value and the digital representation (error range 0-1 LSB or +/-0.5 LSB) Sampling Error Sampling interval is a key consideration Limits temporal resolution Mean latency of 1/2 sample period from sampling alone Irregular sampling can cause distortion of the sampled signal Sampling rate should be controlled through timer circuitry

Effects of Irregular Sampling 12 10 8 6 4 2 0 0 2 4 6 8 10 12 12 10 8 6 4 2 True Analogue Delayed Analogue Irregular Digital 0 0 2 4 6 8 10 12

Temporal resolution limited by sampling rate Can up-sample to interpolate missing samples Makes assumptions about signal From Catsoulis Aliasing Periodicity Periodic signals repeat regularly x ( t) = x( t + T) for some T and all t, fundamental period is the smallest such T, e.g. x( t) = sin( t) = sin( t + 2π ) = sin( t + 4π ) is periodic with period 2π Fourier theory states that we can compose arbitrary signals by combining sinusoids Periodic signals with Fourier Series Aperiodic signals with Fourier Transform But cannot represent all frequencies in an analogue signal in a sampled digital signal

if f 0 = 1 2, period N = 2, ω 0 = 2πf 0 then if x[n] = cos(nω 0 ) x[0] =1 x[1] = -1 x[2] =1 Alternates sign every discrete interval, obviously fastest alternation possible 5 e.g. ω0 = π, period N = 0.8 2 then if x[n] = cos(nω 0) x[0] = 1 x[1] = 0 x[2] = 1 x[3] = 0 x[4] = 1 looks like ω 0 = 2π/5 or N =5 when one frequency is indistinguishable from another it is known as aliasing Nyquist Rate To be able to reconstruct a signal from a sampled digital signal unambiguously Need to sample at least twice the highest frequency in the signal Or need to limit the highest frequency in the signal to less than one half the sampling rate (anti-aliasing filter) Theoretical limitations, practically need to sample faster than Nyquist rate

Anti-aliasing filtering needs to be done before sampling Flash Converters In parallel, compare with voltage levels corresponding to all possible digital numbers Priority encoder chooses largest digital number less than input Very fast but expensive in circuitry (e.g. 1024 comparators for 10- bit ADC) Can implement nonlinear converters easily www.allaboutcircuits.com

Successive Approximation Based on comparison with input Successively count up or down ADC digital number When digital number equals input, conversion is done from www.allaboutcircuits.com Successive Approximation Special counter: count first by mostsignificant bit and work to leastsignificant bit. Faster than standard count Example 10-bit Successive Approximation Converter

Successive approximation converters are typically slower than flash since they convert over multiple cycles Can compromise and estimate several bits at each cycle (pipelined converter) http://www.analog.com/library/analogdialogue/archives/33-08/adc/index.html Sigma-Delta A 1-bit DAC suitable for high resolution, low measurement rate applications http://www.analog.com/library/analogdialogue/archives/33-08/adc/index.html

Image acquisition Analogue signals are not only 1-D, for example images acquired by a CCD array are analogue Representation of analogue signals Engineering Units and Fixed Point Representations Physical signal expressed in standard unit: Watts, cd/m 2, N, Converted to voltage which is represented by a digital number (e.g. 0-255 for 8-bit converter) Often more useful to work in engineering units that represent physical units

Could represent as a floating point number with floating point support Slow in software Additional circuitry for hardware support in custom processor Hardware support may not be available or economical on chosen processor One can consider the digital number as a fixed point representation Can define the decimal point at any convenient bit position After bit zero gives standard integer representation Setting before most significant bit gives range 0 to 1 (actually one step less than one) Codecs Stands for coder/decoder Where paired coding and decoding of signals (eg ADC and DAC) occurs the device is called a codec Many different ways of mapping the signal to the code Linear Logarithmic Differential pulse coded

Digital to Analogue Conversion Digital to analogue conversion One approach: Sum up contribution of each bit set in digital number Weight each bit according to its place - 1, 2, 4, 8 http://www.allaboutcircuits.com This converts to analogue voltages but still need to handle time discretisation Zero-order hold: output is staircase like, switching at each sample Can filter to remove components above Nyquist rate and recover signal

PWM Pulse width modulation (PWM) can support a form of analogue output interfacing Control the duty cycle of a periodic binary signal If signal has high frequency, filtering with external filter or by a slow output device (e.g. an electric motor) can remove the high frequency switching Leaves lower frequency signal voltage is average over the cycle Variations in filtered signal reflect variations in duty cycle From Heath, 2003 Actuators, Motors and Displays

Interfacing with Actuators and Switching Power Switching large loads requires special interacing and protection circuitry Many options exist for switching/ controlling devices requiring large amounts of power; choice depends on Level and type of control desired Type of load Requirements for protection, isolation, EMC H Bridge circuits From Heath, 2003