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.

410 MUSICAL ApPLICATIONS OF MICROPROCESSORS<br />

sample rate increase) have been integrated onto proprietary custom LSI chips<br />

by at least one company making "compact disk" digital audio playback<br />

systems. Although such chips are not generally available in the marketplace,<br />

they show exciting promise for the future. Another drawback <strong>of</strong> this<br />

technique is that the DAC must now run at a much higher speed. For the<br />

example in Fig. 12-27, where PSI is 40 kHz, the DAC and deglitcher must<br />

now run at 80 ks/s, which requires a more expensive high-speed DAC and<br />

more care in the circuit layout. In·a stereo playback system, two DACs,<br />

rather than one multiplexed two ways, will probably have to be used. Thus,<br />

perhaps the greatest overall advantage <strong>of</strong> this technique is the elimination <strong>of</strong><br />

phase distortion.<br />

A Complete Audio DAC<br />

Figure 12-28 shows a reasonably complete schematic <strong>of</strong> an inexpensive<br />

yet high-quality audio DAC using the concepts developed in the preceding<br />

sections. It is a 16-bit unit having 14-bit linearity at high signal levels.<br />

Maximum sample rate is 50 ks/s, although the filter shown is set up for a 25­<br />

ks/s sample rate and a lO-kHz audio bandwidth. The deglitcher utilizes the<br />

handy extra analog switch in the 7546, and the low-pass filter incorporates<br />

high frequency compensation for sin(X)/X and deglitcher time constant<br />

losses. Component values in the filter have been rounded to the nearest 1%<br />

standard values. Timing for the DAC and deglitcher is derived from a builtin<br />

crystal oscillator and counter-decoder combination. The counter inputs are<br />

shown connected for a 25-ks/s sample rate (40 J.tsec, 80 counts) but can be<br />

reconnected for any rate from 7.8 to 50 ksls. They could also be connected to<br />

a port on the host for a programmable sample rate. Note that the filter will<br />

need to be changed for different sample rates. The 2-MHz output can be used<br />

to drive the audio ADC to be described later. Total cost <strong>of</strong> parts using the<br />

AD7546KN DAC module (made by Analog Devices) should be in the $100<br />

range.<br />

For best performance, the circuitry should be constructed over a ground<br />

plane such as a piece <strong>of</strong> copper-clad Vectorboard. Mount the components on<br />

the copper side and trim the copper from the edge <strong>of</strong> any hole a component<br />

lead passes through by hand-twisting a small drill bit in the hole. There can<br />

never be too many power-supply bypass capacitors <strong>of</strong> the 0.1-J.tf monolithic<br />

ceramic variety. The digital circuitry should be kept away from the analog<br />

elements as much as possible. This is made easier by the pinout <strong>of</strong> the 7546,<br />

which has all digital signals along one side and analog signals along the<br />

other. In particular, the holding register should right at the edge <strong>of</strong> the<br />

board, and its input data lines should go immediately <strong>of</strong>fboard to the host.<br />

Finally, the entire unit should be shielded, at least by steel front- and<br />

backplates, and mounted in a separate enclosure.<br />

The timing diagram in Fig. 12-29 should be self-explanatory. The WR<br />

pulse to the DAC can be used to inform the host system that a sample has

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

Saved successfully!

Ooh no, something went wrong!