106
M2i.60xx / M2i.60xx-exp Manual
Allowed trigger modes
Mode Gated Replay
Pulsewidth triggers
For all external edge and level trigger modes, the OR mask must contain the corresponding input, as the following table shows:
TTL pulsewidth trigger for long HIGH pulses
This mode is for detecting a rising edge of an external TTL signal
followed by a HIGH pulse that are longer than a programmed
pulsewidth. If the pulse is shorter than the programmed pulse-
width, no trigger will be detected.
The gate will start on the first pulse matching the trigger condition
after starting the board.
The gate will stop with the next falling edge.
TTL pulsewidth trigger for long LOW pulses
This mode is for detecting a falling edge of an external TTL signal
followed by a LOW pulse that are longer than a programmed
pulsewidth. If the pulse is shorter than the programmed pulse-
width, no trigger will be detected.
The gate will start on the first pulse matching the trigger condition
after starting the board.
The gate will stop with the next rising edge.
Register
Value
Direction
Description
SPC_TRIG_ORMASK
40410
read/write
Defines the OR mask for the different trigger sources.
SPC_TMASK_EXT0
2h
Enable external trigger input for the OR mask
SPC_TMASK_XIO0
100h
Enable extra TTL input 0 for the OR mask. On plain cards this input is only available if the option BaseXIO is installed.
As part of the digitizerNETBOX this input is available as connector Trigger B.
SPC_TMASK_XIO1
200h
Enable extra TTL input 1 for the OR mask. These trigger inputs are only available, when option BaseXIO is installed.
Register
Value
Direction
Description
SPC_TRIG_EXT0_PULSEWIDTH
44210
read/write
Sets the pulsewidth in samples. Values from 2 to 65535 are allowed.
SPC_TRIG_EXT0_MODE
40510
read/write
Sets the trigger mode for the board.
(SPC_TM_POS |
SPC_TM_PW_GREATER)
4000001h
Sets the trigger mode for external TTL trigger to detect HIGH pulses that are longer than a programmed pulsewidth.
Register
Value
Direction
Description
SPC_TRIG_EXT0_PULSEWIDTH
44210
read/write
Sets the pulsewidth in samples. Values from 2 to 65535 are allowed.
SPC_TRIG_EXT0_MODE
40510
read/write
Sets the trigger mode for the board.
(SPC_TM_NEG |
SPC_TM_PW_GREATER)
4000002h
Sets the trigger mode for external TTL trigger to detect LOW pulses that are longer than a programmed pulsewidth.
spcm_dwSetParam_i32 (hDrv,SPC_TRIG_EXT0_MODE, SPC_TM_NEG | SPC_TM_PW_GREATER); // Setting up external TTL
// trigger to detect low pulses
spcm_dwSetParam_i32 (hDrv, SPC_TRIG_EXT0_PULSEWIDTH , 50); // that are longer than 50 samples.
spcm_dwSetParam_i32 (hDrv, SPC_TRIG_ORMASK, SPC_TMASK_EXT0); // and enable it within the OR mask