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

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

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

INTEGRATED CIRCUITS. AN109 Microprocessor-compatible DACs Dec

Analytical Chemistry II

Electronics II Physics 3620 / 6620

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

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

P a g e 1. Introduction

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

16.2 DIGITAL-TO-ANALOG CONVERSION

Outline. Analog/Digital Conversion

A-D and D-A Converters

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

Section 4: Operational Amplifiers

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

Fig 1: The symbol for a comparator

EEE312: Electrical measurement & instrumentation

1 Signals and systems, A. V. Oppenhaim, A. S. Willsky, Prentice Hall, 2 nd edition, FUNDAMENTALS. Electrical Engineering. 2.

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

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

Fundamentals of Data Converters. DAVID KRESS Director of Technical Marketing

Chapter 2 Signal Conditioning, Propagation, and Conversion

Page 1. Midterm #2. OpAmp Review. Inverting & Non-inverting Circuits CS/ECE 6780/5780. Al Davis. Almost ubiquitous analog circuit element since ~1968

Operational amplifiers

Analog to digital and digital to analog converters

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

Analog to Digital Conversion

10-Bit µp-compatible D/A converter

Sensor Interfacing and Operational Amplifiers Lab 3

LINEAR IC APPLICATIONS

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

Operational Amplifiers (Op Amps)

Gechstudentszone.wordpress.com

Chapter 13 Oscillators and Data Converters

Design of Pipeline Analog to Digital Converter

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Linear Integrated Circuits Applications

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

Analog to Digital Converters

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

Lab Exercise 6: Digital/Analog conversion

AD557 SPECIFICATIONS. T A = 25 C, V CC = 5 V unless otherwise noted) REV. B

LESSON PLAN. SUBJECT: LINEAR IC S AND APPLICATION NO OF HOURS: 52 FACULTY NAME: Mr. Lokesh.L, Hema. B DEPT: ECE. Portions to be covered

Embedded Control. Week 3 (7/13/11)

Data Acquisition & Computer Control

Tel: Fax:

Low Cost 10-Bit Monolithic D/A Converter AD561

Specifying A D and D A Converters

The Operational Amplifier as a differential voltage-controlled voltage source

8-Bit A/D Converter AD673 REV. A FUNCTIONAL BLOCK DIAGRAM

ELEC207 LINEAR INTEGRATED CIRCUITS

Analog to Digital Conversion

Operational Amplifiers

Lecture 6: Digital/Analog Techniques

Chapter 10: Operational Amplifiers


RESIDUE AMPLIFIER PIPELINE ADC

ADC Bit A/D Converter

Analog Electronics. Lecture Pearson Education. Upper Saddle River, NJ, All rights reserved.

Basic Operational Amplifier Circuits

12-Bit Successive-Approximation Integrated Circuit ADC ADADC80

Data Conversion and Lab (17.368) Fall Lecture Outline

3. DAC Architectures and CMOS Circuits

Microprocessor-Compatible 12-Bit D/A Converter AD667*

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

PAiA 4780 Twelve Stage Analog Sequencer Design Analysis Originally published 1974

Chapter 5: Signal conversion

Care and Feeding of the One Bit Digital to Analog Converter

B.E. SEMESTER III (ELECTRICAL) SUBJECT CODE: X30902 Subject Name: Analog & Digital Electronics

Tuesday, March 1st, 9:15 11:00. Snorre Aunet Nanoelectronics group Department of Informatics University of Oslo.

Laboratory 8 Operational Amplifiers and Analog Computers

12-Bit Successive-Approximation Integrated Circuit A/D Converter AD ADC80

Operational Amplifiers

University of Pittsburgh

Experiments #6. Differential Amplifier

L9: Analog Building Blocks (OpAmps,, A/D, D/A)

Hello, and welcome to the TI Precision Labs video series discussing comparator applications. The comparator s job is to compare two analog input

WINTER 14 EXAMINATION

L9: Analog Building Blocks (OpAmps, A/D, D/A)

DACPORT Low Cost, Complete P-Compatible 8-Bit DAC AD557*

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

New Current-Sense Amplifiers Aid Measurement and Control

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

Section3 Chapter 2: Operational Amplifiers

Data Converters. Lecture Fall2013 Page 1

St.MARTIN S ENGINEERING COLLEGE

Operational Amplifiers Part IV of VI Working Your Amplifier Inside the Single-Supply Voltage Box

Data Acquisition: A/D & D/A Conversion

UMAINE ECE Morse Code ROM and Transmitter at ISM Band Frequency

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

ENEE307 Lab 7 MOS Transistors 2: Small Signal Amplifiers and Digital Circuits

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

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

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

CHAPTER ELEVEN - Interfacing With the Analog World

MAINTENANCE MANUAL AUDIO BOARDS 19D902188G1, G2 & G3

Operational Amplifiers

Differential Amplifiers

L10: Analog Building Blocks (OpAmps,, A/D, D/A)

OBSOLETE. High Performance, BiFET Operational Amplifiers AD542/AD544/AD547 REV. B

Integrated Circuit: Classification:

Transcription:

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

Introduction Anytime we need to monitor or control analog signals with a digital system, we require analogto-digital (ADC) and digital-to-analog (DAC) conversion Examples include: Process control Digital audio and video Interfacing to any type of continuous (vs. discrete) voltage or current 2

Op Amps (Operational Amplifiers) Op Amps are the basic building blocks in analog input and output devices Current-to-voltage converters, voltage amplifiers, buffers, active filters, sample-and-holds, etc. Characteristics: high gain, two analog signal inputs (inverting and non-inverting), and one or two analog signal outputs Often, two DC supply voltages of opposite polarity are required 3

The Ideal Op Amp Infinite input impedance no current flows into input terminals Extremely high open loop gain (A OL ) typically 10 4 to 10 6 V o = A OL (V + - V - ) differential amplifier 4

Common Op Amp Circuits Because the open loop gain of an op amp is so high, we generally employ negative feedback in circuit design The closed loop gain is (to a first approximation) dictated entirely by the external feedback components Makes the design of linear circuits using op amps relatively straightforward Analysis of transfer characteristics accomplished using virtual ground analysis 5

Virtual Ground Analysis - Requirements A first approximation of the operation of an op amp circuit can be done via virtual ground analysis if: The op amp circuit employs negative feedback Output to V- The op amp has a high open loop gain The output of the op amp is operating in the linear range This restricts the closed loop gain and the input signal range 6

Virtual Ground Analysis - Assumptions Virtual ground analysis allows the following assumptions: V+ = V- Current (I) into either input terminal = 0 I+ = I- = 0 This allows the elementary circuit laws to be used in analyzing these circuits i.e., Ohm s and Kirchoff s 7

Virtual Ground Analysis Inverting Voltage Amplifier We ll start with the inverting voltage amplifier This is probably the most common application of an op amp 8

Virtual Ground Analysis Inverting Voltage Amplifier Based on the virtual ground analysis assumptions we know that: The input terminals, V+ = V- = GND = 0 V Since we know that V I is dropped across R 1 (to GND), we also know that: the current through R 1 is I = V I / R 1. 9

Virtual Ground Analysis Inverting Voltage Amplifier Now we look at the second virtual ground analysis assumption: I- (the current into the inverting terminal of the op amp) = 0 Since the current produced by the voltage drop across R 1 has to go somewhere (Kirchoff s current law), it goes to V o through R F The output voltage would then be the current through R F (determined above to be V I / R 1 ) times its resistance: V o = - (V I / R 1 ) R F = - (R F / R 1 ) V I 10

Virtual Ground Analysis Inverting Voltage Amplifier The sign inversion is a result of V+ = V- = GND = 0 V If V I is positive, current flows into the node at V- (but not into the V- terminal itself), then into R F and finally to V o Since V- is at GND, V o must be a negative voltage assuming conventional current flow ( + to -) Conversely, if V I is negative Current flows out of the node at V- and hence V o must be a positive voltage 11

Virtual Ground Analysis Inverting Voltage Amplifier V o = - (V I / R 1 ) R F = - (R F / R 1 ) V I 12

Common Op Amp Circuits 13

Digital to Analog Converters (DACs) DAC accepts an n-bit parallel digital word as its input and provides an analog current or voltage as its output input can be signed or unsigned positional binary number Several types of DAC different topologies, different speeds, different accuracies, different output types (voltage vs. current) 14

Weighted Resistors into a Summing Junction DAC Type #1 15

Weighted Resistors into Summing Junction DAC Fast, low precision technique Precision of resistors is critical to overall precision Smaller resistors (more significant bits) require proportionally higher precision resistors (tighter tolerance) Only good for a small number of bits as it becomes impractical to attain the required resistor tolerances Switches shown on schematic are actually transistors connected to incoming digital word B1 is most significant bit 16

Weighted Resistors Into Summing Junction DAC If input bit is 1, the switch is closed and the current is directed to the summing junction of the op amp Conversely if input bit = 0, the current is directed to ground 17

Weighted Resistors into Summing Junction DAC If V ref is 10 volts, the maximum output will be 10V (7/8) = 8.75 V Could add inverting amplifier or DC offset to get positive results Step size is full scale value (V ref ) divided by 2 n (where n is the number of bits) Step size for this example is 10 / 8 = 1.25 V This is referred to as the resolution of the DAC Resolution is the size of the output step associated with a change of 1 in the least significant bit at the input 18

R 2R Ladder DAC Type #2 19

R 2R Ladder DAC Requires only 2 resistor values Solves problem of absolute resistor precision we saw in weighted resistor summing junction DAC Resistors in R 2R ladder DAC have to be precisely matched, but their absolute resistance is not important Current into summing junction is the same as in weighted resistor summing junction DAC 20

R 2R Ladder DAC Scale and step size are also the same as scaled resistor DAC (for 3 - bit, 10 V case) However, because resistor precision is relative for this design, the DAC can be scaled to many more bits Additional bits provide greater resolution For example: 8 - bit, 10V R 2R ladder DAC provides a step size (resolution) of 10 V / 2 8 = 39.06 mv 21

Scaled Current Sources DAC Type #3 DAC0802, for example 22

Scaled Current Sources DAC Generic View 23

Scaled Current Sources DAC Similar Approach to R 2R Ladder DAC Bipolar Junction Transistors (BJTs) eliminate the number of floating nodes in the circuit Reduces parasitic capacitance Increases performance BJT emitters are sized to be proportional to the desired emitter current 1x, 2x, 4x, etc. 24

DAC Interfacing Methods Store outgoing digital bit pattern in an external register (outside the processor) and apply the register contents continuously to the DAC inputs Only necessary when DAC used has no internal latches (many do) Always some analog details to deal with Reference voltage or current Full scale setting External passive components And (as always), when in doubt : read the data sheet 25

Multiplying DACs (a.k.a. MDACs ) By using the full scale adjust (reference voltage) as an input on some DACs, you can create a multiplying DAC or simply an MDAC Output = input (reference) voltage * digital code Multiplying DACs are often used to implement digital gain control in microprocessor and embedded computer systems 26

Range of DAC Output Terminology Unipolar : output all positive (or all negative) i.e. there is a single power supply Bipolar : output goes both positive and negative signed requires two power supplies External op amp circuits can also be used to move range of output voltages up or down to buffer or amplify output 27

Analog to Digital Converters (ADCs) Analog to Digital converters perform two basic operations Quantization mapping of a continuous signal into one of several possible ranges Coding assignment of a unique binary code to each discrete range Binary, BCD, sign magnitude, 2 s complement, 1 s complement, offset binary, etc. Like DACs, there are several types 28

The Comparator Component Fundamental component of any ADC essentially an open loop op amp functions as a 1 bit ADC V i is input, V T is threshold voltage 29

Parallel or Flash ADC 30

Parallel or Flash ADC Input signal is fed to n comparators in parallel Each comparator attached to n equallyspaced reference voltages generated by a resistor ladder Priority encoder generates a log 2 n output code 31

Parallel or Flash ADC Flash is fastest ADC (parallel) up to ~300 Msps perhaps even faster small number of bits usually < 10 due to cost internal componentry grows as 2 n Because of high speed, a sample and hold (S/H) circuit is not necessary S/H is necessary with slower converters 32

Sample and Hold Circuits Needed when analog signal changes faster than the conversion rate of ADC Conversion must take place before the analog input changes ± ½ lsb or result is inaccurate 33

Successive Approximation ADC Generic view 34

Successive Approximation ADC MCP3002 (from ECE 153B lab experiment) 10 - bit conversion 2 input channels On-chip sample and hold Serial Interface 35

Successive Approximation ADC Use a DAC and binary search to find correct conversion of n bits after n conversion steps Slower than flash ADC due to n steps needed for n bits of resolution Inputs Vin : voltage to be converted Sample and hold often needed Usually (as in MCP3002) S/H is integrated within the ADC Start : external command to begin conversion Clock : digital clock oscillator 36

Successive Approximation ADC Outputs EOC : End of Conversion Data out Data [n-1:0], if parallel output Dout, if serial Conversion (sample) time 1 µs to 50 µs Accuracy 8 to 12 bits 37

Successive Approximation ADC Cost $5 - $400 Cost is based on speed and accuracy Potential issues unipolar vs. bipolar range sample and hold requirements input impedance 38

Dual Slope Integrating ADC also known as Delta Sigma (ΔΣ) ADC 39

Dual Slope Integrating ADC Strategy is to cancel the input current with a switched current source Input drives an integrator whose output is compared with any fixed voltage (e.g., ground) Depending on the comparator s output, fixed length pulses of current are switched into the summing junction of the integrator at each clock transition Maintains zero average current into summing junction 40

Dual Slope Integrating ADC A counter keeps track of the number of pulses switched to the summing junction for a given number of clocks (e.g., 4096 for a 12-bit ADC) Count is the output (it s proportional to input level) Hardware integrating ADC are typically low-speed devices They are also capable of high accuracy at low cost due to minimal analog circuitry 41