AT-140GE
- 21 -
7.5. GPIO programming examples
7.5.1 GPIO Plus PWC shutter
Example: 10µs unit pulse width exposure control (PWC).
Pixel clock is ~43MHz. 430 clocks (530-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 (43MHz)
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
530 Clocks
0xB018
Counter Clear 0
4 = Rising Edge Clear
③
0xB060
CAMERA TRIGGER Selector
16 = pulse generator 0
Fig.18 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 1
TRIGGER 2
TTL OUT 2
OPT OUT 1
OPT OUT 2
Time Stamp Reset
Sequence Reset
LVAL IN
DVAL IN
FVAL IN
EEN IN
OPT IN 1
OPT IN 2
LVDS IN
Soft Trigger 0
Soft Trigger 1
Soft Trigger 2
Soft Trigger 3
Pulse trigger IN
Pulse OUT
Pulse Generator 0
Pulse Generator 1
Digital I/O(GPIO) setting
Digital I/O(GPIO) setting
Setting for
Line Source
Setting for
Line Selector
Pixel Clock
Counter Clock Source
1
Counter Divide by value
Bypass
0
1 - 4095
Pulse Generator Setting 0
Start Point Counter 0
Length counter 0
Repeat Count 0
End point counter 0
Counter 0 clear
Pulse Generator Setting 3
Pulse Generator 1
Pulse Generator 0
TTL IN
①
②
⇒
⇒
⇒
⇒
⇒
1000clk
100clk
1
530clk
4 Rising Edge
③
TTL OUT 1
OPT IN
PULSE Generator 0
OUT
100
530
1000