|
| |||||||
|
Adding a Sound ChipDesign note: The following circuit can be interfaced directly to the cartridge port using the P2 line as your address decode source (AD in this article) which maps the device at $FF40:41 in the Dragon's memory map. However, in order to attach other peripherals to the machine (like the disk controller) you will need additional circuitry to provide the AD signal, these and other address decode possibilities can be found in the address decode section. As previously mentioned, the other method of generating sound on a computer commonly used is by the use of a dedicated sound chip. This will be responsible for generating the required noise, leaving the processor free to continue with other things. They are also far more versatile, and offer multi-channel sound (some in stereo). The sound chip I have attached to my Dragon is the SAA-1099 chip. It offers 6 channel, stereo sound and has to be the most under-used device I have ever added. It's been sitting on my machine for about 3 years, and short of getting the thing to work in the first place has never been used. Principally, because it's a bit complex to program, you have to deal with it in terms of frequency & amplitude, and it goes into attack/decay of sound waves etc. It's all documented in the data sheet, and one of these days I will get round to attempting to understand it. Also, because it's a fairly powerful chip, you would need a good flexible piece of software to get the most out of it. Therefore, if you do go ahead and build it, a good knowledge of all things musical is essential, and all I can offer is a couple of test routines which make some cheerful beeping noises. The chip itself sells for about #10, and is designed to interface directly to a computer's databus (not a PIA job!), specifically the MC68000 series. It's an 18 pin device, with the pinout described as follows:
Pin # Signal Description
1 WR~ Write enable. Enables the device
to read the data currently on the data bus. The chip is write
only, and this line connects via an invertor to the 6809's E
line which will be high when the bus is stable.
2 CS~ Chip Select. Connects to an
appropriate chip select from your address decode logic - P2 if
attached directly to the cartridge port.
3 A0 Address line A0. Connects to
Dragon's address line A0.
4 RH O/P Right channel sound o/p.
5 LH O/P Left channel sound o/p.
6 IREF Reference current. Connect via a
10K resistor to +5V.
7 DTACK~ Data Transfer Acknowledge. Output
to 68000 series processors to indicate data transfer
successful. Not connected on the Dragon.
8 CLK Clock. Connects to 8Mhz clock.
9 Vss 0V.
10 Vcc +5V.
11-18 D7-D0 Data/Address lines. Connects to
the Dragon's data bus D0-D7.
All that remains, is to provide the 8Mhz clock,
via a crystal and the output filtering on the 2 channel outputs. (See diagram).
Click on diagram to view full size. Parts List ---------- SAA1099 IC 1 Off 74HC04 IC 1 Off 8Mhz Crystal 1 Off 2K Resistor 2 Off 820R 2 Off 10K 1 Off 6.8R 1 Off 5M6 1 Off 47pf Cap 1 Off 5n1 Cap 4 Off |
||||||