home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / ibm / pc / hardware / 23080 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  17.3 KB

  1. Path: sparky!uunet!europa.asd.contel.com!gatech!purdue!yuma!longs.LANCE.ColoState.EDU!pm860605
  2. From: pm860605@longs.LANCE.ColoState.EDU (Peter Mckinney)
  3. Newsgroups: comp.sys.ibm.pc.hardware
  4. Subject: Re: Makeshift PC sound card docs
  5. Message-ID: <Aug31.234958.58045@yuma.ACNS.ColoState.EDU>
  6. Date: 31 Aug 92 23:49:58 GMT
  7. References: <16474@ucdavis.ucdavis.edu>
  8. Sender: news@yuma.ACNS.ColoState.EDU (News Account)
  9. Reply-To: pm860605@longs.LANCE.ColoState.EDU (Peter Mckinney)
  10. Organization: Engineering College, Colorado State University
  11. Lines: 400
  12.  
  13. >     ABout a year ago I found a fairly short doc file on how to build a simple
  14. >     sound-card-type aparatus for a PC.  I was considereing building one.
  15. >     However I can no longer find the docs for this and the simple ascii
  16. >     schematic that came with it.  Does ANYONE know where this file exists, or
  17. >     have a copy?  If so could you please e-mail it to me?
  18.  
  19.  
  20.     The following text on the construction of simple parallel port A/D
  21. converters to play sounds on IBM PC compatibles has been gathered from
  22. two sound player archives - playbwc(.zip) and mp219b(.zip).  Both are
  23. available on simtel and mirror internet ftp sites.  The text is unmodified
  24. with the exception of the removal of carraige returns to make the documents
  25. more readable on a unix machine.  Some of the text does contain IBM extended
  26. ASCII, however.  A number of sound file players for IBM PC compatibles
  27. support a parallel port A/D converter, sometimes referred to as a covox or
  28. jdac (as below).  Tomi Engdahl, author of the first of the following texts, 
  29. had compiled the following list as of July 11, 1992:
  30.  
  31. PlayBWC                 Sound sample editing and playback software
  32. ModPlay                 Amiga pro tracker .MOD file player
  33. ModEdit                 Amiga tracker .MOD file editor
  34. Scream Tracker          Sound tracker, wuite similar to ModEdit
  35. Play                    Sound sample editing and playback software
  36. Whacker Tracker         Amiga sound tracker type music software
  37.  
  38. Good luck, and happy building!
  39.  
  40.                 - Peter J. McKinney
  41.                 - pm860605@longs.LANCE.ColoState.Edu
  42.  
  43.  
  44. ----------------------- beginning of quoted text --------------------
  45.  
  46.                     How to build a Jughead's D/A Converter
  47.         
  48.                         (C) 1989,1990 by Tomi Engdahl
  49.  
  50.                          Writing date: 20th May, 1990
  51.  
  52.  
  53.         You need:
  54.            Connectors: D25 male
  55.                        D25 female (optional)
  56.            Resistors: 640k,320k,160k,80k,40k,20k,10k,5k,390  (+-1%)
  57.                       (You can use different values of resistors, but
  58.                       the ratio of the values of the resistors must be
  59.                       same. 1, 2, 4, 8, 16 etc.)
  60.            Capacitor: Electrolytic 10 yF 10V
  61.  
  62.  
  63.                 CHEMATIC
  64.  
  65.         ------
  66.         l  2 l ---<640k>---+
  67.         l  3 l ---<320k>---l
  68.         l  4 l ---<160k>---l
  69.         l  5 l ---<80k>----l
  70.         l  6 l ---<40k>----l
  71.         l  7 l ---<20k>----l-----+---- 10 yF -------> Out
  72.         l  8 l ---<10k>----l     l
  73.         l  9 l ---<5k>-----+   <390>
  74.         l    l                   l
  75.         l 25 l ------------------+------------------> Ground
  76.         ------
  77.  
  78.  
  79.                 How to build
  80.  
  81.         Solder all D25 male connector pins to corresponding D25 female
  82.         connector pins (pin 1 to pin 1 etc.). Connect the resistors
  83.         according the chematic. It is maybe not possible to obtain exact
  84.         resistor values. If you can't obtain them, try nearest values.
  85.         <1% deviation is acceptable.
  86.  
  87.  
  88.                 How to use
  89.  
  90.         Connect this circuit to the centronics printer port of your IBM
  91.         PC or compatible. Connect the printer cable to the D25 female
  92.         connector of the circuit. Your printer should work correctly
  93.         with this circuit and you can keed this circuit connected all
  94.         the time. Connect the sound output to your stereo system. Line
  95.         in and mic lines are suitable because the output level of this
  96.         circuit is adjustable (about 0-2V PP). The sound quality is very
  97.         good.
  98.  
  99.  
  100.                 DISCLAIMER
  101.  
  102.         I don't consider myself as responsible for anything considering
  103.         this circuit. I am not responsible to any losses caused by this
  104.         circuit diagram to anybody/anyone. If you can cause some damage
  105.         with this circuit, it is your fault. If this this circuit does
  106.         not work, it is not my fault (you have made something wrong if
  107.         this circuit does not work).
  108.  
  109.  
  110.                 Contact the author
  111.  
  112.         If you have made interesting software which supports this device
  113.         or you have ideas how to improve this circuit, please write to:
  114.  
  115.                 Tomi Engdahl
  116.                 Kalliomntie 8bF
  117.                 01800 Klaukkala, Finland
  118.  
  119.  
  120. -------------- end jdac.doc ----- beginning of harware.doc ----------------
  121.  
  122.  
  123.              MODPLAY  *********                            (C) Mark J Cox
  124.              MODPLAY  **                                        1990/1991
  125.              MODPLAY  *******                              
  126.              MODPLAY  **************   
  127.  
  128.              Amiga fourDchannel sound module player for PC's
  129.              Hardware devices for great sound output!
  130.  
  131.  
  132.     I. CONTENTS
  133.     DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
  134.  
  135.     How to make:
  136.                 Mono output from a parallel port for about 5 pounds
  137.                 Mono output from a parallel port for around 1 pound
  138.                 Stereo from one parallel port for about 12 pounds
  139.         A +5v power supply
  140.         A 22W amplifier
  141.  
  142.     This document has been supplied with MODPLAY or MODRES and the
  143.     license agreement attached to the MODPLAY documentation applies
  144.     to this file.
  145.  
  146.  
  147.     I. INTRODUCTION
  148.     DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
  149.  
  150.     MODPLAY will play modules through the PC Speaker as mentioned above, via
  151.     an D to A converter on any of the three possible parallel ports, in stereo
  152.     if you have an D to A converter on both LPT1 and LPT2 (this sounds really
  153.     good) and also through a special board that plays stereo from one
  154.     printer port ("stereoDonD1")
  155.  
  156.     1. HOW TO MAKE A D/A CONVERTER FOR FIVE POUNDS
  157.     DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
  158.  
  159.     A simple circuit for HiFi quality sound needs only a few components (and
  160.     this circuit will work with other software).   It even sounds better than
  161.     a Sound Blaster for sampled output!
  162.  
  163.     You need:
  164.  
  165.     IC1 a ZN426E (about 3 pounds) (Ferranti or Plessey are UK manufacturers)
  166.  
  167.     C1 a 10micro-farad electrolytic capacitor (10V or greater)
  168.  
  169.     C2 a 4.7micro-farad electrolytic capacitor (10V or greater)
  170.  
  171.     R1 a 380ohm resistor (5%, 1/8W)
  172.  
  173.     CON1 a phono socket for connecting a lead to your amplifier
  174.  
  175.     CON2 a 25 way male D-type connector for your parrallel port
  176.  
  177.     A bit of 10 way cable - or 10 short wires.
  178.  
  179.     A +5v supply
  180.  
  181.                                Zn426e    +5V
  182.     D-type pin no  \          ZDDDDDDDD?  3  
  183.                   (2)  D0  DDD49     14CDD4
  184.                   (3)  D1  DDD410      3 ZA? 
  185.                   (4)  D2  DDD411      3 3 3 390j
  186.                   (5)  D3  DDD412      3 @BY
  187.                   (6)  D4  DDD413     5CDD4
  188.                   (7)  D5  DDD41      6CDD4       +
  189.                   (8)  D6  DDD42      4CDD3DDDDDDDD4[DDDD> TO AMPLIFIER
  190.                   (9)  D7  DDD43   7   3  3        10fF  
  191.                               @DDDDBDDDY +O        (may not be needed)
  192.                                    3 4.7fF[  
  193.                                    3      3  
  194.                   (25) GND DDDDDDDDADDDDDDADDDDDDDDDDDDDD GND
  195.                                    
  196.  
  197.     2. USING A DIFFERENT DAC
  198.     DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
  199.  
  200.     Lots of people have found that they cannot get the ZN* chips outside
  201.     the UK - so heres a circuit that will do the same as above..
  202.     Use a DAC0800 or DAC0801 or DAC0803 from National Semiconductors...
  203.  
  204.                                DAC 080x   
  205.    Parallel Port Pin          ZDDDDDDDD?0.01fF  0.1fF
  206.                   (2)  D0  DDD412    16CDD4[DDDD4[DDDDDDBDDD GND 
  207.                   (3)  D1  DDD411      3                3
  208.                   (4)  D2  DDD410    15CDDDDDDDDD[[[[[[DY5kj 
  209.                   (5)  D3  DDD49       3                 
  210.                   (6)  D4  DDD48     14CDDDDDDDDD[[[[[[D?5kj 
  211.                   (7)  D5  DDD47     13CDDDDDDDDDDDDDDDD4
  212.                   (8)  D6  DDD46      2CDD4[DDDDDDDDDDDDADD +5V
  213.                   (9)  D7  DDD45 3 1  4CDDDDDDDDDD4[DDDD> TO AMPLIFIER
  214.                               @DDBDBDDDY0.1fF    + 10fF  
  215.                                  @D4             (may not be needed)
  216.                                    3        
  217.                   (25) GND DDDDDDDDADDDDDDDDDDDDDDDDDDDD GND
  218.  
  219.     The 0.01uF and 2x 0.1uF   capacitors are Ceramic.  Resistor values
  220.     not critical
  221.      
  222.  
  223.     2. GETTING A +5V POWER SUPPLY
  224.     DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
  225.  
  226.     Catalogues such as MAPLIN (uk) provide simple circuits for obtaining
  227.     a +5v power supply (it only has to be 100mA maximum).  Alternatively
  228.     you could tap +5v off the keyboard connector or use 3 1.5volt
  229.     batteries (or even 4 1.5volt batteries with two diodes in series to
  230.     drop the voltage).  In fact, anything that produces a voltage in the
  231.     range 4.5 D 5.5 volts. (in fact you can even tap +5v from the game
  232.     port).  Don't forget to connect the 0v of your power supply to the GND
  233.     rail shown.
  234.  
  235.     Heres a simple circuit for +5v from mains.  Mains voltage is lethal
  236.     so always get a qualified person to make this if you are unsure.  Make
  237.     certain that the mains voltage is completely isolated from the computer
  238.     side and that it is impossible to touch - If you don't want to take the
  239.     risk then don't make this circuit.
  240.  
  241.            ZDDDDDDDDDDD?     wZDDD?+                  ZDDDDDD?
  242.            3           3      3 B CDDDDDBDDDDDDDBDDDDD4 7805 CDDDDBDDDDDD +5V
  243.     DDDDDDD4Step down  CDDDDDD4 R 3     3+      3     @DDBDDDY    3+
  244.     Mains  3transformer3 6V   3 I 3    MXM C1  MXM C2    3       MXM C3
  245.            3to 6VAC    3 AC   3 D 3     3       3        3        3
  246.     DDDDDDD4           CDDDDDD4 G 3     3       3        3        3
  247.            3           3      3 E CDDDDDADDDDDDDADDDDDDDDADDDDDDDDADDDDDD 0V
  248.            @DDDDDDDDDDDY     w@DDDY-
  249.  
  250.     C1     1000 fF electrolytic capacitor            (Circuit from Kenneth
  251.     C2     0.1 fF  ceramic capactitor                 Aaron, Israel)
  252.     C3     100 fF  electrolytic capacitor
  253.     BRIDGE any diode bridge
  254.  
  255.  
  256.     3. HOW TO MAKE AN EVEN CHEAPER D/A
  257.     DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
  258.  
  259.     For the price of 20 1% resistors and a plug, with no power supply
  260.     needed you can make a D/A converter that sounds close to the IC
  261.     one above (it seems only the UK can get a Plessey ZN426E)
  262.  
  263.     You need one plug for your amp, one for your parallel port and
  264.     9 20k and 9 10K resistors
  265.     Use 1% resistors if possible D and 20k sound much better than 22k
  266.  
  267.           Printer Port:
  268.  
  269.           signal   pin        20k   20k
  270.           D0       2      >DDD000DBD000DD0v
  271.                               20k 0 10k
  272.           D1       3      >DDD000D4
  273.                               20k 0 10k
  274.           D2       4      >DDD000D4
  275.                               20k 0 10k
  276.           D3       5      >DDD000D4
  277.                               20k 0 10k
  278.           D4       6      >DDD000D4
  279.                               20k 0 10k
  280.           D5       7      >DDD000D4
  281.                               20k 0 10k
  282.           D6       8      >DDD000D4
  283.                               20k 0 10k
  284.           D7       9      >DDD000D4
  285.                               20k 0 10k  100nF
  286.                                   CDDDDDD4[DDDD> TO AMPLIFIER
  287.                                   0 10k
  288.           GND      20     >DDDDDDDEDDDDDDDDDDDD>
  289.                                   0v
  290.           
  291.      Thanks to Harry Stox for the above circuit.  Again, make sure all
  292.      the 0v lines are connected together.  The 100nF capacitor may not
  293.      be needed, try removing it if this circuit sounds poor.
  294.  
  295.  
  296.  
  297.     4. STEREO-ON-1 BOARD
  298.     DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
  299.  
  300.     It is possible to play in stereo with only one parallel port (MODPLAY
  301.     version 2.00 onwards) using the circuit below.  MODPLAY will
  302.     automatically detect this circuit if it is present and work out what
  303.     address it is at D so you can plug it into any of your parallel ports. 
  304.     MODPLAY needs no further options and will default to playing through
  305.     this device.  The +5v supply can be  anywhere between 4.5 and 5.5 volts
  306.     so it could be run from three 1.5v  batteries. (Or from four
  307.     rechargable batteries as these are only 1.2v) 
  308.  
  309.     * Stereo-on-1 works from MODPLAY 2.03 onwards where it did not in 2.00 *
  310.  
  311.     You can use your stereo-on-1 board with other programs that require
  312.     a single D/A on the port as follows:
  313.  
  314.     Find out what address your port is at (LPT1 = 0378, LPT2 = 0278) and
  315.     add 2 (LPT1 = 037A, LPT2 = 027A).  Go into DEBUG and type
  316.     o 37a,0       (replacing 37a with the port address)
  317.     q
  318.     Then all sound directed to the parallel port will come out of both
  319.     channels. 
  320.  
  321.                                 ZN428
  322.                                 ZDDDDDDDDDDDDDD?         390j
  323.               ZDDDDDDDDDDDDDDDDD411           6CDBDDDDBD11111DD+5v
  324.               3 ZDDDDDDDDDDDDDDD412           7CDY    3 
  325.               3 3 ZDDDDDDDDDDDDD413           3CNC    3      
  326.               3 3 3 ZDDDDDDDDDDD414            3      3  + 10fF
  327.               3 3 3 3 ZDDDDDDDDD415           5CDDDDDD3DDD6CDDDDD> Left out
  328.               3 3 3 3 3 ZDDDDDDD416            3      3     0vDDD>
  329.       20 >D0v 3 3 3 3 3 3 ZDDDDD41           10CDD+5v 3 
  330.               3 3 3 3 3 3 3 ZDDD42            9CDBD0v 3      
  331.       14 >DDDD3D3D3D3D3D3D3D3DDD44            8CDY    3    
  332.               3 3 3 3 3 3 3 3   @DDDDDDDDDDDDDDY      3    
  333.       11 >DDDD4 3 3 3 3 3 3 3   ZN428                 3  + 1fF    
  334.               3 3 3 3 3 3 3 3   ZDDDDDDDDDDDDDD?      CDDD6CD0v
  335.        9 >DDDDAD3D3D3D3D3D3D3DDD411 D7   VRIN 6CDDDDDDY
  336.        8 >DDDDDDAD3D3D3D3D3D3DDD412 D6  VROUT 7C NC
  337.        7 >DDDDDDDDAD3D3D3D3D3DDD413 D5     NC 3C NC     
  338.        6 >DDDDDDDDDDAD3D3D3D3DDD414 D4         3        + 10fF
  339.        5 >DDDDDDDDDDDDAD3D3D3DDD415 D3    OUT 5CDDDDDDDDD6CDDDDD> Right out
  340.        4 >DDDDDDDDDDDDDDAD3D3DDD416 D2         3           0vDDD>
  341.        3 >DDDDDDDDDDDDDDDDAD3DDD41 D1     +V 10CDD+5v    
  342.        2 >DDDDDDDDDDDDDDDDDDADDD42 D0     0v  9CDB0v
  343.        1 >DDDDDDDDDDDDDDDDDDDDDD44 !EN    0v  8CDY
  344.       25 pin male D connector   @DDDDDDDDDDDDDDY 
  345.  
  346.  
  347.       Notes:
  348.  
  349.       Make sure all the 0v lines are connected together and connected to the
  350.       0v line of your power source.  Also, make sure the +5v lines are 
  351.       connected together.  The lines marked 'NC' do not need to be connected.  
  352.  
  353.       If a ZN428 is not available, any D/A with input latches will work -
  354.       the D/A should latch the data bus when pin 4 (!EN) is low.
  355.  
  356.       D3D = No connection, DED = joined
  357.  
  358.       The above circuit (Stereo-on-1) is (C) Mark J Cox 1991, 29 Lundie Close
  359.       Stenson Fields, Derby DE2 3AN; and is supplied for personal use only.  
  360.       For any other use, please contact the author at the address above. If 
  361.       this circuit is abstracted or incorporated into any other document or
  362.       circuit then that document or documentation supplied with that circuit
  363.       must contain this paragraph of text.  Any commercial use where not 
  364.       agreed by written contract with the author (Mark J Cox) is prohibited.
  365.  
  366.  
  367.      13. STEREO AMPLIFIER
  368.      DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
  369.  
  370.      For those of you who have built a stereo DAC and haven't enough
  371.      inputs to your Amplifier - Kenneth Aaron has supplied this
  372.      circuit which is designed to give a high power (11W per channel)
  373.      high quality, low interference, single rail supply amplifier!
  374.  
  375.       Enable
  376.      >DDDDDDDDDDDDDDBDDDDDDDD?   ZDDDDBDDDDDDDDDDDDDDDDDDDDDDD +12v
  377.                     3+       3   3    3
  378.                    MXM 10fFZDADDDADDDDADDDDD?
  379.            0v DDDDDDY      3 7   13   3    1CDDDDDDDDDDDD Left
  380.       Left     470nF    ZDD44              2CDDDDDDDDDDDD Speaker
  381.      >DDDDDDDDDWDDDDDDDD4  3                3
  382.                         @DD45   TDA 7370  14CDDDDDDDDDDDD Right
  383.       Right    470nF    ZDD411            15CDDDDDDDDDDDD Speaker
  384.      >DDDDDDDDDWDDDDDDDD4  3                3
  385.                         @DD412              3
  386.                     +ZDDDDD46    8   9    10CDNC
  387.                47fF MXM    @DDDDDBDDDBDDDDDDY
  388.                      3           3   3
  389.                      @DDDDDDDDDDDADDDADDDDDDDDDDDDDDDDDDDDDDDDD 0v
  390.  
  391.      Make sure that 0v of the +12v supply is connected to all the 0v
  392.      connections on the main circuit.   The enable line has to be tied
  393.      to +12v to 'switch on' the amp
  394.  
  395.  
  396.      14. AUTHOR
  397.      DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
  398.  
  399.      Before June 1992:
  400.      DDDDDDDDDDDDDDDDD
  401.      Mark J Cox                 Electronic Mail:
  402.      17 Kirkburn Place                   m.j.h.cox@bradford.ac.uk
  403.      Bradford                    
  404.      W. Yorks, UK               If that fails - try:
  405.      BD7 2BZ                             bc732@cleveland.freenet.edu
  406.                                
  407.      After June 1992:
  408.      DDDDDDDDDDDDDDDDD
  409.      29 Lundie Close               Check the latest version out!
  410.      Stenson Fields                For a Bradford Address.... after
  411.      Derby, UK                     June!
  412.      DE2 3AN                   
  413.