home *** CD-ROM | disk | FTP | other *** search
/ POINT Software Programming / PPROG1.ISO / asm / 80x0393 / sbcprog.txt < prev    next >
Encoding:
Text File  |  1994-03-08  |  2.0 KB  |  43 lines

  1. (3143)  Sun 6 Mar 94  1:48p
  2. By: Mike Melanson
  3. To: Thorsten Barth
  4. Re: Re: Soundblaster programm
  5. St:                                                                       <2755
  6. ---------------------------------------------------------------------------
  7. @MSGID: 1:128/60.0 2d7a338c
  8. @REPLY: 2:2461/201.11 aa123bf1
  9. Mr. Thorsten Barth inquires:
  10.  
  11.  TB> So I have to make it on my own and 'debug' that damn driver. Question:
  12.  TB> Is the SB capable of making a A/D,D/A transfer without using DMA - which
  13.  TB> would be a lot easier.
  14.  
  15.         According to Sound Blaster:  The Official Book, here's the stuff about
  16. performing straight DSP data transfer with IN's and OUT's rather than DMA:
  17.         First, initialize the DSP for use by:
  18.         1)  Write 01h to port 2X6h (the DSP reset port)
  19.         2)  Wait at least 3 microseconds
  20.         3)  Write 00h to port 2X6h (the DSP reset port)
  21.         4)  Wait until bit 7 is set on port 2XEh (the DSP data available port)
  22.         5)  Read port 2XAh (the DSP read data port)
  23.         6)  If the value is 0AAh then the DSP is ready to go, otherwise, skip
  24.                 back to step 4
  25.         After the DSP is initialized, most things are handled through port
  26. 2XCh, the DSP write data and command port, and 2XAh, the DSP read data port.
  27. When writing and reading to and from the DSP certain steps are supposed to be
  28. taken:
  29.         1)  Read port 2XCh (which is also the DSP write buffer status port)
  30.         2)  If bit 7 of the byte read isn't set then go back to step 1
  31.         3)  If writing to the DSP, OUT to DSP write data port 2XCh; if reading
  32.                 read from DSP read data port 2XAh
  33.         Writing a value of 10h to port 2XCh sets the DSP to direct mode.  Af-
  34. ter that, you can send digital sound data, uncompressed, to the DSP byte by
  35. byte.  Writing 20h to port 2XCh puts the DSP in direct mode ADC.
  36.         Hope this helps...
  37.                           -Mike
  38.  
  39. --- Maximus/2 2.01wb
  40.  * Origin: The Programmers Playhouse (1:128/60)
  41.  
  42. @PATH: 128/1 209/209 270/101 260/1 362
  43.