13901 understanding and applying dacs

55
The World Leader in High-Performance Signal Processing Solutions Understanding and Applying DACs

Upload: eligius-martinez

Post on 11-Mar-2015

58 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: 13901 Understanding and Applying Dacs

The World Leader in High-Performance Signal Processing Solutions

Understanding and Applying DACs

Page 2: 13901 Understanding and Applying Dacs

DACs: Not Just For Level Setting Anymore

Conduit from Digital to AnalogApplications

Communications –Wireless, OpticalConsumer – Audio, VideoIndustrial – Controls, InterfaceInstrumentation – Settings, Signals

Page 3: 13901 Understanding and Applying Dacs

TopicsWhat they are / doHow they workCare and Feeding

SpecificationsSelectionApply

Applications

MSB

LSB

VREF

N-BITDAC

+FS

0 OR –FS

RANGE(SPAN)

ANALOGOUTPUT

DIGITALINPUTN-BITS

Page 4: 13901 Understanding and Applying Dacs

Basic DAC with External Reference(ANALOG)

REFERENCEINPUTVDD

DIGITALINPUT DAC

VSS

VREF

ANALOGOUTPUT

GROUND(MAY BE INTERNALLY CONNECTED TO VSS)

Page 5: 13901 Understanding and Applying Dacs

Transfer Function: Ideal Unipolar 3-bit DAC

DAC’s create a correspondence between Digital Input and Analog OutputUnipolar or BipolarLinear or Non-LinearQuantization UncertaintyMonotonic

DIGITAL INPUT (STRAIGHT BINARY)

ANALOGOUTPUT

000 001 010 011 100 101 110 111

FS

0

7/8

3/4

5/8

QuantizationUncertainty

1/23/81/4

1/8

Page 6: 13901 Understanding and Applying Dacs

Offset and Gain Error

ACTUAL

OFFSETERROR

WITH GAIN ERROR:OFFSET ERROR = 0ZERO ERROR RESULTSFROM GAIN ERROR

ACTUAL

IDEAL IDEAL

ZERO ERROR ZERO ERROR

NO GAIN ERROR:ZERO ERROR = OFFSET ERROR

0 0

–FS –FS

+FS+FS

Page 7: 13901 Understanding and Applying Dacs

DAC Integral Linearity Errors(Same Converter on Both Graphs)

END POINT METHOD BEST STRAIGHT LINE METHOD

LINEARITYERROR ≈ X/2

INPUT

OUTPUT

LINEARITYERROR = X

INPUT

Page 8: 13901 Understanding and Applying Dacs

DAC Differential Nonlinearity

DIGITAL INPUT

ANALOGOUTPUT

FS

d

d

1 LSB,DNL = 0

2 LSB,DNL = +1 LSB

1 LSB,DNL = 0

–1 LSB,DNL = –2 LSB

1 LSB,DNL = 0

1 LSB,DNL = 0

2 LSB,DNL = +1 LSB

NON-MONOTONIC IFDNL < –1 LSB

BIT 2 IS 1 LSB HIGHBIT 1 IS 1 LSB LOW

000 001 010 011 100 101 110 111DIGITAL INPUT

ANALOGOUTPUT

FS

000 001 010 011 100 101 110 111

NON- MONOTONIC

Page 9: 13901 Understanding and Applying Dacs

DAC’s are a Sampled Data System

LPFORBPF

N-BITADC DSP N-BIT

DAC

LPFORBPF

fs fs

fa

AMPLITUDEQUANTIZATION

DISCRETETIME SAMPLING

fa

1fs

ts=

t

Page 10: 13901 Understanding and Applying Dacs

Alias Images in the Time DomainSignal (A) = fa SIGNAL (B) (= fs – fa )

1fs t

NOTE: fa IS SLIGHTLY LESS THAN fs

Page 11: 13901 Understanding and Applying Dacs

DAC sin x/x Roll Off(Amplitude Normalized)

SAMPLEDSIGNAL

t

0.5fc fc 1.5fc 2fc 2.5fc 3fc

A = sin π f

fcπ ffc

f

A

1–3.92dB

RECONSTRUCTEDSIGNAL

1fc

t

IMAGESIMAGES

IMAGES

0

Page 12: 13901 Understanding and Applying Dacs

DAC Settling Time

DEADTIME

RECOVERYTIME

LINEARSETTLING

SLEWTIME

t = 0

ERROR BAND

ERROR BAND

SETTLING TIME (INPUT TO OUTPUT)

SETTLINGTIME (OUTPUT)

Page 13: 13901 Understanding and Applying Dacs

DAC Transitions (Showing Glitch)

IDEAL TRANSITIONTRANSITION WITHUNIPOLAR (SKEW)

GLITCH

t

TRANSITION WITHDOUBLET GLITCH

t t

Page 14: 13901 Understanding and Applying Dacs

Calculating Net Glitch Impulse Area

+V1

A1

A2 t–V2

t1 t2

V1· t12

PEAK GLITCH IMPULSE AREA = A1 ≈

V2· t22

V1· t12

NET GLITCH IMPULSE AREA = A1 – A2 ≈ –

Page 15: 13901 Understanding and Applying Dacs

Effect of Code-Dependent Glitches on Spectral Output

+ FULL SCALE

fO = 3MHz

fS = 10MSPSMIDSCALE

– FULL SCALE

0 1 2 3 4 5 6 7 8 9 10

fS

2fOfS – 2fO

AMPLITUDECANNOTBE FILTEREDfO fS – fO

FREQUENCY (MHz)fS2

Page 16: 13901 Understanding and Applying Dacs

Typical DAC DNL Errors(Exaggerated)

OUT OUT

IN IN

MIDSCALE DNL 1/4FS, 3/4FS DNL

(A) (B)

Page 17: 13901 Understanding and Applying Dacs

The World Leader in High-Performance Signal Processing Solutions

DAC Architectures

Page 18: 13901 Understanding and Applying Dacs

Voltage Output Thermometer DAC: The Kelvin Divider ("String DAC")

Switches are Basic DAC Building BlockEqual ResistancesMonotonicity is Inherent

3-TO-8DECODER

3-BITDIGITALINPUT

ANALOGOUTPUT

V REF

8TO

SWITCHES

R

R

R

R

R

R

R

R

Page 19: 13901 Understanding and Applying Dacs

A Slight Modification to a String DACYields a "Digital Potentiometer"

3-TO-8DECODER

3-BITDIGITALINPUT

TAP

8

TOSWITCHES

TERMINAL A

R

R

R

R

R

R

R

TERMINAL B

Page 20: 13901 Understanding and Applying Dacs

High Speed Thermometer DAC with Complementary Current Outputs

3-BITDIGITALINPUT

3-TO-7DECODER

I I I I I II

CURRENTOUTPUTSMAY HAVE

COMPLIANCEOF 1 OR 2 V

OUTPUT OUTPUT

A B C D E F G

TOSWITCHES

7

Page 21: 13901 Understanding and Applying Dacs

PMOS Transistor Current Switches

RL

+VS

RL

Page 22: 13901 Understanding and Applying Dacs

Voltage-Mode Binary Weighted Resistor DAC

R/8 R/4 R/2 R

V

V

REF

OUT

MSBLSB

Adapted from: B. D. Smith, "Coding by Feedback Methods," Proceedings of the I. R. E., Vol. 41, August 1953, pp. 1053-1058

Page 23: 13901 Understanding and Applying Dacs

Current-Mode Binary Weighted DACs(A) RESISTOR (B) CURRENT SOURCE

I/2 I/4 I/8

LSB

IVREF

MSB LSB

R 2R 4R 8R

VREF

MSB LSB

R 2R 4R 8R

MSB

DIFFICULT TO FABRICATE IN ICFORM DUE TO LARGE RESISTOR OR CURRENT RATIOS FOR HIGH RESOLUTIONS

CURRENT OUTPUTSINTO VIRTUAL GROUNDS

Page 24: 13901 Understanding and Applying Dacs

Voltage-Mode R-2R Ladder Network DAC

2R

R R R

2R 2R 2R 2R

V

V

REF

OUT

MSBLSB

Adapted from: B. D. Smith, "Coding by Feedback Methods," Proceedings of the I. R. E., Vol. 41, August 1953, pp. 1053-1058

Page 25: 13901 Understanding and Applying Dacs

Current-Mode R-2R Ladder Network Resistor-Based DAC

2R

RRR

2R2R2R2R

VREF

MSB LSB

CURRENTOUTPUT

INTOVIRTUALGROUND

<< R

*

* GAIN TRIM IF REQUIRED

VREF can be AC allowing 4 quadrant Multiplication

Page 26: 13901 Understanding and Applying Dacs

3-Bit Switched Capacitor DAC

_

+C/ 4C/ 2C C/ 4

AIN

VREF

SIN

SC

S1 S2 S3 S4

BIT1(MSB)

BIT2 BIT3(LSB)

A

CTOTAL = 2C

SWITCHES SHOWN IN TRACK (SAMPLE) MODE

Page 27: 13901 Understanding and Applying Dacs

Equal Current Sources Switchedinto an R-2R Ladder Network

I I I I

OUTPUT

MSB

R R R

2R 2R 2R 2R2R

LSB

Adapted from: Bernard M. Gordon and Robert P. Talambiras, "Signal Conversion Apparatus,"U.S. Patent 3,108,266, filed July 22, 1955, issued October 22, 1963

Page 28: 13901 Understanding and Applying Dacs

Binary-Weighted Current SourcesSwitched into a Load

R (CAN BE EXTERNAL)

OUTPUT

I I/2 I/4 I/8

MSB LSB

Page 29: 13901 Understanding and Applying Dacs

Segmented Voltage Output DACsKELVIN-VARLEY DIVIDER

("STRING DAC")VREF

(A)

VREF

OUTPUT

KELVIN DIVIDER ANDR-2R LADDER NETWORK

NOTE:MSB OF R-2R LADDER

ON RIGHT

IF THE R-2R LADDER NETWORKIS MONOTONIC, THE

WHOLE DAC ISMONOTONIC

OUTPUT

(B)

A

B

A

B

A

B

A

B

A

A

B A

B

Page 30: 13901 Understanding and Applying Dacs

Segmented Unbuffered String DACs Use Patented Architecture

R

R

R

R

R

R

R

R

R8

VREF

6364

VREF

5564

VREF

5464

VREF

5364

VREF

5264

VREF

5164

VREF

5064

VREF

4964

VREF

4864

VREF

4064

VREF

3264

VREF

2464

VREF

1664

VREF

864

VREF

R

5564

VREF

4864

VREF

R

R OUTPUT

R

R

R

R

Dennis Dempsey and Christopher Gorman, "Digital-to-Analog Converter,"U.S. Patent 5,969,657, filed July 27, 1997, issued October 19, 1999.

Page 31: 13901 Understanding and Applying Dacs

Segmented Current Output DACs:(A) Resistor-Based, (B) Current-Source Based

R R R R R R R 2R2R 2R 2R 2R

R R RVREF

-3-BIT MSB THERMOMETER DAC 4-BIT R-2R DAC

CURRENTOUTPUT

CURRENT

I I I I I I I I4

I2

I8

I16

-3-BIT MSB THERMOMETER DAC 4- BIT BINARY DAC

OUTPUT

(A)RESISTOR

BASED

IOUT

IOUT

IOUT

(B)CURRENT-SOURCEBASED

IOUT

Page 32: 13901 Understanding and Applying Dacs

AD9775 TxDAC™ 14-Bit CMOS DAC Core

CLOCK

14-BITLATCH

51-BITLATCH

31CURRENTSWITCHES

15CURRENT

5 BINARYCURRENTSWITCHES

BITS 1-5DECODE

5-TO-31

BITS 6-9DECODE

4-TO-15

5 5

15154

31 315

14

CURRENTOUTPUT

FS =2mA-20mA

SWITCHES

I = 512 LSB

I = 32 LSB

I = 1 LSB

5

NOTE: Differential Outputs Not Shown

Page 33: 13901 Understanding and Applying Dacs

Analog Filter Requirements for fo = 10MHZ: fc = 30MSPS, and fc = 60MSPS

fCLOCK = 30MSPS

dB

IMAGE

10 20 30 40 50 60 70 80

fo

ANALOG LPF

10 20 30 40 50 60 70 80

IMAGE

ANALOGLPF

FREQUENCY (MHz)

IMAGEIMAGEIMAGE

IMAGE

fo

fCLOCK = 60MSPS

dB

A

B

Page 34: 13901 Understanding and Applying Dacs

Oversampling Interpolating DAC

DIGITALINTERPOLATION

FILTERDAC

ANTI-IMAGINGFILTER

N-BITS@ fs

N-BITS@ K fs

(FROM PLL CLOCK MULTIPLIER)Kfs

ANALOGOUTPUT

fsfs2

(B): OVERSAMPLINGWITH INTERPOLATION

Anti-imaging Filter Response(A):NYQUIST

ffKfsKfs

2

Page 35: 13901 Understanding and Applying Dacs

Example of 2x LowPass Interpolation

Page 36: 13901 Understanding and Applying Dacs

Sigma-Delta DACsSINGLE BIT

N-BITS @ fsN-BITS @ K fs ANALOG SIGNAL:

2 LEVELS

ANALOGOUTPUTDIGITAL

INTERPOLATIONFILTER

DIGITALΣ∆

MODULATOR

1-BITDAC

ANALOGOUTPUTFILTER

1- BIT @ KfS

MULTIBIT

N-BITS @ fsN-BITS @ K fs ANALOG SIGNAL:

2M LEVELS

ANALOGOUTPUTDIGITAL

INTERPOLATIONFILTER

DIGITAL

Σ∆

MODULATOR

M-BITDAC

ANALOGOUTPUTFILTER

M- BITS @ KfS

MULTIBIT

Page 37: 13901 Understanding and Applying Dacs

Double-Buffered DAC Permits ComplexInput Structures and Simultaneous Update

OUTPUTDIGITALINPUT INPUT STRUCTURE:

MAY BE SERIAL,PARALLEL, BYTE-WIDE,

ETC.

OUTPUT LATCHTRANSFERS DATA

TO DAC -TIMING IS

INDEPENDENT OFINPUT

DAC

OUTPUT STROBE -MAY GO TO MANY DACs

fc = SAMPLING FREQUENCY

Page 38: 13901 Understanding and Applying Dacs

The World Leader in High-Performance Signal Processing Solutions

DAC Applications

Page 39: 13901 Understanding and Applying Dacs

LCD Backlight Adjustment using Digital Potentiometer

ADCAmbient

Light Sensor

Micro-controller

TIA

AD5245 ADM8846White LED

Driver

Rset

Page 40: 13901 Understanding and Applying Dacs

uC

Power Supplies

Inlet Fan Side

SMBus

VoltageMonitoring

2.5V

5V

1.2V5V ON1.2V ON

uC RESETuC WDI

12V

Power Brick ON

Back-Plane 3.3V

48V

Zone 2Thermal

Exhaust Fan Side

Zone 1Thermal

ADM1060 Sequencer

Digital Pots Used To Margin Supplies

Digital Pots Used To Margin Supplies

Power Supply Margining Using Digital Potentiometers

Page 41: 13901 Understanding and Applying Dacs

Dynamic Biasing of DSP Core Voltage

Output Voltage of ADP3051

FB Pin of ADP3051

Rbot

Rtop Rdigipot

Rin AD525850kΩ ± 30%

25kΩ ± 1%

22kΩ±1%

Adding Rtop to improve system tolerance

Min MaxStartup Voltage 1.112 1.220Adjustment Range 0.800 1.326

Page 42: 13901 Understanding and Applying Dacs

Streaming Digital Video Distribution System

DSP or Video

Processor

6-CHVideo DAC

Host CPU with digital video

storage

PCI Bus

SDRAM FLASH

EMIFADV7322

VideoAmp

VideoAmp

VideoAmpVideo

Port

VideoAmp

VideoAmp

VideoAmp

SDTV

HDTV

AD8061

Component YPrPb

Y

Pr

Pb

AD8061

AD8061

AD8061

AD8061

AD8061

Page 43: 13901 Understanding and Applying Dacs

Automatic Gain Control of VGA for RF Transmitter

AD5620

Page 44: 13901 Understanding and Applying Dacs

Thermal & System Management:Wireless Transmitter

0

90 ∑

BPFBPFMIXER RF AMP

LPF

TxDAC

TxDAC

VC_TCXO

ADT7516

AD8349 I/Q MODULATORLPF

ADL 5330IF AMP

DACA

DACB

DACC

AIN1

Page 45: 13901 Understanding and Applying Dacs

Fundamental DDS Architecture

Angleto

AmplitudeConverter

D-bitsDAC

Accumulator

TuningWord

IN

SampledSineWave

P-bitsN-bits

N-bits

CLOCK

Page 46: 13901 Understanding and Applying Dacs

Fundamental DDS ArchitectureSine Wave Synthesis

TuningWord

IN

Angleto

AmplitudeConverter

D-bits DAC

Accumulator

SampledSineWave

Phase Truncated Phase Quantized Amplitude Sampled Sine Wave

Phas

e

- Amplitude +

Angle to AmplitudeTransformation

P-bitsN-bits

N-bits

2N

0

Phas

e

2P

0

Fo = FsT / 2N

Page 47: 13901 Understanding and Applying Dacs

Fundamental DDS Architecture

The “Phase Wheel” Concept:C = 32

Accumulator capacity

T = 5Tuning word value

N = 5Accumulator bits

For this particular case, one revolution around the phase wheel requires 6.4 clock cycles (C/T=6.4).

0

32 = 2N = C

1

2

4

31

T2T

3T

8

16

24

4T5T

6T

3

5

7T

0

+1

-1

A M

P L

I T

U D

E

P H A S E

Instantaneous value ofthe accumulator output.

Page 48: 13901 Understanding and Applying Dacs

DDS as a Building BlockClock Generator

DAC

Clock IN (f)

DDS Core

(digital)Tuning Word

COS

SIN

PLL(M)

M x f

ReconstFilter

DC Reference

Clock OUT

COMPARATOR

FrequencyReference

SINEWAVE: - High frequency resolution - Programmable

CLOCK: - Precise frequency - Low jitter

Page 49: 13901 Understanding and Applying Dacs

DDS as a Building BlockDigital Modulator

FSK Modulator

DAC

Clock IN (f)

DDS Core

(digital)

Tuning Word #1(f1)

COS

SIN

PLL(M)

M x f

FrequencyReference

FSK Out

MUX

FSK Data(0,1)

f1

f2

Tuning Word #2(f2)

0

1

Page 50: 13901 Understanding and Applying Dacs

DDS as a Building BlockDigital Quadrature Modulator

DAC

Clock IN(f)

DDS Core

(digital)Tuning Word(carrier=ωc)

COS(ωc)

PLL(M)

M x f

FrequencyReference

ModulatedOutput

Digital Modulator

SIN(ωc)

Sampler

"I" Signal

"Q" Signal

Page 51: 13901 Understanding and Applying Dacs

Frequency Sweep/Burst GeneratorsAD5930 – Low Power DDS

FSTART

FSTART

FSTART

Page 52: 13901 Understanding and Applying Dacs

10G Optical Transceiver

10G LDDAND

LASER

PIN/APDAND TIA

IRXP

IMODMON

IMPD

IBIASMON

AINMUX

SDA

VLSRBIASVLSRPWRMON

VXLOPMON

IBIAS

IMOD

SCL

REFOUT/REFIN

AD539x-3AVDD

DVDD AVDD

REFIN

AD7994

12-BITADC

TIAs

I2CBUS

3V

CONTROLLERSDA SCL

0377

3-0-

062

Page 53: 13901 Understanding and Applying Dacs

Industrial PLC I/O card

Page 54: 13901 Understanding and Applying Dacs

High Voltage MEMs Actuator

Page 55: 13901 Understanding and Applying Dacs

DAC’s Abound

DAC’s are EverywhereADI has the broadest and deepest selectionTools, education, etc. on ADI website – www.analog.com

On to your questions

THANK YOU