Creative SB0350 Hardware Programming Guide - Page 108

Creative SB0350 Manual

Page 108 highlights

DSP Commands 6-23 Bxh Output Remarks Program 16-bit DMA mode digitized sound I/O bCommand, bMode, wLength.LowByte, wLength.HighByte The bCommand byte is organized as: D7 1 D6 0 D5 1 D4 1 D3 A/D 0 = D/A 1 = A/D D2 Auto-Init 0 = SC 1 = AI D1 FIFO 0 = off 1 = on D0 0 where D/A stands for digital-to-analog, A/D for analog-to-digital, SC for single-cycle DMA mode, AI for auto-init DMA mode. FIFO will be re-initialized when the DSP receives any new digitized sound I/O commands. The bMode byte is organized as: D7 0 D6 0 D5 stereo 0 = mono 1 = stereo D4 signed 0 = unsigned 1 = signed D3 0 D2 0 D1 0 D0 0 where the signed bit determines whether the data is signed or unsigned. For minimum signal amplitude, the signed 16-bit value is 0000h; with unsigned data, the equivalent value is 8000h. wLength is a word giving the number of 16-bit samples less 1. Refer to command 1Ch on how to terminate auto-init DMA mode. See Also command D5h, Pause 16-bit DMA mode digitized sound I/O command D6h, Continue 16-bit DMA mode digitized sound I/O command D9h, Exit 16-bit auto-init DMA mode digitized sound I/O 1.xx 2.00 2.01+ 3.xx 4.xx 9 Available

  • 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

DSP Commands
6-23
B
x
h
Program 16-bit DMA mode digitized sound I/O
Output
bCommand, bMode, wLength.LowByte, wLength.HighByte
Remarks
The
bCommand
byte is organized as:
D7
D6
D5
D4
D3
D2
D1
D0
1
0
1
1
A/D
Auto-Init
FIFO
0
0 = D/A
0 = SC
0 = off
1 = A/D
1 = AI
1 = on
where
D/A
stands for digital-to-analog,
A/D
for analog-to-digital,
SC
for single-cycle DMA mode,
AI
for auto-init DMA mode.
FIFO will be re-initialized when the DSP receives any new digitized sound I/O
commands.
The
bMode
byte is organized as:
D7
D6
D5
D4
D3
D2
D1
D0
0
0
stereo
signed
0
0
0
0
0 = mono
0 = unsigned
1 = stereo
1 = signed
where the
signed
bit determines whether the data is signed or unsigned.
For
minimum signal amplitude, the signed 16-bit value is 0000h; with unsigned data, the
equivalent value is 8000h.
wLength
is a word giving the number of 16-bit samples less 1.
Refer to command
1Ch
on how to terminate auto-init DMA mode.
See Also
command
D5h
, Pause 16-bit DMA mode digitized sound I/O
command
D6h
, Continue 16-bit DMA mode digitized sound I/O
command
D9h
,
Exit 16-bit auto-init DMA mode digitized sound I/O
Available
1.xx
2.00
2.01+
3.xx
4.xx
9