CM-030GE-RH
18
6.5. GPIO programming examples
6.5.1 GPIO Plus PWC shutter
Example: 10µs unit pulse width exposure control (PWC).
Pixel clock is 58MHz. 580 clocks (680-100) equals 10µs.
Address
Register
Value
0xA040
Trigger Mode
2 = PWC ( Pulse Width Control)
①
0xB090
Pulse Generator 0 Selector
4 =OPT IN 1
②
0xB000
Clock Choice
1 = Pixel Clock (58MHz)
0xB004
Counter Dividing Value
0 = Pass through
0xB008
Length Counter 0
1000 Clocks
0xB00C
Start point Counter 0
100 Clocks
0xB010
Repeat Count 0
1
0xB014
End point Counter 0
680 Clocks
0xB018
Counter Clear 0
4 = Rising Edge Clear
③
0xB060
CAMERA TRIGGER Selector
16 = pulse generator 0
Fig.10. Pulse Generator
Timing
Example 1
LUT
( Cross Point Switch )
Pulse Generator 1
(20 bit Counter )
Pulse Generator 0
(20 bit Counter )
12 bit
Counter
TRIGGER 0
TRIGGER 1
PORT 1 (OPT OUT 1)
PORT 2 (OPT OUT 2)
Time Stamp Reset
LVAL IN
DVAL IN
FVAL IN
EEN IN
PORT IN(OPT IN) 1
PORT IN(OPT IN) 2
Soft Trigger 0
Soft Trigger 1
Soft Trigger 2
Soft Trigger 3
IN
OUT
Pulse Generator 0
Pulse Generator 1
Pulse Generator 0
Pulse Generator 1
Digital I/O(GPIO) setting
0
1
2
3
4
5
12
13
14
15
16
17
Digital I/O(GPIO) setting
Setting for
Line Source
Setting for
Line Selector
25 MHz
Pixel Clock
Counter Clock Source
0
1
Counter Divide by value
1/2 to 1/4096
Bypass
0
1 - 4095
Pulse Generator Setting 0
Start Point Counter 0
Length counter 0
Repeat Counter 0
End point counter 0
Counter 0 clear
Pulse Generator 1
Pulse Generator 1
18
19
Pulse Generator 2
Pulse Generator 3
Pulse Generator 2
(20 bit Counter )
Pulse Generator 3
(20 bit Counter )
1000
100
1
680
4
PULSE Generator 0
OUT
100
680
1000