
19-2302 A
2020-09-16
34(46)
ADQ8-4X Manual
19-2302 A 2020-09-16
34(46)
6.2 ADQ8-4X–PXIe GPIO on SYNC connectors
On the ADQ8-4X–PXIe form factor, the sync input pin and output pins are split into two connectors.
This means that the sync pin is not bi-directional when used as GPIO,
6.3 Using GPIO as a trigger
The GPIO can be used for sending a trigger command from the application software to an external
device. In such a situation this GPIO signal can also be used for triggering the digitizer itself synchro-
nous to the external device. This is possible since the external trigger input logic always listen to the
signal on the TRIG connector. The following example illustrate how to trigger the digitizer and an exter-
nal device through GPIO function on the TRIG connector.
Example 7: Triggering the digitizer and an external device with GPIO
1. Connect a cable from the TRIG connector to the external device.
2.
SetTriggerMode
(“external trigger”) /* This will activate the trigger module to listen to TRIG”
3.
SetDirectionGPIOPort
(“output”) /* This enables output on TRIG connector*/
4.
ArmTrigger
5.
WriteGPIOPort
(“1”) /* This sends a signal on the TRIG connector that triggers the devices*/
The GPIO input function always listen to the trigger pin. This means that the external trigger pin value
can always be read from the GPIO function
ReadGPIOPort
.
6.4 Output
The output is activated through the software command
SetDirectionGPIOPort
and the signal level is set
by
WriteGPIOPort
. The input function
ReadGPIOport
will then return the output level.
6.5 GPIO in ADQ Development Kit
The GPIO signals from TRIG and SYNC are available in the ADQ Development Kit for real-time interac-
tion with the signal flow.
#
DESCRIPTION
USER COMMAND
REF
a
The external pin is automatically connected to the activated function.
b
The GPIO input function always reads the state of the pin. The GPIO
output function is activated by the user.
SetDirectionGPIOPort
c
The user may access the pin by reading and writing from the software.
ReadGPIOPort
WriteGPIOPort
d
The user may build firmware in the ADQ Development Kit for real-time
interaction with the GPIO signals.Then GPIO is accessed through register
access commands.
ReadUserRegister
WriteUserRegister
Figure 24: ADQ8-4X–PXIe GPIO on SYNC pin.
(!(
/0
/0
12
(
(
'('!2'!(2 !
(!(2
(!2 2
'('!2'!2 2 !
3'4!5*'!
!
')'5'( !6
3'4! (! *'
/0
/0
(!2