Creative SB0350 Hardware Programming Guide - Page 13

Creative SB0350 Manual

Page 13 highlights

Introduction xiii Determining User's Card Settings Most of the Sound Blaster card settings are jumper selectable to avoid conflicts with other peripheral cards. To aid the application in determining the settings used by a Sound Blaster card, we have advocated the use of an environment variable called BLASTER. The user will set up this environment variable during card installation. The BLASTER environment variable specifies the base I/O address, interrupt and DMA channel used by the Sound Blaster card. The command for setting the BLASTER environment is as follows: SET BLASTER=A220 I5 D1 [H5 M220 P330] where: A I D H M P specifies the Sound Blaster card's base I/O port specifies the interrupt request line specifies the 8-bit DMA channel specifies the 16-bit DMA channel specifies the mixer chip base I/O port specifies the MPU-401 base I/O port Note that there is no space before and after the = (equal) sign, but there must be at least one space between each setting. Some of the cards may have fewer environment parameters. For instance, 8-bit sound cards do not have the "Hh" parameter in the parameter string. If "Mmmm" is not specified, the mixer chip base I/O port will be the same as the card's base I/O port. On Sound Blaster 16, 16-bit sound data is usually transfer through 16-bit DMA channel (specifies on the "Hh" parameter of BLASTER environment variable). However, the hardware also supports transfer 16-bit sound data via 8-bit DMA channel. To make this possible, the program SBCONFIG.EXE come with Sound Blaster 16 package must be run to configure the Sound Blaster 16 appropriately. When SBCONFIG is run, the BLASTER environment entries "Dd" and "Hh" must be set such that d and h are the same 8-bit DMA channel number. We encourage developers to adopt, as standard programming practice, the method of retrieving the hardware configuration from the BLASTER environment, instead of scanning the hardware.

  • 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

Introduction
xiii
Determining User's Card Settings
Most of the Sound Blaster card settings are jumper selectable to avoid conflicts with
other peripheral cards.
To aid the application in determining the settings used by a Sound Blaster card, we
have advocated the use of an environment variable called
BLASTER
.
The user will
set up this environment variable during card installation.
The BLASTER environment variable specifies the base I/O address, interrupt and
DMA channel used by the Sound Blaster card.
The command for setting the BLASTER environment is as follows:
SET BLASTER=A
220
I
5
D
1
[
H
5
M
220
P
330
]
where:
A
specifies the Sound Blaster card's base I/O port
I
specifies the interrupt request line
D
specifies the 8-bit DMA channel
H
specifies the 16-bit DMA channel
M
specifies the mixer chip base I/O port
P
specifies the MPU-401 base I/O port
Note that there is no space before and after the
=
(equal) sign, but there must be at
least one space between each setting.
Some of the cards may have fewer
environment parameters.
For instance, 8-bit sound cards do not have the "
H
h
"
parameter in the parameter string.
If "
M
mmm
" is not specified, the mixer chip base
I/O port will be the same as the card's base I/O port.
On Sound Blaster 16, 16-bit sound data is usually transfer through 16-bit DMA
channel (specifies on the "
H
h
" parameter of BLASTER environment variable).
However, the hardware also supports transfer 16-bit sound data via 8-bit DMA
channel.
To make this possible, the program
SBCONFIG.EXE
come with Sound
Blaster 16 package must be run to configure the Sound Blaster 16 appropriately.
When SBCONFIG is run, the BLASTER environment entries "
D
d
" and "
H
h
" must be
set such that
d
and
h
are the same 8-bit DMA channel number.
We encourage developers to adopt, as standard programming practice, the method of
retrieving the hardware configuration from the BLASTER environment, instead of
scanning the hardware.