Spectrum Brands MI.61XX 用户手册

下载
页码 79
Option Extra I/O
Digital I/Os
(c) Spectrum GmbH
65
Option Extra I/O
Digital I/Os
With this simple-to-use enhancement it is possible to control a wide range of external instruments or other equipment. Therefore you have 
several digital I/Os and the 4 analog outputs available. All extra I/O lines are completely independent from the board’s function, data di-
rection or sample rate and directly controlled by software (asynchronous I/Os).
The extra I/O option is useful if an external amplifier should be controlled, any kind of signal source must be programmed, an antenna must 
be adjusted, a status information from external machine has to be obtained or different test signals have to be routed to the board.
It is not possible to use this option together with the star hub or timestamp option, because there is just space 
for one piggyback module on the on-board expansion slot.
Channel direction
Option -XMF (external connector)
The additional inputs and outputs are mounted on an extra bracket.
The direction of the 24 available digital lines can be programmed for every group of eight lines. The table below shows the direction register 
and the possible values. To combine the values so simply have to OR them bitwise.
Option -XIO (internal connector)
The additional inputs and outputs are available through an internal connector directely on the extra I/O piggiback module.
The direction of the 16 available digital lines can be programmed for every group of eight lines. The table below shows the direction register 
and the possible values. To combine the values so simply have to OR them bitwise.
Transfer Data
The outputs can be written or read by a single 32 bit register. If the register is read, the actual pin data will be taken. Therefore reading the 
data of outputs gives back the generated pattern. The single bits of the digital I/O lines correspond with the bitnumber of the 32 bit register. 
Values written to the most significant byte will be ignored.
 
Register
Value
Direction
Description
SPC_XIO_DIRECTION
47100
r/w
Defines bytewise the direction of the digital I/O lines. The values can be combined by a bitwise OR. 
XD_CH0_INPUT
0
Sets the direction of channel 0 (bit D7…D0) to input.
XD_CH1_INPUT
0
Sets the direction of channel 1 (bit D15…D8) to input.
XD_CH2_INPUT
0
Sets the direction of channel 2 (bit D23…D16) to input.
XD_CH0_OUTPUT
1
Sets the direction of channel 0 (bit D7…D0) to output.
XD_CH1_OUTPUT
2
Sets the direction of channel 1 (bit D15…D8) to output.
XD_CH2_OUTPUT
4
Sets the direction of channel 2 (bit D23…D16) to output.
Register
Value
Direction
Description
SPC_XIO_DIRECTION
47100
r/w
Defines bytewise the direction of the digital I/O lines. The values can be combined by a bitwise OR. 
XD_CH0_INPUT
0
Sets the direction of channel 0 (bit D7…D0) to input.
XD_CH1_INPUT
0
Sets the direction of channel 1 (bit D15…D8) to input.
XD_CH0_OUTPUT
1
Sets the direction of channel 0 (bit D7…D0) to output.
XD_CH1_OUTPUT
2
Sets the direction of channel 1 (bit D15…D8) to output.
Register
Value
Direction
Description
SPC_XIO_DIGITALIO
47110
r
Reads the data directly from the pins of all digital I/O lines either if they are declared as inputs or 
outputs.
SPC_XIO_DIGITALIO
47110
w
Writes the data to all digital I/O lines that are declared as outputs. Bytes that are declared as inputs 
will ignore the written data.