
72
(c) Spectrum Instrumentation GmbH
Channel Selection
Analog Inputs
Analog Inputs
Channel Selection
One key setting that influences all other possible settings is the channel enable register. A unique feature of the Spectrum cards is the possibility
to program the number of channels you want to use. All on-board memory can then be used by these activated channels.
This description shows you the channel enable register for the complete card family. However, your specific board may have less channels
depending on the card type that you have purchased and therefore does not allow you to set the maximum number of channels shown here.
.
The channel enable register is set as a bitmap. That means that one bit of the value corresponds to one channel to be activated. To activate
more than one channel the values have to be combined by a bitwise OR.
Single-ended inputs
1 single-ended channel enabled
Any one of the installed channels can be enabled. The following table shows example settings for the channel enable register:
2 single-ended channels enabled
Any two of the installed channels can be enabled. The following table shows three example settings for the channel enable register:
4 single-ended channels enabled
Any four of the installed channels can be enabled. The following table shows three example settings for the channel enable register:
8 single-ended channels enabled
Any channel activation mask that tries to enables a number of channels other than one, two, four or eight
channels is not valid. If programming an other channel activation, the driver will return with an error code
ERR_VALUE.
Table 23: Spectrum API: channel enable register: used to select the channels for the next acquisition/generation
Register
Value
Direction
Description
SPC_CHENABLE
11000
read/write
Sets the channel enable information for the next board run.
hex.
dec.
CHANNEL0
1h
1
Activates channel 0
CHANNEL1
2h
2
Activates channel 1
CHANNEL2
4h
4
Activates channel 2
CHANNEL3
8h
8
Activates channel 3
CHANNEL4
10h
16
Activates channel 4
CHANNEL5
20h
32
Activates channel 5
CHANNEL6
40h
64
Activates channel 6
CHANNEL7
80h
128
Activates channel 7
Channels to activate
Installed channels on card
Value to program
Ch0 Ch1 Ch2 Ch3 Ch4 Ch5 Ch6 Ch7
1
2
4
8
Constant from regs.h
hex
decimal
X
X
X
X
X
CHANNEL0
1h
1
X
n.a.
n.a.
X
X
CHANNEL3
8h
8
X
n.a.
n.a.
n.a.
X
CHANNEL6
40h
64
Channels to activate
Installed channels on card
Value to program
Ch0 Ch1 Ch2 Ch3 Ch4 Ch5 Ch6 Ch7
1
2
4
8
Constant from regs.h
hex
decimal
X
X
n.a.
X
X
X
CHANNEL0 | CHANNEL1
3h
3
X
X
n.a.
n.a.
X
X
CHANNEL1 | CHANNEL3
Ah
10
X
X
n.a.
n.a.
n.a.
X
CHANNEL3 | CHANNEL7
88h
136
Channels to activate
Installed channels on card
Value to program
Ch0 Ch1 Ch2 Ch3 Ch4 Ch5 Ch6 Ch7
1
2
4
8
Constant from regs.h
hex
decimal
X
X
X
X
n.a.
n.a.
X
X
CHANNEL0 | CHANNEL1 | CHANNEL2 | CHANNEL3
Fh
15
X
X
X
X
n.a.
n.a.
n.a.
X
CHANNEL1 | CHANNEL3 | CHANNEL4 | CHANNEL7
9Ah
154
X
X
X
X
n.a.
n.a.
n.a.
X
CHANNEL2 | CHANNEL3 | CHANNEL6 | CHANNEL7
CCh
204
Channels to activate
Installed channels on card
Value to program
Ch0 Ch1 Ch2 Ch3 Ch4 Ch5 Ch6 Ch7
1
2
4
8
Constant from regs.h
hex
decimal
X
X
X
X
X
X
X
X
n.a.
n.a.
n.a.
X
CHANNEL0 | CHANNEL1 | CHANNEL2 | CHANNEL3 |
CHANNEL4 | CHANNEL5 | CHANNEL6 | CHANNEL7
FFh
255
Summary of Contents for M2p.59 Series
Page 190: ......