home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 8 / CDASC08.ISO / NEWS / 676 / PLAYLPT / PLAYLPT.DOC < prev    next >
Text File  |  1993-10-07  |  4KB  |  95 lines

  1. *** PLAYLPT.EXE *** 01-08-93 Audio Sample Player Unit Test by John C. Howard
  2. Plays .VOC, .WAV and .RAW and .SAM files through the LPT printer port.
  3. Syntax example...
  4. PLAYLPT {sample filename} [rate(default 11000)] [port address(default 378h)]
  5.  
  6.  
  7. This program doesn't use DMA transfers for data output as most others.
  8. Instead it hooks the timer and increases its interrupt rate according
  9. to the sample rate while outputting bytes to the lpt port on each interrupt.
  10. This isn't the most stable way to do it, but it works fine for
  11. samples up to about 16000 Hz on a 33MHz processor.
  12.  
  13.  
  14. This is how I torture myself when I'm not at work.
  15. Any questions or input?
  16.  
  17. Call me at 609-596-0048 in Marlton.
  18. If you get an answering machine, leave a message,
  19. I do return calls.
  20.  
  21. ******************************************************************************
  22. Build your own Digital to Analog Converter..............
  23.  
  24. ... taken from mp.exe and modrec.exe doc files.  
  25.     Two very good mod programs!
  26.  
  27.  
  28.           Printer Port:
  29.  
  30.           signal   pin        20k   20k
  31.           D0       2      >───░░░─┬─░░░───────────────0v
  32.                               20k ░ 10k
  33.           D1       3      >───░░░─┤
  34.                               20k ░ 10k
  35.           D2       4      >───░░░─┤
  36.                               20k ░ 10k
  37.           D3       5      >───░░░─┤
  38.                               20k ░ 10k
  39.           D4       6      >───░░░─┤
  40.                               20k ░ 10k
  41.           D5       7      >───░░░─┤
  42.                               20k ░ 10k
  43.           D6       8      >───░░░─┤
  44.                               20k ░ 10k
  45.           D7       9      >───░░░─┤
  46.                               20k ░ 10k        + 1uF
  47.                                   ├────────┬───────┤├───> TO AMPLIFIER
  48.                   │       ░ 1k
  49.                   │       │
  50.                                   ░ 10k   === .1uF
  51.                   │        │
  52.           GND      20     >───────┼────────┴─────────────>
  53.                                   0v
  54.  
  55.     This is slightly modified from its source. I added
  56.     a 1kHz - 3bB per octave low pass filter.
  57.     Make sure all 0v (Gnd) are connected together.
  58.     Use only 1% resistors.  15k ohm resistors in place of the
  59.     20k ohm 1% resistors sound retched, and 22k ohm aren't
  60.     good either.
  61.  
  62.     I packaged my own in a serial port gender changer type adapter
  63.     connector (perfect size).  the finished product cost under $5.00
  64.     and took about an hour to assemble.
  65.     
  66.           
  67.  
  68.  
  69. ... taken from Whacker Tracker's doc file.
  70.  
  71.     Parallel Port
  72.  
  73.  pin no
  74.     2───────────── 2.8 MΩ ────────────┐
  75.                                       │
  76.     3───────────── 1.4 MΩ ────────────┤
  77.                                       │
  78.     4───────────── 0.7 MΩ ────────────┤
  79.                                       │
  80.     5───────────── 352 KΩ ────────────┤                 ┌────────────┐
  81.                                       │                 │            │
  82.     6───────────── 176 KΩ ────────────┤                 │ Amplifier  │
  83.                                       │                 │ or any     │
  84.     7───────────── 88 KΩ ─────────────┤                 │ kind of    │
  85.                                       │                 │ Hi-Fi-     │
  86.     8───────────── 44 KΩ ─────────────┤                 │ system     │
  87.                                       │                 │            │
  88.     9───────────── 22 KΩ ─────────────┴───────┤20uF├────┤            │
  89.                                                         │            │
  90.    18───────────────────────────────────────────────────┤            │
  91.   (gnd)                                                 └────────────┘
  92.  
  93.  
  94. ******************************************************************************
  95.