home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / magazine / aum006.zip / FILE1.006 < prev    next >
Text File  |  1993-07-22  |  9KB  |  210 lines

  1.  
  2.                 Amiga four─channel sound module player for PC's
  3.                    Hardware devices for great sound output!
  4.                              c. 1990 Mark J. Cox
  5.  
  6.  
  7.     I. CONTENTS
  8.     ─────────────────────────────────────────────────────────
  9.  
  10.     How to make:
  11.                 Mono output from a parallel port for about 5 pounds
  12.                 Mono output from a parallel port for around 1 pound
  13.                 Stereo from one parallel port for about 12 pounds
  14.  
  15.  
  16.     I. INTRODUCTION
  17.     ─────────────────────────────────────────────────────────
  18.  
  19.     MODPLAY will play modules through the PC Speaker as mentioned above,
  20.     via an D to A converter on any of the three possible parallel ports,
  21.     in stereo if you have an D to A converter on both LPT1 and LPT2 (this
  22.     sounds really good) and also through a special board that plays stereo
  23.     from one printer port ("stereo─on─1")
  24.  
  25.     1. HOW TO MAKE A D/A CONVERTER FOR FIVE POUNDS
  26.     ─────────────────────────────────────────────────────────
  27.  
  28.     A simple circuit for HiFi quality sound needs only a few components (and
  29.     this circuit will work with other software).   It even sounds better than
  30.     a Sound Blaster for sampled output!
  31.  
  32.     You need:
  33.  
  34.     IC1 a ZN426E (about 3 pounds) (Ferranti or Plessey are UK manufacturers)
  35.  
  36.     C1 a 10 micro-farad electrolytic capacitor (10V or greater)
  37.  
  38.     C2 a 4.7 micro-farad electrolytic capacitor (10V or greater)
  39.  
  40.     R1 a 380 ohm resistor (5%, 1/8W)
  41.  
  42.     CON1 a phono socket for connecting a lead to your amplifier
  43.  
  44.     CON2 a 25 way male D-type connector for your parrallel port
  45.  
  46.     A bit of 10 way cable - or 10 short wires.
  47.  
  48.     A +5v supply
  49.  
  50.                                Zn426e    +5V
  51.                               ┌────────┐  │  
  52.                   (2)  D0  ───┤9     14├──┤
  53.                   (3)  D1  ───┤10      │ ┌┴┐ 
  54.                   (4)  D2  ───┤11      │ │ │ 390Ω
  55.                   (5)  D3  ───┤12      │ └┬┘
  56.                   (6)  D4  ───┤13     5├──┤
  57.                   (7)  D5  ───┤1      6├──┤       +
  58.                   (8)  D6  ───┤2      4├──│────────┤█────> TO AMPLIFIER
  59.                   (9)  D7  ───┤3   7   │  │        10µF  
  60.                               └────┬───┘ +╧        (may not be needed)
  61.                                    │ 4.7µF█  
  62.                                    │      │  
  63.                   (25) GND ────────┴──────┴────────────── GND
  64.                                    
  65.  
  66.  
  67.     2. GETTING A +5V POWER SUPPLY
  68.     ─────────────────────────────────────────────────────────
  69.  
  70.     Catalogues such as MAPLIN (uk) provide simple circuits for obtaining
  71.     a +5v power supply (it only has to be 100mA maximum).  Alternatively
  72.     you could tap +5v off the keyboard connector or use 3 1.5volt
  73.     batteries (or even 4 1.5volt batteries with two diodes in series to
  74.     drop the voltage).  In fact, anything that produces a voltage in the
  75.     range 4.5 ─ 5.5 volts. (in fact you can even tap +5v from the game
  76.     port).  Don't forget to connect the 0v of your power supply to the GND
  77.     rail shown.
  78.  
  79.  
  80.  
  81.     3. HOW TO MAKE AN EVEN CHEAPER D/A
  82.     ─────────────────────────────────────────────────────────
  83.  
  84.     For the price of 20 1% resistors and a plug, with no power supply
  85.     needed you can make a D/A converter that sounds close to the IC
  86.     one above (it seems only the UK can get a Plessey ZN426E)
  87.  
  88.     You need one plug for your amp, one for your parallel port and
  89.     9 20k and 9 10K resistors
  90.     Use 1% resistors if possible ─ and 20k sound much better than 22k
  91.  
  92.           Printer Port:
  93.  
  94.           signal   pin        20k   20k
  95.           D0       2      >───░░░─┬─░░░──0v
  96.                               20k ░ 10k
  97.           D1       3      >───░░░─┤
  98.                               20k ░ 10k
  99.           D2       4      >───░░░─┤
  100.                               20k ░ 10k
  101.           D3       5      >───░░░─┤
  102.                               20k ░ 10k
  103.           D4       6      >───░░░─┤
  104.                               20k ░ 10k
  105.           D5       7      >───░░░─┤
  106.                               20k ░ 10k
  107.           D6       8      >───░░░─┤
  108.                               20k ░ 10k
  109.           D7       9      >───░░░─┤
  110.                               20k ░ 10k  100nF
  111.                                   ├──────┤█────> TO AMPLIFIER
  112.                                   ░ 10k
  113.           GND      20     >───────┼────────────>
  114.                                   0v
  115.           
  116.      Thanks to Harry Stox for the above circuit.  Again, make sure all
  117.      the 0v lines are connected together.  The 100nF capacitor may not
  118.      be needed, try removing it if this circuit sounds poor.
  119.  
  120.  
  121.  
  122.     4. STEREO-ON-1 BOARD
  123.     ─────────────────────────────────────────────────────────
  124.  
  125.     It is possible to play in stereo with only one parallel port (MODPLAY
  126.     version 2.00 onwards) using the circuit below.  MODPLAY will
  127.     automatically detect this circuit if it is present and work out what
  128.     address it is at ─ so you can plug it into any of your parallel ports. 
  129.     MODPLAY needs no further options and will default to playing through
  130.     this device.  The +5v supply can be  anywhere between 4.5 and 5.5 volts
  131.     so it could be run from three 1.5v  batteries. (Or from four
  132.     rechargable batteries as these are only 1.2v) 
  133.  
  134.     * Stereo-on-1 works from MODPLAY 2.03 onwards where it did not in 2.00 *
  135.  
  136.     You can use your stereo-on-1 board with other programs that require
  137.     a single D/A on the port as follows:
  138.  
  139.     Find out what address your port is at (LPT1 = 0378, LPT2 = 0278) and
  140.     add 2 (LPT1 = 037A, LPT2 = 027A).  Go into DEBUG and type
  141.     o 37a,0       (replacing 37a with the port address)
  142.     q
  143.     Then all sound directed to the parallel port will come out of both
  144.     channels. 
  145.  
  146.                                 ZN428
  147.                                 ┌──────────────┐         390Ω
  148.               ┌─────────────────┤11           6├─┬────┬─▒▒▒▒▒──+5v
  149.               │ ┌───────────────┤12           7├─┘    │ 
  150.               │ │ ┌─────────────┤13           3├NC    │      
  151.               │ │ │ ┌───────────┤14            │      │  + 10µF
  152.               │ │ │ │ ┌─────────┤15           5├──────│───╢├─────> Left out
  153.               │ │ │ │ │ ┌───────┤16            │      │     0v───>
  154.       20 >─0v │ │ │ │ │ │ ┌─────┤1           10├──+5v │ 
  155.               │ │ │ │ │ │ │ ┌───┤2            9├─┬─0v │      
  156.       14 >────│─│─│─│─│─│─│─│───┤4            8├─┘    │    
  157.               │ │ │ │ │ │ │ │   └──────────────┘      │    
  158.       11 >────┤ │ │ │ │ │ │ │   ZN428                 │  + 1µF    
  159.               │ │ │ │ │ │ │ │   ┌──────────────┐      ├───╢├─0v
  160.        9 >────┴─│─│─│─│─│─│─│───┤11 D7   VRIN 6├──────┘
  161.        8 >──────┴─│─│─│─│─│─│───┤12 D6  VROUT 7├ NC
  162.        7 >────────┴─│─│─│─│─│───┤13 D5     NC 3├ NC     
  163.        6 >──────────┴─│─│─│─│───┤14 D4         │        + 10µF
  164.        5 >────────────┴─│─│─│───┤15 D3    OUT 5├─────────╢├─────> Right out
  165.        4 >──────────────┴─│─│───┤16 D2         │           0v───>
  166.        3 >────────────────┴─│───┤1 D1     +V 10├──+5v    
  167.        2 >──────────────────┴───┤2 D0     0v  9├─┬0v
  168.        1 >──────────────────────┤4 !EN    0v  8├─┘
  169.       25 pin male D connector   └──────────────┘ 
  170.  
  171.  
  172.       Notes:
  173.  
  174.       Make sure all the 0v lines are connected together and connected to the
  175.       0v line of your power source.  Also, make sure the +5v lines are 
  176.       connected together.  The lines marked 'NC' do not need to be connected.
  177.  
  178.       If a ZN428 is not available, any D/A with input latches will work -
  179.       the D/A should latch the data bus when pin 4 (!EN) is low.
  180.  
  181.       ─│─ = No connection, ─┼─ = joined
  182.  
  183.       The above circuit (Stereo-on-1) is (C) Mark J Cox 1991, 29 Lundie Close
  184.       Stenson Fields, Derby DE2 3AN; and is supplied for personal use only.  
  185.       For any other use, please contact the author at the address above. If 
  186.       this circuit is abstracted or incorporated into any other document or
  187.       circuit then that document or documentation supplied with that circuit
  188.       must contain this paragraph of text.  Any commercial use where not 
  189.       agreed by written contract with the author (Mark J Cox) is prohibited.
  190.  
  191.  
  192.      13. UK SUPPLIERS
  193.      ─────────────────────────────────────────────────────────
  194.  
  195.      A lot of people have been having difficulty obtaining the ZN426/ZN428
  196.      IC's.  If you cannot find an alternative, there is a company in the
  197.      UK that will do overseas orders.   Carriage charges vary from 10%
  198.      of the total order value (Ireland) to 25% (Fiji) and payment can be
  199.      by Eurocheques, bank drafts, credit cards etc. Maplin: +44 702 554161
  200.      
  201.  
  202.      14. CONTACT/SUPPORT
  203.      ─────────────────────────────────────────────────────────
  204.  
  205.      Mark J Cox
  206.      29 Lundie Close           (NETMAIL) Post a message in PLAY SUPPORT on
  207.      Stenson Fields                      Kingdom of Greyhawk BBS
  208.      Derby, UK                           (+44 332 756414)
  209.      DE2 3AN                     
  210.