Creative SB0350 Hardware Programming Guide - Page 41
Creative SB0350 Manual
View all Creative SB0350 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 41 highlights
3-12 Digitized Sound I/O Programming General Procedures for a DMA mode Transfer The general steps for programming the DSP for digitized sound data transfer in DMA mode is as follows: 1. 2. 3. 4. Set up the interrupt service routine. Program the DMA controller. Program the DSP sampling rate. Program the DSP with the DMA transfer mode and length to start I/O transfer. Service DSP interrupts. Restore the original interrupt service routine. 5. 6. Handling the DSP Digitized Sound I/O Interrupt The DSP generates an interrupt at the end of each DSP block transfer. The following lists the general actions needed in the interrupt service routine to handle the interrupt: 1. 2. Preserve machine status. Goto (5) if no more data blocks to transfer. Depending on the operation mode, perform 3a and 4a if you are using singlecycle mode or 3b and 4b if you are using auto-initialize mode. 3a. 4a. 3b. 4b. 5. 6. 7. 8. Program the DMA controller for the next block. Program the DSP for the next block. Transfer data between the DMA buffer and storage buffer. If you wish to quit, send the exit command here. Acknowledge the DSP interrupt. Output the EOI command (End of Interrupt) to the interrupt controller. Restore machine status. Execute an IRET.