Creative SB0350 Hardware Programming Guide - Page 35

Creative SB0350 Manual

Page 35 highlights

3-6 Digitized Sound I/O Programming There are two ways to terminate auto-initialize DMA mode transfer: 1. Program the DSP to switch to single-cycle DMA mode transfer. At the end of the current block transfer, the DSP will exit from auto-initialize DMA mode and continue to transfer using the specified single-cycle DMA mode. Send the exit auto-initialize command; the DSP will exit auto-initialize DMA mode at the end of current block and terminate the transfer. 2. Under auto-initialize DMA mode, 8-bit unsigned PCM, 16-bit signed PCM, and ADPCM compressed data transfers are supported. Auto-initialize DMA mode is crucial when dealing with high data rates. To give you some idea of the numbers involved, CD-quality sound (16-bit stereo at 44.1 kHz) involves transferring data at a rate of 176.4 KB/s. Under these conditions, using singlecycle DMA mode would produce less than optimal sound quality because of the time needed to reprogram the DMA and DSP to start transferring a new block at the end of every block of data. The delay between the blocks (though it may be brief), is enough to distort the sound. High-Speed DMA Mode For non high-speed DMA mode, the DSP operates in the command and data modes. That is, the DSP is able to accept and execute commands that are sent to the DSP Command/Data port. Using this mode, the DSP can only support data transfer up to a certain sampling rate. To go beyond that, the DSP has to be switched to high-speed DMA mode. Under high-speed DMA mode, the DSP will only perform data transfer. It will not accept further commands that are sent to the Command/Data port. Both single-cycle and auto-initialize DMA modes are available for the high-speed DMA mode. For high-speed single-cycle DMA mode, the DSP will exit high-speed DMA mode automatically at the end of transfer. For high-speed auto-initialize DMA mode, a DSP reset is needed to exit high-speed DMA mode. The DSP reset command behaves differently while the DSP is in high-speed DMA mode. It terminates high-speed DMA mode and restores all the DSP parameters to their states prior to entering the high-speed DMA mode. High-speed DMA mode supports both mono and stereo 8-bit unsigned PCM data. ADPCM compressed data is not supported.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141

3-6
Digitized Sound I/O Programming
There are two ways to terminate auto-initialize DMA mode transfer:
1.
Program the DSP to switch to single-cycle DMA mode transfer.
At the
end of the current block transfer, the DSP will exit from auto-initialize
DMA mode and continue to transfer using the specified single-cycle DMA
mode.
2.
Send the exit auto-initialize command; the DSP will exit auto-initialize
DMA mode at the end of current block and terminate the transfer.
Under auto-initialize DMA mode, 8-bit unsigned PCM, 16-bit signed PCM, and
ADPCM compressed data transfers are supported.
Auto-initialize DMA mode is crucial when dealing with high data rates.
To give you
some idea of the numbers involved, CD-quality sound (16-bit stereo at 44.1 kHz)
involves transferring data at a rate of 176.4 KB/s.
Under these conditions, using single-
cycle DMA mode would produce less than optimal sound quality because of the time
needed to reprogram the DMA and DSP to start transferring a new block at the end of
every block of data.
The delay between the blocks (though it may be brief), is enough to
distort the sound.
High-Speed DMA Mode
For non high-speed DMA mode, the DSP operates in the command and data modes.
That is, the DSP is able to accept and execute commands that are sent to the DSP
Command/Data port.
Using this mode, the DSP can only support data transfer up to a
certain sampling rate.
To go beyond that, the DSP has to be switched to high-speed
DMA mode.
Under high-speed DMA mode, the DSP will only perform data transfer.
It will not
accept further commands that are sent to the Command/Data port.
Both single-cycle and auto-initialize DMA modes are available for the high-speed
DMA mode.
For high-speed single-cycle DMA mode, the DSP will exit high-speed
DMA mode automatically at the end of transfer.
For high-speed auto-initialize DMA
mode, a DSP
reset
is needed to exit high-speed DMA mode.
The DSP reset command behaves differently while the DSP is in high-speed DMA
mode.
It terminates high-speed DMA mode and restores all the DSP parameters to
their states prior to entering the high-speed DMA mode.
High-speed DMA mode supports both mono and stereo 8-bit unsigned PCM data.
ADPCM compressed data is not supported.