ARTRAY ARTCAM-130HP-NIR-WOM Libretto di istruzioni - Pagina 14
Sfoglia online o scarica il pdf Libretto di istruzioni per Telecamere CCD ARTRAY ARTCAM-130HP-NIR-WOM. ARTRAY ARTCAM-130HP-NIR-WOM 15. Usb2.0 nir cmos camera
Anche per ARTRAY ARTCAM-130HP-NIR-WOM: Manuale (14 pagine)
10.2. GPIO
GPIO option is available upon request before the delivery of the ARTCAM-0134AR-WOM series.
・Each of the six GPIO pins is pulled up to 3.3V with 1kΩ on the circuit board and is connected to the IO pins on FPGA.
・When GPIO pins are used as output pins, the FPGA output is driven at high impedance and Low level.
(At the time of power-up: high impedance)
To control GPIO, please use the ArtCam_SetIOPort / GetIOPort functions in SDK.
To control GPIO output, please specify the corresponding OR calculated values of e ach bit as per the
table below to the second argument of the SetIOPort function.
For example, to have GPIO_0, GPIO_1, GPIO_4 output High(Z) and GPIO_2, GPIO_3, GPIO_5 output
Low, please call this as follows:
ArtCam_SetIOPort(hACam, (0x01 | 0x02 | 0x10), 0, 0);
To read the GPIO pins, BYTE-type values can be gotten with the GetIOPort function.
For example, to get the status on GPIO_4 pin, please call the followings:
BYTE data = 0x00;
ArtCam_GetIOPort(hACam, &data, 0, 0);
BOOL gpio4 = (data & 0x10) ? TRUE : FALSE;
And the BOOL-type variable gpio4 of GPIO_4 pin is gotten
・Extensions
Monitoring the vertical synchronization signals, horizontal synchronization signals, strobe signals, and trigger signals on
the sensor are possible as extensions of the GPIO option. (Optional)
Pin assign
No.
Function
1
GPIO_0
2
GPIO_1
3
GPIO_2
4
VCC(3.3V) Maximum output 50mA
5
GPIO_3
6
GPIO_4
7
GPIO_5
8
Gnd
IO pin
GPIO_0
GPIO_1
GPIO_2
GPIO_3
GPIO_4
GPIO_5
- 14 -
Bit
0x01
0x02
0x04
0x08
0x10
0x20