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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

380 MUSICAL ApPLICATIONS OF MICROPROCESSORS<br />

RAW DAC OUTP UT<br />

SAH CONTROL<br />

SAMPLE<br />

HOLD<br />

SLEW-LIMITED SAH<br />

EXPONENTIAL<br />

RESPONSE SAH<br />

TWICE THE AREA<br />

~...._--~ ~<br />

C-r-<br />

fig. 12-8. Mechanism <strong>of</strong> slew-limiting distortion<br />

and produces the output voltage. The effective <strong>of</strong>fset volta2:e is dependent<br />

only on the characteristics <strong>of</strong> A 1. This is normally important, since A2 is<br />

optimized for low-bias current and typically has a high <strong>of</strong>fset voltage (A2<br />

could even be a simple FET source follower, which, in fact, is <strong>of</strong>ten done).<br />

The problem occurs when the input voltage changes while the circuit is<br />

in hold mode. When this occurs, Al goes into saturation, since its feedback<br />

is from the previous input voltage. When S recloses, the capacitor is charged<br />

at a nearly constant rate from the saturated output <strong>of</strong> A 1 through the switch<br />

resistance until its voltage essentially matches the new input voltage. At this<br />

point, Al comes out <strong>of</strong> saturation and the output settles.<br />

Figure 12--8 shows how linear charging <strong>of</strong> the hold capacitor contributes<br />

to distortion. For a one-unit change from one sample to the next, the<br />

shaded error is one-half square unit. But for a two-unit change, the error is<br />

two square units. Thus, the error is proportional to the square <strong>of</strong> the difference<br />

between successive samples. It's not difficult to see how this can<br />

generate a great deal <strong>of</strong> distortion, especially since slew times can easily reach<br />

20% <strong>of</strong> the sample interval with this type <strong>of</strong> circuit.<br />

If the step response is a normal inverse exponential instead <strong>of</strong> a linear<br />

ramp, the error is directly proportional to the step size. This situation does<br />

not cause any distortion, although it can affect the apparent overall signal<br />

amplitude from the DAC when the steps are large (high signal frequency).<br />

Figure 12-9 shows a simple SAH that can be designed not to slew<br />

under any circumstances. If the values <strong>of</strong> Rand C are properly chosen, then<br />

the voltage change across C will never exceed (or even approach) the slew rate<br />

<strong>of</strong> the amplifier. For example, if the DAC produces ± 10 V and the R-C<br />

time constant is 1.0 JLsec, then the maximum rate <strong>of</strong> change <strong>of</strong> capacitor<br />

voltage (for a step <strong>of</strong>-lO V to + 10 V or vice versa) would be 20 viJLsec.<br />

A standard high-speed op-amp such as an LM318, which is rated at 50<br />

V/JLsec, would do nicely. One must be careful to limit the peak current<br />

through the analog switch to a value less than its saturation current or a

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

Saved successfully!

Ooh no, something went wrong!