Changes

Jump to navigation Jump to search
Line 1: Line 1:  
[[Camera module Trigger Mode manual/zh|查看中文]]
 
[[Camera module Trigger Mode manual/zh|查看中文]]
    +
==Camera Trigger Mode User Manual==
 +
This an mainly introduces the trigger mode of global shutter camera module, including hardware trigger and software trigger.
   −
This AN mainly introduces the trigger mode of global shutter camera module, including hardware trigger and software trigger.
   
===Applicable Product models===
 
===Applicable Product models===
CS-MIPI-SC132
+
 
 +
*[[CS-MIPI-SC132 Global Shutter Camera|CS-MIPI-SC132]]
 +
 
 
===The concept of image synchronization mode===
 
===The concept of image synchronization mode===
 
====Free Running====
 
====Free Running====
Line 11: Line 14:  
In this mode,The Trigger IO pin is used as the trigger signal, and the module begins to expose and output the image after receiving the trigger signal.
 
In this mode,The Trigger IO pin is used as the trigger signal, and the module begins to expose and output the image after receiving the trigger signal.
   −
Pin definition:[[CS-MIPI-SC132 Data Sheet#Interface .26 Pin list|CS-MIPI-SC132 DataSheet]]
+
Pin definition:[[CS-MIPI-SC132 Data Sheet#Interface .26 Pin list|CS-MIPI-SC132 Data Sheet]].
 +
 
 +
If using Xavier/TX2 , multiple cameras could be triggered by one signal.Pin definition:[[ADP-N1 Adapter Board Data Sheet|ADP_N1 Datasheet]].
    
Triggger edge, trigger delay and trigger debouncer attribute supported.
 
Triggger edge, trigger delay and trigger debouncer attribute supported.
   −
''triggeredge'' :trigger edge  
+
'''''triggeredge''''':trigger edge  
   −
''tgdly'':trigger delay
+
'''''tgdly''''':trigger delay
   −
''tgdebncr'':debouncer
+
'''''tgdebncr''''':debouncer
    
====Software Trigger====
 
====Software Trigger====
 
In this mode,Use the I2C register to trigger  an image.
 
In this mode,Use the I2C register to trigger  an image.
   −
''striggerone'': trigger an image
+
'''''striggerone''''': trigger an image
    
Note:The above instructions refer to [[CS-MIPI-X i2c|CS Serial I2C setting]] .
 
Note:The above instructions refer to [[CS-MIPI-X i2c|CS Serial I2C setting]] .
 
===Exposure control and maximum frame rate in Trigger mode===
 
===Exposure control and maximum frame rate in Trigger mode===
 
====Configuration of exposure and gain in Trigger mode====
 
====Configuration of exposure and gain in Trigger mode====
In trigger mode, it is recommended that users use manual exposure. Of course, the automatic exposure mode can also be used,  
+
In trigger mode, it is recommended that users use '''direct manual exposure'''. Of course, the automatic exposure mode can also be used,  
    
but because the AE algorithm needs to go through some frames  to converge, the exposure effect of the first few frames will not be good.
 
but because the AE algorithm needs to go through some frames  to converge, the exposure effect of the first few frames will not be good.
   −
''expmode'':exposure mode setting
+
'''''expmode''''':exposure mode setting
   −
''metime'':manual exposure time
+
'''''dmetime''''':direct manual exposure time
   −
''meagain'':manual analog gain
+
'''''dmeagain''''':direct manual analog gain
   −
''medgain'':manual digital gain
+
'''''dmedgain''''':direct manual digital gain
    
You can use the ''expostate'' instruction to read out the current exposure time and gain value in automatic mode as a reference.
 
You can use the ''expostate'' instruction to read out the current exposure time and gain value in automatic mode as a reference.
Line 47: Line 52:  
'''''T<sub>tgmin =</sub> T<sub>exp</sub> + T<sub>trans</sub>'''''
 
'''''T<sub>tgmin =</sub> T<sub>exp</sub> + T<sub>trans</sub>'''''
   −
T<sub>tgmin</sub> : minimum trigger interval
+
'''''T<sub>tgmin</sub>''''':minimum trigger interval
   −
T<sub>exp</sub>: exposure time
+
'''''T<sub>exp</sub>''''':exposure time
   −
T<sub>trans</sub>: transmission time of one frame
+
'''''T<sub>trans</sub>''''':transmission time of one frame(from sensor to isp chip)
    
Accordingly, if the minimum trigger interval is known, the maximum allowable exposure time is:
 
Accordingly, if the minimum trigger interval is known, the maximum allowable exposure time is:
   −
'''''T<sub>expmax=</sub> T<sub>tgmin  -</sub> T<sub>trans</sub>'''''
+
'''''T<sub>expmax =</sub> T<sub>tgmin  -</sub> T<sub>trans</sub>'''''
   −
T<sub>expmax</sub> : maximum exposure time
+
'''''T<sub>expmax</sub>''''':maximum exposure time
    
If the time interval between the current trigger signal and the previous trigger signal is smaller than the minimum interval time,
 
If the time interval between the current trigger signal and the previous trigger signal is smaller than the minimum interval time,
Line 63: Line 68:  
the sensor will ignore the current trigger signal.
 
the sensor will ignore the current trigger signal.
   −
*'''T<sub>exp</sub> : exposure time'''
+
*'''''T<sub>exp</sub>'':exposure time'''
    
Users can set it to automatical or manual.
 
Users can set it to automatical or manual.
Line 71: Line 76:  
''expmode'' is manual : set exposure time via ''metime''.
 
''expmode'' is manual : set exposure time via ''metime''.
   −
*'''T<sub>trans</sub> : transmission time of one frame'''
+
*'''''T<sub>trans</sub>'':transmission time of one frame(from sensor to isp chip)'''
 +
 
 +
In trigger mode, the time it takes for an image to be output from sensor, and the next trigger is accepted after the image output is completed.
    
The transmission time of a frame is related to the current resolution mode.
 
The transmission time of a frame is related to the current resolution mode.
Line 77: Line 84:  
|+Exposure time table in trigger mode
 
|+Exposure time table in trigger mode
 
!Video Format
 
!Video Format
!'''''T<sub>trans</sub>'''''(ms)
+
!'''''T<sub>trans</sub>'''''(ms)
 
!Max Framerate
 
!Max Framerate
 
!Maximum exposure time to guarantee maximum framerate(ms)
 
!Maximum exposure time to guarantee maximum framerate(ms)
Line 102: Line 109:  
'''''T<sub>total</sub> = tgdly + T<sub>exp +</sub> T<sub>trans +</sub>T<sub>isp+</sub>T<sub>mipi</sub>'''''
 
'''''T<sub>total</sub> = tgdly + T<sub>exp +</sub> T<sub>trans +</sub>T<sub>isp+</sub>T<sub>mipi</sub>'''''
   −
''T<sub>total</sub>'' :the total trigger delay is the time from the trigger signal to the complete image output through the MIPI signal.
+
'''''T<sub>total</sub>''''' :the total trigger delay is the time from the trigger signal to the complete image output through the MIPI signal. The following table is obtained by hardware measurement.
   −
tgdly: trigger delay time, the following measurements are configured to 0. ''tgdly'' is valid only for Hardware trigger mode.
+
'''''tgdly''''':trigger delay time, the following measurements are configured to 0. ''tgdly'' is valid only for Hardware trigger mode.
   −
T<sub>exp</sub> : exposure time,the following is based on the actual values read by ''expostate''.
+
'''''T<sub>exp</sub>''''' exposure time,the following is based on the actual values read by ''expostate''.
   −
T<sub>isp</sub>:image signal processing time.
+
'''''T<sub>isp</sub>''''':image signal processing time.
   −
T<sub>mipi</sub>: MIPI transmission time.
+
'''''T<sub>mipi</sub>''''':MIPI transmission time.
 
{| class="wikitable"
 
{| class="wikitable"
 
|+Trigger delay measurement result
 
|+Trigger delay measurement result
 
!Video Format
 
!Video Format
!T<sub>exp</sub>(us)
+
!''T<sub>exp</sub>''(us)
!T<sub>total</sub>(ms)
+
!''T<sub>total</sub>''(ms)
 
|-
 
|-
 
|1280x1080
 
|1280x1080

Navigation menu