Analog/Digital Conversion. Analog Signals. Digital Signals. Analog vs. Digital. Interfacing a microprocessor-based system to the real world.



Similar documents
Digital to Analog and Analog to Digital Conversion

DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

Analog Representations of Sound

Digital to Analog Converter. Raghu Tumati

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

PCM Encoding and Decoding:

Interfacing Analog to Digital Data Converters

Microcomputers. Analog-to-Digital and Digital-to-Analog Conversion

Chapter 6: From Digital-to-Analog and Back Again

Lesson 16 Analog-to-Digital Converter (ADC)

AVR127: Understanding ADC Parameters. Introduction. Features. Atmel 8-bit and 32-bit Microcontrollers APPLICATION NOTE

Digital To Analog Converter with Sine Wave Output

DAC Digital To Analog Converter

Introduction to Digital Audio

INTRODUCTION TO DIGITAL SYSTEMS. IMPLEMENTATION: MODULES (ICs) AND NETWORKS IMPLEMENTATION OF ALGORITHMS IN HARDWARE

PHY-2464 Physical Basis of Music

Lab 5 Getting started with analog-digital conversion

ADS9850 Signal Generator Module

b 1 is the most significant bit (MSB) The MSB is the bit that has the most (largest) influence on the analog output

Nyquist data converter fundamentals Tuesday, February 8th, 9:15 11:35

Basics of Digital Recording

Section bit A/D Converter

CBS RECORDS PROFESSIONAL SERIES CBS RECORDS CD-1 STANDARD TEST DISC

AP A/D Converter. Analog Aspects. C500 and C166 Microcontroller Families. Microcontrollers. Application Note, V 1.

Data Storage 3.1. Foundations of Computer Science Cengage Learning

Voice---is analog in character and moves in the form of waves. 3-important wave-characteristics:

Conversion Between Analog and Digital Signals

Model AD558J AD558K AD558S 1 AD558T 1 Min Typ Max Min Typ Max Min Typ Max Min Typ Max Units

ADC0808/ADC Bit µp Compatible A/D Converters with 8-Channel Multiplexer

Digital Design. Assoc. Prof. Dr. Berna Örs Yalçın

PC BASED PID TEMPERATURE CONTROLLER

Hideo Okawara s Mixed Signal Lecture Series. DSP-Based Testing Fundamentals 46 Per-pin Signal Generator

Signal Conversion. David J. Beebe

Spike-Based Sensing and Processing: What are spikes good for? John G. Harris Electrical and Computer Engineering Dept

LC2 MOS Quad 8-Bit D/A Converter AD7226

Section 3. Sensor to ADC Design Example

Section bit A/D Converter

A PC-BASED TIME INTERVAL COUNTER WITH 200 PS RESOLUTION

1995 Mixed-Signal Products SLAA013

16-Channel, 1 MSPS, 12-Bit ADC with Sequencer in 28-Lead TSSOP AD7490

AVR120: Characterization and Calibration of the ADC on an AVR. 8-bit Microcontrollers. Application Note. Features. Introduction

12-Bit Serial Daisy-Chain CMOS D/A Converter DAC8143

AN2834 Application note

Complete, High Resolution 16-Bit A/D Converter ADADC71

A 1-GSPS CMOS Flash A/D Converter for System-on-Chip Applications

DATA SHEET. TDA1543 Dual 16-bit DAC (economy version) (I 2 S input format) INTEGRATED CIRCUITS

Computer Networks and Internets, 5e Chapter 6 Information Sources and Signals. Introduction

Analog Signal Conditioning

Use and Application of Output Limiting Amplifiers (HFA1115, HFA1130, HFA1135)

Atmel Norway XMEGA Introduction

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1

EE 230 Lecture 37. Data Converters. ADC and DAC Architectures

Improving A D Converter Performance Using Dither

HP03 BAROMETER MODULE Version: 1.1

TDA CHANNEL VOLUME CONTROLLER 1 FEATURES 2 DESCRIPTION. Figure 1. Package

12-Bit, 4-Channel Parallel Output Sampling ANALOG-TO-DIGITAL CONVERTER

DS Wire Digital Thermometer and Thermostat

DS1104 R&D Controller Board

Part 1. MAX BIT DAC with an Arduino Board. MIDI to Voltage Converter Part1

Welcome to the tutorial for the MPLAB Starter Kit for dspic DSCs

A Lesson on Digital Clocks, One Shots and Counters

A Lesson on Digital Clocks, One Shots and Counters

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

SAMPLE CHAPTERS UNESCO EOLSS DIGITAL INSTRUMENTS. García J. and García D.F. University of Oviedo, Spain

Pulse Width Modulation

6.025J Medical Device Design Lecture 3: Analog-to-Digital Conversion Prof. Joel L. Dawson

ABCs of ADCs. Analog-to-Digital Converter Basics. Nicholas Gray Data Conversion Systems Staff Applications Engineer

Systematic Design for a Successive Approximation ADC

Analog signals are those which are naturally occurring. Any analog signal can be converted to a digital signal.

Application Report. 1 Introduction. 2 Resolution of an A-D Converter. 2.1 Signal-to-Noise Ratio (SNR) Harman Grewal... ABSTRACT

How To Use A Watt Saver On A Microcontroller (Watt Saver) On A Cell Phone Or Mp3 Player

AN1636 APPLICATION NOTE

Manchester Encoder-Decoder for Xilinx CPLDs

HDMM01 V1.0. Dual-axis Magnetic Sensor Module With I 2 C Interface FEATURES. Signal Path X

DS1621 Digital Thermometer and Thermostat

Digital Transmission of Analog Data: PCM and Delta Modulation

Micro-Step Driving for Stepper Motors: A Case Study

AC/DC Power Supply Reference Design. Advanced SMPS Applications using the dspic DSC SMPS Family

Analog-to-Digital conversion

MILE Encoder for EC 90 flat

R EXT THERMISTOR. Maxim Integrated Products 1

ANALOG-DIGITAL CONVERSION

High Speed, Low Power Monolithic Op Amp AD847

W a d i a D i g i t a l

Series AMLDL-Z Up to 1000mA LED Driver

Data Storage. Chapter 3. Objectives. 3-1 Data Types. Data Inside the Computer. After studying this chapter, students should be able to:

Basic DAC Architectures II: Binary DACs. by Walt Kester

PLL frequency synthesizer

Continuous-Time Converter Architectures for Integrated Audio Processors: By Brian Trotter, Cirrus Logic, Inc. September 2008

WHAT DESIGNERS SHOULD KNOW ABOUT DATA CONVERTER DRIFT

Binary Division. Decimal Division. Hardware for Binary Division. Simple 16-bit Divider Circuit

Features. Note Switches shown in digital high state

Interfacing To Alphanumeric Displays

16-Bit Monotonic Voltage Output D/A Converter AD569

US-SPI New generation of High performances Ultrasonic device

MicroMag3 3-Axis Magnetic Sensor Module

Analog-to-Digital Converters. Transducers

Transcription:

Analog/Digital Conversion Analog Signals Interacing a microprocessor-based system to the real world. continuous range x(t) Analog and digital signals he bridge: Sampling heorem Conversion concepts Conversion circuitry he real world is analog. Signals vary continuously with time. Analog signals take arbitrarily many values. Examples: audio signal rom microphone or cassette player video signal rom VC or video camera x/y voltage outputs rom joystick time Digital Signals Analog vs. Digital v 6 v 5 v 4 v 3 v 2 v 1 x(t) time With digital signals, it is possible to: he microprocessor world is digital. Limited number o separate (discrete) values at each time step. Digital signals take only these values, nothing inbetween. Computers: wo values ( or 1) corresponding to low/high value o property (usually voltage). In general: 2 n values (n-bit representation).

Signal Conversion o interace microprocessors to real-world (analog) systems, we need converters. Digital to Analog Converters (DAC): Convert a digital input (e.g. binary word) to analog output (e.g. current or voltage). Analog to Digital Converters (ADC): Convert an analog input to digital output. mechanical analog mic mechanical speaker ADC DAC digital µp Analog to Digital Conversion Ideal 2-bit ADC Input range: Analog voltage between and V max Output: 2-bit code analog input voltage V max ¾ V max ½ V max ¼ V max 1 1 11 digital output Conversion o Signals over ime Sampling Sample n-bit n and ADC analog hold analog digital Must hold input signal while converting. Sample and hold circuit takes in (samples) analog value and holds it still while A to D conversion is taking place. What is the minimum rate S at which the analog input should be sampled? Minimum sampling rate S determines the minimum acceptable speed o A to D conversion. Sampling rate must be high enough so that no inormation is lost. What is the inormation o a signal?

A Simple Case Going Faster S = 2/3 S = 1/3 ½ 5/3 2 Detecting a sinusoidal signal o requency at least = 1/ What is the minimum sampling rate required or detection? Fast Enough More han Enough 2 4 3

Sampling heorem Harmonic analysis Signals can be expressed as weighted sums o harmonic unctions. Shannon s heorem (Nyquist Sampling heorem) o sample a bandlimited signal x(t) with no loss o inormation, the sampling rate must be at least twice the requency o the highest requency component. Example: Audio signals typically include components up to 2KHz. CDs sample at 44.1KHz. DAs sample at 32, 44.1, or 48KHz. Basic Converter Characteristics esolution: Fraction o analog range as deined by the number o bits on the digital side o the converter. An n-bit ADC divides analog voltage range [, V max ] into sections and its resolution is o V max. Error: Dierence between analog value you believe a digital value represents and what that analog value actually is. Even ideal converters introduce some error. Quantization Error Accuracy analog input V max ¾ V max ½ V max ¼ V max 1 1 11 quantization error Inherent in converting continuous values to a inite number o discrete values. Every voltage in the range [1/2 V max, ¾ V max ) is mapped to 1. o minimize worst-case error, we assume that 1 means V max. Worst-case error is. Absolute error depends on and. For normalization, quantization error is expressed in terms o the ideal analog dierence represented by a unit change in the digital value, reerred to as LSB. Quantization error is always equal to /- ½ LSB. V max ¾ V max ½ V max ¼ V max non-linearity 1 1 11 non-linearity Absolute non-linearity: Absolute deviation rom ideal transer curve. Dierential non-linearity: Deviation o the dierence between two consecutive codes rom ideal 1 LSB. An absolute non-linearity o /- ¼ LSB results in dierential non-linearity o /- ½ LSB. What happens i non-linearity exceeds /- ½ LSB? non-linearity

Conversion ime Amount o time rom changing input value to output value becoming stable (typically in the ns to µs range). ADCs Sample and hold: May (or not) rely on external sample and hold. Averaging: Code represents average input over conversion time. ypically provide end o conversion signal that can be used as an interrupt. rick question: o achieve sampling rate S, what is the maximum acceptable ADC conversion time? DACs Conversion time usually reerred to as the settling time required or output to reach speciied accuracy. Most DACs can be driven aster than speciied conversion rate at a corresponding loss o accuracy. DAC #1: Voltage Divider Din 2 2-to-4 decoder Fast Size (transistors, switches)? Accuracy? Monotonicity? Vout DAC #2: /2 Ladder 2 ADC #1: Flash Vin 2 2 2 2 priority encoder 3 D3 (MSB) D2 D1 D (LSB) Size? Accuracy? Monotonicity? (Consider 111 -> 1) Iout Vcc 2 1 2 Dout

ADC #2: Single-Slope Integration ADC #3: Successive Approximation (1/2) Vin Vcc I C done DAC Dout EN* n-bit counter CLK Start: eset counter, discharge C. Charge C at ixed current I until Vc > Vin. How should C, I, n, and CLK be related? Final counter value is Dout. Conversion may take several milliseconds. Good dierential linearity. Absolute linearity depends on precision o C, I, and clock. Vin CLK control n successive approximation register Binary search to match input voltage. Conversion time > n times DAC settling time. Input should stay stable throughout conversion. Successive Approximation Algorithm Binary search algorithm. Set successive approximation register to 1. For each bit rom MSB to LSB do 2. lip bit to 1 3. i DAC output > Vin, reset bit to Example = 15V, Vin = 1V, 4 bits, binary code = voltage value iteration DAC out comparison A 3 A 2 A 1 A