home *** CD-ROM | disk | FTP | other *** search
/ The Best of the Best / _.img / 02162 / hardware.doc < prev    next >
Text File  |  1991-10-27  |  10KB  |  231 lines

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