Creative SB0350 Hardware Programming Guide - Page 55
Creative SB0350 Manual
View all Creative SB0350 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 55 highlights
3-26 Digitized Sound I/O Programming 8-bit or 16-bit Single-cycle Transfer The following are the steps needed to perform 8-bit or 16-bit and mono or stereo PCM single-cycle DMA mode transfer on DSP version 4.xx: 1. 2. 3. Set up the DSP interrupt service routine. Enable the interrupt used. Program the DMA controller for 8-bit or 16-bit single-cycle DMA mode transfer. Set the DSP transfer sampling rate. outp(wSBCBaseAddx+0xC, bCommand) outp(wSBCBaseAddx+0xC, wSamplingRate.HighByte) outp(wSBCBaseAddx+0xC, wSamplingRate.LowByte) 4. bCommand is one of the following: bCommand 42h 41h Description Input Output Contrast the sampling rate with the DSP transfer Time Constant. For example, at a 44100 Hz sampling rate, wSamplingRate.HighByte = ACh, and wSamplingRate.LowByte = 44h. 5. Send an I/O command, followed by the transfer mode, and the data transfer count. outp(wSBCBaseAddx+0xC, outp(wSBCBaseAddx+0xC, outp(wSBCBaseAddx+0xC, outp(wSBCBaseAddx+0xC, bCommand) bMode) wLength.LowByte) wLength.HighByte) bCommand is one of the following: bCommand C8h C0h B8h B0h Description 8-bit input 8-bit output 16-bit input 16-bit output