Digitized Sound I/O Programming
3-27
bMode
is one of the following:
bMode
Description
00h
8-bit mono unsigned PCM
20h
8-bit stereo unsigned PCM
10h
16-bit mono signed PCM
30h
16-bit stereo signed PCM
wLength
is one less than the actual number of samples to be transferred.
The transfer begins here. The DSP will generate an interrupt after transferring the
programmed number of samples.
Upon receiving an interrupt from the DSP, the following steps should be done in the
interrupt service routine:
1.
Program the DMA controller for the next block.
2.
Program the DSP for the next block (step 5 shown above).
At the end of data transfer:
1
Disable the interrupt used.
2
Restore the original interrupt service routine.