From: pm860605@longs.LANCE.ColoState.EDU (Peter Mckinney)
Newsgroups: comp.sys.ibm.pc.hardware
Subject: Re: Makeshift PC sound card docs
Date: 31 Aug 92 23:49:58 GMT
Reply-To: pm860605@longs.LANCE.ColoState.EDU (Peter Mckinney)
Organization: Engineering College, Colorado State University

> 	ABout a year ago I found a fairly short doc file on how to build a simple
> 	sound-card-type aparatus for a PC.  I was considereing building one.
> 	However I can no longer find the docs for this and the simple ascii
> 	schematic that came with it.  Does ANYONE know where this file exists, or
> 	have a copy?  If so could you please e-mail it to me?


	The following text on the construction of simple parallel port A/D
converters to play sounds on IBM PC compatibles has been gathered from
two sound player archives - playbwc(.zip) and mp219b(.zip).  Both are
available on simtel and mirror internet ftp sites.  The text is unmodified
with the exception of the removal of carraige returns to make the documents
more readable on a unix machine.  Some of the text does contain IBM extended
ASCII, however.  A number of sound file players for IBM PC compatibles
support a parallel port A/D converter, sometimes referred to as a covox or
jdac (as below).  Tomi Engdahl, author of the first of the following texts, 
had compiled the following list as of July 11, 1992:

PlayBWC                 Sound sample editing and playback software
ModPlay                 Amiga pro tracker .MOD file player
ModEdit                 Amiga tracker .MOD file editor
Scream Tracker          Sound tracker, wuite similar to ModEdit
Play                    Sound sample editing and playback software
Whacker Tracker         Amiga sound tracker type music software

Good luck, and happy building!

				- Peter J. McKinney
				- pm860605@longs.LANCE.ColoState.Edu


----------------------- beginning of quoted text --------------------

                    How to build a Jughead's D/A Converter
        
                        (C) 1989,1990 by Tomi Engdahl

                         Writing date: 20th May, 1990


        You need:
           Connectors: D25 male
                       D25 female (optional)
           Resistors: 640k,320k,160k,80k,40k,20k,10k,5k,390  (+-1%)
                      (You can use different values of resistors, but
                      the ratio of the values of the resistors must be
                      same. 1, 2, 4, 8, 16 etc.)
           Capacitor: Electrolytic 10 yF 10V


                CHEMATIC

        ------
        l  2 l ---<640k>---+
        l  3 l ---<320k>---l
        l  4 l ---<160k>---l
        l  5 l ---<80k>----l
        l  6 l ---<40k>----l
        l  7 l ---<20k>----l-----+---- 10 yF -------> Out
        l  8 l ---<10k>----l     l
        l  9 l ---<5k>-----+   <390>
        l    l                   l
        l 25 l ------------------+------------------> Ground
        ------


                How to build

        Solder all D25 male connector pins to corresponding D25 female
        connector pins (pin 1 to pin 1 etc.). Connect the resistors
        according the chematic. It is maybe not possible to obtain exact
        resistor values. If you can't obtain them, try nearest values.
        <1% deviation is acceptable.


                How to use

        Connect this circuit to the centronics printer port of your IBM
        PC or compatible. Connect the printer cable to the D25 female
        connector of the circuit. Your printer should work correctly
        with this circuit and you can keed this circuit connected all
        the time. Connect the sound output to your stereo system. Line
        in and mic lines are suitable because the output level of this
        circuit is adjustable (about 0-2V PP). The sound quality is very
        good.


                DISCLAIMER

        I don't consider myself as responsible for anything considering
        this circuit. I am not responsible to any losses caused by this
        circuit diagram to anybody/anyone. If you can cause some damage
        with this circuit, it is your fault. If this this circuit does
        not work, it is not my fault (you have made something wrong if
        this circuit does not work).


                Contact the author

        If you have made interesting software which supports this device
        or you have ideas how to improve this circuit, please write to:

                Tomi Engdahl
                Kalliomntie 8bF
                01800 Klaukkala, Finland


-------------- end jdac.doc ----- beginning of harware.doc ----------------


             MODPLAY  *********                            (C) Mark J Cox
             MODPLAY  **                                        1990/1991
             MODPLAY  *******                              
             MODPLAY  **************   

             Amiga fourDchannel sound module player for PC's
             Hardware devices for great sound output!


    I. CONTENTS
    DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

    How to make:
                Mono output from a parallel port for about 5 pounds
                Mono output from a parallel port for around 1 pound
                Stereo from one parallel port for about 12 pounds
		A +5v power supply
		A 22W amplifier

    This document has been supplied with MODPLAY or MODRES and the
    license agreement attached to the MODPLAY documentation applies
    to this file.


    I. INTRODUCTION
    DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

    MODPLAY will play modules through the PC Speaker as mentioned above, via
    an D to A converter on any of the three possible parallel ports, in stereo
    if you have an D to A converter on both LPT1 and LPT2 (this sounds really
    good) and also through a special board that plays stereo from one
    printer port ("stereoDonD1")

    1. HOW TO MAKE A D/A CONVERTER FOR FIVE POUNDS
    DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

    A simple circuit for HiFi quality sound needs only a few components (and
    this circuit will work with other software).   It even sounds better than
    a Sound Blaster for sampled output!

    You need:

    IC1 a ZN426E (about 3 pounds) (Ferranti or Plessey are UK manufacturers)

    C1 a 10micro-farad electrolytic capacitor (10V or greater)

    C2 a 4.7micro-farad electrolytic capacitor (10V or greater)

    R1 a 380ohm resistor (5%, 1/8W)

    CON1 a phono socket for connecting a lead to your amplifier

    CON2 a 25 way male D-type connector for your parrallel port

    A bit of 10 way cable - or 10 short wires.

    A +5v supply

                               Zn426e    +5V
    D-type pin no  \          ZDDDDDDDD?  3  
                  (2)  D0  DDD49     14CDD4
                  (3)  D1  DDD410      3 ZA? 
                  (4)  D2  DDD411      3 3 3 390j
                  (5)  D3  DDD412      3 @BY
                  (6)  D4  DDD413     5CDD4
                  (7)  D5  DDD41      6CDD4       +
                  (8)  D6  DDD42      4CDD3DDDDDDDD4[DDDD> TO AMPLIFIER
                  (9)  D7  DDD43   7   3  3        10fF  
                              @DDDDBDDDY +O        (may not be needed)
                                   3 4.7fF[  
                                   3      3  
                  (25) GND DDDDDDDDADDDDDDADDDDDDDDDDDDDD GND
                                   

    2. USING A DIFFERENT DAC
    DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

    Lots of people have found that they cannot get the ZN* chips outside
    the UK - so heres a circuit that will do the same as above..
    Use a DAC0800 or DAC0801 or DAC0803 from National Semiconductors...

                               DAC 080x   
   Parallel Port Pin          ZDDDDDDDD?0.01fF  0.1fF
                  (2)  D0  DDD412    16CDD4[DDDD4[DDDDDDBDDD GND 
                  (3)  D1  DDD411      3                3
                  (4)  D2  DDD410    15CDDDDDDDDD[[[[[[DY5kj 
                  (5)  D3  DDD49       3                 
                  (6)  D4  DDD48     14CDDDDDDDDD[[[[[[D?5kj 
                  (7)  D5  DDD47     13CDDDDDDDDDDDDDDDD4
                  (8)  D6  DDD46      2CDD4[DDDDDDDDDDDDADD +5V
                  (9)  D7  DDD45 3 1  4CDDDDDDDDDD4[DDDD> TO AMPLIFIER
                              @DDBDBDDDY0.1fF    + 10fF  
                                 @D4             (may not be needed)
                                   3        
                  (25) GND DDDDDDDDADDDDDDDDDDDDDDDDDDDD GND

    The 0.01uF and 2x 0.1uF   capacitors are Ceramic.  Resistor values
    not critical
     

    2. GETTING A +5V POWER SUPPLY
    DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

    Catalogues such as MAPLIN (uk) provide simple circuits for obtaining
    a +5v power supply (it only has to be 100mA maximum).  Alternatively
    you could tap +5v off the keyboard connector or use 3 1.5volt
    batteries (or even 4 1.5volt batteries with two diodes in series to
    drop the voltage).  In fact, anything that produces a voltage in the
    range 4.5 D 5.5 volts. (in fact you can even tap +5v from the game
    port).  Don't forget to connect the 0v of your power supply to the GND
    rail shown.

    Heres a simple circuit for +5v from mains.  Mains voltage is lethal
    so always get a qualified person to make this if you are unsure.  Make
    certain that the mains voltage is completely isolated from the computer
    side and that it is impossible to touch - If you don't want to take the
    risk then don't make this circuit.

           ZDDDDDDDDDDD?     wZDDD?+                  ZDDDDDD?
           3           3      3 B CDDDDDBDDDDDDDBDDDDD4 7805 CDDDDBDDDDDD +5V
    DDDDDDD4Step down  CDDDDDD4 R 3     3+      3     @DDBDDDY    3+
    Mains  3transformer3 6V   3 I 3    MXM C1  MXM C2    3       MXM C3
           3to 6VAC    3 AC   3 D 3     3       3        3        3
    DDDDDDD4           CDDDDDD4 G 3     3       3        3        3
           3           3      3 E CDDDDDADDDDDDDADDDDDDDDADDDDDDDDADDDDDD 0V
           @DDDDDDDDDDDY     w@DDDY-

    C1     1000 fF electrolytic capacitor            (Circuit from Kenneth
    C2     0.1 fF  ceramic capactitor                 Aaron, Israel)
    C3     100 fF  electrolytic capacitor
    BRIDGE any diode bridge


    3. HOW TO MAKE AN EVEN CHEAPER D/A
    DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

    For the price of 20 1% resistors and a plug, with no power supply
    needed you can make a D/A converter that sounds close to the IC
    one above (it seems only the UK can get a Plessey ZN426E)

    You need one plug for your amp, one for your parallel port and
    9 20k and 9 10K resistors
    Use 1% resistors if possible D and 20k sound much better than 22k

          Printer Port:

          signal   pin        20k   20k
          D0       2      >DDD000DBD000DD0v
                              20k 0 10k
          D1       3      >DDD000D4
                              20k 0 10k
          D2       4      >DDD000D4
                              20k 0 10k
          D3       5      >DDD000D4
                              20k 0 10k
          D4       6      >DDD000D4
                              20k 0 10k
          D5       7      >DDD000D4
                              20k 0 10k
          D6       8      >DDD000D4
                              20k 0 10k
          D7       9      >DDD000D4
                              20k 0 10k  100nF
                                  CDDDDDD4[DDDD> TO AMPLIFIER
                                  0 10k
          GND      20     >DDDDDDDEDDDDDDDDDDDD>
                                  0v
          
     Thanks to Harry Stox for the above circuit.  Again, make sure all
     the 0v lines are connected together.  The 100nF capacitor may not
     be needed, try removing it if this circuit sounds poor.


 
    4. STEREO-ON-1 BOARD
    DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

    It is possible to play in stereo with only one parallel port (MODPLAY
    version 2.00 onwards) using the circuit below.  MODPLAY will
    automatically detect this circuit if it is present and work out what
    address it is at D so you can plug it into any of your parallel ports. 
    MODPLAY needs no further options and will default to playing through
    this device.  The +5v supply can be  anywhere between 4.5 and 5.5 volts
    so it could be run from three 1.5v  batteries. (Or from four
    rechargable batteries as these are only 1.2v) 

    * Stereo-on-1 works from MODPLAY 2.03 onwards where it did not in 2.00 *

    You can use your stereo-on-1 board with other programs that require
    a single D/A on the port as follows:

    Find out what address your port is at (LPT1 = 0378, LPT2 = 0278) and
    add 2 (LPT1 = 037A, LPT2 = 027A).  Go into DEBUG and type
    o 37a,0       (replacing 37a with the port address)
    q
    Then all sound directed to the parallel port will come out of both
    channels. 

                                ZN428
                                ZDDDDDDDDDDDDDD?         390j
              ZDDDDDDDDDDDDDDDDD411           6CDBDDDDBD11111DD+5v
              3 ZDDDDDDDDDDDDDDD412           7CDY    3 
              3 3 ZDDDDDDDDDDDDD413           3CNC    3      
              3 3 3 ZDDDDDDDDDDD414            3      3  + 10fF
              3 3 3 3 ZDDDDDDDDD415           5CDDDDDD3DDD6CDDDDD> Left out
              3 3 3 3 3 ZDDDDDDD416            3      3     0vDDD>
      20 >D0v 3 3 3 3 3 3 ZDDDDD41           10CDD+5v 3 
              3 3 3 3 3 3 3 ZDDD42            9CDBD0v 3      
      14 >DDDD3D3D3D3D3D3D3D3DDD44            8CDY    3    
              3 3 3 3 3 3 3 3   @DDDDDDDDDDDDDDY      3    
      11 >DDDD4 3 3 3 3 3 3 3   ZN428                 3  + 1fF    
              3 3 3 3 3 3 3 3   ZDDDDDDDDDDDDDD?      CDDD6CD0v
       9 >DDDDAD3D3D3D3D3D3D3DDD411 D7   VRIN 6CDDDDDDY
       8 >DDDDDDAD3D3D3D3D3D3DDD412 D6  VROUT 7C NC
       7 >DDDDDDDDAD3D3D3D3D3DDD413 D5     NC 3C NC     
       6 >DDDDDDDDDDAD3D3D3D3DDD414 D4         3        + 10fF
       5 >DDDDDDDDDDDDAD3D3D3DDD415 D3    OUT 5CDDDDDDDDD6CDDDDD> Right out
       4 >DDDDDDDDDDDDDDAD3D3DDD416 D2         3           0vDDD>
       3 >DDDDDDDDDDDDDDDDAD3DDD41 D1     +V 10CDD+5v    
       2 >DDDDDDDDDDDDDDDDDDADDD42 D0     0v  9CDB0v
       1 >DDDDDDDDDDDDDDDDDDDDDD44 !EN    0v  8CDY
      25 pin male D connector   @DDDDDDDDDDDDDDY 


      Notes:

      Make sure all the 0v lines are connected together and connected to the
      0v line of your power source.  Also, make sure the +5v lines are 
      connected together.  The lines marked 'NC' do not need to be connected.  

      If a ZN428 is not available, any D/A with input latches will work -
      the D/A should latch the data bus when pin 4 (!EN) is low.

      D3D = No connection, DED = joined

      The above circuit (Stereo-on-1) is (C) Mark J Cox 1991, 29 Lundie Close
      Stenson Fields, Derby DE2 3AN; and is supplied for personal use only.  
      For any other use, please contact the author at the address above. If 
      this circuit is abstracted or incorporated into any other document or
      circuit then that document or documentation supplied with that circuit
      must contain this paragraph of text.  Any commercial use where not 
      agreed by written contract with the author (Mark J Cox) is prohibited.


     13. STEREO AMPLIFIER
     DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

     For those of you who have built a stereo DAC and haven't enough
     inputs to your Amplifier - Kenneth Aaron has supplied this
     circuit which is designed to give a high power (11W per channel)
     high quality, low interference, single rail supply amplifier!

      Enable
     >DDDDDDDDDDDDDDBDDDDDDDD?   ZDDDDBDDDDDDDDDDDDDDDDDDDDDDD +12v
                    3+       3   3    3
                   MXM 10fFZDADDDADDDDADDDDD?
           0v DDDDDDY      3 7   13   3    1CDDDDDDDDDDDD Left
      Left     470nF    ZDD44              2CDDDDDDDDDDDD Speaker
     >DDDDDDDDDWDDDDDDDD4  3                3
                        @DD45   TDA 7370  14CDDDDDDDDDDDD Right
      Right    470nF    ZDD411            15CDDDDDDDDDDDD Speaker
     >DDDDDDDDDWDDDDDDDD4  3                3
                        @DD412              3
                    +ZDDDDD46    8   9    10CDNC
               47fF MXM    @DDDDDBDDDBDDDDDDY
                     3           3   3
                     @DDDDDDDDDDDADDDADDDDDDDDDDDDDDDDDDDDDDDDD 0v

     Make sure that 0v of the +12v supply is connected to all the 0v
     connections on the main circuit.   The enable line has to be tied
     to +12v to 'switch on' the amp


     14. AUTHOR
     DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

     Before June 1992:
     DDDDDDDDDDDDDDDDD
     Mark J Cox                 Electronic Mail:
     17 Kirkburn Place                   m.j.h.cox@bradford.ac.uk
     Bradford                    
     W. Yorks, UK               If that fails - try:
     BD7 2BZ                             bc732@cleveland.freenet.edu
                               
     After June 1992:
     DDDDDDDDDDDDDDDDD
     29 Lundie Close           	Check the latest version out!
     Stenson Fields            	For a Bradford Address.... after
     Derby, UK                 	June!
     DE2 3AN