22.09.2015 Views

of Microprocessors

Musical-Applications-of-Microprocessors-2ed-Chamberlin-H-1987

Musical-Applications-of-Microprocessors-2ed-Chamberlin-H-1987

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

230 MUSICAL ApPLICATIONS OF MICROPROCESSORS<br />

Digital<br />

Analog x Vref<br />

00000000 0.000000<br />

00000001 0.003941<br />

00000010 0.007882<br />

01111110 0.496586<br />

01111111 0.500527<br />

10000000 0.499473<br />

10000001 0.503414<br />

11111110 0.996059<br />

11111111 1.000000<br />

As can be seen, an increase in the digital input from 01111111 to<br />

10000000 results in a slight decrease in analog output, a classic manifestation<br />

<strong>of</strong> nonmonoionicity. Except for this step, the rest are 0.003941Vre! high.<br />

Some additional calculation will reveal that the maximum allowable value <strong>of</strong><br />

1R for monotonic performance is (1+1/128)R, at which point the voltage<br />

levels for 01111111 and 10000000 are the same. If 1R were too small by the<br />

same amount, this step would be twice the size <strong>of</strong> the others, which still<br />

gives a lLSB differential linearity error but preserves monotonicity. It can<br />

also be easily determined that the allowable percentage error for less significant<br />

resistors doubles for each bit toward the least significant end. In general,<br />

though, all <strong>of</strong> the resistors will have some error, so individual resistors will<br />

have to be more precise to guarantee differential linearity better than lLSB.<br />

A rule <strong>of</strong> thumb that will always work is that the resistor corresponding to<br />

bit N should have a tolerance better than 1/2 N + 1 . Thus, the most significant<br />

resistor <strong>of</strong> a 12-bit DAC should have a tolerance <strong>of</strong> ±0.024% or better.<br />

•<br />

Even if the resistors were perfect, the analog switches used have a finite<br />

on resistance, which adds to the effective resistance <strong>of</strong> each bit. Ifall switches<br />

have the same internal resistance, proper ratios are destroyed and linearity<br />

suffers again. The effect <strong>of</strong>switch resistance can be minimized by making the<br />

weighted resistors very large but then speed suffers. Also, stable, tight<br />

tolerance resistors in the megohm range are difficult to find. Sometimes the<br />

switches are scaled in size, and therefore resistance in proportion to the bit<br />

significance to maintain proper ratios in spite <strong>of</strong> high switch resistance.<br />

Generally, this is practical only for the most significant few bits because <strong>of</strong><br />

the wide range in resistor values. In any case, it is usually necessary to trim<br />

the most significant few bits with a potentiometer or high-value parallel<br />

"trimming" resistors.<br />

Note that a finite output load has no effect on the linearity <strong>of</strong> the<br />

circuit. If a load <strong>of</strong> value R was connected from the output to ground in the<br />

example in Fig. 7-5, the four voltage levels would be altered to 0, 0.2Vre!,<br />

0.4Vre!, and 0.6Vref. Even a short circuit load would provide output currents<br />

<strong>of</strong> 0, 0.5Vre!/R, 1.0Vref/R, and 1.5Vre!/R. Thus, the equivalent circuit <strong>of</strong> the<br />

converter can be represented as a variable-voltage generator in series with a

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!