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.

766 MUSICAL ApPLICATIONS OF MICROPROCESSORS<br />

J1JL<br />

12 ,------T-ON-E--, 1A SELECT<br />

FREQ ===> A<br />

A<br />

GEN.<br />

AOUTPUT<br />

FREQ<br />

B<br />

B OUTPUT<br />

FREQ<br />

C<br />

COUTPUT<br />

NOISE<br />

FREQ 4<br />

ENVE LOPE<br />

GENERATOR<br />

Fig. 20-4. AY-3-8910 Programmable sound generator<br />

also trigger the envelope generator. By suitable selection <strong>of</strong>component values<br />

and setting <strong>of</strong> the configuration bits, quite a number <strong>of</strong> sound effects such as<br />

a chugging train, breathy whistle, "saucer lands," ray gun, gunshot, bird,<br />

clock, etc., are possible. In fact a popular toy consisting <strong>of</strong> the chip, several<br />

rorary switches, some pots, a few slide switches, a battery, and speaker was<br />

designed and sold as "The Sound Studio."<br />

Another common sound chip is the General Instruments AY-3-891O.<br />

This by contrast is intended to be driven exclusively by a microprocessor and<br />

has been used in countless add-on music synthesizer boards for personal<br />

computers. Besides the sound generation circuit, its 40-pin package includes<br />

two 8-bit general-application I/O ports, although a 28-pin version<br />

(AY-3-8912) with one port and a 24-pin version (AY-3-8913) with none are<br />

also available. Figure 20-4 shows the internals <strong>of</strong> this chip, which are<br />

essentially three square-wave tone generators, a pseudorandom noise generator,<br />

three mixers, and a single envelope generator driving three multiplying<br />

DAC gain controls. Twelve-bit values control rhe frequency <strong>of</strong> the tone<br />

generators, while a 5-bit value controls the noise sample rate. A full 16 bits<br />

control the envelope generator rate, but the multiplying DACs themselves are<br />

very coarse with only 16 logarithmically distributed amplitude levels. The<br />

envelope generator can operate either in the normal single-shot mode or it<br />

can constantly recycle. Aside from rhe fixed square-wave rimbre, it is possible<br />

to get some decent sounding music from one <strong>of</strong> these chips, considering the

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

Saved successfully!

Ooh no, something went wrong!