Digital To Analog Converter

Similar documents
Digital to Analog and Analog to Digital Conversion

Interfacing Analog to Digital Data Converters

Conversion Between Analog and Digital Signals

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

Programmable Single-/Dual-/Triple- Tone Gong SAE 800

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

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

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

Switch Mode Power Supply Topologies

Digital to Analog Converter. Raghu Tumati

LM1084 5A Low Dropout Positive Regulators

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

Pulse Width Modulation

24-Bit, 96kHz BiCMOS Sign-Magnitude DIGITAL-TO-ANALOG CONVERTER

The D.C Power Supply

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

LOW COST MOTOR PROTECTION FILTERS FOR PWM DRIVE APPLICATIONS STOPS MOTOR DAMAGE

The full wave rectifier consists of two diodes and a resister as shown in Figure

Op Amp Circuit Collection

Inrush Current. Although the concepts stated are universal, this application note was written specifically for Interpoint products.

A PC-BASED TIME INTERVAL COUNTER WITH 200 PS RESOLUTION

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

Analog Signal Conditioning

A Simple Current-Sense Technique Eliminating a Sense Resistor

Diode Applications. by Kenneth A. Kuhn Sept. 1, This note illustrates some common applications of diodes.

PC BASED PID TEMPERATURE CONTROLLER

ADS9850 Signal Generator Module

Micro-Step Driving for Stepper Motors: A Case Study

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

A Collection of Differential to Single-Ended Signal Conditioning Circuits for Use with the LTC2400, a 24-Bit No Latency Σ ADC in an SO-8

Section 3. Sensor to ADC Design Example


Application Note 142 August New Linear Regulators Solve Old Problems AN142-1

Advanced Monolithic Systems

Series AMLDL-Z Up to 1000mA LED Driver

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

11: AUDIO AMPLIFIER I. INTRODUCTION

Digital Audio. Fig. 1 Binary numbers

1.5A Very L.D.O Voltage Regulator LM29150/29151/29152

Building an Auto-Ranging DMM with the ICL7103A/ICL8052A A/D Converter Pair

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

AP-1 Application Note on Remote Control of UltraVolt HVPS

Laboratory 4: Feedback and Compensation

LEVERAGING FPGA AND CPLD DIGITAL LOGIC TO IMPLEMENT ANALOG TO DIGITAL CONVERTERS

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

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

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

CHAPTER 11: Flip Flops

Line Reactors and AC Drives

AN1991. Audio decibel level detector with meter driver

Lab #9: AC Steady State Analysis

Description. 5k (10k) - + 5k (10k)

Harmonics and Noise in Photovoltaic (PV) Inverter and the Mitigation Strategies

Wireless Precision Temperature Sensor Powers Itself, Forms Own Network, Enabling Easy Deployment in Industrial Environments

DRM compatible RF Tuner Unit DRT1

Considerations When Specifying a DC Power Supply

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

Application Note. Line Card Redundancy Design With the XRT83SL38 T1/E1 SH/LH LIU ICs

LAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS

Analog outputs. Public Document. VS10XX AppNote: Connecting analog outputs

DC/DC power modules basics

TDA4605 CONTROL CIRCUIT FOR SWITCH MODE POWER SUPPLIES USING MOS TRANSISTORS

1995 Mixed-Signal Products SLAA013

LC2 MOS Quad 8-Bit D/A Converter AD7226

Pulse Width Modulation (PWM) LED Dimmer Circuit. Using a 555 Timer Chip

1-Mbit (128K x 8) Static RAM

SWITCH-MODE POWER SUPPLY CONTROLLER PULSE OUTPUT DC OUTPUT GROUND EXTERNAL FUNCTION SIMULATION ZERO CROSSING INPUT CONTROL EXTERNAL FUNCTION

Analog and Digital Signals, Time and Frequency Representation of Signals

16-Bit Monotonic Voltage Output D/A Converter AD569

ADC12041 ADC Bit Plus Sign 216 khz Sampling Analog-to-Digital Converter

Portable Time Interval Counter with Picosecond Precision

See Horenstein 4.3 and 4.4

Programmable-Gain Transimpedance Amplifiers Maximize Dynamic Range in Spectroscopy Systems

LM 358 Op Amp. If you have small signals and need a more useful reading we could amplify it using the op amp, this is commonly used in sensors.

AVR Timer/Counter. Prof Prabhat Ranjan DA-IICT, Gandhinagar

AVX EMI SOLUTIONS Ron Demcko, Fellow of AVX Corporation Chris Mello, Principal Engineer, AVX Corporation Brian Ward, Business Manager, AVX Corporation

Design of a TL431-Based Controller for a Flyback Converter

AN ULTRA-CHEAP GRID CONNECTED INVERTER FOR SMALL SCALE GRID CONNECTION

Tamura Closed Loop Hall Effect Current Sensors

CA3306, CA3306A, CA3306C 6-Bit, 15 MSPS, Flash A/D Converters

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

Create Colorful and Bright LED Light with an LED Matrix Dimmer

Features. Note Switches shown in digital high state

Technical Note #3. Error Amplifier Design and Applications. Introduction

Asynchronous counters, except for the first block, work independently from a system clock.

Variable Resolution, 10-Bit to 16-Bit R/D Converter with Reference Oscillator AD2S1210-EP

LC 2 MOS Signal Conditioning ADC with RTD Excitation Currents AD7711

Push-Pull FET Driver with Integrated Oscillator and Clock Output

Simple PWM Boost Converter with I/O Disconnect Solves Malfunctions Caused when V OUT <V IN

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

OMNIYIG. .5 TO 2 GHz, 1 TO 4 GHz, 6 to 18 GHz Thin Film YIG-TUNED OSCILLATORS OUTLINE DIMESIONS MOUNTING SURFACE GND +15V + TUNE - HTR HTR

VOLTAGE-TO-FREQUENCY CONVERTER

AVR131: Using the AVR s High-speed PWM. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

Design A High Performance Buck or Boost Converter With Si9165

Designing Stable Compensation Networks for Single Phase Voltage Mode Buck Regulators

ANADOLU UNIVERSITY DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING

LTC Channel Analog Multiplexer with Serial Interface U DESCRIPTIO

Application Note AN-1068 reva

Transcription:

Digital To Analog Converter To output analog voltage from a PC or µc, the numerical value (integer) must be converted to the analog voltage equivalent by a D/A converter. Analog outputs are much simpler than analog inputs. This process is very fast, and does not experience the timing problems of sampling and conversion with analog inputs. However, analog outputs are still subject to quantization errors.

Weighted Resistor Summing DAC Develop an analytical model for 3-bit DAC output in terms of the resistances, reference voltage and the switch positions.

Ladder Resistor Network DAC + - Vr 1 2 3 S W A2 R 1 2 R A1 A0 2R 2R R 2R Vo G 1 B A T 1 2 3 S W A1 1 2 3 S W A0 R 2 2 R R 3 2 R R 4 R 5 R 6 2 R R R Vo G N D Ex: Develop a model for 2-bit DAC output, via superposition. Prelab L1-1: Develop an analytical model for 3-bit DAC output in terms of the R-2R resistances, reference voltages and the switch positions. Prelab L1-2: Develop a model for the switch currents. Prelab L1-3: Install Arduino IDE masek/arduino01.pdf

Ladder Resistor Network DAC - cont d Solution to Prelab L1-1: v 0 V ref = + + R2 2 + 5R 1R 2 + 2R1 2 4R2 2 + 7R 1R 2 + 2R1 2 D 2 + R 2 (R 2 + 2R 1 ) 4R2 2 + 7R 1R 2 + 2R1 2 D 1 + R 2 2 4R 2 2 + 7R 1R 2 + 2R 2 1 D 0

Ladder Resistor Network DAC - cont d Test of the solution to Prelab L1-1: R 2 = 2R 1 v 0 = D 2 V ref 2 + D 1 4 + D 0 8

Uncertainty Maximum uncertainty 1 : MAX V DAC = V DAC R R 1 + V DAC 1 R 2 Probable uncertainty 2 : R 2 +... + V DAC R N R N PROB V DAC = ( VDAC R 1 R1 ) 2 ( ) 2 ( ) 2 VDAC VDAC + R2 +... + RN R 2 R N Assignment A1-1,2: Calculate DAC uncertainty for both, (1) 3-bit Weighted Resistor Summing DAC and (2) 3-bit Ladder Resistor Network DAC, assuming 1% tolerances. 1 represents the worst case uncertainty 2 represents a more realistic uncertainty

A1-1 Solution V o = ( R R 2 D 2 + R R 4 D 1 + R R 8 D 0 )V R MAX V o D0 =D 1 =D 2 =1 = R V R R2 R + R 2 R V R R4 2 R + R 4 R V R 4 R 8 R8 R 8 MAX V o = ( 1 2 1% + 1 4 1% + 1 8 1%)V R MAX V o = 7 8 1%V R =0.87%V R

A1-2 Solution MAX V o D0 =D 1 =D 2 =1 = + R2 2(7R 2 + 4R 1 ) (4R2 2 + 7R 1R 2 + 2R1 2 V )2 R R 1 + R 1 R 2 (7R 2 + 4R 1 ) (4R2 2 + 7R 1R 2 + 2R1 2 V )2 R R 2 MAX V o R2 =2R 1 = ( 9 128 R 1 R 1 + 9 256 R 2 R 1 )V R MAX V o R2 =2R 1 = ( 9 128 R 1 R 1 + 9 128 R 2 2R 1 )V R MAX V o = 9 64 1%V R =0.14%V R The three bit R-2R DAC exhibits over six times less uncertainty in comparison to the three bit weighted resistor DAC.

PWM to Voltage - filter design Required Attenuation in terms of the ripple voltage: A db = 20 log V RIP V PWM (1) Required Attenuation in terms of the slope S (-20, -40,...): A db = S log f PWM f 3dB (2) f 3dB = f PWM 10 A db S (3) RC filter: f 3dB = 1 2π R F C F (4)

PWM to Voltage - filter design cont d

PWM to Voltage - IC MILPITAS, CA - August 12, 2014 - Linear Technology Corporation introduces the LTC2645, a quad-channel 12-bit/10-bit/8-bit PWM-to-voltage output digital-to-analog converter (DAC) with 10ppm/Â C reference. These parts convert PWM input signals to 12-bit accurate, stable, buffered voltage outputs in less than 8 microseconds, eliminating the ripple and delay typically associated with analog filters.... The LTC2645 measures the period and pulse width of the PWM input signals and updates the DACs after each PWM input rising edge, accepting PWM input frequencies from 30Hz up to 100kHz. An IDLSEL pin provides flexibility to set the outputs to idle at zero or full scale, power-down with high-impedance output, or hold the previous state indefinitely in response to an idle PWM input. This convenient mode has the advantage over analog filter implementations, which require the PWM to run continuously.

Analog to Digital Conversion - definitions To input an analog voltage into a PC or µcontroller, the continuous voltage value must be first sampled and then converted to a numerical value by an A/D converter. The process of sampling the data is not instantaneous, so each sample has a start and stop time. The time required to acquire the sample is called the sampling time t s. A/D converters can only acquire a limited number of samples per second. The time between samples is called the sampling period T S, and the inverse of the sampling period is the sampling frequency/rate. T s < T S The maximum V max and minimum V min readable voltages are a function of the control hardware such as 0V to 5V. The number of bits of the A/D converter is the number of bits in the result word. If the A/D converter is 8 bit then the result can read up to 256 different voltage levels.

Sampling DAC - Digital to Analog Conversion Sample & Hold (S/H) circuitry takes a snapshot of the input signal and holds the value for the A/D converter to have a stable signal. Often a FET switch connects capacitor to buffered input at the beginning of every sample period. The capacitor then holds the voltage value sampled until a new sample is acquired. This voltage slowly decreases over time despite of the high impedance output buffer. It is then necessary to perform the A/D conversion quickly in a short period of time.

S&H Chopper Circuit

Flash ADC consist of a set of comparators and reference voltages, and a digital encoder typically 4 to 8 bit designs due to the required number of comparators fast scanning rates typically used in TV, fast measurement instruments often a bubble error correction is applied prior to digital encoding

Successive Approximation ADC > 7.5 > 7 < 6.5 > 6 > 5.5 < 5 < 4.5 4 > 3.5 > 3 < 2.5 < 2 > 1.5 < 1 < 0.5 MSB 2 2 2 1 LSB 2 0 ±0.5V = LSB/2

Timer/Counter based ADC s RC network with a comparator V C = V R (1 e t τ ) τ = RC Charging a capacitor method is a simple time-interval based technique, however, the accuracy is low due to non-linearity, and V R / RC stability.

Timer/Counter based ADC s - cont d Dual Slope Integrating ADC applications that do not require high speed sampling immune to non-linearity of the integrator can be very accurate provided a longer time of conversion is acceptable An integrator is the core element in the dual-slope ADC. A zeroed integrator (V int = 0) is first connected to the measured voltage V S&H for a fixed time duration (run-up time T 1 =const). This causes the integrator to wind up to a certain voltage, say Vint u. Then a fixed reference voltage V R of the opposite polarity than V S&H is connected to the integrator which causes the integrator to back-integrate from Vint u to zero voltage. This phase is often referred to as run-down phase of time duration T 2.

Timer/Counter based ADC s - cont d Dual Slope Integrating ADC - SUMMARY Two voltage signal integration phases: 1 integration of the input voltage V S&H over a constant time period T 1 starting at zero (0V) 2 (back) integration of the constant reference voltage V R over a variable time T 2 until zero level crossing occurs (0V) Using a ratiometric method, the non-linearity and drift of RC is not critical as was the case of RC network ADC or a single slope ADC. V S&H = V R T 2 T 1 (5)

Assignment II. 1 Specify all components in the dual slope ADC circuit and define the timing sequence of control lines S-H, RES, INT, DEINT. 2 Simulate the analog to digital conversion using SPICE transient analysis and provide these waveforms: S-H(t), RES(t), INT(t), DEINT(t), V INT (t), COMP(t). 3 Propose a solution to minimize the transient spikes at the integrator s input. 4 Derive an expression for the measured voltage in terms of the design parameters and the measured time of de-integration.

Assignment II. - cont d Four digital outputs are required to control the conversion process assuming only uni-polar voltage being measured. One digital output controls S&H operation, two digital outputs control switching of V S&H and V R to the integrator input, and one digital output is used to discharge the capacitor at the beginning of each conversion cycle. LTspice: masek/dual-slope-adc.asc

Assignment II. - solution