Working with ADCs, OAs and the MSP430

Similar documents
Working with ADCs, OAs and the MSP430

MSP430 Teaching Materials

Fundamentals of Data Converters. DAVID KRESS Director of Technical Marketing

9. Data Acquisition. Chapter 9

Octal Sample-and-Hold with Multiplexed Input SMP18

ADC Resolution: Myth and Reality

Brushless DC motor controller

Select the Right Operational Amplifier for your Filtering Circuits

INTEGRATED CIRCUITS. AN109 Microprocessor-compatible DACs Dec

AD9772A - Functional Block Diagram

Analog to Digital Conversion

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

Linear Technology Chronicle

SECTION 8 ADCs FOR SIGNAL CONDITIONING Walt Kester, James Bryant, Joe Buxton

2-Channel, Software-Selectable, True Bipolar Input, 1 MSPS, 12-Bit Plus Sign ADC AD7322

Analog-to-Digital i Converters

Sensor Interfacing and Operational Amplifiers Lab 3

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

500 ksps, 2-Channel, Software-Selectable, True Bipolar Input, 12-Bit Plus Sign ADC AD7321

Data Converters 2. Selection Guides HIGH PERFORMANCE ANALOG

Differential Amplifiers

CMOS 12-Bit Serial Input Multiplying DIGITAL-TO-ANALOG CONVERTER

8-Channel, Software-Selectable True Bipolar Input, 12-Bit Plus Sign ADC AD7328

Data Converters. Lecture Fall2013 Page 1

WebSeminar: Sept. 24, 2003

INL PLOT REFIN DAC AMPLIFIER DAC REGISTER INPUT CONTROL LOGIC, REGISTERS AND LATCHES

FEATURES APPLICATIONS TYPICAL APPLICATION. LTC1451 LTC1452/LTC Bit Rail-to-Rail Micropower DACs in SO-8 DESCRIPTION

Data Converter Basics

250 MHz, General Purpose Voltage Feedback Op Amps AD8047/AD8048

System on a Chip. Prof. Dr. Michael Kraft

Lecture 9, ANIK. Data converters 1

9-Bit, 30 MSPS ADC AD9049 REV. 0. Figure 1. Typical Connections FUNCTIONAL BLOCK DIAGRAM

AD7366-5/AD True Bipolar Input, 12-/14-Bit, 2-Channel, Simultaneous Sampling SAR ADCs FUNCTIONAL BLOCK DIAGRAM FEATURES GENERAL DESCRIPTION

Operational Amplifiers (Op Amps)

The need for Data Converters

10-Bit, 40 MSPS/60 MSPS A/D Converter AD9050 REV. B. Figure 1. Typical Connections FUNCTIONAL BLOCK DIAGRAM

Selecting and Using High-Precision Digital-to-Analog Converters

Input Drive Circuitry for SAR ADCs. Section 8

Common mode rejection ratio

TOP VIEW. Maxim Integrated Products 1

Low Cost 10-Bit Monolithic D/A Converter AD561

Dual 8-Bit, 60 MSPS A/D Converter AD9059

Precision, Low-Power and Low-Noise Op Amp with RRIO

Understanding the ADC Input on the MSC12xx

Signal Chain. Selector Guide. Inside. Edition 3, April 2011

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

MSP430 Teaching Materials

10-Bit µp-compatible D/A converter

2.996/6.971 Biomedical Devices Design Laboratory Lecture 7: OpAmps

12-Bit, Low-Power, Dual, Voltage-Output DAC with Serial Interface

LMC660 CMOS Quad Operational Amplifier

Environmental ADC Interface P Team Members

Designing of a 8-bits DAC in 0.35µm CMOS Technology For High Speed Communication Systems Application

Electronics A/D and D/A converters

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

Single-Supply, Low-Power, Serial 8-Bit ADCs

SPT Bit, 250 MSPS A/D Converter with Demuxed Outputs

High Voltage and Temperature Auto Zero Op-Amp Cell Features Applications Process Technology Introduction Parameter Unit Rating

High Speed System Applications

Current Output/Serial Input, 16-Bit DAC AD5543-EP

DUAL OP AMP AND VOLTAGE REFERENCE General Description. Features

DESCRIPTIO. LTC1446/LTC1446L Dual 12-Bit Rail-to-Rail Micropower DACs in SO-8

PIN CONFIGURATIONS FEATURES APPLICATION ORDERING INFORMATION. FE, N Packages

14-Bit, 40/65 MSPS A/D Converter AD9244

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

24-Bit, 312 ksps, 109 db Sigma-Delta ADC with On-Chip Buffers and Serial Interface AD7764

190μA, 3MHz, Rail-to-Rail I/O CMOS Operational Amplifiers VREF. DIO2026QN20 D2026 RoHS/Green -40 to +125 C QFN4*4-20 Tape & Reel, 5000

FEATURES DESCRIPTIO APPLICATIO S LTC1451 LTC1452/LTC Bit Rail-to-Rail Micropower DACs in SO-8 TYPICAL APPLICATIO

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

OBSOLETE. Monolithic 12-Bit 2 MHz A/D Converter AD671 REV. B FUNCTIONAL BLOCK DIAGRAM

6-Bit A/D converter (parallel outputs)

FUNCTIONAL BLOCK DIAGRAM DIGITAL VIDEO ENGINE

EE 330 Lecture 34. Guest Lecture. Why are there so many Op Amps?

Ultralow Distortion, Wide Bandwidth Voltage Feedback Op Amps AD9631/AD9632

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

LT MHz, 30V/µs 16-Bit Accurate A V 2 Op Amp. Description. Features. Applications. Typical Application

SPT BIT, 30 MSPS, TTL, A/D CONVERTER

Redefining high resolution and low noise in Delta-Sigma ADC applications

LM6118/LM6218 Fast Settling Dual Operational Amplifiers

DUAL ULTRA MICROPOWER RAIL-TO-RAIL CMOS OPERATIONAL AMPLIFIER

FUNCTIONAL BLOCK DIAGRAM 8-BIT AUX DAC 8-BIT AUX DAC 10-BIT AUX DAC LATCH LATCH LATCH

Analog to Digital in a Few Simple. Steps. A Guide to Designing with SAR ADCs. Senior Applications Engineer Texas Instruments Inc

4-Channel, 625 ksps, 12-Bit Parallel ADC with a Sequencer AD7934-6

A 4 GSample/s 8-bit ADC in. Ken Poulton, Robert Neff, Art Muto, Wei Liu, Andrew Burstein*, Mehrdad Heshami* Agilent Laboratories Palo Alto, California

Acquisition Time: Refer to Figure 1 when comparing SAR, Pipeline, and Delta-Sigma converter acquisition time. Signal Noise. Data Out Pipeline ADC

DATASHEET HI5805. Features. Applications. Ordering Information. Pinout. 12-Bit, 5MSPS A/D Converter. FN3984 Rev 7.00 Page 1 of 12.

5 V Integrated High Speed ADC/Quad DAC System AD7339

PART MAX5304EUA TOP VIEW OUT 8 CONTROL INPUT REGISTER. Maxim Integrated Products 1

7545B. 12-Bit Buffered Multiplying Digital to Analog Converter FEATURES: DESCRIPTION: 7545B BLOCK DIAGRAM

Low-Power Pipelined ADC Design for Wireless LANs

MAX V, 50MHz, Low-Offset, Low-Power, Rail-to-Rail I/O Op Amp

36V, Precision, Low-Power, 90µA, Dual Op Amp

LC2 MOS Complete 12-Bit Multiplying DAC AD7845

ADC1002S General description. 2. Features. 3. Applications. Single 10 bits ADC, up to 20 MHz

+2.7V to +5.5V, Low-Power, Triple, Parallel 8-Bit DAC with Rail-to-Rail Voltage Outputs

High Common-Mode Voltage Programmable Gain Difference Amplifier AD628

High Voltage, Low Noise, Low Distortion, Unity-Gain Stable, High Speed Op Amp ADA4898-1/ADA4898-2

LF147 - LF247 LF347 WIDE BANDWIDTH QUAD J-FET OPERATIONAL AMPLIFIERS

MCP601/1R/2/3/4. 2.7V to 6.0V Single Supply CMOS Op Amps. Features. Description. Typical Applications. Available Tools.

Energy Metering IC with SPI Interface and Active Power Pulse Output. 24-Lead SSOP HPF HPF1. Serial Control And Output Buffers HPF1

Transcription:

Working with ADCs, OAs and the MSP430 Bonnie Baker HPA Senior Applications Engineer Texas Instruments 2006 Texas Instruments Inc, Slide 1 Agenda An Overview of the MSP430 Data Acquisition System SAR Converters The INS and OUTS of the SAR converter Useful Applications Using Op Amps Op Amp Configurations Driving SAR Converters 2006 Texas Instruments Inc, Slide 2 1

Where to Find ADCs and Op Amps OP OP AMP MUX FILTER Voltage Reference Source A/D REF Sensor Interface Voltage Reference Source Buffer Gain Difference Amplifier Instrumentation Amplifier Filter Level Shift Anti-Alias Filter Band-pass Filter Programmable Gain Amp Instrumentation Amp A/D Converter Driver Voltage Reference Source DDS Synthesis μ C Valve Actuator Driver Line Driver 4-20mA Driver POWER AMP D/A 2006 Texas Instruments Inc, Slide 3 ADC Architectures There are many different ADC Architectures Successive Approximation (SAR) Sigma Delta (SD) Slope or Dual Slope Pipeline Flash...as in quick, not memory All converters in the MSP430 chips are SAR and Sigma Delta types SAR determines the digital word By approximating the input signal Using an iterative process How the Sigma Delta converter determines the digital word By oversampling Applying Digital Filtering 2006 Texas Instruments Inc, Slide 4 2

Op Amp Architectures The Different Types Op Amp Architectures Single Supply Rail to Rail In Rail to Rail Out CMOS or Bipolar Dual Supply All Op Amps (OAs) in the MSP430 chips are Single Supply, CMOS Our CMOS Op amp Easily Configured with the MSP430 Controller General Purpose, Buffer, Comparator, PGA, Differential Amp Easily Programmed for Optimized Gain Bandwidth etc 2006 Texas Instruments Inc, Slide 5 Agenda An Overview of the MSP430 Data Acquisition System SAR Converters The INS and OUTS of the SAR converter Useful Applications Using Op Amps Op Amp Configurations Driving SAR Converters 2006 Texas Instruments Inc, Slide 6 3

The SAR ADC Most Serial ADCs are SARs or Sigma Deltas The MSP439 SAR Converter SAR ADC = Successive Approximation Register, Analog-to-Digital Converter ADC12 12-bit Analog-to-Digital Converter SARs are Best for General Purpose Apps Very Prevalent for Signal Level Applications: Data Loggers, Temp Sensors, Bridge Sensors, General Purpose In the Market SARs Can be 8 to 18 bits of resolution Speed range: >10 ksps to < 5 Msps SAR Analog to Digital Converter Usually require a Low-pass Filter before Analog Input 2006 Texas Instruments Inc, Slide 7 System Integration Using an A/D MSP430 Input Signal Source Amp Filter Analog SAR to Digital Analog to Converter Digital Converter Micro- Controller Engine Output Filter DAC or PWM 2006 Texas Instruments Inc, Slide 8 4

SAR Converter Block Diagram V S S 1 R IN (2 kω) Cap array is both the sample cap and a DAC 16C 2C C C S C _ Shift Register S A R 1/2 V REF Control Logic V SS V REF 2006 Texas Instruments Inc, Slide 9 Successive Approximation Concept FS 3/4FS 1/2FS Bit = 1 TEST MSB Bit = 0 TEST MSB -1 Bit = 1 TEST MSB -2 Bit = 0 TEST LSB Analog input 1/4FS 0 DAC Output Time Digital Output Code = 1010 2006 Texas Instruments Inc, Slide 10 5

ADC Ideal Transfer Function 111 110 Digital Output Code 101 100 011 010 Ideal transfer function 001 000 0 1/4 FS 1/2 FS 3/4 FS Analog Input Voltage FS 2006 Texas Instruments Inc, Slide 11 ADC with Offset and Gain Error Digital Output Code 111 110 101 100 011 010 Actual transfer function Ideal transfer function y = a (1b)x where y=digital out x=analog in a=offset err b=gain err Every Ideal Code has Offset Error added Every ideal code is Multiplied by Gain Error 001 000 0 1/4 FS 1/2 FS 3/4 FS Analog Input Voltage FS 2006 Texas Instruments Inc, Slide 12 6

Offset/Gain Impact on Dynamic Range 4096 Digital Code OUT Analog Voltage IN Worse case Dynamic Range = 4082 bits = 11.995 bits V REF Gain Error Offset Error ADC12 specifications Offset E O typ = ±2 LSB E O max = ±4 LSB Gain E G typ = ±1.1 LSB E G max = ±2 LSB (= ±0.0488%) 1 LSB = (V R -V R- )/ 2 12 Easy to calibrate 2006 Texas Instruments Inc, Slide 13 DNL and INL Errors 111 INL < 0 Actual transfer function 110 Digital Output Code 101 100 011 DNL < 0 Ideal transfer function 010 001 000 Analog Voltage In 2006 Texas Instruments Inc, Slide 14 7

INL/DNL/Noise Impact on Dynamic Range 4096 Digital Code OUT Analog Voltage IN INL, DNL rms ADC Noise V REF ADC12 specifications DNL error E D max = ±1.7 LSB INL error E I max = ±1 LSB 1 LSB = (V R -V R- )/ 2 12 INL, DNL and Noise errors move across the entire range Impacts the Effective Number of Bits (ENOB) Not Easily calibrated Effects Accuracy 2006 Texas Instruments Inc, Slide 15 ADC Input Impedance Analog Input D ESD V CC Mux Resistance R S D ESD Leakage current R I = 2kΩ Sample Cap C I = 40pF V SS Input Internal Impedance is Relatively Low A High Impedance Source Increases Sample Cap Charging Time Rise Time of Voltage on CI ~ (RS RI) * CI 2006 Texas Instruments Inc, Slide 16 8

Sample Cap Charging Time 1400 ns (min) Sample Period Start Conversion Conversion Complete SAMPCON ADC12OSC/ADC12DIV 1 2 3 4 5 6 7 8 9 10 11 12 13 D ADC12MEMx 11 9 D D D D D D D D D D D 10 8 7 6 5 4 3 2 1 0 Desired Voltage on C I V C Rise Time of (R S R I ) * C I Final Voltage on C I 2006 Texas Instruments Inc, Slide 17 Alternative High Resolution Devices ADC12 Resolution = 12 bits Minimum LSB size = VREF / 2n = 1.5 V / 212 = 366 mv # channels = 12 to 16 (depends on part number) ADS8341 Resolution = 16 bits Minimum LSB size = VREF / 2n = 2.7 V / 216 = 41.2 mv # channels = 4 ADS1100 Resolution = 16 bits Minimum LSB size = VREF / 2n = 2*2.7 V / 216 = 82.4 mv # channels = 1 2006 Texas Instruments Inc, Slide 18 9

Agenda An Overview of the MSP430 Data Acquisition System SAR Converters The INS and OUTS of the SAR converter Useful Applications Using Op Amps Op Amp Configurations Driving SAR Converters 2006 Texas Instruments Inc, Slide 19 Operational Amplifiers Most Prevalent Building Block in Analog Circuits Very Flexible - Large Variety of Functions Circuits We Will Talk About General Purpose Op amp Unity Gain Buffer Comparator PGA (Programmable Gain Amplifier) Differential Amplifier R IN R F 2006 Texas Instruments Inc, Slide 20 10

Where to Find Op Amps OP OP AMP MUX FILTER Voltage Reference Source A/D REF Sensor Interface Voltage Reference Source Buffer Gain Difference Amplifier Instrumentation Amplifier Filter Level Shift Anti-Alias Filter Band-pass Filter Programmable Gain Amp Instrumentation Amp A/D Converter Driver Voltage Reference Source DDS Synthesis μ C Valve Actuator Driver Line Driver 4-20mA Driver POWER AMP D/A 2006 Texas Instruments Inc, Slide 21 Ideal Op Amp POWER SUPPLY No min or max Voltage I SUPPLY = 0 Amps Power Supply Rejection = INPUT Input Current (I B ) = 0 Input Impedance (Z IN ) = Input Voltage ( ) no limits Zero Noise Zero DC error Common-Mode Rejection = - V DD V SS OUTPUT = V SS to V DD I OUT = Slew Rate = Z OUT = 0 Ω SIGNAL TRANSFER Open Loop Gain = Bandwidth = 0 Zero Harmonic Distortion $0.00 2006 Texas Instruments Inc, Slide 22 11

Open Loop vs Closed Loop Design OAFCx = 011 Open Loop Configuration In Comparator mode V REF OAFCx = 000 Closed Loop Configuration Always a Connection from Output to Inverting Input Gain is Dependant on Resistors R IN = High for > V REF Low for < V REF R F = ( 1 R F / R IN ) ( ) 2006 Texas Instruments Inc, Slide 23 Comparator Mode OAFCx = 011 Temperature Sensor V A (t) R NTC R PAR R REF Px.y R REF MSP430FG43x NTC R PAR Px.x V TH t = 0 t = t1 t = t2 Time V A C INT OAxI0 Comparator Timer V TH = 0.25V CC R NTC RPAR R REF --------------- = ---------- t NTC RPAR t REF 2006 Texas Instruments Inc, Slide 24 12

General Op amp Mode OAFCx = 000 OA0O OAxI1 MSP430FG43x V IN OAxI0 V REF 2006 Texas Instruments Inc, Slide 25 General Op amp Mode OAFCx = 000 Non-inverting Gain R F CAx MSP430FG43x V REF = 0.5V CC V R IN REF OA0O OA0I1 OA0I0 = (1 R F/ R IN ) V REF *R F /R IN 2006 Texas Instruments Inc, Slide 26 13

General Op amp Mode OAFCx = 000 Inverting Gain R IN R F V REF = 0.5V CC OA0O OA0I1 OA0I0 CAx MSP430FG43x V REF = 0.5V CC = V REF (1 R F/ R IN ) *R F /R IN 2006 Texas Instruments Inc, Slide 27 Data Acquisition System Analog Gain and Signal Conditioning Cell Analog Low Pass Filter (LPF) Analog to Digital Conversion (ADC) Digital Filter Input Signal Analog Output Signal Digital 2006 Texas Instruments Inc, Slide 28 Figure 4.1 14

Noise Reduction with a Low Pass Filter Noise Reduction or Anti-aliasing Filter R 23 C 22 R 21 R 22 - C 21 OA ADC12 V REF 2006 Texas Instruments Inc, Slide 29 Anti-alias Filter :: Nyquist Theorem Signal at the Input of the A/D Converter f ALIASED = f IN -Nf S Find N by making f ALIASED < f s / 2 Digital Representation at the Output of the Converter Analog Input N = 0 (1) (2) N = 1 N = 2 (3) N = 3 (4) (5) N = 4 f S /2 3f S /2 5f S /2 7f S /2 0 f S 2f S 3f S 4f S Sampled Output Representation N = 0 (2) (1) (4) (3) (5) 0 f S /2 f S 2006 Texas Instruments Inc, Slide 30 15

Filter Pro Software Filter synthesis tool for designing Multi-section filter Low-pass Filter High-pass active filter Supports 2nd to 10th order Multiple-feedback (MFB) Filter Topology Sallen-Key Filter Topology www.ti.com 2006 Texas Instruments Inc, Slide 31 Operational Amp Output Swing Rail-to-Rail Output Operation does not Exist How Close the Amplifier s Output can Come to the Power Supplies (or rails ) and still be Linear MSP430FG43x = (VSS 200mV) {min} to (VCC- 200mV) {max} = ( 1 R F / R IN ) R IN R F 2006 Texas Instruments Inc, Slide 32 16

Operational Amp Output Swing 10 Offset Voltage, V OS (mv) 0-10 -20-30 -40 0 1 2 3 3.6 4 Output Voltage, (V) 2006 Texas Instruments Inc, Slide 33 Unity Gain Buffer Mode OAFCx = 001 OAxI0 MSP430FG43x OA ADC12 Op Amp Internally connected as a buffer Non-inverting input available on a Controller pin Op Amp Output connected directly to ADC12 2006 Texas Instruments Inc, Slide 34 17

Op Amp Input Voltage Range RRIP ON = (VSS - 0.1V) {min} to (VCC 0.1) {max} Charge pump on input stage is turned on Great Feature, not all amps have this! RRIP OFF = (VSS - 0.1V) {min} to (VCC - 1.2) {max} (Appropriate for Gains > 2) 2006 Texas Instruments Inc, Slide 35 PGA Mode Non-inverting Mode OAFCx = 100 = G DACs or external R BOTTOM R R R R 2R - 2R MSP430FG44x Ax int/ext 4R 4R R TOP RRIP off OAxCTL1 111100x1 G=16 110100x1 G=8 101100x1 G=3.33 100100x1 G=4 011100x1 G=2.67 010100x1 G=2 001100x0 G=1.33 000100x0 G=1 AV SS RRIP on PGA Non-inverting 2006 Texas Instruments Inc, Slide 36 18

PGA Mode Inverting Mode OAFCx = 110 = G V REF (1 G) DACs or external R R BOTTOM R R V REF - R 2R 2R MSP430FG44x Ax int/ext 4R 4R R TOP RRIP off OAxCTL1 111110x1 G=-15 110110x1 G=-7 101110x1 G=-4.33 100110x1 G=-3 011110x1 G=2.67 010110x1 G=-1.67 001110x1 G=-1 000110x0 G=-0.33 PGA Inverting RRIP on 2006 Texas Instruments Inc, Slide 37 Bridge Network MSP430FG43x R 23 μcontroller V REF1 - C 22 Functions R L1 R L2 R L2 R L1 R 1 INA326 G = 2 (R 2 /R 1 ) = 245 R 21 R 22 C 21 - OA SAR ADC 12 bits LCL- 816G R 2 C 1 V REF2 2006 Texas Instruments Inc, Slide 38 19

Summary 12-bit SAR Converter ADC12 12-bit Resolution and Accuracy Excellent Dynamic Range For more Resolution Discrete Options Operational Amplifier OA Standard Single Supply CMOS Op Amp Rail-to-rail Input Rail-to-rail Output Six Configurations or Modes For more Accuracy Discrete Options For more Complexity Discrete Options MSP430 Analog Options Very Useful! 2006 Texas Instruments Inc, Slide 39 20