Difference between revisions of "Trigger 353"

From ElphelWiki
Jump to: navigation, search
(Parameters)
Line 35: Line 35:
  
 
==Examples==
 
==Examples==
====Internal====
+
====Internal (from fpga generator)====
 
* TRIG_CONDITION=0x0
 
* TRIG_CONDITION=0x0
 
* set the TRIG_PERIOD
 
* set the TRIG_PERIOD
Line 44: Line 44:
 
* set the TRIG_PERIOD
 
* set the TRIG_PERIOD
 
* http://192.168.0.9/sync.php?role=detect&channel=internal
 
* http://192.168.0.9/sync.php?role=detect&channel=internal
 +
 +
====Internal (from fpga generator) + output the trigger signal====
 +
* TRIG_CONDITION=0x0
 +
* set the TRIG_PERIOD
 +
* TRIG=0x4
 +
* TRIG_OUT=0x800000
  
 
====External====
 
====External====
Receive:  GPIO[10] needs to be configured to receive the trigger signal - set TRIG_CONDITION=0x200000
+
Receive:  GPIO[10] needs to be configured to receive the trigger signal -
 +
 
 +
* TRIG_CONDITION=0x200000
 +
* TRIG=0x4
 +
 
  
 
Generate: GPIO[11] needs to be programmed - set TRIG_OUT=0x800000
 
Generate: GPIO[11] needs to be programmed - set TRIG_OUT=0x800000
 +
  
 
  Notes:
 
  Notes:

Revision as of 16:09, 5 May 2011

Description

10369 board is required.

The triggering is used for one or several cameras synchronization or setting the Frame Rate (or FPS). The conditions of the trigger can be generated either internally or externally. For external triggering a phone cable with RJ14 is used. To program trigger go to: http://192.168.0.9/parsedit.php -> External Trigger Controls

Note!

Be careful with changing parameters when TRIG=4. Camera drivers are driven by the frame sync interrupts from the sensor, so if the sensor is not triggered - everything can get stuck. The Program Ahead value sets the number of frame sync interrupts the camera will wait wait for until a parameter is reprogrammed.

External Trigger Controls page

Parameters

parameter description
TRIG Trigger mode enable. Currently 0 - free running, 4 - triggered by external signal or internal FPGA timing generator.
TRIG_PERIOD FPGA trigger sequencer output sync period (32 bits, in pixel clocks). 0- stop. 1 - single, >=256 repetitive with specified period (values 2..255 are reserved for programming timestamp communication)
TRIG_DELAY FPGA trigger sequencer trigger delay, 32 bits in pixel clocks
EARLY_TIMESTAMP When 0 - frame sync (start of the frame readout) will be used for timestamping of the images, when 1 and the trigger mode is external (physically external to the camera or just when sensor runs from the FPGA timing generator) the start of exposure will be used for time stamping (exposure time earlier). This is the default mode to prevent recorded frame period jitter caused by automatic exposure adjustments
TRIG_CONDITION level) for each GPIO[11:0] pin
TRIG_OUT level_when_active). Bit 24 - test mode, when GPIO[11:10] are controlled by other internal signals

Examples

Internal (from fpga generator)

  • TRIG_CONDITION=0x0
  • set the TRIG_PERIOD
  • TRIG=0x4

OR

Internal (from fpga generator) + output the trigger signal

  • TRIG_CONDITION=0x0
  • set the TRIG_PERIOD
  • TRIG=0x4
  • TRIG_OUT=0x800000

External

Receive: GPIO[10] needs to be configured to receive the trigger signal -

  • TRIG_CONDITION=0x200000
  • TRIG=0x4


Generate: GPIO[11] needs to be programmed - set TRIG_OUT=0x800000


Notes:

TRIG_CONDITION: a 22-bit register where 2 bits are used for programming each GPIO (from 0 to 11, e.g., TRIG_CONDITION[1:0] will program GPIO[0]) - MSB enables input and LSB selects active  trigger signal level.

TRIG_OUT: Same as in TRIG_CONDITION register - MSB enables and LSB selects level.

OR

GPIO[11] & GPIO[10] can be set by following http://192.168.0.9/sync.php?role=detect&channel=external

Links

10369 Circuit Diagram, Parts List, PCB layout