ARTRAY ARTCAM-0134AR-BW-WOM-OP-CM Talimat Kitapçığı - Sayfa 18

Dijital Kamera ARTRAY ARTCAM-0134AR-BW-WOM-OP-CM için çevrimiçi göz atın veya pdf Talimat Kitapçığı indirin. ARTRAY ARTCAM-0134AR-BW-WOM-OP-CM 19 sayfaları. Usb2.0 cmos camera small type

ARTRAY ARTCAM-0134AR-BW-WOM-OP-CM Talimat Kitapçığı
10-2 GPIO
GPIO option is available upon request before the delivery of the ARTCAM-0134AR-WOM series.
Pin assign
・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 each 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)
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
Bit
GPIO_0
0x01
GPIO_1
0x02
GPIO_2
0x04
GPIO_3
0x08
GPIO_4
0x10
GPIO_5
0x20
- 18 -