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.
Set up the interrupt service routine.
2.
Program the DMA controller.
3.
Program the DSP sampling rate.
4.
Program the DSP with the DMA transfer mode and length to start I/O
transfer.
5.
Service DSP interrupts.
6.
Restore the original interrupt service routine.
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.
Preserve machine status.
2.
Goto (5) if no more data blocks to transfer.
Depending on the operation mode, perform 3a and 4a if you are using single-
cycle mode or 3b and 4b if you are using auto-initialize mode.
3a.
Program the DMA controller for the next block.
4a.
Program the DSP for the next block.
3b.
Transfer data between the DMA buffer and storage buffer.
4b.
If you wish to quit, send the exit command here.
5.
Acknowledge the DSP interrupt.
6.
Output the EOI command (End of Interrupt) to the interrupt controller.
7.
Restore machine status.
8.
Execute an IRET.
Содержание SB0350
Страница 29: ......
Страница 71: ...Mixer Chip Programming 4 13 Figure 4 4 Logical Schematic of the Output Mixing Paths ...
Страница 72: ...4 14 Mixer Chip Programming Figure 4 5 Logical Schematic of the Input Mixing Paths ...
Страница 141: ...Index3 ...