
108
(c) Spectrum Instrumentation GmbH
External logic trigger (X1, X2, X3)
Trigger modes and appendant registers
External logic trigger (X1, X2, X3)
The three multi purpose I/O lines of the M2p series can be set up as
additional logic (TTL) triggers.
The external logic triggers can be easily combined with the external
analog trigger as well as the channel trigger.The programming of the
masks is shown in the chapters above.
Trigger Mode
Please find the main external (analog) trigger input modes below. A detailed description of the modes follows in the next chapters..
For all external edge and level trigger modes, the OR mask must contain the corresponding input, as the following table shows:
Table 67: Spectrum API: external logic trigger registers and settings for them
Register
Value
Direction
Description
SPC_TRIG_EXT1_AVAILMODES
40501
read
Bitmask showing all available trigger modes for external 1 (X1) = logic trigger input
SPC_TRIG_EXT2_AVAILMODES
40502
read
Bitmask showing all available trigger modes for external 2 (X2) = logic trigger input
SPC_TRIG_EXT3_AVAILMODES
40503
read
Bitmask showing all available trigger modes for external 3 (X3) = logic trigger input
SPC_TRIG_EXT1_MODE
40511
read/write
Defines the external trigger mode for the external MMCX connector trigger input. The trigger need to
be added to either OR or AND mask input to be activated.
SPC_TRIG_EXT2_MODE
40512
read/write
Defines the external trigger mode for the external MMCX connector trigger input. The trigger need to
be added to either OR or AND mask input to be activated.
SPC_TRIG_EXT3_MODE
40513
read/write
Defines the external trigger mode for the external MMCX connector trigger input. The trigger need to
be added to either OR or AND mask input to be activated.
SPC_TM_NONE
00000000h
Channel is not used for trigger detection. This is as with the trigger masks another possibility for disabling channels.
SPC_TM_POS
00000001h
Sets the trigger mode for external logic (TTL) trigger to detect positive edges.
SPC_TM_NEG
00000002h
Sets the trigger mode for external logic (TTL) trigger to detect negative edges.
SPC_TM_BOTH
00000004h
Sets the trigger mode for external logic (TTL) trigger to detect positive and negative edges
SPC_TM_HIGH
00000008h
Sets the trigger mode for external logic (TTL) trigger to detect HIGH levels.
SPC_TM_LOW
00000010h
Sets the trigger mode for external logic (TTL) trigger to detect LOW levels.
SPC_TM_POS | SPC_TM_P
-
W_GREATER
4000001h
Sets the trigger mode for external logic (TTL) trigger to detect HIGH pulses that are longer than a programmed pulse
-
width.
SPC_TM_POS | SPC_TM_P
-
W_SMALLER
2000001h
Sets the trigger mode for external logic (TTL) trigger to detect HIGH pulses that are shorter than a programmed pulse
-
width.
SPC_TM_NEG | SPC_TM_P
-
W_GREATER
4000002h
Sets the trigger mode for external logic (TTL) trigger to detect LOW pulses that are longer than a programmed pulse
-
width.
SPC_TM_NEG | SPC_TM_P
-
W_SMALLER
2000002h
Sets the trigger mode for external logic (TTL) trigger to detect LOW pulses that are shorter than a programmed pulse
-
width.
Table 68: Spectrum API: trigger OR mask register an settings for external logic trigger
Register
Value
Direction
Description
SPC_TRIG_ORMASK
40410
read/write
Defines the OR mask for the different trigger sources.
SPC_TMASK_EXT1
4h
Enable logic trigger X1 input for the OR mask
SPC_TMASK_EXT2
8h
Enable logic trigger X2 input for the OR mask
SPC_TMASK_EXT3
10h
Enable logic trigger X3 input for the OR mask
Image 62: trigger engine overview and multi purpose trigger
Содержание M2p.59 Series
Страница 190: ......