32
ME 4447: Introduction to Mechatronics 1 Digital to Analog Converters (DAC) Jesse Barton Hyun Gyu Kim Christopher Neel

Dac

Embed Size (px)

Citation preview

Page 1: Dac

ME 4447: Introduction to Mechatronics

1

Digital to Analog Converters (DAC)

Jesse BartonHyun Gyu Kim

Christopher Neel

Page 2: Dac

ME 4447: Introduction to Mechatronics

2

What is a DAC?

A digital-to-analog converter (DAC) is a circuit that produces an analog current or voltage that is proportional to an analog reference (voltage or current) and an N-bit binary word.

Vout = k x Vref x (Binary Word)

Page 3: Dac

ME 4447: Introduction to Mechatronics

3

In English

• DACs generate piecewise continuous signals from digital code.

OR• DAC converters are devices that receive a

binary word from the microprocessor and convert it to a scaled analog voltage (or current).

Page 4: Dac

ME 4447: Introduction to Mechatronics

4

DAC Configuration

Page 5: Dac

ME 4447: Introduction to Mechatronics

5

DAC Types

Multiplying DAC - reference source is external to the DAC

package

Nonmultiplying DAC - reference source is inside the DAC package

Page 6: Dac

ME 4447: Introduction to Mechatronics

6

Multiplying DAC advantages• External ref. can be time-varying analog voltage that multiplies

binary function fixed programmable byte scales continuous output

instead of using time-varying bytes w/ fixed VR to produce discrete output

• External reference can be fixed less likely to produce error from reference voltagedrift with temperature than internal reference

Page 7: Dac

ME 4447: Introduction to Mechatronics

7

DAC Circuit Types

Two types of DAC Circuits:

1. Binary weighted

2. R-2R ladder

Page 8: Dac

ME 4447: Introduction to Mechatronics

8

N-Bit Binary Weighted DAC

Page 9: Dac

ME 4447: Introduction to Mechatronics

9

Binary Weighted Principles

MSB b

bitsinput ofnumber N

MSB toingcorrespond resistance R

junction leaving currents of sumI

2

1

0

110

N

iii

R R

bVI

Page 10: Dac

ME 4447: Introduction to Mechatronics

10

Principles Cont’d

V0 = -RfI0

V0 = voltage output from amplifier

Rf = feedback resistance

Resolution= VR/2N

Note: For a gain of 1, R = 2Rf

Page 11: Dac

ME 4447: Introduction to Mechatronics

11

Example

Find output voltage and current for a binary weighted resistor DAC of 4 bits where :

R = 10 k Ohms, Rf = 5 k Ohms and VR = 10 Volts. Applied binary word is 1001.

Page 12: Dac

ME 4447: Introduction to Mechatronics

12

SolutionRf = (R/2)

R2R4R8R Vo

VR

1-bit

MSB

2-bit3-bit4-bit

iI

Page 13: Dac

ME 4447: Introduction to Mechatronics

13

Solution Cont’d

V625.5)A001125.0)(5(

IR- V

A 0.001125-

10*2

1

10*2

0

10*2

0

10*2

1V10

30

0f0

0

43424140

V

I

Io

Page 14: Dac

ME 4447: Introduction to Mechatronics

14

Solution Cont’d

Binary input = 1001 = 9

From example, V0 = 5.625V

V0/VR = 5.625V/10V = 9/16

Page 15: Dac

ME 4447: Introduction to Mechatronics

15

Limitations of the Binary Weighted DAC

Has problems if bit length is longer than 8 bitsFor example, if R = 10 k OhmsR8 = 28-1(10 k Ohms) = 1280 k OhmsIf VR = 10 Volts,I8 = 10V/1280 k Ohms = 7.8 AOp-amps to handle those currents are expensive

because this is usually below the current noise threshold.

Page 16: Dac

ME 4447: Introduction to Mechatronics

16

Limitations Cont’d

If R = 10 Ohms and Vref = 10 V

I = VR/R = 10V/10 Ohms = 1 A

This current is more than a typical op-amp

can handle.

Page 17: Dac

ME 4447: Introduction to Mechatronics

17

Limitations Cont’d

Intuitively, the resistance values must be accurate to less than one part in 2N for the RN input to be meaningful. This is difficult to do, especially in IC’s.

Page 18: Dac

ME 4447: Introduction to Mechatronics

18

R/2R ladder DAC

• Most popular single package DAC

• Resolves BWL problems• Only two resistor values

Page 19: Dac

ME 4447: Introduction to Mechatronics

19

Equations governing R/2R

bitsofnumberisNwhere;2

ResolutionNRV

MSBisbwhere;2 1

1

N

iii

Ro

bVV

bitsofnumberisNwhere;2

11

NRfso VV

MSBisbwhere;22 1

11

N

iiiR

i

b

R

VI

Page 20: Dac

ME 4447: Introduction to Mechatronics

20

Principles of Operation

• Binary Switch true ground w/ LOW input

• Binary Switch op-amp virtual ground w/ HI input

• Splits current at each bit• After multiplication of

binary word Io

• Inverting Op-amp used to generate analog output voltage

• Performed many times per second semi-continuous DAC

Page 21: Dac

ME 4447: Introduction to Mechatronics

21

Specifications of DAC’s• Resolution

– Increases (improves) as number of bits increases– Most microcontrollers use 8 bit DAC– Some 12 bit DAC used in high end applications

• Linearity– Max deviation over full range of output @ room temp.

• Settling Time– Time for DAC to come w/in 0.5 LSB {Vo ± 0.5*(VR /2N)} of new voltage after binary change– Typ. current output DAC’s conversion times (10 ns to 1 μs)

• Reference Voltage– Internal / external

Page 22: Dac

ME 4447: Introduction to Mechatronics

22

DAC Errors

• Resolution: more bits = more precise

• Overshoot & Settling Time: String of amplifiers w/ feedback loops = very rapid response or

very slow response depending on system properties

• Absolute Accuracy Error: Difference between theoretical and actual output

• Conversion Speed: Rapidly fluctuating inputs require high conversion speed to be

interpreted accurately

Page 23: Dac

ME 4447: Introduction to Mechatronics

23

DAC Errors Cont’d

• Non-Monotonicity: Certain conditions where increased input results in decrease Vo

• Differential Non-Linearity: Deviation of actual converter step size from the ideal predicted wave

step

• Gain Error: Gain too low = same analog output; gain too high = too large an

output

• Offset Error: Constant error of DAC

Page 24: Dac

ME 4447: Introduction to Mechatronics

24

DAC Errors Cont’d

• Resistance Error: Pertains mainly to BWR DAC since large variety of resistors used

error varies greatly disturbing DAC performance

• Saturation: Use of op-amps requires that input voltage and scaling voltages be

bounded to the specifications of the op-amp.

Page 25: Dac

ME 4447: Introduction to Mechatronics

25

Page 26: Dac

ME 4447: Introduction to Mechatronics

26

Page 27: Dac

ME 4447: Introduction to Mechatronics

27

Page 28: Dac

ME 4447: Introduction to Mechatronics

28

Page 29: Dac

ME 4447: Introduction to Mechatronics

29

Page 30: Dac

ME 4447: Introduction to Mechatronics

30

Page 31: Dac

ME 4447: Introduction to Mechatronics

31

Applications of DAC

• Control Systems• Digital Audio• Digital Telephones• Cruise Control• Waveform Generation

Page 32: Dac

ME 4447: Introduction to Mechatronics

32

Discussion