![Teledyne SP Devices ADQ7DC Manual Download Page 34](http://html1.mh-extra.com/html/teledyne-sp-devices/adq7dc/adq7dc_manual_1081091034.webp)
19-2233 PC2
2019-02-01
34(50)
ADQ7DC Manual
16-1796 PC2 2019-02-01
34(50)
Example 3: 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.3 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.4 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.