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.

382 MUSICAL ApPLICATIONS OF MICROPROCESSORS<br />

01-----------=======--__ 25%<br />

-0.5<br />

50%<br />

-1.0<br />

CD -1.5<br />

..,<br />

UJ<br />

g -2.0<br />

>-<br />

::;<br />

Cl..<br />

::1 -2.5<br />

100%<br />

(STAIRSTEP)<br />

-3.0<br />

-3.5<br />

- 4.0 I=---=-=::-:-::-:-----::-::-:::--::-=------:-::::--::c=-:::-=----:-::c=-::-:-----:-c::--;c-;:-----::c~::_:__=_=_<br />

0.005 0.007 0.01 0.015 0.02 0.03 0.04 0.05 0.075 0.1 0.15 0.2 0.3 0.4 0.5<br />

SIGNAL FREQUENCY AS A FRACTION OF THE SAMPLE RATE<br />

Fig. 12-11. Effect <strong>of</strong> finite DAC pulse width on high-frequency amplitude<br />

Figure 12-10 shows a simplified schematic <strong>of</strong> a two-switch track-andground<br />

circuit integrated with a sign-bit switch for a sign-magnitude DAC.<br />

The A and B switches select between straight DAC output and inverted DAC<br />

output according to the desired polarity. However, both are open while the<br />

DAC is settling at a new voltage level. Switch C grounds the filter input<br />

during the turn-<strong>of</strong>f transient <strong>of</strong> A or B, the DAC settling time, and the<br />

turnon <strong>of</strong> A or B. Although the grounding is not perfect due to on resistance<br />

<strong>of</strong> C, it substantially attenuates feedthrough <strong>of</strong> DAC glitches and transients<br />

from A and B. The only transient seen by the filter is from switch C itself and<br />

most <strong>of</strong> that is shunted to ground. Finally, since there are no amplifiers in<br />

the switching signal path, there is nothing to slew.<br />

There does appear to be a drawback with the circuit, however. Rather<br />

than getting a stairstep approximation <strong>of</strong> the audio waveform, the filter gets<br />

pulses <strong>of</strong> constant width and variable height. Actually, the mathematics <strong>of</strong><br />

sampled waveform reconstruction are derived on the assumption that the<br />

samples entering the filter are <strong>of</strong> zero width and varying but infinite height.<br />

Fortunately, the only effect <strong>of</strong> finite width pulses is a slight reduction in the<br />

amplitude <strong>of</strong> high-frequericy reconstructed waves, or simply a loss <strong>of</strong> treble.<br />

A pure stairstep approximation such as from an ideal DAC or SAH deglitcher<br />

is actually a train <strong>of</strong> pulses with width equal to the sample period.<br />

The graph in Fig. 12-11 shows that even this is a relatively minor<br />

effect. The stairstep approximation is down nearly 4 dB at the Nyquist<br />

frequency but only about 1. 32 dB down at 60% <strong>of</strong> the Nyquist frequency,<br />

which represents a 15-kHz signal at a 50-ks/s sample rate. With pulses half

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

Saved successfully!

Ooh no, something went wrong!