
Multi Purpose I/O Lines
Additional I/O lines with Option -DigSMB and -DigFX2
(c) Spectrum Instrumentation GmbH
127
Additional I/O lines with Option -DigSMB and -DigFX2
The options M2p.xxxx-DigSMB and M2p.xxxx-DigFX2 extend the multi purpose I/O lines of each M2p card by adding sixteen more I/O
lines as an option, either on a multi-pin FX2 connector or via coaxial SMB connectors. These additional lines X4, X5 ... X19 share the same
capabilities as their base card I/O counter parts (X1 .. X3), except the trigger input functionality.
Please be careful when programming these lines as an output whilst maybe still being connected with an
external signal source, as that may damage components either on the external equipment or on the card
itself.
Programming the behavior
Each multi purpose I/O line can be individually programmed. Please check the available modes by reading the SPCM_X4_AVAILMODE up
to SPCM_X19_AVAILMODES register first. The available modes may differ from card to card and may be enhanced with new driver/firm
-
ware versions to come.
Please note that a change to the SPCM_X4MODE up to SPCM_X19_MODE will only be updated with the next
call to either the M2CMD_CARD_START or M2CMD_CARD_WRITESETUP register. For further details please see
the relating chapter on the M2CMD_CARD registers.
Table 75: Spectrum API: mode registers for XIO lines on additional digital I/O module and their settings
Register
Value
Direction
Description
SPCM_X4_AVAILMODES
600304
read
Bitmask with all bits of the below mentioned modes showing the available modes for (X4)
SPCM_X5_AVAILMODES
600305
read
Bitmask with all bits of the below mentioned modes showing the available modes for (X5)
...
...
read
...
SPCM_X18_AVAILMODES
600318
read
Bitmask with all bits of the below mentioned modes showing the available modes for (X18)
SPCM_X19_AVAILMODES
600319
read
Bitmask with all bits of the below mentioned modes showing the available modes for (X19)
SPCM_X4_MODE
600204
read/write
Defines the mode for (X4). Only one mode selection is possible to be set at a time
SPCM_X5_MODE
600205
read/write
Defines the mode for (X5). Only one mode selection is possible to be set at a time
...
...
read/write
...
SPCM_X18_MODE
600218
read/write
Defines the mode for (X18). Only one mode selection is possible to be set at a time
SPCM_X19_MODE
600219
read/write
Defines the mode for (X19). Only one mode selection is possible to be set at a time
SPCM_XMODE_DISABLE
00000000h
No mode selected. Output is tristate (default setup)
SPCM_XMODE_ASYNCIN
00000001h
Connector is programmed for asynchronous input. Use SPCM_XX_ASYNCIO to read data asynchronous as shown in
the passage below.
SPCM_XMODE_ASYNCOUT
00000002h
Connector is programmed for asynchronous output. Use SPCM_XX_ASYNCIO to write data asynchronous as shown
in the passage below.
SPCM_XMODE_DIGIN
00000004h
A/D cards only:
Connector is programmed for synchronous digital input. For each analog channel, one digital channel X1/X2/X3 is
integrated into the ADC data stream. Depending on the ADC resolution of your card the resulting merged samples
can have different formats. Please check the „Sample format“ chapter and the following passage on „Synchronous
digital inputs“ for more details. Please note that automatic sign extension of analog data is ineffective as soon as one
digital input line is activated and the software must properly mask out the digital bits.
SPCM_XMODE_DIGOUT
00000008h
D/A cards only:
Connector is programmed for synchronous digital output. Digital channels can be „included“ within the analog sam
-
ples and synchronously replayed along. Requires additional MODE bits to be set along with this flag, as explained
later on.
SPCM_XMODE_TRIGOUT
00000020h
Connector is programmed as trigger output and shows the trigger detection. The trigger output goes HIGH as soon as
the trigger is recognized. After end of acquisition it is LOW again. In Multiple Recording/Gated Sampling/ABA
mode it goes LOW after the acquisition of the current segment stops. In standard FIFO mode the trigger output is
HIGH until FIFO mode is stopped.
SPCM_XMODE_RUNSTATE
00000100h
Connector shows the current run state of the card. If acquisition/output is running the signal is HIGH. If card has
stopped the signal is LOW.
SPCM_XMODE_ARMSTATE
00000200h
Connector shows the current ARM state of the card. If the card is armed and ready to receive a trigger the signal is
HIGH. If the card isn’t running or the card is still acquiring pretrigger data or the trigger has already been detected,
the signal is LOW.
SPCM_XMODE_CONTOUTMARK
00002000h
D/A cards only:
Outputs a HIGH pulse as continuous marker signal for continuous replay mode. The marker signal length is ½ of the
programmed memory size.
SPCM_XMODE_SYSCLKOUT
00004000h
Output of internal FPGA system clock. The system clock is always an even division of the current sampling clock.
SPCM_XMODE_SYNCARMSTATE
00010000h
Connector shows the current ARM state of all cards currently connected Star-Hub and enabled for synchronization. If
all cards are armed and ready to receive a trigger the signal is HIGH. If all cards are ready or one running card is
still acquiring pretrigger data or the trigger has been detected the signal is LOW. A card that has reached the end of
it’s acquisition will remove itself from the equation and not contribute to this signal until all cards are finished.
Summary of Contents for M2p.59 Series
Page 190: ......