Menu EEL EEL 3744 A/D and D/A Conversion Process. A-to-D, D-to-A, Part 1

Similar documents
EE251: Tuesday October 10

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

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

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

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

Analog to Digital Converters

Outline. Analog/Digital Conversion

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

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

A-D and D-A Converters

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

PHYS225 Lecture 22. Electronic Circuits

ANALOG TO DIGITAL (ADC) and DIGITAL TO ANALOG CONVERTERS (DAC)

CENG4480 Lecture 04: Analog/Digital Conversions

Digital to Analog Conversion. Data Acquisition

Lecture 6: Digital/Analog Techniques

Analog to Digital Conversion

Chapter 2 Signal Conditioning, Propagation, and Conversion

EEE312: Electrical measurement & instrumentation

P a g e 1. Introduction

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

Fundamentals of Data Converters. DAVID KRESS Director of Technical Marketing

EE 308 Spring Using the HCS12 PWM

IES Digital Mock Test

Analog to Digital (ADC) and Digital to Analog (DAC) Converters

CHAPTER ELEVEN - Interfacing With the Analog World

Data Acquisition & Computer Control

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

16.2 DIGITAL-TO-ANALOG CONVERSION

Computerized Data Acquisition Systems. Chapter 4

Analog to digital and digital to analog converters

Analog/Digital and Sampling

Electronics A/D and D/A converters

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

DATA CONVERSION AND LAB (17.368) Fall Class # 07. October 16, 2008

Data Acquisition: A/D & D/A Conversion

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

3. DAC Architectures and CMOS Circuits

University of Pennsylvania. Department of Electrical and Systems Engineering. ESE Undergraduate Laboratory. Analog to Digital Converter

Chapter 5: Signal conversion

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

IFB270 Advanced Electronic Circuits

Analog to Digital Conversion

Data Conversion and Lab (17.368) Fall Lecture Outline

The need for Data Converters

A New, Low-Cost, Sampled-Data, 10-Bit CMOS A/D Converter

ENGR 210 Lab 12: Analog to Digital Conversion

Hello, and welcome to the Texas Instruments Precision overview of AC specifications for Precision DACs. In this presentation we will briefly cover

Module 1: Introduction to Experimental Techniques Lecture 2: Sources of error. The Lecture Contains: Sources of Error in Measurement

Fan in: The number of inputs of a logic gate can handle.

Ch 5 Hardware Components for Automation

Cyber-Physical Systems ADC / DAC

Learning Objectives:

CHAPTER 6 DIGITAL INSTRUMENTS

Comparator Design for Delta Sigma Modulator

Dedan Kimathi University of technology. Department of Electrical and Electronic Engineering. EEE2406: Instrumentation. Lab 2

RESIDUE AMPLIFIER PIPELINE ADC

CONTENTS Sl. No. Experiment Page No

Time: 3 hours Max Marks: 70 Answer any FIVE questions All questions carry equal marks *****

This tutorial describes the principles of 24-bit recording systems and clarifies some common mis-conceptions regarding these systems.

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Digital Computer Arithmetic ECE 666

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

University of Pittsburgh

Electronics II Physics 3620 / 6620

2. ADC Architectures and CMOS Circuits

Construction of a five bits Analog to Digital converter

WINTER 14 EXAMINATION

University of Portland EE 271 Electrical Circuits Laboratory. Experiment: Digital-to-Analog Converter

8-Bit, high-speed, µp-compatible A/D converter with track/hold function ADC0820

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

System on a Chip. Prof. Dr. Michael Kraft

Analog to Digital Conversion

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

Data Converters. Lecture Fall2013 Page 1

Introduction to Electronic Circuit for Instrumentation

Dr. Cahit Karakuş ANALOG SİNYALLER

6.111 Lecture # 15. Operational Amplifiers. Uses of Op Amps

PC-based controller for Mechatronics System

Exercise 2: Temperature Measurement

Lecture 2. Digital Basics

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

Underwater Signal Processing Using ARM Cortex Processor

UNIVERSITY of PENNSYLVANIA DEPARTMENT OF ELECTRICAL AND SYSTEMS ENGINEERING ESE Undergraduate Labs Electrical Circuits and Systems II Laboratory

CHAPTER 1 INTRODUCTION. fluid flow imaging [3], and aerooptic imaging [4] require a high frame rate image

Data Conversion Circuits & Modulation Techniques. Subhasish Chandra Assistant Professor Department of Physics Institute of Forensic Science, Nagpur

PRODUCT OVERVIEW. (4k, BCD) * FOR BCD MODELS, THIS RESISTOR IS OPEN CIRCUIT. +6.3V REFERENCE 15V SUPPLY. Figure 1. DAC-HZ Functional Block Diagram

Operational Amplifiers (Op Amps)

Digital control systems

St.MARTIN S ENGINEERING COLLEGE

Digital to Analog Converters (DAC) 15 March 2006 Doug Hinckley Lee Huynh Dooroo Kim

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

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

LECTURE 2: PD, PID, and Feedback Compensation. ( ) = + We consider various settings for Zc when compensating the system with the following RL:

Lesson 7. Digital Signal Processors

Winter 14 EXAMINATION Subject Code: Model Answer P a g e 1/28

1. The decimal number 62 is represented in hexadecimal (base 16) and binary (base 2) respectively as

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


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

One-Bit Delta Sigma D/A Conversion Part I: Theory

Transcription:

Menu A/D-D/A Conversion Processes >Example: Grandma Singing Hymns Digital Signal Processing Analog-to-Digital Conversion >A/D Conversion Methods Operational Amplifier in D/A & A/D Digital-to-Analog Look into my... 1 A/D and D/A Conversion Process Signal Conditioning Physical Phenomena Light/Sound etc. Transducer 1 Analog Voltage/ Current Filter/ Amp. n 1 Sample/ Hold Digital Processor 1 A/D Digital Representation n D/A 1 Filter/ Amp. 1 Actuation Analog Processing 2 1

DSP (Digital Signal Processing) in ECE Discussion on Digital Signal Processing > Analog filters introduced in (EEL 3112) > Analog Filter Design (EEL 3308: Electronic Circuits 1), i.e., s-plane design > Digital Analysis of Signals (EEL 3135: Intro to [Discrete- Time] Signals & Systems), i.e., z-plane design > Digital Filtering (Analog-->Digital) (EEL 4712: Digital Design, 4511: Real-time DSP Applications, 4750: Intro to DSP, EEE 5502: Foundations of Digital Signal Processing, 6503: Digital Filtering) > Implementation as a Recursive Program (CE Stuff) > Advantages of Digital Signal Processing (EEL 4511 & 4750) The use of D-A/A-D and Digital Processors allows computer engineers to create digital solutions to many engineering problems 3 Programming Example Example: Recovery of Grandma Singing Hymns cassette tapes from the 1950 s > High-pass filter to remove low frequency tape hum (there was no Dolby system in the 1950 s) > Low pass filter to remove high frequency media damage (hiss) > What would it take to do this with Analog circuits? > What would it take to do this with Digital technology? The Analog Filter H(s) = Y(s)/X(s) = 1/ (s 2 +bs+c) 4 2

Programming Example The Analog Filter H(s) = Y(s)/X(s) = 1/ (s 2 +bs+c) The Digital Filter H(z) = Y(z)/X(z) = 1/ (z 2 +z+) This results in the difference equation: Y(z) = X(z) / (z 2 +z+) X(z) = Y(z) (z 2 +z+) X(z) = z 2 Y(z) + zy(z)+ Y(z) or z -2 X(z) = Y(z) + z -1 Y(z)+ z -2 Y(z) or X(n-2) = Y(n) + Y(n-1) + Y(n-2) or Y(n) = -Y(n-1) - Y(n-2) + X(n-2) 5 Programming Example This results in the program (say in Fortran): C Y(n) = -Y(n-1) - Y(n-2) + X(n-2) Data n/ / DIMENSION Y(0..n), X(0..n) READ (5,x) X,alpha,beta,Y(0),Y(1) DO 100 i=2,n 100 Y(i) = X(i-2) - (alpha*y(i-1) + beta*y(i-2)) Thus, given the parameters and inputs X(0..n) we can calculate the Y(2..n) if we know Y(0) and Y(1) This program can be implemented easily(?) in any (e.g., XMEGA) assembly language 6 3

68HC11 A/D Block Diagram TD:Fig.10-1 7 Dual slope (Integrator) A/D Converters Components: Use a counter, analog integrator, voltage comparator, reference voltage and control circuitry Technique: Integrate over one cycle of the power line frequency (60 Hz) and therefore can ignore 60 Hz noise High points: Accuracy good, 60 Hz noise immunity Low points: Relatively slow 8 4

Flash (Simultaneous) A/D Converters Technique & components: Uses a tapped resistor to divide a reference voltage into 2 n equal parts, 2 n voltage comparators (to compare the input voltage against each of the tap voltages, and a priority encoder (2 n inputs and n- bit coded output) to output the digital signal High points: Accuracy very good if use high precision resistors; very fast (fastest); speed depends only on propagation delays (mostly in the encoder) Low points: Requires a tremendous amount of circuitry 9 Sigma-Delta A/D Converters Technique & components: Uses high speed sampling a digital decimation filter. (See class in digital filters.) High points: Accuracy good Low points: May be slow Note: This is now common in many processors (including XMEGA and ATMega) 10 5

Converters Technique & components: Uses a D/A converter (DAC), voltage comparator, reference voltage and control circuitry High points: Relatively fast (not as fast as flash, but much faster than dual-slope) Low points: Requires a DAC Note: This has been common in many processors (including 68HC11, 68HC12, TMS320 DSC) 11 Given: Ancient balance scale, some boxes of sand of known weight (in talanton units): 1, 2, 4, 8, 16, 32, 64, 128 1 2 4 8 16 32 128 64 12 6

Find the weight of a sack of salt (worth its weight in gold). 13 First try the maximum weight (128 talatons) 14 7

First try the maximum weight (128 talatons) >Too light, so keep this weight (put 1 in the MSB) and add more 1 _ 15 Now try the next weight down (64 talatons) 1? 16 8

Now try the next weight down (64 talatons) >Too heavy, so remove the 64 talaton weight and put a 0 below 1 0 17 Try 32 talaton weight >Still too light, so keep this weight (put 1 below) and add more 1 0 1 _ 18 9

Try 16 talaton weight >Still too light, so keep this weight (put 1 below) and add more 1 0 1 1 19 Now try the 8 talaton weight >Too heavy, so remove the 8 talaton weight and put a 0 below 1 0 1 1 0 _ 20 10

Now try the 4 talaton weight >Too heavy, so remove the 4 talaton weight and put a 0 below 1 0 1 1 0 0 21 Now try the 2 talaton weight >Too heavy, so remove the 2 talaton weight and put a 0 below 1 0 1 1 0 0 0 _ 22 11

Now try the 1 talaton weight >Not quite heavy enough, so keep this weight and put a 1 below 1 0 1 1 0 0 0 1 Q: What is the range of possible weights for this bag? 23 Converter The above algorithm is called a binary search (since the know weights were 2 n talatons) The electronic successive-approximation A/D works with the same principles as the ancient balance, comparing the unknown quantity (voltage) with a succession of know quantities (voltages) with binary weights All converters have D/A converters (DACs) inside Bar game; bar puzzle https://youtu.be/s2bb52xc_cc 24 12

OP Amps Circuits used in A/D & D/A Circuits * Inverting V in ~ R 1 R 2 V sj 0 * Non-Inverting R 1 R 2 ~ V in 25 Digital/Analog Conversion Binary integer: k = b 3 2 3 + b 2 2 2 + b 1 2 1 + b 0 Digital Data Register b 3 b 2 b 1 D/A Converter V q = k V = quantized analog voltage b 0 V = quantized voltage proportionality constant 26 13

DAC: Inverted R-2R Ladder Circuit I=V ref /R I S =V Out /2R Ideal Op Amp (see 3111) No current into - & + terminals Voltage at - input is virtually equal to voltage at + input V Out =I S 2R; each branch can add some current to I S Verify that the equivalent resistance of the entire network is R (see next page) I/2 I/4 I/2 n-1 I/2 n I S 27 DAC: Inverted R-2R Ladder Circuit Demonstration that equivalent resistance of network is always R Two resistors in parallel Two resistors in series Two resistors in parallel All reductions from 2 resistors in parallel: R p =R 1 R 2 /(R 1 + R 2 ) Or two resistors in series: R s =R 1 + R 2 28 14

DAC: R-2R Ladder Network R f D 3 V RH Q 3 Q 3 V 3 V 2 V 1 2R 2R 2R 2R R R R 2R i in V sj 0 V RL V q Easily Fabricated in IC form V 0 2R 29 All table entries in Volts Another 4-Bit DAC V 4 V 3 V 2 V 1 -V out 0 0 0 0 0 0 0 0 5 1 0 0 5 0 2 0 0 5 5 3 0 5 0 0 4 0 5 0 5 5 0 5 5 0 6 0 5 5 5 7 5 0 0 0 8 5 0 0 5 9.. 5 5 0 5 13 5 5 5 0 14 5 5 5 5 15 V 1 V 2 V 3 V 4 40R 20R 10R 5R i 1 =V 1 /(40R) i in i 2 =V 2 /(20R) i 3 =V 3 /(10R) i 4 =V 4 /(5R) 8R V out = -(8R) i in V out i in = i k, k = 1 4 V k = 0V or 5V 30 15

Analog/Digital Conversion A/D Conversion Methods >Successive Approximation >Flash Conversion 31 Successive Approximation Analog Input, V in Sample/ Hold Necessary to hold V in steady V x V q Comparator V q V x Control n Register n Digital Output V in Unit Gain Amp. D/A Sample 32 16

Successive Approximation Algorithm A.K.A. Binary Search START b[n-1:0] = 0 k = n b[k-1] = 1 Yes V q V x > 0 b[k-1] = 0 No k = k -1 No k 0 Yes END 33 Flash Conversion V R V in 3V R R 4 R Q B 1 1 Encoder B 2 0 R V R V R 4 R Q 2 Q 0 Q 2 Q 1 Q 0 1 1 1 0 1 1 0 0 1 0 0 0 B 1 B 0 1 1 1 0 0 1 0 0 34 17

Analog/Digital Conversion A/D Conversion Method in the 68HC11 >Charge Distribution A/D See 68HC11 RM Chapter 12 35 A/D Successive-Approximation 68HC11 RM: Fig.12-3 Control 36 18

The End! 37 19