Allied customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify Allied for any damages resulting from such improper use or sale. Trademarks Unless stated otherwise, all trademarks appearing in this document of Allied Vision Technologies are brands protected by law.
Contents Contacting Allied Vision Technologies ..........11 Introduction ......................12 Document history ......................12 Manual overview......................21 Conventions used in this manual..................22 Styles ........................22 Symbols ........................23 More information......................23 Before operation ......................24 STINGRAY cameras ...................25 Declarations of conformity ................26...
Page 5
Automatic generation of correction data..............101 Requirements ....................101 Algorithm ......................101 Loading a shading image out of the camera ............... 104 Loading a shading image into the camera ..............105 Look-up table (LUT) and gamma function............... 106 Loading an LUT into the camera ................108 Defect pixel correction ....................
Page 6
Color correction: formula..................143 GretagMacbeth ColorChecker ................143 Changing color correction coefficients ..............144 Switch color correction on/off ................144 Color conversion (RGB YUV) ..................145 Bulk Trigger ....................... 145 Level Trigger......................145 Serial interface......................146 Camera interfaces ...................151 IEEE 1394b port pin assignment ...................
Page 7
Asynchronous broadcast ....................189 Jitter at start of exposure .................... 190 Sequence mode ......................192 How is sequence mode implemented? ................ 193 Setup mode....................... 194 Sequence step mode................... 194 SeqMode description ..................195 Sequence repeat counter ..................195 Manual stepping & reset ..................195 Which sequence mode features are available? .............
Page 8
Stingray F-146/F-146 BL: AOI frame rates ..............238 Stingray F-201/F-201 BL: AOI frame rates ..............239 Stingray F-504/F-504 BL: AOI frame rates ..............240 How does bandwidth affect the frame rate? ........241 Example formula for the b/w camera..............242 Test images ....................... 243 Loading test images ....................
Page 9
Shading correction ....................295 Reading or writing shading image from/into the camera .......... 296 Automatic generation of a shading image.............. 296 Memory channel error codes ................297 Deferred image transport..................298 Frame information....................299 Defect pixel correction .................... 300 Input/output pin control..................301 Delayed Integration Enable (IntEna) .................
Page 10
Index .........................331 STINGRAY Technical Manual V4.2.0...
Introduction Introduction This STINGRAY Technical Manual describes in depth the technical specifica- tions, dimensions, all camera features (IIDC standard and AVT smart fea- tures) and their registers, trigger features, all video and color formats, band- width and frame rate calculation. For information on hardware installation, safety warnings, pin assignments on I/O connectors and 1394b connectors read the Hardware Installation Guide.
Page 13
Introduction Version Date Remarks continued from last page V2.1.0 23.05.08 Added 4 x and 8 x binning in Chapter Binning (only Stingray b/w models and F-201C) [continued] [continued] page 114ff. Added 2 out of 8 sub-sampling in Chapter Sub-sampling (Stin- gray b/w and color) on page 120ff.
Page 14
Introduction Version Date Remarks continued from last page V2.1.0 23.05.08 [continued] [continued] [continued] Added board level in Video formats, modes and bandwidth page 203ff. Added board level (BL) in Table 126: Camera type ID list page 284 Added PWM in Table 127: Advanced register: Advanced feature inquiry on page 286f.
Page 15
Introduction Version Date Remarks continued from last page V2.2.0 15.08.08 [continued] [continued] [continued] Rounded offsets in Chapter Exposure time (shutter) and offset on page 183f. and in Figure 98: Data flow and timing after end of exposure on page 188. Added new image of Stingray camera with two screws on either side of the cameras for fixing the front flange: –...
Page 16
Introduction Version Date Remarks continued from last page V3.0.0 08.10.08 New Stingray board level CAD drawing with name of screws M2x14 ISO7045-A2 (2x): – Figure 37: Stingray board level: CS-Mount on page 82 – Figure 38: Stingray board level: C-Mount on page 83 New Stingray F-125B/C: Read information in the following sec- tions:...
Page 17
Introduction Version Date Remarks continued from last page V4.0.0 21.10.08 New Stingray F-504B/C: Read information in the following sec- tions: • Table 20: Specification STINGRAY F-504B/C (fiber) page 59f. • Table 36: FIFO memory size on page 135 • Table 62: Camera-specific exposure time offset on page •...
Page 18
Introduction Version Date Remarks continued from last page V4.1.0 28.01.09 All advanced registers in 8-digit format beginning with 0xF1... in Chapter Advanced features (AVT-specific) on page 280ff. and in Chapter Parameter-List Update on page 314 New CAD drawings (hexagon socket head cap screw ISO 4762): •...
Page 19
Introduction Version Date Remarks continued from last page V4.2.0 28.05.09 Calculated effective chip size for all sensors (with resolution of Format_7 Mode_0) in Chapter Specifications on page 45ff. SIS feature: standardized terminology, added examples in Chapter Secure image signature (SIS): definition and scenarios on page 201 Stingray cameras do not support storing shading image data into non-volatile memory, see...
Page 20
Introduction Version Date Remarks continued from last page V4.2.0 28.05.09 Stingray update round (SUR): [continued] [continued] • Only GOF models: new LED signals (asynchronous traffic and signal detect) in Table 40: LEDs showing normal condi- tions on page 156 • Stingray F-504 cameras are also available with 64 MByte internal FIFO memory (instead of 32 MByte): –...
Table 1: Document history Manual overview This manual overview describes each chapter of this manual shortly. • Chapter Contacting Allied Vision Technologies on page 11 lists AVT con- tact data for both: – technical information / ordering – commercial information •...
Introduction • Chapter Camera interfaces on page 151 describes in detail the inputs/ outputs of the cameras (incl. Trigger features). For a general description of the interfaces (FireWire and I/O connector) see Hardware Installa- tion Guide. • Chapter Description of the data path on page 84 describes in detail IIDC conform as well as AVT-specific camera features.
Introduction Symbols Note This symbol highlights important information. Caution This symbol highlights important instructions. You have to follow these instructions to avoid malfunctions. This symbol highlights URLs for further information. The URL itself is shown in blue. Example: http://www.alliedvisiontec.com More information...
To demonstrate the properties of the camera, all examples in this manual are based on the FirePackage OHCI API software and the SmartView application. These utilities can be obtained from Allied Vision Technologies (AVT). A free version of SmartView is available for download at: www.alliedvisiontec.com...
IEEE 1394b With the new Stingray, Allied Vision Technologies presents a wide range of cameras with IEEE 1394b interfaces. Moreover, with daisy chain as well as direct fiber technology they gain the highest level of acceptance for demand- ing areas of use in manufacturing industry.
Declarations of conformity Declarations of conformity Allied Vision Technologies declares under its sole responsibility that the fol- lowing products Category name Model name Digital camera (IEEE 1394) STINGRAY F-033B STINGRAY F-033C STINGRAY F-046B STINGRAY F-046C STINGRAY F-080B STINGRAY F-080C STINGRAY F-125B...
FireWire FireWire Overview FireWire provides one of the most comprehensive, high-performance, cost- effective solutions platforms. FireWire offers very impressive throughput at very affordable prices. Definition FireWire (also known as i.Link or IEEE 1394) is a personal computer and digital video serial bus interface standard, offering high-speed communica- tions and isochronous real-time data services.
FireWire Why use FireWire? Digital cameras with on-board FireWire (IEEE 1394a or 1394b) communica- tions conforming to the IIDC standard (V1.3 or V1.31) have created cost- effective and powerful solutions options being used for thousands of differ- ent applications around the world. FireWire is currently the premier robust digital interface for industrial applications for many reasons, including: •...
Page 29
FireWire Figure 2: 1394a data transmission In case of 1394b no gaps are needed due to parallel arbitration, handled by bus owner supervisor selector (BOSS) (see the following diagram). Whereas 1394a works in half duplex transmission, 1394 does full duplex transmission. Cycle Sync: 1394b Parallel arbitration, handled by BOSS, can eliminate gaps Figure 3: 1394b data transmission...
FireWire Note How to extend the size of an isochronous packet up to 11.000 byte at S800: • see register 0xF1000048, ADV_INQ_3, Max IsoSize [1] Table 127: Advanced register: Advanced feature inquiry on page 286 • see Chapter Maximum ISO packet size on page 310 FireWire connection capabilities FireWire can connect together up to 63 peripherals in an acyclic network...
FireWire In addition to common standards shared across manufacturers, a special Format_7 mode also provided a means by which a manufacturer could offer special features (smart features), such as: • higher resolutions • higher frame rates • diverse color modes as extensions (advanced registers) to the prescribed common set.
FireWire Compatibility between 1394a and 1394b 1394b port 1394b camera 1394a port 1394a camera 1394a camera connected to 1394b bus 1394b camera connected to 1394a bus The cable explains dual compatibility: This cable The cable explains dual compatibility: In this case, serves to connect an IEEE 1394a camera with its the cable connects an IEEE 1394b camera with its six-pin connector to a bilingual port (a port which...
FireWire 1394b bandwidths According to the 1394b specification on isochronous transfer, the largest recommended data payload size is 8192 bytes per 125 µs cycle at a band- width of 800 Mbit/s. Note Certain cameras may offer, depending on their settings in combination with the use of AVT FirePackage higher packet ...
Page 36
FireWire Figure 5: Block diagram of modern PC (X38 chipset by INTEL) Caution As mentioned earlier, it is very important not to exceed an inrush current of 18 mJoule in 3 ms. (This means that a device, when powered via 12 V bus power must never draw more than 1.5 A, even not in the first 3 ms.) Higher inrush current may damage the physical interface chip of the camera and/or the phy chip in your PC.
FireWire Requirements for laptop and 1394b As mentioned above, 1394b requires low latency for data transmission (small receive-FIFO). In order to get the most out of your camera-to-laptop config- uration, we recommend the following chipset for your laptop: • For Intel-based laptops, chipset 915 (or higher) •...
FireWire Figure 7: ExpressCard Logo, ExpressCard/54 (SIIG) Figure 8: ExpressCard technology ExpressCard is a new standard set by PCMCIA. For more information visit: http://www.expresscard.org/web/site/ Example 1: 1394b bandwidth of Stingray cameras STINGRAY model Resolution Frame rate Bandwidth Stingray F-033 B/C megapixel 84 fps 27.11 MByte/s...
FireWire FireWire Plug & play capabilities FireWire devices implement the ISO/IEC 13213 configuration ROM model for device configuration and identification, to provide plug & play capability. All FireWire devices are identified by an IEEE EUI-64 unique identifier (an exten- sion of the 48-bit Ethernet MAC address format) in addition to well-known codes indicating the type of device and protocols it supports.
FireWire Operating system support Operating system 1394a 1394b Linux Full support Full support Apple Mac OS X Full support Full support Windows XP With service pack 2 the default speed for 1394b is S100 (100 Mbit/s). A download and registry modification is available from Microsoft to restore performance to either S400 or S800.
Filter and lenses Filter and lenses IR cut filter: spectral transmission The following illustration shows the spectral transmission of the IR cut filter: Figure 9: Spectral transmission of Hoya C5000 Note Stingray uses a different IR cut filter than the other AVT cam- eras.
Filter and lenses Camera lenses AVT offers different lenses from a variety of manufacturers. The following table lists selected image formats in width x height depending on camera type, distance and the focal length of the lens. Focal length Distance = 500 mm Distance = 1000 mm for type 1/3 sensors Stingray F-080/125...
Page 44
Filter and lenses Focal length Distance = 500 mm Distance = 1000 mm for type 1/1.8 sensors Stingray F-201 4.8 mm 740 mm x 549 mm 1488 mm x 1103 mm 8 mm 441 mm x 327 mm 890 mm x 660 mm 12 mm 292 mm x 216 mm 591 mm x 438 mm...
Specifications Specifications Note For information on bit/pixel and byte/pixel for each color mode see Table 101: ByteDepth on page 242. STINGRAY F-033B/C (fiber) Feature Specification Image device Type 1/2 (diag. 8 mm) progressive scan SONY IT CCD ICX414AL/AQ with HAD microlens Effective chip size 6.5 mm x 4.9 mm...
Page 46
Specifications Feature Specification Smart functions AGC (auto gain control), AEC (auto exposure control), real-time shad- ing correction, LUT, 32 MByte image memory, mirror, binning (only b/w), sub-sampling, High SNR, deferred image transport, SIS (secure image signature), sequence mode, 4 storable user sets only color: AWB (auto white balance), color correction, hue, satura- tion, sharpness Two configurable inputs, four configurable outputs...
Specifications STINGRAY F-046B/C (fiber) Feature Specification Image device Type 1/2 (diag. 8 mm) progressive scan SONY IT CCD ICX415AL/AQ with HAD microlens Effective chip size 6.5 mm x 4.8 mm Cell size 8.3 µm x 8.3 µm Picture size (max.) 780 x 580 pixels (Format_7 Mode_0) Lens mount Adjustable C-Mount: 17.526 mm (in air);...
Page 48
Specifications Feature Specification Typical 3.5 watt (@ 12 V DC); fiber: typical 4 watt (@ 12 V DC) Power consumption (full resolution and maximal frame rates) Dimensions 72.8 mm x 44 mm x 29 mm (L x W x H); incl. connectors, w/o tripod and lens Mass 92 g (without lens)
Specifications STINGRAY F-080B/C (fiber) Feature Specification Image device Type 1/3 (diag. 6 mm) progressive scan SONY IT CCD ICX204AL/AK with HAD microlens Effective chip size 4.8 mm x 3.6 mm Cell size 4.65 µm x 4.65 µm Picture size (max.) 1032 x 776 pixels (Format_7 Mode_0) Lens mount Adjustable C-Mount: 17.526 mm (in air);...
Page 50
Specifications Feature Specification Typical 3.6 watt (@ 12 V DC); fiber: typical 4 watt (@ 12 V DC) Power consumption (full resolution and maximal frame rates) Dimensions 72.8 mm x 44 mm x 29 mm (L x W x H); incl. connectors, w/o tripod and lens Mass 92 g (without lens)
Specifications STINGRAY F-125B/C (fiber) Feature Specification Image device Type 1/3 (diag. 6 mm) progressive scan SONY IT CCD ICX445ALA/AQA with EXview HAD microlens Effective chip size 4.8 mm x 3.6 mm Cell size 3.75 µm x 3.75 µm Picture size (max.) 1292 x 964 pixels (Format_7 Mode_0) Lens mount Adjustable C-Mount: 17.526 mm (in air);...
Page 52
Specifications Feature Specification Typical 3.6 watt (@ 12 V DC); fiber: typical 4 watt (@ 12 V DC) Power consumption (full resolution and maximal frame rates) Dimensions 72.8 mm x 44 mm x 29 mm (L x W x H); incl. connectors, w/o tripod and lens Mass 92 g (without lens)
Specifications STINGRAY F-145B/C (fiber) Feature Specification Image device Type 2/3 (diag. 11 mm) progressive scan SONY IT CCD ICX285AL/AQ with EXview HAD microlens Effective chip size 9.0 mm x 6.7 mm Cell size 6.45 µm x 6.45 µm Picture size (max.) 1388 x 1038 pixels (Format_7 Mode_0) Lens mount Adjustable C-Mount: 17.526 mm (in air);...
Page 54
Specifications Feature Specification Typical 3.5 watt (@ 12 V DC); fiber: typical 4 watt (@ 12 V DC) Power consumption (full resolution and maximal frame rates) Dimensions 72.8 mm x 44 mm x 29 mm (L x W x H); incl. connectors, w/o tripod and lens Mass 92 g (without lens)
Specifications STINGRAY F-146B/C (fiber) Feature Specification Image device Type 1/2 (diag. 8 mm) progressive scan SONY IT CCD ICX267AL/AK with HAD microlens Effective chip size 6.5 mm x 4.8 mm Cell size 4.65 µm x 4.65 µm Picture size (max.) 1388 x 1038 pixels (Format_7 Mode_0) Lens mount Adjustable C-Mount: 17.526 mm (in air);...
Page 56
Specifications Feature Specification Typical 3.5 watt (@ 12 V DC); fiber: typical 4 watt (@ 12 V DC) Power consumption (full resolution and maximal frame rates) Dimensions 72.8 mm x 44 mm x 29 mm (L x W x H); incl. connectors, w/o tripod and lens Mass 92 g (without lens)
Specifications STINGRAY F-201B/C (fiber) Feature Specification Image device Type 1/1.8 (diag. 8.9 mm) progressive scan SONY IT CCD ICX274AL/AQ with Super HAD microlens Effective chip size 7.1 mm x 5.4 mm Cell size 4.40 µm x 4.40 µm Picture size (max.) 1624 x 1234 pixels (Format_7 Mode_0) Lens mount Adjustable C-Mount: 17.526 mm (in air);...
Page 58
Specifications Feature Specification Typical 3.5 watt (@ 12 V DC); fiber: typical 4 watt (@ 12 V DC) Power consumption (full resolution and maximal frame rates) Dimensions 72.8 mm x 44 mm x 29 mm (L x W x H); incl. connectors, w/o tripod and lens Mass 92 g (without lens)
Specifications STINGRAY F-504B/C (fiber) Feature Specification Image device Type 2/3 (diag. 11 mm) progressive scan SONY IT CCD ICX655ALA/AQA with Super HAD microlens Effective chip size 8.5 mm x 7.1 mm Cell size 3.45 µm x 3.45 µm Picture size (max.) 2452 x 2056 pixels (Format_7 Mode_0) Lens mount Adjustable C-Mount: 17.526 mm (in air);...
Page 60
Specifications Feature Specification Typical 3.9 watt (@ 12 V DC); fiber: typical 4.2 watt (@ 12 V DC) Power consumption (full resolution and maximal frame rates) Dimensions 72.8 mm x 44 mm x 29 mm (L x W x H); incl. connectors, w/o tripod and lens Mass 92 g (without lens)
Camera dimensions Camera dimensions Note For information on sensor position accuracy: (sensor shift x/y, optical back focal length z and sensor rota- tion ) see Chapter Sensor position accuracy of AVT cameras on page 329. STINGRAY standard housing (2 x 1394b copper) M3 x4 (3x) 13.3 9 - 0.0...
Camera dimensions Tripod adapter This five hole tripod adapter (AVT order number E 5000007) ... • ... can be used for Stingray as well as for Marlin. The original four hole adapter of the Marlin should not be used with Stingray. •...
Camera dimensions Stingray W90 (2 x 1394b copper) This version has the sensor tilted by 90 degrees clockwise, so that it views upwards. M3 x4 (3x) 32.8 Ø 55.5 M3 x3 (2x) C-Mount 92.3 Stingray W90 (2x IEEE 1394b) 92.3 x 44 x 38.2 (L x W x H) Figure 25: Stingray W90 (2 x 1394b copper) STINGRAY Technical Manual V4.2.0...
Camera dimensions Stingray W90 (1394b: 1 x GOF, 1 x copper) This version has the sensor tilted by 90 degrees clockwise, so that it views upwards. M3 x4 (3x) 32.8 Ø 55.5 M3 x3 (2x) M3 x4 (3x) C-Mount Stingray W90 (1394b: 1x GOF, 1x COP) 93 x 44 x 38.2 (L x W x H) Figure 26: Stingray W90 (1394b: 1 x GOF, 1 x copper) STINGRAY Technical Manual V4.2.0...
Camera dimensions Stingray W90 S90 (2 x 1394b copper) This version has the sensor tilted by 90 degrees clockwise, so that it views upwards. The sensor is also rotated by 90 degrees clockwise. M3 x4 (3x) Ø 47.8 M3 x3 (2x) 55.5 M3 x4 (3x) C-Mount...
Camera dimensions Stingray W90 S90 (1394b: 1 x GOF, 1 x copper) This version has the sensor tilted by 90 degrees clockwise, so that it views upwards. The sensor is also rotated by 90 degrees clockwise. M3 x4 (3x) 47.8 Ø...
Camera dimensions Stingray W270 (2 x 1394b copper) This version has the sensor tilted by 270 degrees clockwise, so that it views downwards. M3 x4 (3x) C-Mount 32.8 55.5 M3 x3 (2x) Ø M3 x4 (3x) 92.3 Stingray W270 (2x IEEE 1394b) 92.3 x 44 x 38.2 (L x W x H) Figure 29: Stingray W270 (2 x 1394b copper) STINGRAY Technical Manual V4.2.0...
Camera dimensions Stingray W270 (1394b: 1 x GOF, 1 x copper) This version has the sensor tilted by 270 degrees clockwise, so that it views downwards. M3 x4 (3x) C-Mount 32.8 M3 x3 (2x) 55.5 Ø M3 x4 (3x) Stingray W270 (1394b: 1x GOF, 1x COP) 93 x 44 x 38.2 (L x W x H) Figure 30: Stingray W270 (1394b: 1 x GOF, 1 x copper) STINGRAY Technical Manual V4.2.0...
Camera dimensions Stingray W270 S90 (2 x 1394b copper) This version has the sensor tilted by 270 degrees clockwise, so that it views downwards. The sensor is also rotated by 90 degrees clockwise. M3 x4 (3x) C-Mount 47.8 55.5 M3 x3 (4x) Ø...
Camera dimensions Stingray W270 S90 (1394b: 1 x GOF, 1 x copper) This version has the sensor tilted by 270 degrees clockwise, so that it views downwards. The sensor is also rotated by 90 degrees clockwise. C-Mount M3 x4 (3x) 47.8 55.5 M3 x3 (2x)
Camera dimensions Cross section: CS-Mount All Stingray cameras can be delivered with CS-Mount. Filter / protection glass 12.526 = CS-Mount Adjustment spacer Figure 33: Stingray CS-Mount dimensions Note Pay attention to the maximum sensor size of the applied CS- Mount lens. ...
Camera dimensions Cross section: C-Mount • All monochrome Stingrays are equipped with the same model of protec- tion glass. • All color Stingrays are equipped with the same model of IR cut filter. 10.3 Filter / protection glass 17.526 = C-Mount Adjustment spacer Figure 34: Stingray C-Mount dimensions STINGRAY Technical Manual V4.2.0...
Camera dimensions Adjustment of C-Mount and CS-Mount The dimensional adjustment is done by means of the adjustment spacer(s) as shown in Figure 33: Stingray CS-Mount dimensions on page 78 and in Figure 34: Stingray C-Mount dimensions on page 79. After dismantling and reassembling please make sure that all adjustment spacers are back on place.
Description of the data path Description of the data path Block diagrams of the cameras The following diagrams illustrate the data flow and the bit resolution of image data after being read from the CCD sensor chip in the camera. The indi- vidual blocks are described in more detail in the following paragraphs.
Description of the data path Color cameras 14 bit Test-Pattern HIROSE I/O RS232 16 bit Figure 40: Block diagram color camera Setting LUT = OFF effectively makes full use of the 14 bit by bypassing the LUT circuitry; setting LUT = ON means that the most significant 12 bit of the 14 bit are used and further down converted to 10 bit.
Description of the data path White balance There are two types of white balance: • one-push white balance: white balance is done only once (not contin- uously) • auto white balance (AWB): continuously optimizes the color character- istics of the image Stingray color cameras have both one-push white balance and auto white balance.
Page 87
Description of the data path From the user's point, the white balance settings are made in register 80Ch of IIDC V1.31. This register is described in more detail below. Register Name Field Description 0xF0F0080C WHITE_BALANCE Presence_Inq [0] Presence of this feature: 0: N/A 1: Available Abs_Control...
Description of the data path Note While lowering both U/B and V/R registers from 284 towards 0, the lower one of the two effectively controls the green gain. Figure 41: U/V slider range Type Range Range in dB 10 dB Stingray color cameras 0 ...
Page 89
Description of the data path This feature uses the assumption that the R-G-B component sums of the sam- ples shall be equal; i.e., it assumes that the average of the sampled grid pix- els is to be monochrome. Note The following ancillary conditions should be observed for suc- cessful white balance: ...
Description of the data path Auto white balance (AWB) The auto white balance feature continuously optimizes the color character- istics of the image. For the white balance algorithm the whole image or a subset of it is used. Auto white balance can also be enabled by using an external trigger. How- ever, if there is a pause of >10 seconds between capturing individual frames this process is aborted.
Description of the data path AOI: X-size AF_AREA_POSITION: Left,Top Sampling grid for Auto-Function AF_AREA_SIZE: Width: n x 4 Figure 43: AUTOFNC_AOI positioning The algorithm is based on the assumption that the R-G-B component sums of the samples are equal, i.e., it assumes that the mean of the sampled grid pix- els is to be monochrome.
Page 92
Description of the data path To configure this feature in control and status register (CSR): Register Name Field Description 0xF0F0081C SHUTTER Presence_Inq Presence of this feature: 0: N/A 1: Available Abs_Control Absolute value control O: Control with value in the Value field 1: Control with value in the Absolute value If this bit=1, the value in the Value field will be ignored.
Description of the data path Auto gain All Stingray cameras are equipped with auto gain feature. Note Configuration To configure this feature in an advanced register: See Table 142: Advanced register: Auto gain control on page 304. When enabled auto gain adjusts the gain within the default gain limits or within the limits set in advanced register F1000370h in order to reach the brightness set in auto exposure register as reference.
Page 94
Description of the data path Register Name Field Description 0xF0F00820 GAIN Presence_Inq Presence of this feature: 0: N/A 1: Available Abs_Control Absolute value control O: Control with value in the value field 1: Control with value in the absolute value CSR If this bit=1 the value in the value field has to be ignored.
Page 95
Description of the data path Register Name Field Description 0xF0F00804 AUTO_EXPOSURE Presence_Inq Presence of this feature: 0: N/A 1: Available Abs_Control Absolute value control O: Control with value in the value field 1: Control with value in the absolute value CSR If this bit=1 the value in the value field has to be ignored.
Description of the data path Note • Values can only be changed within the limits of gain CSR. • Changes in auto exposure register only have an effect when auto gain is active. • Auto exposure limits are 50..205. (SmartViewCtrl1 tab: Target grey level) Manual gain Stingray cameras are equipped with a gain setting, allowing the gain to be...
Page 97
Description of the data path The following table shows the BRIGHTNESS register: Register Name Field Description 0xF0F00800 BRIGHTNESS Presence_Inq Presence of this feature: 0: N/A 1: Available Abs_Control Absolute value control O: Control with value in the value field 1: Control with value in the absolute value CSR If this bit= 1 the value in the value field has to be ignored...
Description of the data path Horizontal mirror function All Stingray cameras are equipped with an electronic mirror function, which mirrors pixels from the left side of the image to the right side and vice versa. The mirror is centered to the current FOV center and can be combined with all image manipulation functions, like binning and shading.
Description of the data path Shading correction Shading correction is used to compensate for non-homogeneities caused by lighting or optical characteristics within specified ranges. To correct a frame, a multiplier from 1...2 is calculated for each pixel in 1/256 steps: this allows for shading to be compensated by up to 50 %. Besides generating shading data off-line and downloading it to the camera, the camera allows correction data to be generated automatically in the cam- era itself.
Description of the data path How to store shading image There are two storing possibilities: • After generating the shading image in the camera, it can be uploaded to the host computer for nonvolatile storage purposes. • The shading image can be stored in the camera itself. The following pictures describe the process of automatic generation of cor- rection data.
Description of the data path Automatic generation of correction data Requirements Shading correction compensates for non-homogeneities by giving all pixels the same gray value as the brightest pixel. This means that only the back- ground must be visible and the brightest pixel has a gray value of less than 255 when automatic generation of shading data is started.
Page 102
Description of the data path Note Configuration To configure this feature in an advanced register: See Table 135: Advanced register: Shading on page 295. Note • The SHDG_CTRL register should not be queried at very short intervals. This is because each query delays the ...
Page 103
Description of the data path 255.0 surface plot histogram Count: 307200 Min: 139 Mean: 157.039 Max: 162 StdDev: 2.629 Mode: 158 (84449) Figure 47: Example of shaded image • On the left you see the image after shading correction. • The surface plot on the right clearly shows nearly no more gradient of the brightness (0: brightest ...
Description of the data path Loading a shading image out of the camera GPDATA_BUFFER is used to load a shading image out of the camera. Because the size of a shading image is larger than GPDATA_BUFFER, input must be handled in several steps: Query limits from register: SHDG_INFO and...
Description of the data path Loading a shading image into the camera GPDATA_BUFFER is used to load a shading image into the camera. Because the size of a shading image is larger than GPDATA_BUFFER, input must be handled in several steps (see also Chapter Reading or writing shading image from/into the camera on page 296): Query limits from register:...
Description of the data path Look-up table (LUT) and gamma function The AVT Stingray camera provides one user-defined look-up table (LUT). The use of this LUT allows any function (in the form Output = F(Input)) to be stored in the camera's RAM and to be applied on the individual pixels of an image at run-time.
Page 107
Description of the data path Note • The input value is the most significant 12-bit value from the digitizer. • Gamma 1 (gamma=0.45) switches on the LUT. After overriding the LUT with a user defined content, gamma functionality is no longer available until the next full initialization of the camera.
Description of the data path Loading an LUT into the camera Loading the LUT is carried out through the data exchange buffer called GPDATA_BUFFER. As this buffer can hold a maximum of 2 kB, and a complete LUT at 4096 x 10 bit is 5 kByte, programming can not take place in a one block write step because the size of an LUT is larger than GPDATA_BUFFER.
Description of the data path Defect pixel correction The mechanisms of defect pixel correction are explained in the following drawings. All examples are done in Format_7 Mode_0 (full resolution). The first two examples are explained for b/w cameras, the third example is explained for color cameras.
Page 110
Description of the data path The following flow diagram illustrates the defect pixel correction: Set resolution to Format_7 Mode_x Set resolution to Format_7 Mode_0 when using fixed modes. Set AOI to max. Set values for shutter, gain, brightness to max. Choose threshold Set BuildDPData to 1...
Description of the data path Building defect pixel data Note • Defect pixel correction is only possible in Mono8 modes. In all other modes you get an error message in advanced register 0xF1000298 bit [1] see Table 139: Advanced register: Defect pixel correction on page 300.
Description of the data path The number of defect pixels is written in advanced register DPDataSize (0xF100029C bit [4..17]). Due to 16-bit format: to get the number of defect pixels read out this value and divide through 4. For more infor- mation see Table 120: Advanced register: Defect pixel correction page 268.
Description of the data path Send defect pixel data to the host 1. Set EnaMemRD flag to 1. Defect pixel data is transferred from dual port RAM to host. 2. Read DPDataSize. This is the current defect pixel count from the camera. Receive defect pixel data from the host 1.
Description of the data path Binning (only Stingray b/w models and F-201C) 2 x / 4 x / 8 x binning (F-201C only 2 x vertical binning) Definition Binning is the process of combining neighboring pixels while being read out from the CCD chip.
Description of the data path • 8 x H-binning • 8 x V-binning and the full binning modes: • 2 x full binning (a combination of 2 x H-binning and 2 x V-binning) • 4 x full binning (a combination of 4 x H-binning and 4 x V-binning) •...
Page 116
Description of the data path 8 x vertical binning (not F-201C) Figure 57: 8 x vertical binning Note Vertical resolution is reduced, but signal-to noise ratio (SNR) is increased by about 3, 6 or 9 dB (2 x, 4 x or 8 x bin- ...
Description of the data path Horizontal binning (F-201C only 2 x horizontal binning) Definition In horizontal binning adjacent horizontal pixels in a line are combined dig- itally in the FPGA of the camera without accumulating the black level: 2 x horizontal binning: 2 pixel signals from 2 horizontal neighboring pixels are combined.
Description of the data path 8 x horizontal binning (not F-201C) Figure 60: 8 x horizontal binning Note The image appears horizontally compressed in this mode and does no longer show true aspect ratio. If horizontal binning is activated the image may appear to be over-exposed and must eventually be corrected.
Page 119
Description of the data path 4 x full binning (not F-201C) Figure 62: 4 x full binning 8 x full binning (not F-201C) Figure 63: 8 x full binning STINGRAY Technical Manual V4.2.0...
Description of the data path Sub-sampling (Stingray b/w and color) What is sub-sampling? Definition Sub-sampling is the process of skipping neighboring pixels (with the same color) while being read out from the CCD chip. Which Stingray models have sub-sampling? All Stingray models, both color and b/w, have this feature. Description of sub-sampling Sub-sampling is used primarily for the following reason: •...
Page 121
Description of the data path 2 out of 4 Figure 66: Horizontal sub-sampling 2 out of 4 (color) 2 out of 8 only F-145, F-146, F-201 Figure 67: Horizontal sub-sampling 2 out of 8 (color) Note The image appears horizontally compressed in this mode and no longer exhibits a true aspect ratio.
Page 122
Description of the data path Format_7 Mode_5 By default and without further remapping use Format_7 Mode_5 for • b/w cameras: 2 out of 4 vertical sub-sampling • color cameras: 2 out of 4 vertical sub-sampling The different sub-sampling patterns are shown below. 2 out of 4 2 out of 8 (only F-145, F-146, F-201) Figure 68: Vertical sub-sampling (b/w)
Page 123
Description of the data path 2 out of 4 2 out of 8 (only F-145, F-146, F-201) Figure 69: Vertical sub-sampling (color) Note The image appears vertically compressed in this mode and no longer exhibits a true aspect ratio. Format_7 Mode_6 By default and without further remapping use Format_7 Mode_6 for 2 out of 4 H+V sub-sampling...
Page 124
Description of the data path 2 out of 8 H+V sub-sampling (only F-145, F-146, F-201) Figure 71: 2 out of 8 H+V sub-sampling (b/w) STINGRAY Technical Manual V4.2.0...
Page 125
Description of the data path 2 out of 4 H+V sub-sampling Figure 72: 2 out of 4 H+V sub-sampling (color) 2 out of 8 H+V sub-sampling (only F-145, F-146, F-201) Figure 73: 2 out of 8 H+V sub-sampling (color) Note Changing sub-sampling modes involves the generation of new shading reference images due to a change in the image size.
Description of the data path Binning and sub-sampling access The binning and sub-sampling modes described in the last two chapters are only available as pure binning or pure sub-sampling modes. A combination of both is not possible. As you can see there is a vast amount of possible combinations. But the num- ber of available Format_7 modes is limited and lower than the possible com- binations.
Page 127
Description of the data path Format_ID (see p315) AVT modes F7 modes according to IIDC 1394 0 x horizontal 2 x horizontal F7M0 (no change) 0 x vertical 4 x horizontal F7M1 8 x horizontal 0 x horizontal F7M2 2 x horizontal 2 x vertical 4 x horizontal F7M3...
Description of the data path Note Configuration To configure this feature in an advanced register: See Table 154: Advanced register: Format_7 mode mapping on page 315. Quick parameter change timing modes Why new timing modes? For readers familiar with PIKE and MARLIN cameras: Former timing of the PIKE cameras showed the same behavior as MARLIN cameras (All STINGRAY cameras have already the new timing modes implemented): •...
Description of the data path To optimize the transfer of parameter changes there is a new timing mode called Quick Format Change Mode, which effectively resets the current shut- ter. Therefore you can choose between the following update timing modes: •...
Description of the data path Figure 76: Quick Format Change Mode How to transfer parameters to the camera The following 3 variants of transferring the parameters are available: Transfer mode Advantage Disadvantage easy to use (standard quad ...
Description of the data path – (standard Update): uses the previous parameters until the update flag is reset – (Quick Format Change Mode): waits until the update flag is reset. In the Encapsulated Update (begin/end) the exact sequence is: 1. Parameter update begin (advanced feature register) 2.
Description of the data path Example of parameter list: Address Value 0xF0F0081C 0x80000100 0xF0F00820 0x800000ac 0xF0F00818 0x82000001 Table 31: Example of parameter list The exact sequence is: Block-write (this needs to be a functionality of the underlying software stack (e.g. AVT FirePackage). It may not be available for third party IIDC software stacks.) of list to advanced feature address Camera timing behavior is like this: Fast Parameter Update Timing...
Description of the data path Camera timing behavior is like this: Fast Parameter Update Timing Quick Format Change Mode (QFCM) After sending a new parameter value, the changed After sending a new parameter value, the changed parameter value is valid for the available next parameter value is valid for the available next image.
Description of the data path High SNR mode (High Signal Noise Ratio) Note Configuration To configure this feature in an advanced register: See Table 148: Advanced register: High Signal Noise Ratio (HSNR) page 309. In this mode the camera grabs and averages a set number of images and out- puts one image with the same bit depth and the same brightness.
Description of the data path Frame memory and deferred image transport An image is normally captured and transported in consecutive steps. The image is taken, read out from the sensor, digitized and sent over the 1394 bus. Deferred image transport As all Stingray cameras are equipped with built-in image memory, this order of events can be paused or delayed by using the deferred image transport feature.
Description of the data path Image transfer is controlled from the host computer by addressing individual cameras one after the other and reading out the desired number of images. Note Configuration To configure this feature in an advanced register: See Table ...
Page 137
Description of the data path The following screenshot shows the sequence of commands needed to work with deferred mode. Figure 77: Example: Controlling deferred mode (SmartView - Direct Access; Stingray F-145C) For a description of the commands see the following table: rw Address Value Description...
Description of the data path FastCapture mode Note This mode can be activated only in Format_7. By setting FastCapture to false, the maximum frame rate both for image acquisition and read out is associated with the packet size set in the BYTE_PER_PACKET register.
Description of the data path Color interpolation (BAYER demosaicing) The color sensors capture the color information via so-called primary color (R-G-B) filters placed over the individual pixels in a BAYER mosaic layout. An effective BAYER RGB color interpolation already takes place in all Stingray color version cameras.
Page 140
Description of the data path In color interpolation a red, green or blue value is determined for each pixel. Only two lines are needed for this interpolation: Figure 79: BAYER demosaicing (interpolation) ------------------ - ------------------ - ------------------ - green green green blue blue...
Description of the data path Sharpness The Stingray color models are equipped with a four-step sharpness control, applying a discreet horizontal high pass in the Y channel as shown in the next five line profiles. Sharpness 0, 1, 2, 3, 4 is calculated with the following scheme: Sharpness value Description +0.25...
Description of the data path Note Sharpness does not show any effect on Stingray color models in the Raw8 and Raw16 format, because color processing is switched off in all Raw formats. Note Configuration To configure this feature in feature control register: See Table 120: Feature control register on page 273.
Description of the data path Color correction Why color correction? The spectral response of a CCD is different of those of an output device or the human eye. This is the reason for the fact that perfect color reproduction is not possible. In each Stingray camera there is a factory setting for the color correction coefficients, see Chapter GretagMacbeth ColorChecker page 143.
Description of the data path Changing color correction coefficients You can change the color-correction coefficients according to your own needs. Changes are stored in the user settings. Note • A number of 1000 equals a color correction coefficient of 1. ...
Description of the data path Color conversion (RGB YUV) The conversion from RGB to YUV is made using the following formulae: 0.59 0.11 – – 0.169 0.33 G 0.498 128 (@ 8 bit) ...
Description of the data path Serial interface All Stingray cameras are equipped with the SIO (serial input/output) feature as described in IIDC V1.31. This means that the Stingray’s serial interface can be used as a general RS232 interface. Data written to a specific address in the IEEE 1394 address range will be sent through the serial interface.
Page 147
Description of the data path To configure this feature in access control register (CSR): Offset Name Field Description 000h SERIAL_MODE_REG Baud_Rate [0..7] Baud rate setting WR: Set baud rate RD: Read baud rate 0: 300 bps 1: 600 bps 2: 1200 bps 3: 2400 bps 4: 4800 bps 5: 9600 bps...
Page 148
Description of the data path Offset Name Field Description 0004h SERIAL_CONTROL_REG RE Receive enable RD: Current status 0: Disable 1: Enable Transmit enable RD: Current status 0: disable 1: Enable [2..7] Reserved SERIAL_STATUS_REG TDRD Transmit data buffer ready Read only 0: not ready 1: ready Reserved...
Page 149
Description of the data path Offset Name Field Description 008h RECEIVE_BUFFER_ RBUF_ST [0..7] SIO receive buffer status STATUS_CONTRL RD: Number of bytes pending in receive buffer WR: Ignored RBUF_CNT [8..15] SIO receive buffer control RD: Number of bytes to be read from the receive FIFO WR: Number of bytes left for readout from the receive FIFO...
Page 150
Description of the data path To read data: 1. Query RDRD flag (buffer ready?) and write the number of bytes the host wants to read to RBUF_CNT. 2. Read the number of bytes pending in the receive buffer RBUF_ST (more data in the buffer than the host wanted to read?) and the number of bytes left for reading from the receive FIFO in RBUF_CNT (host wanted to read more data than were in the buffer?).
Camera interfaces Camera interfaces This chapter gives you detailed information on status LEDs, inputs and out- puts, trigger features and transmission of data packets. Note For a detailed description of the camera interfaces (FireWire, I/O connector), ordering numbers and operat- ...
Camera interfaces Board level camera: IEEE 1394b port pin assignment Board level STINGRAY cameras have two 1394b ports to allow daisy chaining of cameras. They have the same pin assignment as the STINGRAY housing cameras. 13-pole I/O connector: [Molex 1.25mm Pitch PicoBlade Wire-to-Board Header (53047-1310)] ---------------------------------------------------------------------------------- 7 = GND (for Inputs) FFC45 cable length:...
Camera interfaces Camera I/O connector pin assignment (For board level see Chapter Board level camera: I/O pin assignment on page 154) Pin Signal Direction Level Description External GND GND for RS232 and External Ground for RS232 ext. power and external power External Power +8...+36 V DC Power supply...
Camera interfaces Status LEDs Status LEDs LED2 LED1 Figure 85: Position of status LEDs Each of the two LEDs is tricolor, showing green, red or orange. means: red LED permanent on RED blinking means: red LED blinks fast +RED pulsing means: red LED is switched on for a short time.
Camera interfaces Normal conditions Event LED1 LED2 Camera startup During startup all LEDs are switched on consecu- tively to show the startup progress: Phase1: LED1 RED Phase2: LED1 RED LED1 GREEN Phase3: LED1 RED LED1 GREEN LED2 RED Phase4: LED1 RED LED1 GREEN LED2 RED +LED2 GREEN...
Camera interfaces Control and video data signals The inputs and outputs of the camera can be configured by software. The dif- ferent modes are described below. Inputs Note For a general description of the inputs and warnings see the Hardware Installation Guide, Chapter STINGRAY input ...
Camera interfaces Input/output pin control All input and output signals running over the camera I/O connector are con- trolled by an advanced feature register. Register Name Field Description 0xF1000300 IO_INP_CTRL1 Presence_Inq Indicates presence of this feature (read only) [1..6] Reserved Polarity 0: Signal not inverted 1: Signal inverted...
Camera interfaces IO_INP_CTRL 1-2 The Polarity flag determines whether the input is low active (0) or high active (1). The input mode can be seen in the following table. The PinState flag is used to query the current status of the input. The PinState bit reads the inverting optocoupler status after an internal negation.
Camera interfaces Trigger delay Stingray cameras feature various ways to delay image capture based on exter- nal trigger. With IIDC V1.31 there is a standard CSR at Register F0F00534/834h to control a delay up to FFFh x time base value. The following table explains the inquiry register and the meaning of the var- ious bits.
Page 161
Camera interfaces Register Name Field Description 0xF0F00834 TRIGGER_DELAY Presence_Inq Presence of this feature: 0: N/A 1: Available Abs_Control Absolute value control O: Control with value in the value field 1: Control with value in the absolute value CSR. If this bit=1 the value in the value field has to be ignored.
Camera interfaces Note • Switching trigger delay to ON also switches external Trigger_Mode_0 to ON. • This feature works with external Trigger_Mode_0 only. Outputs Note For a general description of the outputs and warnings see the Hardware Installation Guide, Chapter STINGRAY output ...
Page 163
Camera interfaces Output mode selectable Polarity via software selectable via software Operation state IntEna read FVal Busy Opto- Output signal PulseWidthMod WaitingForTrigger Coupler Operation state read Figure 87: Output block diagram STINGRAY Technical Manual V4.2.0...
Camera interfaces IO_OUTP_CTRL 1-4 The outputs (Output mode, Polarity) are controlled via 4 advanced feature registers (see Table 48: Advanced register: Output control on page 164). The Polarity field determines whether the output is inverted or not. The out- put mode can be viewed in the table below. The current status of the output can be queried and set via the PinState.
Camera interfaces Register Name Field Description 0xF1000328 IO_OUTP_CTRL3 Same as IO_OUTP_CTRL1 0xF100032C IO_OUTP_CTRL4 Same as IO_OUTP_CTRL1 Table 48: Advanced register: Output control Output modes Mode Default / description 0x00 0x01 Output state follows PinState bit Using this mode, the Polarity bit has to be set to 0 (not inverted).
Page 166
Camera interfaces External trigger input Delay set by Trigger_Delay register IntegrationEnable (IntEna) Delay set by IntEna_Delay register IntEna delayed FrameValid (FVal) Busy WaitingForTrigger (only edge mode) Figure 88: Output impulse diagram Note The signals can be inverted. Caution Firing a new trigger while IntEna is still active can result in missing image.
Camera interfaces Note • Note that trigger delay in fact delays the image cap- ture whereas the IntEna_Delay only delays the leading edge of the IntEna output signal but does not delay the image capture. • As mentioned before, it is possible to set the outputs by software.
Camera interfaces Period PulseWidth Figure 89: PulseWidth and Period definition Note Note the following conditions: • PulseWidth Period • Period MinPeriod PWM: minimal and maximal periods and frequencies In the following formulas you find the minimal/maximal periods and frequen- cies for the pulse-width modulation (PWM).
Camera interfaces PWM: Examples in practice In this chapter we give you two examples, how to write values in the PWM registers. All values have to be written in microseconds (µs) in the PWM reg- isters, therefore remember always the factor 10 Example 1: Set PWM with 1kHz at 30% pulse width.
Camera interfaces Pixel data Pixel data are transmitted as isochronous data packets in accordance with the 1394 interface described in IIDC V1.31. The first packet of a frame is identified by the 1 in the sync bit (sy) of the packet header. sync bit 8-15 16-23...
Page 171
Camera interfaces The following tables provide a description of the video data format for the different modes. (Source: IIDC V1.31; packed 12-bit mode: AVT) Figure 90: YUV 4:2:2 and YUV 4:1:1 format: Source: IIDC V1.31 Figure 91: Y8 and Y16 format: Source: IIDC V1.31 specification <Y (Mono12) format>...
Page 172
Camera interfaces Figure 92: Data structure: Source: IIDC V1.31 <Y(Mono12)> Y component has 12-bit data. The data type is „unsigned“. Signal level (decimal) Data (hexadecimal) Highest 4095 0x0FFF 4094 0x0FFE 0x0001 Lowest 0x0000 Table 54: Data structure of Packed 12-Bit Mode (mono and raw) STINGRAY Technical Manual V4.2.0...
Controlling image capture Controlling image capture Shutter modes The cameras support the SHUTTER_MODES specified in IIDC V1.31. For all models this shutter is a global pipelined shutter; meaning that all pixels are exposed to the light at the same moment and for the same time span. Pipelined Pipelined means that the shutter for a new image can already happen, while the preceding image is transmitted.
Page 174
Controlling image capture External Trigger input, as applied at input pin External Trigger input, after inverting opto coupler Shutter register value External Trigger input, as applied at pin External Trigger input, after inv. Opto. Integration Time Figure 93: Trigger_Mode_0 and 1 STINGRAY Technical Manual V4.2.0...
Controlling image capture Bulk trigger (Trigger_Mode_15) Trigger_Mode_15 is an extension to the IIDC trigger modes. One external trigger event can be used to trigger a multitude of internal image intakes. This is especially useful for: • Grabbing exactly one image based on the first external trigger. •...
Page 176
Controlling image capture The functionality is controlled via bit [6] and bitgroup [12-15] of the follow- ing register: Register Name Field Description 0xF0F00830 TRIGGER_MODE Presence_Inq Presence of this feature: 0: N/A 1: Available Abs_Control Absolute value control O: Control with value in the Value field 1: Control with value in the Absolute value If this bit = 1 the value in the Value field has to be ignored.
Page 177
Controlling image capture The screenshots below illustrate the use of Trigger_Mode_15 on a register level: • Line #1switches continuous mode off, leaving viewer in listen mode. • Line #2 prepares 830h register for external trigger and Mode_15. Left = continuous Middle = one-shot Right = multi-shot Line #3 switches camera back to...
Page 178
Controlling image capture Trigger delay As already mentioned earlier Stingray cameras feature various ways to delay image capture based on external trigger. With IIDC V1.31 there is a standard CSR at register F0F00534/834h to control a delay up to FFFh x time base value. The following table explains the Inquiry register and the meaning of the var- ious bits.
Controlling image capture Register Name Field Description 0xF0F00834 TRIGGER_DELAY Presence_Inq Presence of this feature: 0: N/A 1: Available Abs_Control Absolute value control O: Control with value in the Value field 1: Control with value in the Absolute value CSR If this bit = 1, the value in the Value field has to be ignored [2..5] Reserved...
Controlling image capture The advanced register allows start of the integration to be delayed by max. µs, which is max. 2.1 s after a trigger edge was detected. Note • Switching trigger delay to ON also switches external Trigger_Mode_0 to ON. ...
Controlling image capture To set this feature in SmartView: Trig/IO tab, Input pins table, Debounce column. Debounce time This register controls the debounce feature of the cameras input pins. The debounce time can be set for each available input separately. Increment is 500 ns Debounce time is set in Time x 500 ns Minimum debounce time is 1.5 µs...
Page 182
Controlling image capture Exposure time (shutter) and offset The exposure (shutter) time for continuous mode and Trigger_Mode_0 is based on the following formula: Shutter register value x time base + offset The register value is the value set in the corresponding IIDC 1.31 register (SHUTTER [81Ch]).
Controlling image capture Note • Exposure times entered via the 81Ch register are mir- rored in the extended register, but not vice versa. • Longer integration times not only increase sensitivity, but may also increase some unwanted effects such as noise and pixel-to-pixel non-uniformity.
Page 185
Controlling image capture One-shot Stingray cameras can record an image by setting the one-shot bit in the 61Ch register. This bit is automatically cleared after the image is captured. If the camera is placed in ISO_Enable mode (see Chapter ISO_Enable / free- on page 189), this flag is ignored.
Controlling image capture One-shot command on the bus to start of exposure The following sections describe the time response of the camera using a sin- gle frame (one-shot) command. As set out in the IIDC specification, this is a software command that causes the camera to record and transmit a single frame.
Controlling image capture End of exposure to first packet on the bus After the exposure, the CCD sensor is read out; some data is written into the FRAME_BUFFER before being transmitted to the bus. The time from the end of exposure to the start of transport on the bus is: 710 µs ±...
Controlling image capture Multi-shot Setting multi-shot and entering a quantity of images in Count_Number in the 61Ch register enables the camera to record a specified number of images. The number is indicated in bits 16 to 31. If the camera is put into ISO_Enable mode (see Chapter ISO_Enable / free-run on page 189), this flag...
Page 189
Controlling image capture The following screenshot shows an example of broadcast commands sent with the Firedemo example of FirePackage: Figure 99: Broadcast one-shot • Line 1 shows the broadcast command, which stops all cameras con- nected to the same IEEE 1394 bus. It is generated by holding the Shift key down while clicking on Write.
Controlling image capture In this case the camera can resynchronize the horizontal clock to the new trigger event, leaving only a very short uncertainty time of the master clock period. Model Exposure start jitter Exposure start jitter (while FVal) (while camera idle) ...
Page 191
Controlling image capture Sequence mode Generally all AVT Stingray cameras enable certain image settings to be mod- ified on the fly, e.g. gain and shutter can be changed by the host computer by writing into the gain and shutter register even while the camera is run- ning.
Controlling image capture Note Sequence mode requires special care if changing image size, Color_Coding_ID and frame rate related parameters. This is because these changes not only affect settings in the camera but also require corresponding settings in the receiving soft- ware in the PC.
Controlling image capture Register Name Field Description 0xF1000228 SEQUENCE_STEP Presence_Inq Indicates presence of this feature (read only) [1..4] Reserved PerformStep Sequence is stepped one item for- ward PerformReset Reset the sequence to start position [7..23] Reserved SeqPosition [24..31] Get the current sequence position Table 70: Advanced register: Sequence mode Enabling this feature turns the camera into a special mode.
Controlling image capture SeqMode description Sequence mode Description 0x80 This mode is the default sequence mode and stepping the sequence is compatible to e.g. the Marlin series. With each image integration start the sequence is stepped one item further and the new parameter set becomes active for the next image.
Controlling image capture The following flow diagram shows how to set up a sequence. SEQUENCE_CTRL ON_OFF flag to true (1) SetupMode to true (1) Set SeqLength to desired length (<=MaxLength) Set ImageNo = 0 in SEQUENCE_PARAM Assign image parameters in the corresp.
Controlling image capture Which sequence mode features are available? • Repeat one step of a sequence n times where n can be set by the vari- able ImageRepeat in SEQUENCE_PARAM. • Define one or two hardware inputs in Input mode field of IO_INP_CTRL –...
Controlling image capture I/O controlled sequence pointer reset I/O controlled sequence pointer reset is always edge controlled. A rising edge on the input pin resets the pointer to the first entry. I/O controlled sequence pointer reset can be combined with Quick Format Change Modes.
Page 198
Controlling image capture Figure 101: Example of sequence mode settings with AVT Firetool Instead of Firetool you also can use SmartView (Version 1.8.0 or greater), but image and transfer formats have to be unchanged (height, width, ColorID). To open the Sequence editor in SmartView: 1.
Controlling image capture Changing the parameters within a sequence To change the parameter set for one image, it is not necessary to modify the settings for the entire sequence. The image can simply be selected via the ImageNo field and it is then possible to change the corresponding IIDC V1.31 registers.
Controlling image capture Secure image signature (SIS): definition and scenarios Note For all customers who know SIS from Marlin cameras: • Stingray cameras have additional SIS features: AOI, exposure/gain, input/output state, index of sequence mode and serial number. • Read carefully the following chapter. SIS: Definition Secure image signature (SIS) is the synonym for data, which is inserted into an image to improve or check image integrity.
Controlling image capture • AOI can be inserted in the image if it was set as a variable e.g. in a sequence. • Exposure/gain scenario parameters can be inserted in the image if set as a variable in e.g. sequence mode to identify the imaging conditions. •...
Video formats, modes and bandwidth Video formats, modes and bandwidth The different Stingray models support different video formats, modes and frame rates. These formats and modes are standardized in the IIDC (formerly DCAM) spec- ification. Resolutions smaller than the generic sensor resolution are generated from the center of the sensor and without binning.
Video formats, modes and bandwidth Stingray F-033B / Stingray F-033C and board level F-033B BL / F-033C BL Format Mode Resolution Color mode 240 3.75 1.875 160 x 120 YUV444 320 x 240 YUV422 640 x 480 YUV411 640 x 480 YUV422 640 x 480 RGB8 640 x 480 Mono8 640 x 480 Mono16...
Page 205
Video formats, modes and bandwidth Format Mode Resolution Color mode Maximal S800 frame rates for Format_7 modes 656 x 492 Mono8 84 fps Mono12 84 fps Mono16 84 fps 656 x 492 YUV411 84 fps YUV422,Raw16 84 fps Mono8,Raw8 84 fps RGB8 67 fps Raw12...
Video formats, modes and bandwidth Stingray F-046B / Stingray F-046C and board level F-046B BL / F-046C BL Format Mode Resolution Color mode 240 3.75 1.875 160 x 120 YUV444 320 x 240 YUV422 640 x 480 YUV411 640 x 480 YUV422 640 x 480 RGB8 640 x 480 Mono8 640 x 480 Mono16...
Page 207
Video formats, modes and bandwidth Format Mode Resolution Color mode Maximal S800 frame rates for Format_7 modes 780 x 580 Mono8 61 fps Mono12 61 fps Mono16 61 fps 780 x 580 YUV411 61 fps YUV422,Raw16 61 fps Mono8,Raw8 61 fps RGB8 48 fps Raw12...
Video formats, modes and bandwidth Stingray F-080B / Stingray F-080C and board level F-080B BL / F-080C BL Format Mode Resolution Color mode 240 3.75 1.875 160 x 120 YUV444 320 x 240 YUV422 640 x 480 YUV411 640 x 480 YUV422 640 x 480 RGB8...
Page 209
Video formats, modes and bandwidth Format Mode Resolution Color mode Maximal S800 frame rates for Format_7 modes 1032 x 776 Mono8 31 fps Mono12 31 fps Mono16 31 fps 1032 x 776 YUV411 31 fps YUV422,Raw16 31 fps Mono8,Raw8 31 fps RGB8 27 fps Raw12...
Video formats, modes and bandwidth Stingray F-125B / Stingray F-125C and board level F-125B BL / F-125C BL Format Mode Resolution Color mode 240 3.75 1.875 160 x 120 YUV444 320 x 240 YUV422 640 x 480 YUV411 640 x 480 YUV422 640 x 480 RGB8...
Page 211
Video formats, modes and bandwidth Format Mode Resolution Color mode Maximal S800 frame rates for Format_7 modes 1292 x 964 Mono8 30 fps Mono12 30 fps Mono16 26 fps 1292 x 964 YUV411 30 fps YUV422,Raw16 26 fps Mono8,Raw8 30 fps RGB8 17 fps Raw12...
Page 212
Video formats, modes and bandwidth #: Vertical sub-sampling is done via digitally con- cealing certain lines, so the frame rate is not frame rate = f (AOI height) frame rate = f (2 x AOI height) STINGRAY Technical Manual V4.2.0...
Video formats, modes and bandwidth Stingray F-145B / Stingray F-145C and board level F-145B BL / F-145C BL Format Mode Resolution Color mode 240 3.75 1.875 160 x 120 YUV444 320 x 240 YUV422 640 x 480 YUV411 640 x 480 YUV422 640 x 480 RGB8...
Page 214
Video formats, modes and bandwidth Note The following table shows default Format_7 modes without Format_7 mode mapping. • see Chapter Mapping of possible Format_7 modes to F7M1...F7M7 on page 127 • see Chapter Format_7 mode mapping on page 315 STINGRAY Technical Manual V4.2.0...
Page 215
Video formats, modes and bandwidth Format Mode Resolution Color mode Maximal S800 frame rates for Format_7 modes 1388 x 1038 Mono8 16 fps Mono12 16 fps Mono16 16 fps 1388 x 1038 YUV411 16 fps YUV422,Raw16 16 fps Mono8,Raw8 16 fps RGB8 15 fps Raw12...
Page 216
Video formats, modes and bandwidth #: Vertical sub-sampling is done via digitally con- cealing certain lines, so the frame rate is not frame rate = f (AOI height) frame rate = f (2 x AOI height) STINGRAY Technical Manual V4.2.0...
Video formats, modes and bandwidth Stingray F-146B / Stingray F-146C and board level F-146B BL / F-146C BL Format Mode Resolution Color mode 240 3.75 1.875 160 x 120 YUV444 320 x 240 YUV422 640 x 480 YUV411 640 x 480 YUV422 640 x 480 RGB8...
Page 218
Video formats, modes and bandwidth Format Mode Resolution Color mode Maximal S800 frame rates for Format_7 modes 1388 x 1038 Mono8 15 fps Mono12 15 fps Mono16 15 fps 1388 x 1038 YUV411 15 fps YUV422,Raw16 15 fps Mono8,Raw8 15 fps RGB8 15 fps Raw12...
Page 219
Video formats, modes and bandwidth #: Vertical sub-sampling is done via digitally con- cealing certain lines, so the frame rate is not frame rate = f (AOI height) frame rate = f (2 x AOI height) STINGRAY Technical Manual V4.2.0...
Video formats, modes and bandwidth Stingray F-201B / Stingray F-201C and board level F-201B BL / F-201C BL Format Mode Resolution Color mode 240 3.75 1.875 160 x 120 YUV444 320 x 240 YUV422 640 x 480 YUV411 640 x 480 YUV422 640 x 480 RGB8...
Page 221
Video formats, modes and bandwidth Format Mode Resolution Color mode Maximal S800 frame rates for Format_7 modes 1624 x 1234 Mono8 14 fps Mono12 14 fps Mono16 14 fps 1624 x 1234 YUV411 14 fps YUV422,Raw16 14 fps Mono8,Raw8 14 fps RGB8 10 fps Raw12...
Page 222
Video formats, modes and bandwidth Format Mode Resolution Color mode Maximal S800 frame rates for Format_7 modes 1624 x 616 Mono8 14 fps 2 out of 4 V-sub-sampling Mono12 14 fps 2 out of 4 V-sub-sampling Mono16 14 fps 2 out of 4 V-sub-sampling 1624 x 616 YUV411 14 fps...
Video formats, modes and bandwidth Stingray F-504B / Stingray F-504C and board level F-504B BL / F-504C BL Format Mode Resolution Color mode 240 3.75 1.875 160 x 120 YUV444 320 x 240 YUV422 640 x 480 YUV411 640 x 480 YUV422 640 x 480 RGB8...
Page 224
Video formats, modes and bandwidth Format Mode Resolution Color mode Maximal S800 frame rates for Format_7 modes 2452 x 2056 Mono8 9 fps Mono12 8 fps Mono16 6 fps 2452 x 2056 YUV411 8 fps YUV422,Raw16 6 fps Mono8,Raw8 9 fps RGB8 4 fps Raw12...
Video formats, modes and bandwidth #: Vertical sub-sampling is done via digitally concealing certain lines, so the frame rate is not frame rate = f (AOI height) frame rate = f (2 x AOI height) Area of interest (AOI) The camera’s image sensor has a defined resolution. This indicates the max- imum number of lines and pixels per line that the recorded image may have.
Page 226
Video formats, modes and bandwidth Figure 103: Area of interest (AOI) Note • The left position + width and the upper position + height may not exceed the maximum resolution of the sensor. • The coordinates for width and height must be divisible by 4.
Video formats, modes and bandwidth Autofunction AOI Use this feature to select the image area (work area) on which the following autofunctions work: • Auto shutter • Auto gain • Auto white balance In the following screenshot you can see an example of the autofunction AOI: Work area Figure 104: Example of autofunction AOI (Show work area is on) Note...
Video formats, modes and bandwidth Note Configuration To configure this feature in an advanced register see Chapter Autofunction AOI on page 305. Frame rates An IEEE 1394 camera requires bandwidth to transport images. The IEEE 1394b bus has very large bandwidth of at least 62.5 MByte/s for transferring (isochronously) image data.
Page 229
Video formats, modes and bandwidth Format Mode Resolution 3.75 160 x 120 YUV (4:4:4) 1/2H 1/4H 1/8H 640p 320p 160p 24 bit/pixel 480q 240q 120q 320 x 240 YUV (4:2:2) 1/2H 1/4H 1/8H 2560p 1280p 640p 320p 160p 16 bit/pixel 1280q 640q 320q...
Page 230
Video formats, modes and bandwidth Format Mode Resolution 3.75 1.875 800 x 600 YUV (4:2:2) 5/2H 5/4H 5/8H 6/16H 4000p 2000p 1000p 500p 250p 16 bit/pixel 2000q 1000q 500q 250q 125q 800 x 600 RGB 5/2H 5/4H 5/8H 2000p 1000p 500p 24 bit/pixel 1500q...
Page 231
Video formats, modes and bandwidth Format Mode Resolution 3.75 1.875 1280 x 960 YUV (4:2:2) 1/2H 1/4H 2560p 1280p 640p 320p 16 bit/pixel 1280q 640q 320q 160q 1280 x 960 RGB 1/2H 1/4H 2560p 1280p 640p 320p 24 bit/pixel 1920q 960q 480q 240q...
Video formats, modes and bandwidth Frame rates Format_7 In video Format_7 frame rates are no longer fixed. Note • Different values apply for the different sensors. • Frame rates may be further limited by longer shutter times and/or bandwidth limitation from the IEEE 1394 bus.
How does bandwidth affect the frame rate? How does bandwidth affect the frame rate? In some modes the IEEE 1394b bus limits the attainable frame rate. Accord- ing to the 1394b specification on isochronous transfer, the largest data pay- load size of 8192 bytes per 125 µs cycle is possible with bandwidth of 800 Mbit/s.
How does bandwidth affect the frame rate? ByteDepth is based on the following values: Mode bit/pixel byte per pixel Mono8, Raw8 Mono12, Raw12 Mono16, Raw16 Mono16, Raw16 (High SNR mode) YUV4:2:2 YUV4:1:1 RGB8 Table 101: ByteDepth Example formula for the b/w camera Mono16, 1392 x 1040, 30 fps desired ...
How does bandwidth affect the frame rate? Test images Loading test images FirePackage Fire4Linux 1. Start SmartView. 1. Start cc1394 viewer. 2. Click the Edit settings button. 2. In Adjustments menu click on Picture Control. 3. Click Adv1 tab. 3. Click Main tab. 4.
How does bandwidth affect the frame rate? Test images for color cameras The color cameras have 1 test image: YUV4:2:2 mode Figure 112: Color test image Mono8 (raw data) Figure 113: Bayer-coded test image The color camera outputs Bayer-coded raw data in Mono8 instead of (as described in IIDC V1.31) a real Y signal.
Configuration of the camera Configuration of the camera All camera settings are made by writing specific values into the correspond- ing registers. This applies to: • values for general operating states such as video formats and modes, exposure times, etc. •...
Configuration of the camera Every register is 32 bit (big endian) and implemented as follows (MSB = Most Significant Bit; LSB = Least Significant Bit): Far left Table 103: 32-bit register Example This requires, for example, that to enable ISO_Enabled mode (see Chapter ISO_Enable / free-run on page 189), (bit 0 in register 614h), the value 80000000 h must be written in the corresponding register.
Page 247
Configuration of the camera Offset of Register: (0x0F00614) ISO_Enable Write 80000000 and click Write Content of register: 80000000 = 1000 0000 0000 0000 0000 0000 0000 0000 Figure 114: Enabling ISO_Enable STINGRAY Technical Manual V4.2.0...
Page 248
Configuration of the camera Offset of Register: (0xF1000040) ADV_FNC_INQ Content of register: FEA2E583 = 1111 1110 1010 0010 1110 0101 1000 0011 Table 104: Configuring the camera (Stingray F-145C) Table 105: Configuring the camera: registers STINGRAY Technical Manual V4.2.0...
Configuration of the camera Sample program The following sample code in C/C++ shows how the register is set for video mode/format, trigger mode etc. using the FireGrab and FireStack API. Example FireGrab … // Set Videoformat if(Result==FCE_NOERROR) Result= Camera.SetParameter(FGP_IMAGEFORMAT,MAKEIMAGEFORMAT(RES_640_480, CM_Y8, FR_15)); // Set external Trigger if(Result==FCE_NOERROR) Result= Camera.SetParameter(FGP_TRIGGER,MAKETRIGGER(1,0,0,0,0));...
Configuration of the camera Example FireStack API … // Set framerate Result=WriteQuad(HIGHOFFSET,m_Props.CmdRegBase+CCR_FRAMERATE,(UINT32)m_Parms.F rameRate<<29); // Set mode if(Result) Result=WriteQuad(HIGHOFFSET,m_Props.CmdRegBase+CCR_VMODE,(UINT32)m_Parms.Video Mode<<29); // Set format if(Result) Result=WriteQuad(HIGHOFFSET,m_Props.CmdRegBase+CCR_VFORMAT,(UINT32)m_Parms.Vid eoFormat<<29); // Set trigger if(Result) Mode=0; if(m_Parms.TriggerMode==TM_EXTERN) Mode=0x82000000; if(m_Parms.TriggerMode==TM_MODE15) Mode=0x820F0000; WriteQuad(HIGHOFFSET,m_Props.CmdRegBase+CCR_TRGMODE,Mode); // Start continous ISO if not oneshot triggermode if(Result &&...
Configuration of the camera Configuration ROM The information in the configuration ROM is needed to identify the node, its capabilities and which drivers are required. The base address for the configuration ROM for all registers is FFFF F0000000h. Note If you want to use the DirectControl program to read or write to a register, enter the following value in the Address field: ...
Page 252
Configuration of the camera To compute the effective start address of the node unique ID leaf currAddr = node unique ID leaf address destAddr = address of directory entry addrOffset = value of directory entry destAddr = currAddr + (4 x addrOffset) = 420h + (4 x 000002h) = 428h Table 107: Computing effective start address...
Page 253
Configuration of the camera Offset 8-15 16-23 24-31 444h ..unit_dep_info_length, CRC 448h ..command_regs_base Unit dependent info 44Ch ..vender_name_leaf 450h ..model_name_leaf 454h ..unit_sub_sw_version 458h ..Reserved 45Ch ..Reserved 460h ..Reserved 464h ..vendor_unique_info_0 468h ..vendor_unique_info_1 46Ch ..vendor_unique_info_2 470h ..vendor_unique_info_3 Table 110: Configuration ROM And finally, the entry with key 40 (448h in this case) provides the offset for the camera control register: FFFF F0000000h + 3C0000h x 4 = FFFF F0F00000h...
Configuration of the camera Implemented registers (IIDC V1.31) The following tables show how standard registers from IIDC V1.31 are imple- mented in the camera: • Base address is F0F00000h • Differences and explanations can be found in the Description column. Camera initialize register Offset Name...
Configuration of the camera Inquiry register for video mode Offset Name Field Description Color mode 180h V_MODE_INQ Mode_0 160 x 120 YUV 4:4:4 Mode_1 320 x 240 YUV 4:2:2 (Format_0) Mode_2 640 x 480 YUV 4:1:1 Mode_3 640 x 480 YUV 4:2:2 Mode_4 640 x 480...
Configuration of the camera Offset Name Field Description Color mode 19Ch V_MODE_INQ Mode_0 Format_7 Mode_0 Mode_1 Format_7 Mode_1 (Format_7) Mode_2 Format_7 Mode_2 Mode_3 Format_7 Mode_3 Mode_4 Format_7 Mode_4 Mode_5 Format_7 Mode_5 Mode_6 Format_7 Mode_6 Mode_7 Format_7 Mode_7 [8..31] Reserved (zero) Table 113: Video mode inquiry register Inquiry register for video frame rate and base address...
Page 257
Configuration of the camera Offset Name Field Description 208h V_RATE_INQ FrameRate_0 1.875 fps FrameRate_1 3.75 fps (Format_0, Mode_2) FrameRate_2 7.5 fps FrameRate_3 15 fps FrameRate_4 30 fps FrameRate_5 60 fps FrameRate_6 120 fps (V1.31) FrameRate_7 240 fps (V1.31) [8..31] Reserved (zero) 20Ch V_RATE_INQ FrameRate_0...
Page 258
Configuration of the camera Offset Name Field Description 214h V_RATE_INQ FrameRate_0 1.875 fps FrameRate_1 3.75 fps (Format_0, Mode_5) FrameRate_2 7.5 fps FrameRate_3 15 fps FrameRate_4 30 fps FrameRate_5 60 fps FrameRate_6 120 fps (V1.31) FrameRate_7 240 fps (V1.31) [8..31] Reserved (zero) 218h V_RATE_INQ (Format_0,...
Page 259
Configuration of the camera Offset Name Field Description 224h V_RATE_INQ FrameRate_0 Reserved FrameRate_1 Reserved (Format_1, Mode_1) FrameRate_2 7.5 fps FrameRate_3 15 fps FrameRate_4 30 fps FrameRate_5 60 fps FrameRate_6 120 fps (V1.31) FrameRate_7 240 fps (V1.31) [8..31] Reserved (zero) 228h V_RATE_INQ FrameRate_0 Reserved...
Page 260
Configuration of the camera Offset Name Field Description 230h V_RATE_INQ FrameRate_0 1.875 fps FrameRate_1 3.75 fps (Format_1, Mode_4) FrameRate_2 7.5 fps FrameRate_3 15 fps FrameRate_4 30 fps FrameRate_5 60 fps FrameRate_6 120 fps (V1.31) FrameRate_7 240 fps (V1.31) [8..31] Reserved (zero) 234h V_RATE_INQ FrameRate_0...
Page 261
Configuration of the camera Offset Name Field Description 23Ch V_RATE_INQ FrameRate_0 1.875 fps FrameRate_1 3.75 fps (Format_1, Mode_7) FrameRate_2 7.5 fps FrameRate_3 15 fps FrameRate_4 30 fps FrameRate_5 60 fps FrameRate_6 120 fps (V1.31) FrameRate_7 Reserved [8..31] Reserved (zero) 240h V_RATE_INQ FrameRate_0 1.875 fps...
Page 262
Configuration of the camera Offset Name Field Description 248h V_RATE_INQ FrameRate_0 1.875 fps FrameRate_1 3.75 fps (Format_2, Mode_2) FrameRate_2 7.5 fps FrameRate_3 15 fps FrameRate_4 30 fps FrameRate_5 60 fps FrameRate_6 120 fps (V1.31) FrameRate_7 Reserved [8..31] Reserved (zero) 24Ch V_RATE_INQ FrameRate_0 1.875 fps...
Page 263
Configuration of the camera Offset Name Field Description 254h V_RATE_INQ FrameRate_0 1.875 fps FrameRate_1 3.75 fps (Format_2, Mode_5) FrameRate_2 7.5 fps FrameRate_3 15 fps FrameRate_4 30 fps FrameRate_5 60 fps FrameRate_6 Reserved FrameRate_7 Reserved [8..31] Reserved (zero) 258h V_RATE_INQ FrameRate_0 1.875 fps FrameRate_1 3.75 fps...
Page 264
Configuration of the camera Offset Name Field Description 2E0h [0..31] CSR_quadlet offset for Format_7 V-CSR_INQ_7_0 Mode_0 2E4h [0..31] CSR_quadlet offset for Format_7 V-CSR_INQ_7_1 Mode_1 2E8h [0..31] CSR_quadlet offset for Format_7 V-CSR_INQ_7_2 Mode_2 2ECh [0..31] CSR_quadlet offset for Format_7 V-CSR_INQ_7_3 Mode_3 2F0h [0..31] CSR_quadlet offset for Format_7...
Configuration of the camera Inquiry register for basic function Offset Name Field Description 400h BASIC_FUNC_INQ Advanced_Feature_Inq Inquiry for advanced features (Vendor unique Features) Vmode_Error_Status_Inq Inquiry for existence of Vmode_Error_Status register Feature_Control_Error_Status_Inq [2] Inquiry for existence of Feature_Control_Error_Status Opt_Func_CSR_Inq Inquiry for Opt_Func_CSR [4..7] Reserved 1394b_mode_Capability...
Configuration of the camera Inquiry register for feature presence Offset Name Field Description 404h FEATURE_HI_INQ Brightness Brightness control Auto_Exposure Auto_Exposure control Sharpness Sharpness control White_Balance White balance control Hue control Saturation Saturation control Gamma Gamma control Shutter Shutter control Gain Gain control Iris Iris control...
Page 267
Configuration of the camera Offset Name Field Description 410h Reserved Address error on access 47Fh 480h Advanced_Feature_Inq [0..31] Quadlet offset of the Advanced_Feature_Quadlet_Offset advanced feature CSR's from the base address of initial register space (vendor unique) This register is the offset for the Access_Control_Register and thus the base address for Advanced Features.
Configuration of the camera Inquiry register for feature elements Register Name Field Description 0xF0F00500 BRIGHTNESS_INQUIRY Presence_Inq Indicates presence of this feature (read only) Abs_Control_Inq Capability of control with absolute value Reserved One_Push_Inq One-push auto mode (con- trolled automatically by the camera once) Readout_Inq Capability of reading out the...
Page 269
Configuration of the camera Register Name Field Description 530h TRIGGER_INQ Presence_Inq Indicates presence of this feature (read only) Abs_Control_Inq Capability of control with absolute value [2..3 Reserved Readout_Inq Capability of reading out the value of this feature ON_OFF Capability of switching this feature ON and OFF Polarity_Inq Capability of changing the...
Page 270
Configuration of the camera Register Name Field Description 534h TRIGGER_DELAY_INQUIRY Presence_Inq Indicates presence of this feature (read only) Abs_Control_Inq Capability of control with absolute value Reserved One_Push_Inq One Push auto mode Con- trolled automatically by the camera once) Readout_Inq Capability of reading out the value of this feature ON_OFF Capability of switching this...
Configuration of the camera Status and control registers for camera Register Name Field Description 600h CUR-V-Frm_RATE/Revision Bit [0..2] for the frame rate 604h CUR-V-MODE Bit [0..2] for the current video mode 608h CUR-V-FORMAT Bit [0..2] for the current video format 60Ch ISO-Channel Bit [0..3] for channel, [6..7] for ISO speed...
Configuration of the camera Status and control register for one-push The OnePush feature, WHITE_BALANCE, is currently implemented. If this flag is set, the feature becomes immediately active, even if no images are being input (see Chapter One-push white balance on page 88). Offset Name Field...
Page 274
Configuration of the camera Offset Name Field Description 804h AUTO-EXPOSURE See above Note: Target grey level parameter in SmartView corresponds to Auto_exposure register 0xF0F00804 (IIDC). 808h SHARPNESS See above Table 120: Feature control register STINGRAY Technical Manual V4.2.0...
Page 275
Configuration of the camera Offset Name Field Description 80Ch WHITE-BALANCE Presence_Inq Presence of this feature 0: N/A 1: Available Always 0 for Mono Abs_Control Absolute value control 0: Control with value in the Value field 1: Control with value in the Absolute value CSR If this bit = 1, value in the Value field is ignored.
Page 276
Configuration of the camera Offset Name Field Description 810h See above Always 0 for Mono 814h SATURATION See above Always 0 for Mono 818h GAMMA See above 81Ch SHUTTER See Advanced Feature time base Table 23: CSR: Shutter on page 92 820h GAIN See above...
Configuration of the camera Feature control error status register Offset Name Description 640h Feature_Control_Error_Status_HI Always 0 644h Feature_Control_Error_Status_LO Always 0 Table 121: Feature control error register Video mode control and status registers for Format_7 Quadlet offset Format_7 Mode_0 The quadlet offset to the base address for Format_7 Mode_0, which can be read out at F0F002E0h (according to Table 114: Frame rate inquiry register on page 256) gives 003C2000h.
Page 278
Configuration of the camera Offset Name Description 024h COLOR_CODING_INQ Vendor Unique Color_Coding 0-127 (ID=128-255) ID=132 ECCID_MONO12 033h ID=136 ECCID_RAW12 ID=133 Reserved ID=134 Reserved ID=135 Reserved See Chapter Packed 12-Bit Mode on page 133. 034h PIXEL_NUMER_INQ According to IIDC V1.31 038h TOTAL_BYTES_HI_INQ According to IIDC V1.31 03Ch...
Configuration of the camera Temperature register The temperature is implemented with Presence_Inq=1 (available) and ON_OFF [6] always ON according to IIDC V1.31: Register Name Field Description 0xF0F0082C TEMPERATURE Presence_Inq Presence of this feature: 0: N/A 1: Available Abs_Control Absolute value control O: Control with value in the value field 1: Control with value in the absolute value CSR...
Configuration of the camera Advanced features (AVT-specific) The camera has a variety of extended features going beyond the possibilities described in IIDC V1.31. The following chapter summarizes all available (AVT- specific) advanced features in ascending register order. Note This chapter is a reference guide for advanced registers and does not explain the advanced features itself.
Page 281
Configuration of the camera Register Register name Description 0xF1000240 LUT_CTRL Table 134: Advanced register: LUT on page 0xF1000244 LUT_MEM_CTRL 0xF1000248 LUT_INFO 0xF1000250 SHDG_CTRL Table 135: Advanced register: Shading page 295 0xF1000254 SHDG_MEM_CTRL 0xF1000258 SHDG_INFO 0xF1000260 DEFERRED_TRANS Table 137: Advanced register: Deferred image transport on page 298 0xF1000270...
Page 282
Configuration of the camera Register Register name Description 0xF10003A4 COLOR_CORR_COEFFIC11 = Crr 0xF10003A8 COLOR_CORR_COEFFIC12 = Cgr 0xF10003AC COLOR_CORR_COEFFIC13 = Cbr 0xF10003B0 COLOR_CORR_COEFFIC21 = Crg Stingray color cameras only 0xF10003B4 COLOR_CORR_COEFFIC22 = Cgg Table 144: Advanced register: Color correction on page 306 0xF10003B8 COLOR_CORR_COEFFIC23 = Cbg 0xF10003BC...
Configuration of the camera Register Register name Description 0xF1000800 IO_OUTP_PWM1 Stingray housing and board level cameras: 0xF1000804 IO_OUTP_PWM2 Table 50: PWM configuration registers on page 0xF1000808 IO_OUTP_PWM3 0xF100080C IO_OUTP_PWM4 0xF1000FFC GPDATA_INFO Table 166: Advanced register: GPData buffer on page 328 0xF1001000 GPDATA_BUFFER 0xF100nnnn...
Page 284
Configuration of the camera Register Name Field Description 0xF1000020 [0..31] Reserved 0xF1000024 [0..31] Reserved 0xF1000028 [0..31] Reserved 0xF100002C [0..31] Reserved 0xF1000030 OrderIDHigh [0..31] 8 Byte ASCII Order ID 0xF1000034 OrderIDLow [0..31] Table 125: Advanced register: Extended version information The µC version and FPGA firmware version numbers are bcd-coded, which means that e.g.
Page 285
Configuration of the camera Camera type STINGRAY F-080C (BL) STINGRAY F-125B (BL) STINGRAY F-125C (BL) STINGRAY F-145B (BL) STINGRAY F-145C (BL) STINGRAY F-146B (BL) STINGRAY F-146C (BL) STINGRAY F-201B (BL) STINGRAY F-201C (BL) STINGRAY F-504B (BL) STINGRAY F-504C (BL) Table 126: Camera type ID list STINGRAY Technical Manual V4.2.0...
Configuration of the camera Advanced feature inquiry This register indicates with a named bit if a feature is present or not. If a feature is marked as not present the associated register space might not be available and read/write errors may occur. Note Ignore unnamed bits in the following table: these bits might be set or not.
Page 287
Configuration of the camera Register Name Field Description 0xF1000044 ADV_INQ_2 Input_1 Input_2 [2..7] Reserved Output_1 Output_2 Output_3 [10] Output_4 [11] [12..15] Reserved IntEnaDelay [16] [17..23] Reserved Output 1 PWM [24] STINGRAY housing and board level cameras Output 2 PWM [25] Output 3 PWM [26] Output 4 PWM...
Configuration of the camera Camera status This register allows to determine the current status of the camera. The most important flag is the Idle flag. If the Idle flag is set the camera does not capture and does not send any images (but images might be present in the image FIFO).
Configuration of the camera Maximum resolution This register indicates the highest resolution for the sensor and is read-only. Note This register normally outputs the MAX_IMAGE_SIZE_INQ Format_7 Mode_0 value. This is the value given in the specifications tables under Picture size (max.) in Chapter Specifications on page 45ff.
Page 290
Configuration of the camera Note Time base can only be changed when the camera is in idle state and becomes active only after setting the shutter value. The ExpOffset field specifies the camera specific exposure time offset in microseconds (µs). This time (which should be equivalent to Table 62: Cam- era-specific exposure time offset on page 183) has to be added to the expo-...
Configuration of the camera Extended shutter The exposure time for long-term integration of up to 67 seconds can be entered with µs precision via the EXTENDED_SHUTTER register. Register Name Field Description 0xF100020C EXTD_SHUTTER Presence_Inq Indicates presence of this fea- ture (read only) [1..5] Reserved ExpTime...
Configuration of the camera Test images Bit [8] to [14] indicate which test images are saved. Setting bit [28] to [31] activates or deactivates existing test images. By activating any test image the following auto features are automatically disabled: • auto gain •...
Configuration of the camera Look-up tables (LUT) Load the look-up tables to be used into the camera and choose the look-up table number via the LutNo field. Now you can activate the chosen LUT via the LUT_CTRL register. The LUT_INFO register indicates how many LUTs the camera can store and shows the maximum size of the individual LUTs.
Configuration of the camera Note The BitsPerValue field indicates how many bits are read from the LUT for any gray-value read from the sensor. To determine the number of bytes occupied for each gray-value round-up the BitsPerValue field to the next byte boundary. Examples: •...
Configuration of the camera Shading correction Owing to technical circumstances, the interaction of recorded objects with one another, optical effects and lighting non-homogeneities may occur in the images. Because these effects are normally not desired, they should be eliminated as far as possible in subsequent image editing.
Configuration of the camera Register Name Field Description 0xF1000254 SHDG_MEM_CTRL Presence_Inq Indicates presence of this feature (read only) [1..4] Reserved EnableMemWR Enable write access EnableMemRD Enable read access Reserved AddrOffset [8..31] In bytes 0xF1000258 SHDG_INFO Presence_Inq Indicates presence of this feature (read only) [1..3] Reserved...
Configuration of the camera 3. Poll the SHDG_CTRL register until the Busy and BuildImage flags are reset automatically. The maximum value of GrabCount depends on the camera type and the num- ber of available image buffers. GrabCount is automatically adjusted to a power of two.
Configuration of the camera Deferred image transport Using this register, the sequence of recording and the transfer of the images can be paused. Setting HoldImg prevents transfer of the image. The images are stored in ImageFIFO. The images indicated by NumOfImages are sent by setting the SendImage bit.
Configuration of the camera Frame information This register can be used to double-check the number of images received by the host computer against the number of images which were transmitted by the camera. The camera increments this counter with every FrameValid sig- nal.
Configuration of the camera Defect pixel correction Definition The defect pixel correction mode allows to correct an image with defect pix- els. Via threshold you can define the defect pixels in an image. Defect pixel correction is done in the FPGA and defect pixel data can be stored inside the camera’s EEPROM.
Configuration of the camera Register Name Field Description 0xF100029C DPC_MEM Presence_Inq Indicates presence of this feature (read only) Reserved EnaMemWR Enable write access from host to RAM EnaMemRD Enable read access from RAM to host DPDataSize [4..17] Size of defect pixel data to read from RAM to host.
Configuration of the camera Delayed Integration Enable (IntEna) A delay time between initiating exposure on the sensor and the activation edge of the IntEna signal can be set using this register. The on/off flag acti- vates/deactivates integration delay. The time can be set in µs in DelayTime. Note •...
Configuration of the camera Auto shutter control The table below illustrates the advanced register for auto shutter control. The purpose of this register is to limit the range within which auto shutter operates. Register Name Field Description 0xF1000360 AUTOSHUTTER_CTRL Presence_Inq Indicates presence of this feature (read only) [1..31]...
Configuration of the camera If both auto gain and auto shutter are enabled and if the shutter is at its upper boundary and gain regulation is in progress, increasing the upper auto shutter boundary has no effect on auto gain/shutter regulation as long as auto gain regulation is active.
Configuration of the camera Autofunction AOI The table below illustrates the advanced register for autofunction AOI. Register Name Field Description 0xF1000390 AUTOFNC_AOI Presence_Inq Indicates presence of this feature (read only) [1..3] Reserved ShowWorkArea Show work area Reserved ON_OFF Enable/disable AOI (see note above) Reserved YUNITS...
Configuration of the camera Color correction To switch off color correction in YUV mode: see bit [6] Register Name Field Description 0xF10003A0 COLOR_CORR Presence_Inq Indicates presence of this feature (read only) [1..5] Reserved ON_OFF Color correction on/off default: on Write: 02000000h to switch color correction OFF Write: 00000000h to switch color correction ON...
Configuration of the camera Trigger delay Register Name Field Description 0xF1000400 TRIGGER_DELAY Presence_Inq Indicates presence of this feature (read only) [1..5] Reserved ON_OFF Trigger delay on/off [7..10] Reserved DelayTime [11..31] Delay time in µs Table 145: Advanced register: Trigger delay The advanced register allows start of the integration to be delayed via DelayTime by max.
Configuration of the camera Soft reset Register Name Field Description 0xF1000510 SOFT_RESET Presence_Inq Indicates presence of this feature (read only) [1..5] Reserved Reset Initiate reset [7..19] Reserved Delay [20..31] Delay reset in 10 ms steps Table 147: Advanced register: Soft reset The soft reset feature is similar to the INITIALIZE register, with the follow- ing differences: •...
Configuration of the camera High SNR mode (High Signal Noise Ratio) With High SNR mode enabled the camera internally grabs GrabCount images and outputs a single averaged image. Register Name Field Description 0xF1000520 HIGH_SNR Presence_Inq Indicates presence of this feature (read only) [1..5] Reserved...
Configuration of the camera Maximum ISO packet size Use this feature to increase the MaxBytePerPacket value of Format_7 modes. This overrides the maximum allowed isochronous packet size specified by IIDC V1.31. Register Name Field Description 0xF1000560 ISOSIZE_S400 Presence_Inq Indicates presence of this feature (read only) [1..5] Reserved...
Page 311
Configuration of the camera Restrictions Note the restrictions in the following table. When using software with an Isochronous Resource Manager (IRM): deactivate it. Software Restrictions FireGrab Deactivate Isochronous Resource Manager: SetParameter (FGP_USEIRMFORBW, 0) FireStack/FireClass No restrictions SDKs using Microsoft driver (Active FirePackage, Direct FirePackage, ...) Linux: libdc1394_1.x...
Configuration of the camera Quick parameter change timing modes You can choose between the following update timing modes: • Standard Parameter Update Timing (slightly modified from previous Stingray cameras) • Quick Format Change Mode Note For a detailed description see Chapter Quick parameter change timing modes on page 128.
Configuration of the camera To switch on Quick Format Change Mode do the following: 1. Set UpdTiming to 2. 2. Set UpdActive to 1. 3. Be aware that all parameter values have to be set within 10 seconds. Automatic reset of the UpdActive flag With Quick Format Change Mode you normally have to clear the UpdActive flag after all desired parameters have been set.
Configuration of the camera Parameter-List Update The parameter list is an array of address/data pairs which can be sent to the camera in a single bus cycle. Register Name Field Description 0xF1100000 PARAMLIST_INFO Presence_Inq Indicates presence of this feature (read only) [1..15] Reserved BufferSize...
Configuration of the camera Format_7 mode mapping With Format_7 mode mapping it is possible to map special binning and sub- sampling modes to F7M1..F7M7 (see Figure 74: Mapping of possible Format_7 modes to F7M1...F7M7 on page 127). Register Name Field Description 0xF1000580 F7MODE_MAPPING...
Configuration of the camera Example To map the internal Format_7 Mode_19 to the visible Format_7 Mode_1, write the decimal number 19 to the above listed F7MODE_1 register. Note For available Format_7 modes see Figure 74: Mapping of pos- sible Format_7 modes to F7M1...F7M7 on page 127.
Configuration of the camera Secure image signature (SIS) Definition Secure image signature (SIS) is the synonym for data, which is inserted into an image to improve or check image integrity. All Stingray models can insert • Cycle time (1394 bus cycle time at the beginning of integration) •...
Page 318
Configuration of the camera Enter a • positive value from 0...HeightOfImage to specify a position relative to the top of the image. LinePos=0 specifies the very first image line. • negative value from -1...-HeightOfImage to specify a position relative to the bottom of the image. LinePos=-1 specifies the very last image line.
Configuration of the camera Examples: cycle time The following three examples allow you: • A: to access cycle time either via UniAPI or via byte array • B: to extract cycle offset, cycles and seconds • C: to combine cycle offset/cycles/seconds to a valid time Example Example code and description nCycleTime can be accessed: •...
Configuration of the camera Advanced register: frame counter Note Different to Marlin SIS: Register 610 is only to be used to reset the frame counter. The frame counter feature is controlled by the following advanced feature register: Register Name Field Description 0xF1000610 FRMCNT_STAMP...
Configuration of the camera Advanced register: trigger counter The trigger counter feature is controlled by the following advanced feature register: Register Name Field Description 0xF1000620 TRIGGER_COUNTER Presence_Inq Indicates presence of this feature (read only) Reset Reset trigger counter [2..31] Reserved 0xF1000624 TRGCNT TriggerCounter [0..31]...
Configuration of the camera Where to find cycle time, frame counter and trigger counter in the image Cycle time Trigger counter Output line 5 6 7 10 11 12 ..of image Frame counter Bytes Figure 116: SIS in the image: cycle time, frame counter, trigger counter Where to find all SIS values in the image In the following table you find the position of all SIS values (byte for byte) including the endianness of SIS values.
Configuration of the camera Software feature control (disable LEDs) The software feature control register allows to enable/disable some features of the camera (e.g. disable LEDs). The settings are stored permanently within the camera and do not depend on any user set. Register Name Field...
Configuration of the camera User profiles Definition Within the IIDC specification user profiles are called memory channels. Often they are called user sets. In fact these are different expressions for the following: storing camera settings into a non-volatile memory inside the camera.
Configuration of the camera Store To store the current camera settings into a profile: 1. Write the desired ProfileID with the SaveProfile flag set. 2. Read back the register and check the ErrorCode field. Restore To restore the settings from a previous stored profile: 1.
Configuration of the camera Reset of error codes The ErrorCode field is set to zero on the next write access. You may also reset the ErrorCode • by writing to the USER_PROFILE register with the SaveProfile, RestoreProfile and SetDefaultID flag not set. •...
Configuration of the camera Note • A profile save operation automatically disables captur- ing of images. • A profile save or restore operation is an uninterruptable (atomic) operation. The write response (of the asyn- chronous write cycle) will be sent after completion of the operation.
Configuration of the camera GPDATA_BUFFER GPDATA_BUFFER is a general purpose register that regulates the exchange of data between camera and host for: • writing look-up tables (LUTs) into the camera • uploading/downloading of the shading image GPDATA_INFO Buffer size query GPDATA_BUFFER indicates the actual storage range Register...
Appendix Appendix Sensor position accuracy of AVT cameras camera body camera body camera body camera body pixel area pixel area pixel area pixel area sensor case sensor case sensor case sensor case AVT Guppy Series Method of Positioning: Automated mechanical alignment of sensor into camera front module. (lens mount front flange) Reference points: Sensor: Center of pixel area (photo sensitive cells).
Firmware update Firmware update Firmware updates can be carried out via FireWire cable without opening the camera. Note For further information: • Read the application note: How to update Guppy/Pike/Stingray firmware at AVT website or • Contact your local dealer. Extended version number (FPGA/µC) The new extended version number for microcontroller and FPGA firmware has the following format (4 parts separated by periods;...
Page 331
Index Index Numbers drawing ...........123 2 out of 4 H+V sub-sampling (color) 0xF1000010 (version info) .......283 drawing ...........125 0xF1000040 (advanced feature inquiry)..286 2 out of 8 H+V sub-sampling (b/w) 0xF1000100 (camera status) .....288 drawing ...........124 0xF1000200 (max. resolution) ....289 2 out of 8 H+V sub-sampling (color) 0xF1000208 (time base) ......289 drawing ...........125 0xF100020C (extended shutter)..184...
Page 332
Index inquiry..........265 auto shutter.........90 advanced register Auto shutter control (advanced register) ..303 Advanced feature inquiry ....286 auto white balance ........90 Auto gain control ......304 external trigger........90 Auto shutter control ......303 AUTOFNC_AOI........90 Autofunction AOI ......305 AUTOFNC_AOI positioning ......91 Camera status ........288 Autofunction AOI (advanced register) ..305 Color correction ........306...
Page 333
Index BOSS ............29 color coding...........133 BRIGHTNESS........97 color codings .........133 Brightness color correction ......139 inquiry register .........266 AVT cameras ........143 brightness formula..........143 auto shutter ........91 why? ..........143 average..........93 Color correction (advanced register) ..306 decrease ..........303 Color correction (Field) ......286 descending........198 color information........139 effects ..........192...
Page 334
Index data path..........84 EnableMemWR (Field) ......293 data payload size .......35 Encapsulated Update (begin/end) ..130 data_length ...........170 End of exposure........188 DCAM ........24 error code debounce time user profiles ........325 for input ports ........182 error codes debounce time for trigger ......181 LED ..........156 debounce (advanced registers summary)..282 example (parameter list) ......314...
Page 335
Index FCC Class B..........26 fiber technology ........25 gain FIFO auto ..........93 Stingray F-504 with 64 MByte ..59 auto exposure CSR ......93 FireDemo AUTOFNC_AOI ........90 extended shutter .......291 manual ..........96 FirePackage manual gain range......88 additional checks image integrity ..202 ranges ..........
Page 336
Index internal trigger........173 interpolation BAYER demosaicing ....139 color coding ........133 BAYER to RGB ........139 IEEE 1394 ..........24 color ..........139 declaration of conformity ....26 IO_INP_CTRL1 ........158 IEEE 1394 standards ......... 27 IO_INP_CTRL2 ........158 IEEE 1394 Trade Association .....245 IO_INP_DEBOUNCE ........282 IEEE 1394b connector......151 IO_OUTP_CTRL1 ........164...
Page 337
Index ..low noise binning mode (advanced register) No DCAM object ........156 LUT............293 No FLASH object ........156 data exchange buffer ......108 Node_Id ..........245 example ...........106 non-uniform illumination ......100 gamma ..........106 NumOfLuts ..........293 general ..........106 NumOfLuts (Field) ........293 loading into camera......108 volatile ..........107 LUT (advanced register) ......293 LutNo............293...
Page 338
Index outputs ..........162 trigger input........269 common vcc ........153 Readout_Inq ..........160 general ..........157 Register mapping (error code) ....156 registers ..........164 repeat counter........192 set by software .........167 Requirements OutVCC ..........153 correction data .........101 RGB to YUV formula..........145 RGB8 format ..........145 Packed 12-Bit Mode ........133 rising edge (SeqMode) ......195 Packed 12-Bit MONO........133 RoHS (2002/95/EC)........
Need help?
Do you have a question about the AVT STINGRAY and is the answer not in the manual?
Questions and answers