AVT Stingray Technical Manual V4.4.
Legal notice For customers in the U.S.A. This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a residential environment.
Contents Contacting Allied Vision Technologies ..................................................11 Introduction ...........................................................................................................12 Document history ......................................................................................................... 12 Manual overview........................................................................................................... 25 Conventions used in this manual......
STINGRAY F-033B/C (fiber)............................................................................................. 46 STINGRAY F-046B/C (fiber)............................................................................................. 48 STINGRAY F-080B/C (fiber)............................................................................................. 50 STINGRAY F-125B/C (fiber).............................................................................................
Output modes.................................................................................................... Pulse-width modulation (Stingray housing and Stingray board level models) ................... PWM: minimal and maximal periods and frequencies ............................................... PWM: Examples in practice .................................................................................. Pixel data.........................................................................................
Horizontal binning (F-201C only 2 x horizontal binning) .............................................. 2 x full binning/4 x full binning/8 x full binning (F-201C only 2 x full binning)............... Sub-sampling (Stingray b/w and color) .......................................................................... What is sub-sampling? ............................................................................................ Which Stingray models have sub-sampling? ...........................................
One-shot ................................................................................................................... One-shot command on the bus to start of exposure ..................................................... End of exposure to first packet on the bus ................................................................. Multi-shot ................................................................................................................. ISO_Enable / free-run.............................
Stingray F-033/F-033 BL: AOI frame rates .................................................................. Stingray F-046/F-046 BL: AOI frame rates .................................................................. Stingray F-080/F-080 BL: AOI frame rates .................................................................. Stingray F-125/F-125 BL: AOI frame rates .................................................................. Stingray F-145/F-145 BL: AOI frame rates .......................................
Time base ............................................................................................................. Extended shutter.................................................................................................... Test images ........................................................................................................... Look-up tables (LUT) ..............................................................................................
Sensor position accuracy of AVT GigE cameras................................................................. 341 Firmware update ...............................................................................................342 Extended version number (FPGA/µC).............................................................................. 342 Index.........................................................................................................................343 STINGRAY Technical Manual V4.4.
Contacting Allied Vision Technologies Contacting Allied Vision Technologies Info • Technical information: http://www.alliedvisiontec.com • Support: support@alliedvisiontec.com Allied Vision Technologies GmbH (Headquarters) Taschenweg 2a 07646 Stadtroda, Germany Tel.: +49 36428-677-0 Fax.: +49 36428-677-28 e-mail: info@alliedvisiontec.com Allied Vision Technologies Canada Inc.
Introduction Introduction This STINGRAY Technical Manual describes in depth the technical specifications, dimensions, all camera features (IIDC standard and AVT smart features) and their registers, trigger features, all video and color formats, bandwidth 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. Note Please read through this manual carefully.
Introduction Version Date Remarks continued from last page V2.1.0 23.05.08 [continued] [continued] Added 4 x and 8 x binning in Chapter Binning (only Stingray b/w and F-201C/504C) on page 146ff. Added 2 out of 8 sub-sampling in Chapter Sub-sampling (Stingray b/w and color) on page 152ff. Changed Figure 87: Mapping of possible Format_7 modes to F7M1...
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 on page 214ff. Added board level (BL) in Table 129: Camera type ID list on page 297 Added PWM in Table 130: Advanced register: Advanced feature inquiry on page 298f. Changed resolutions of Format_7 modes in Chapter Video formats, modes and bandwidth on page 214ff.
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 194f. and in Figure 99: Data flow and timing after end of exposure on page 199.
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 38: Stingray board level: CS-Mount on page 87 – Figure 39: Stingray board level: C-Mount on page 88 New Stingray F-125B/C: Read information in the following sections: • • • • • • • • • Table 14: Specification STINGRAY F-125B/C (fiber) on page 52f.
Introduction Version Date Remarks continued from last page V4.0.0 21.10.08 New Stingray F-504B/C: Read information in the following sections: • • • • • • • • • Table 18: Specification STINGRAY F-504B/C (fiber) on page 60f.
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 292ff.
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 46ff.
Introduction Version Date Remarks continued from last page V4.2.0 28.05.
Introduction Version Date Remarks continued from last page V4.3.0 15.09.09 Minor corrections: • Notice about connection between temperature at sensor and temperature at camera housing on page 291. • Corrected registers for IO_OUTP_PWM2/3/4 in Table 30: PWM configuration registers on page 106 and in Table 127: Advanced registers summary on page 292ff. • Revised Chapter Conformity on page 30.
Introduction Version Date Remarks continued from last page V4.4.0 12.07.10 Improvements: • HSNR description, see Chapter High SNR mode (High Signal Noise Ratio) on page 321 New Stingray front flange: • Serial numbers for Stingray camera models starting new front flange: Chapter Serial numbers for starting new front flange on page 71 Corrections: • Corrected Note on BitsPerValue, see Note on page 306.
Introduction Version Date Remarks continued from last page V4.4.1 07.01.11 • • • • • • V4.4.2 15.04.
Introduction Version Date Remarks continued from last page V4.4.2 15.04.11 [continued] [continued] V4.4.3 15.03.
Introduction Version Date Remarks continued from last page V4.4.3 15.03.2012 [continued] [continued] V4.4.4 31.05.12 More smaller corrections: • Removed Active FirePackage in the last line fo spefication tables in Chapter Specifications on page 46 • Added explanations to H, p and q abbreviations in Chapter Frame rates on page 240 • Added hyperlinks to Stingray compact in Chapter Camera dimensions on page 71 • Added Table 38: RGB8 format: Source: IIDC V1.
Introduction • • • • • • – Read and follow the FireWire hot-plug and screw-lock precautions in Chapter FireWire hot-plug and screw-lock precautions on page 41. – Read Chapter Operating system support on page 42. Chapter Filter and lenses on page 43 describes the IR cut filter and suitable camera lenses. Chapter Specifications on page 46 lists camera details and spectral sensitivity diagrams for each camera type.
Introduction • • • • • • Chapter Video formats, modes and bandwidth on page 214 lists all available fixed and Format_7 modes (incl. color modes, frame rates, binning/ sub-sampling, AOI=area of interest). Chapter How does bandwidth affect the frame rate? on page 253 gives some considerations on bandwidth details. Chapter Configuration of the camera on page 257 lists standard and advanced register descriptions of all camera features.
Introduction Caution www 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 For more information on hardware and software read the following: • Hardware Installation Guide describes the hardware installation procedures for all 1394 AVT cameras (Dolphin, Oscar, Marlin, Guppy, Pike, Stingray).
Introduction Before operation We place the highest demands for quality on our cameras. Target group This Technical Manual is the guide to detailed technical information of the camera and is written for experts. Getting started For a quick guide how to get started read Hardware Installation Guide first. Note Caution Note www Note Please read through this manual carefully before operating the camera. For information on AVT accessories and AVT software read Hardware Installation Guide.
STINGRAY cameras STINGRAY cameras 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 demanding areas of use in manufacturing industry. Image applications Allied Vision Technologies can provide users with a range of products that meet almost all the requirements of a very wide range of image applications.
Conformity Conformity Allied Vision Technologies declares under its sole responsibility that all standard cameras of the AVT Stingray family to which this declaration relates are in conformity with the following standard(s) or other normative document(s): • CE, following the provisions of 2004/108/EG directive (Stingray board level cameras do not have CE) • FCC Part 15 Class B (Stingray board level cameras do not have FCC) • RoHS (2002/95/EC) CE We declare, under our sole responsibility, that the previou
FireWire FireWire Overview FireWire provides one of the most comprehensive, high-performance, costeffective 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 communications and isochronous real-time data services. FireWire has low implementation costs and a simplified and adaptable cabling system.
FireWire Why use FireWire? Digital cameras with on-board FireWire (IEEE 1394a or 1394b) communications conforming to the IIDC standard (V1.3 or V1.31) have created costeffective and powerful solutions options being used for thousands of different applications around the world.
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, 1394b does full duplex transmission.
FireWire FireWire connection capabilities FireWire can connect together up to 63 peripherals in an acyclic network structure (hubs). It allows peer-to-peer device communication (between digital cameras), to take place without using system memory or the CPU. But even more importantly, a FireWire camera can directly, via direct memory access (DMA), write into or read from the memory of the computer with almost no CPU load. FireWire also supports multiple hosts per bus.
FireWire Capabilities of 1394b (FireWire 800) FireWire 800 (S800) was introduced commercially by Apple in 2003 and has a 9-pin FireWire 800 connector (see details in Hardware Installation Guide and in Chapter IEEE 1394b port pin assignment on page 89). This newer 1394b specification allows a transfer rate of 800 MBit/s with backward compatibilities to the slower rates and 6-pin connectors of FireWire 400.
FireWire Compatibility example It’s possible to run a 1394a and a 1394b camera on the 1394b bus. You can e.g. run a STINGRAY F-033B and a MARLIN F-033B on the same bus: • STINGRAY F-033B @ S800 and 60 fps (2560 bytes per cycle, 32% of the cycle slot) • MARLIN F-033B @ S400 and 30 fps (1280 bytes, 32% of the cycle slot) Bus runs at 800 Mbit/s for all devices. Data from Marlin’s port is up-converted from 400 Mbit/s to 800 Mbit/s by data doubling (padding), still needing 32% of the cycle slot time.
FireWire Note The bandwidth values refer to the fact: 1 MByte = 1024 kByte 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 bandwidth of 800 Mbit/s. Note Note Certain cameras may offer, depending on their settings in combination with the use of AVT FirePackage higher packet sizes. Consult your local dealer's support team, if you require additional information on this feature.
FireWire For multi-camera applications one of the following bus cards is needed: • PCI ExpressCard with potential 250 MByte/s per lane (up to 6 supported by chipset) or • 64-bit PCI-X card (160 MByte/s) 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.
FireWire Figure 5: ExpressCard technology www 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 0.3 megapixel 84 fps 27.11 MByte/s Stingray F-046 B/C 0.45 megapixel 61 fps 27.60 MByte/s Stingray F-080 B/C 0.8 megapixel 31 fps 24.83 MByte/s Stingray F-125 B/C 1.25 megapixel 30 fps 36.
FireWire Example 2: More than one Stingray camera at full speed Due to the fact that one Stingray camera can, depending on its settings, saturate a 32-bit PCI bus, you are advised to use either a PCI Express card and/ or multiple 64-bit PCI bus cards, if you want to use 2 or more Stingray cameras simultaneously (see the following table).
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 extension of the 48-bit Ethernet MAC address format) in addition to well-known codes indicating the type of device and protocols it supports. For further details read Chapter Configuration of the camera on page 257.
FireWire Operating system support Operating system 1394a 1394b Linux Full support Full support Apple Mac OS X Full support Full support Windows XP Full support With SP2 / SP3 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. http://support.microsoft.
FireWire Operating system 1394a 1394b Windows Vista Full support Windows Vista incl. SP1/SP2 supports 1394b only with S400. Use either the driver of the AVT Universal Package/ AVT FirePackage or install the driver provided with the AVT 1394 Bus Driver Package. Both drivers replace the Microsoft OHCI IEEE 1394 driver, but the second is 100% compliant to the driver of Microsoft. This means, applications using the MS1394 driver will continue to work.
Filter and lenses Filter and lenses IR cut filter: spectral transmission Only Stingray color cameras have a built-in IR cut filter. The following illustration shows the spectral transmission of the IR cut filter: Figure 6: Approximate spectral transmission of IR cut filter (may vary slightly by filter lot) (type Hoya C5000) STINGRAY Technical Manual V4.4.
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 for type 1/3 sensors Stingray F-080/125 Distance = 500 mm Distance = 1000 mm 4.
Filter and lenses Focal length for type 1/1.8 sensors Stingray F-201 Distance = 500 mm Distance = 1000 mm 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 16 mm 217 mm x 161 mm 441 mm x 327 mm 25 mm 136 mm x 101 mm 280 mm x 207 mm 35 mm 95 mm x 71 mm 198 mm x 147 mm 50 mm 65 mm x 48 mm 136 mm x 101 mm Table 9: Focal length vs.
Specifications Specifications Note • • For information on bit/pixel and byte/pixel for each color mode see Table 104: ByteDepth on page 254. Maximum protrusion means the distance from lens flange to the glass filter in the camera. 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 Cell size 9.9 µm x 9.9 µm Picture size (max.
Specifications Feature Specification Smart functions AGC (auto gain control), AEC (auto exposure control), real-time shading 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, saturation, sharpness Two configurable inputs, four configurable outputs RS232 port (serial port, IIDC V1.
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 C-Mount: 17.526 mm (in air); Ø 25.4 mm (32 tpi) maximum protrusion: 10.1 mm (see Figure 36: Stingray C-Mount dimensions on page 85) CS-Mount: 12.526 mm (in air), Ø 25.4 mm (32 tpi) maximum protrusion: 5.
Specifications Feature Specification Digital interface IEEE 1394b (IIDC V1.31), 2 x copper connectors (bilingual) (daisy chain) fiber: IEEE 1394b, 2 connectors: 1 x copper (bilingual), 1 x GOF connector (2 x optical fiber on LCLC), (daisy chain) Power requirements DC 8 V - 36 V via IEEE 1394 cable or 12-pin HIROSE Power consumption Typical 3.5 watt (@ 12 V DC); fiber: typical 4 watt (@ 12 V DC) (full resolution and maximal frame rates) Dimensions 72.9 mm x 44 mm x 29 mm (L x W x H); incl.
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 C-Mount: 17.526 mm (in air); Ø 25.4 mm (32 tpi) maximum protrusion: 10.1 mm (see Figure 36: Stingray C-Mount dimensions on page 85) S-Mount: 12.526 mm (in air), Ø 25.4 mm (32 tpi) maximum protrusion: 5.
Specifications Feature Specification Digital interface IEEE 1394b (IIDC V1.31), 2 x copper connectors (bilingual) (daisy chain) fiber: IEEE 1394b, 2 connectors: 1 x copper (bilingual), 1 x GOF connector (2 x optical fiber on LCLC), (daisy chain) Power requirements DC 8 V - 36 V via IEEE 1394 cable or 12-pin HIROSE Power consumption Typical 3.6 watt (@ 12 V DC); fiber: typical 4 watt (@ 12 V DC) (full resolution and maximal frame rates) Dimensions 72.9 mm x 44 mm x 29 mm (L x W x H); incl.
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 C-Mount: 17.526 mm (in air); Ø 25.4 mm (32 tpi) maximum protrusion: 10.1 mm (see Figure 36: Stingray C-Mount dimensions on page 85) CS-Mount: 12.526 mm (in air), Ø 25.
Specifications Feature Specification Digital interface IEEE 1394b (IIDC V1.31), 2 x copper connectors (bilingual) (daisy chain) fiber: IEEE 1394b, 2 connectors: 1 x copper (bilingual), 1 x GOF connector (2 x optical fiber on LCLC), (daisy chain) Power requirements DC 8 V - 36 V via IEEE 1394 cable or 12-pin HIROSE Power consumption Typical 3.6 watt (@ 12 V DC); fiber: typical 4 watt (@ 12 V DC) (full resolution and maximal frame rates) Dimensions 72.9 mm x 44 mm x 29 mm (L x W x H); incl.
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 C-Mount: 17.526 mm (in air); Ø 25.4 mm (32 tpi) maximum protrusion: 10.1 mm (see Figure 36: Stingray C-Mount dimensions on page 85) CS-Mount: 12.526 mm (in air), Ø 25.
Specifications Feature Specification Digital interface IEEE 1394b (IIDC V1.31), 2 x copper connectors (bilingual) (daisy chain) fiber: IEEE 1394b, 2 connectors: 1 x copper (bilingual), 1 x GOF connector (2 x optical fiber on LCLC), (daisy chain) Power requirements DC 8 V - 36 V via IEEE 1394 cable or 12-pin HIROSE Power consumption Typical 3.5 watt (@ 12 V DC); fiber: typical 4 watt (@ 12 V DC) (full resolution and maximal frame rates) Dimensions 72.9 mm x 44 mm x 29 mm (L x W x H); incl.
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 C-Mount: 17.526 mm (in air); Ø 25.4 mm (32 tpi) maximum protrusion: 10.1 mm (see Figure 36: Stingray C-Mount dimensions on page 85) CS-Mount: 12.526 mm (in air), Ø 25.4 mm (32 tpi) maximum protrusion: 5.
Specifications Feature Specification Digital interface IEEE 1394b (IIDC V1.31), 2 x copper connectors (bilingual) (daisy chain) fiber: IEEE 1394b, 2 connectors: 1 x copper (bilingual), 1 x GOF connector (2 x optical fiber on LCLC), (daisy chain) Power requirements DC 8 V - 36 V via IEEE 1394 cable or 12-pin HIROSE Power consumption Typical 3.5 watt (@ 12 V DC); fiber: typical 4 watt (@ 12 V DC) (full resolution and maximal frame rates) Dimensions 72.9 mm x 44 mm x 29 mm (L x W x H); incl.
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 C-Mount: 17.526 mm (in air); Ø 25.4 mm (32 tpi) maximum protrusion: 10.1 mm (see Figure 36: Stingray C-Mount dimensions on page 85) CS-Mount: 12.526 mm (in air), Ø 25.
Specifications Feature Specification Digital interface IEEE 1394b (IIDC V1.31), 2 x copper connectors (bilingual) (daisy chain) fiber: IEEE 1394b, 2 connectors: 1 x copper (bilingual), 1 x GOF connector (2 x optical fiber on LCLC), (daisy chain) Power requirements DC 8 V - 36 V via IEEE 1394 cable or 12-pin HIROSE Power consumption Typical 3.5 watt (@ 12 V DC); fiber: typical 4 watt (@ 12 V DC) (full resolution and maximal frame rates) Dimensions 72.9 mm x 44 mm x 29 mm (L x W x H); incl.
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 C-Mount: 17.526 mm (in air); Ø 25.4 mm (32 tpi) maximum protrusion: 10.1 mm (see Figure 36: Stingray C-Mount dimensions on page 85) CS-Mount: 12.526 mm (in air), Ø 25.
Specifications Feature Specification Digital interface IEEE 1394b (IIDC V1.31), 2 x copper connectors (bilingual) (daisy chain) fiber: IEEE 1394b, 2 connectors: 1 x copper (bilingual), 1 x GOF connector (2 x optical fiber on LCLC), (daisy chain) Power requirements DC 8 V - 36 V via IEEE 1394 cable or 12-pin HIROSE Power consumption Typical 3.9 watt (@ 12 V DC); fiber: typical 4.2 watt (@ 12 V DC) (full resolution and maximal frame rates) Dimensions 72.9 mm x 44 mm x 29 mm (L x W x H); incl.
Specifications Spectral sensitivity Note All measurements were done without protection glass / without filter. The uncertainty in measurement of the QE values is 10%. This is due to: • • Manufacturing tolerance of the sensor Uncertainties in the measuring apparatus itself (Ulbricht-Kugel/Ulbricht sphere, optometer, etc.) STINGRAY Technical Manual V4.4.
Specifications Sensor Response Monochrome 45% 40% 35% Quantum Efficiency 30% 25% 20% 15% 10% 5% 0% 400 500 600 700 800 900 1000 1100 700 750 Wavelength [nm] Figure 7: Spectral sensitivity of Stingray F-033B Sensor Response Red Green Blue 35% 30% Quantum Efficiency 25% 20% 15% 10% 5% 0% 400 450 500 550 600 650 Wavelength [nm] Figure 8: Spectral sensitivity of Stingray F-033C (without IR cut filter) STINGRAY Technical Manual V4.4.
Specifications Sensor Response Monochrome 45% 40% 35% Quantum Efficiency 30% 25% 20% 15% 10% 5% 0% 400 500 600 700 800 900 1000 1100 700 750 Wavelength [nm] Figure 9: Spectral sensitivity of Stingray F-046B Sensor Response Red Green Blue 35% 30% Quantum Efficiency 25% 20% 15% 10% 5% 0% 400 450 500 550 600 650 Wavelength [nm] Figure 10: Spectral sensitivity of Stingray F-046C (without IR cut filter) STINGRAY Technical Manual V4.4.
Specifications Sensor Response Monochrome 50% 45% 40% Quantum Efficiency 35% 30% 25% 20% 15% 10% 5% 0% 400 500 600 700 800 900 1000 1100 Wavelength [nm] Figure 11: Spectral sensitivity of Stingray F-080B Sensor Response Red Green Blue 35% Quantum Efficiency 30% 25% 20% 15% 10% 5% 0% 400 450 500 550 600 650 700 750 Wavelength [nm] Figure 12: Spectral sensitivity of Stingray F-080C (without IR cut filter) STINGRAY Technical Manual V4.4.
Specifications Sensor Response Monochrome 60% 50% Quantum Efficiency 40% 30% 20% 10% 0% 400 500 600 700 800 900 1000 1100 700 750 Wavelength [nm] Figure 13: Spectral sensitivity of Stingray F-125B Sensor Response Red Green Blue 50% 45% 40% Quantum Efficiency 35% 30% 25% 20% 15% 10% 5% 0% 400 450 500 550 600 650 Wavelength [nm] Figure 14: Spectral sensitivity of Stingray F-125C (without IR cut filter) STINGRAY Technical Manual V4.4.
Specifications Sensor Response Monochrome 60% 50% Quantum Efficiency 40% 30% 20% 10% 0% 400 500 600 700 800 900 1000 1100 700 750 Wavelength [nm] Figure 15: Spectral sensitivity of Stingray F-145B Sensor Response Red Green Blue 50% 45% 40% Quantum Efficiency 35% 30% 25% 20% 15% 10% 5% 0% 400 450 500 550 600 650 Wavelength [nm] Figure 16: Spectral sensitivity of Stingray F-145C (without IR cut filter) STINGRAY Technical Manual V4.4.
Specifications Sensor Response Monochrome 50% 45% 40% Quantum Efficiency 35% 30% 25% 20% 15% 10% 5% 0% 400 500 600 700 800 900 1000 1100 700 750 Wavelength [nm] Figure 17: Spectral sensitivity of Stingray F-146B Sensor Response Red Green Blue 30% 25% Quantum Efficiency 20% 15% 10% 5% 0% 400 450 500 550 600 650 Wavelength [nm] Figure 18: Spectral sensitivity of Stingray F-146C (without IR cut filter) STINGRAY Technical Manual V4.4.
Specifications Sensor Response Monochrome 60% 50% Quantum Efficiency 40% 30% 20% 10% 0% 400 500 600 700 800 900 1000 1100 700 750 Wavelength [nm] Figure 19: Spectral sensitivity of Stingray F-201B Sensor Response Red Green Blue 35% 30% Quantum Efficiency 25% 20% 15% 10% 5% 0% 400 450 500 550 600 650 Wavelength [nm] Figure 20: Spectral sensitivity of Stingray F-201C (without IR cut filter) STINGRAY Technical Manual V4.4.
Specifications Sensor Response Monochrome 60% 50% Quantum Efficiency 40% 30% 20% 10% 0% 400 500 600 700 800 900 1000 1100 700 750 Wavelength [nm] Figure 21: Spectral sensitivity of Stingray F-504B Sensor Response Red Green Blue 45% 40% 35% Quantum Efficiency 30% 25% 20% 15% 10% 5% 0% 400 450 500 550 600 650 Wavelength [nm] Figure 22: Spectral sensitivity of Stingray F-504C (without IR cut filter) STINGRAY Technical Manual V4.4.
Camera dimensions Camera dimensions Note For information on sensor position accuracy: (sensor shift x/y, optical back focal length z and sensor rotation ) see Chapter Sensor position accuracy of AVT FireWire cameras on page 341. For information on the Stingray Compact (modular concept) see Chapter Stingray Compact on page 83 and AVT Modular Concept: http://www.alliedvisiontec.com/emea/support/downloads/product-literature/avt-modular-concept.
Camera dimensions 26 13 STINGRAY standard housing (2 x 1394b copper) M3x3 (3x) 13.4 1 9.1 +- 0.3 0.0 44 16 6 M3x4 (4x) 29 5.4 Q27 9.7 19.3 50 57.5 &-Mount M3x3 (3x) 66.6 72.9 Stingray (2x IEEE 1394b) 72.9 x 44 x 29 (L x W x H) Figure 23: Camera dimensions (2 x 1394b copper) STINGRAY Technical Manual V4.4.
Camera dimensions 26 13 STINGRAY (1394b: 1 x GOF, 1 x copper) M3x3 (3x) 13.4 9.1 +- 0.3 0.0 44 16 M3x4 (2x) 29 5.4 Q27 9.7 19.3 50 57.5 C-Mount M3x3 (3x) 66.6 73.6 Stingray (1394b: 1x GOF, 1x COP) 73.6 x 44 x 29 (L x W x H) Figure 24: Camera dimensions (1394b: 1 x GOF, 1 x copper) STINGRAY Technical Manual V4.4.
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. • ... is only designed for standard housings, but not for the angled head versions. Note If you need a tripod adapter for angled head versions, please contact AVT support. 56 50 32 13 15.5 12.5 12.5 16 26 P3.
Camera dimensions Stingray W90 (2 x 1394b copper) 26 13 This version has the sensor tilted by 90 degrees clockwise, so that it views upwards. 29 Q27 16 55.5 M3 x4 (2x) 6 38.1 50 5.4 19.3 9.7 32.8 0.3 13.4 +- 0.0 0.3 9.1 +- 0.0 M3 x3 (3x) 44 M3 x3 (3x) C-Mount 86 92.3 Stingray W90 (2x IEEE 1394b) 92.3 x 44 x 38.1 (L x W x H) Figure 26: Stingray W90 (2 x 1394b copper) STINGRAY Technical Manual V4.4.
Camera dimensions Stingray W90 (1394b: 1 x GOF, 1 x copper) 26 13 This version has the sensor tilted by 90 degrees clockwise, so that it views upwards. 50 29 16 44 55.5 M3 x4 (2x) 38.1 32.8 Q27 5.4 19.3 9.7 0.3 13.4 +- 0.0 0.3 9.1 +- 0.0 M3 x3 (3x) M3 x3 (3x) &-Mount 86 93 Stingray W90 (1394b: 1x GOF, 1x COP) 93 x 44 x 38.1 (L x W x H) Figure 27: Stingray W90 (1394b: 1 x GOF, 1 x copper) STINGRAY Technical Manual V4.4.
Camera dimensions Stingray W90 S90 (2 x 1394b copper) This version has the sensor tilted by 90 degrees clockwise, so that it views upwards. 26 13 The sensor is also rotated by 90 degrees clockwise. Q27 16 6 M3 x4 (2x) 55.5 C-Mount 41.6 50 29 47.8 5.4 19.3 9.7 0.3 9.1 +- 0.0 0.3 13.4 +- 0.0 M3 x3 (3x) 44 M3 x3 (3x) 101 107.3 Stingray W90S90 (2x IEEE 1394b) 107.3 x 44 x 41.6 (L x W x H) Figure 28: Stingray W90 S90 (2 x 1394b copper) STINGRAY Technical Manual V4.4.
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. 26 13 The sensor is also rotated by 90 degrees clockwise. 16 41.6 Q27 29 47.8 5.4 19.3 9.7 0.3 9.1 +- 0.0 0.3 13.4 +- 0.0 M3 x3 (3x) M3 x4 (2x) 44 55.5 &-Mount M3 x3 (3x) 101 108 Stingray W90S90 (1394b: 1x GOF, 1x COP) 108 x 44 x 41.6 (L x W x H) Figure 29: Stingray W90 S90 (1394b: 1 x GOF, 1 x copper) STINGRAY Technical Manual V4.4.
Camera dimensions Stingray W270 (2 x 1394b copper) 26 13 This version has the sensor tilted by 270 degrees clockwise, so that it views downwards. M3 x3 (3x) 0.3 9.1 +- 0.0 19.3 5.4 44 50 0.3 13.4 +- 0.0 32.8 55.5 16 6 29 9.7 38.1 C-Mount Q27 M3 x4 (2x) M3 x3 (3x) 86 92.3 Stingray W270 (2x IEEE 1394b) 92.3 x 44 x 38.1 (L x W x H) Figure 30: Stingray W270 (2 x 1394b copper) STINGRAY Technical Manual V4.4.
Camera dimensions Stingray W270 (1394b: 1 x GOF, 1 x copper) 26 13 This version has the sensor tilted by 270 degrees clockwise, so that it views downwards. M3 x3 (3x) 50 M3 x4 (2x) 38.1 9.1 +- 0.3 0.0 16 44 0.3 13.4 +- 0.0 32.8 5.4 19.3 9.7 29 C-Mount 55.5 M3 x3 (3x) 86 93 Stingray W270 (1394b: 1x GOF, 1x COP) 93 x 44 x 38.1 (L x W x H) Figure 31: Stingray W270 (1394b: 1 x GOF, 1 x copper) STINGRAY Technical Manual V4.4.
Camera dimensions Stingray W270 S90 (2 x 1394b copper) This version has the sensor tilted by 270 degrees clockwise, so that it views downwards. 26 13 The sensor is also rotated by 90 degrees clockwise. C-Mount 41.6 44 9.1 +- 0.3 0.0 5.4 13.4 +- 0.3 0.0 50 29 47.8 9.7 19.3 M3 x3 (3x) 55.5 16 6 M3 x4 (4x) Q27 M3 x3 (3x) 101 107.3 Stingray W270S90 (2x IEEE 1394b) 107.3 x 44 x 41.6 (L x W x H) Figure 32: Stingray W270 S90 (2 x 1394b copper) STINGRAY Technical Manual V4.4.
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. 26 13 The sensor is also rotated by 90 degrees clockwise. C-Mount M3 x3 (3x) 44 41.6 0.3 9.1 +- 0.0 29 50 13.4 +- 0.3 0.0 47.8 5.4 19.3 9.7 55.5 16 M3 x4 (2x) M3 x3 (3x) 101 108 Stingray W270S90 (1394b: 1xGOF, 1xCOP) 108 x 44 x 41.6 (L x W x H) Figure 33: Stingray W270 S90 (1394b: 1 x GOF, 1 x copper) STINGRAY Technical Manual V4.4.
Camera dimensions Stingray Compact 23.3 M3x4 (4x) 6 16 10.2 9.1 45 8.5 6.5 R32 45 26 1 51.3 Ø27 13 6.5 M3x4 (6x) 11.5 36.3 M3x3 (4x) 26 13 C-Mount Q3.4 (3x) 44.8 53.3 Stingray Compact (2x IEEE 1394b) 53.3 x 45 x 51.3 (L x W x H) Figure 34: Stingray Compact (2 x 1394b copper. No angled heads. No fiber option. 145 g) STINGRAY Technical Manual V4.4.
Camera dimensions Cross section: CS-Mount All Stingray cameras can be delivered with CS-Mount. filter / protection glass Ø16 maximum protrusion: 5.1 Adjustment spacer CS-Mount Figure 35: Stingray CS-Mount dimension Note Pay attention to the maximum sensor size of the applied CS-Mount lens. STINGRAY Technical Manual V4.4.
Camera dimensions Cross section: C-Mount • • All monochrome Stingrays are equipped with the same model of protection glass. All color Stingrays are equipped with the same model of IR cut filter. filter / protection glass Ø16 maximum protrusion: 10.1 Adjustment spacer C-Mount Figure 36: Stingray C-Mount dimensions Adjustment of C-Mount and CS-Mount The dimensional adjustment cannot be done any more by the customer. All modifications have to be done by the AVT factory.
Camera dimensions Stingray board level: dimensions 13-pole I/O connector: [Molex 1.25mm Pitch PicoBlade Wire-to-Board Header (53047-1310)] ---------------------------------------------------------------------------------- 7 = GND (for Inputs) 8 = RxD 9 = TxD 10 = Power Input (for Output ports) 11 = Input 2 12 = Output 2 13 = Cable Shield FFC45 cable length: ----------------------------FFC45 L = 56 mm K7500307 FFC45 L = 110 mm K7500318 12 FFC45 cable 9.1 Q27 4.5 IO-AD-Board processor board 8.7 6.
Camera dimensions Stingray board level: CS-Mount filter ring with filter or protection glass M2x16 ISO4762-A2 (2x) spacer, 3.2 mm (2x) front flange top contacts! bottom contacts! M2x8 ISO7045-A2 (4x) M2x10 ISO4762-A2 (2x) Camera = main board + processor board + IO board + flex cable + sensor board PCB spacer (4x) spacer M2x10 (4x) Ø2.2 ISO7089-A2 (4x) M2 ISO4032-A2 (4x) Stingray board level version: C-Mount Figure 38: Stingray board level: CS-Mount STINGRAY Technical Manual V4.4.
Camera dimensions Stingray board level: C-Mount filter ring with filter or protection glass M2x16 ISO4762-A2 (2x) spacer, 3.2 mm (2x) front flange top contacts! bottom contacts! M2x8 ISO7045-A2 (4x) M2x10 ISO4762-A2 (2x) Camera = main board + processor board + IO board + flex cable + sensor board PCB spacer (4x) spacer M2x10 (4x) Ø2.2 ISO7089-A2 (4x) M2 ISO4032-A2 (4x) Stingray board level version: C-Mount Figure 39: Stingray board level: C-Mount STINGRAY Technical Manual V4.4.
Camera interfaces Camera interfaces This chapter gives you detailed information on status LEDs, inputs and outputs, trigger features and transmission of data packets. Note For a detailed description of the camera interfaces (FireWire, I/O connector), ordering numbers and operating instructions see the Hardware Installation Guide, Chapter Camera interfaces. Read all Notes and Cautions in the Hardware Installation Guide, before using any interfaces.
Camera interfaces www For more information on cables and on ordering cables online (by clicking the article and sending an inquiry) go to: http://www.alliedvisiontec.com/emea/products/accessories/ firewire-accessories.html STINGRAY Technical Manual V4.4.
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.
Camera interfaces Camera I/O connector pin assignment (For board level see Chapter Board level camera: I/O pin assignment on page 93) Pin Signal 9 1 2 10 3 11 4 8 12 5 Direction Level Description 1 External GND GND for RS232 and ext. power External Ground for RS232 and external power 2 External Power +8...+36 V DC Power supply 3 Camera Out 4 Out Open emitter Camera Output 4 (GPOut4) default: - 4 Camera In 1 In Uin(high) = 3 V...24 V Camera Input 1 Uin(low) = 0 V...1.
Camera interfaces Board level camera: I/O pin assignment The following diagram shows the 13-pole I/O pin connector of a board level camera: 13-pole I/O connector: [Molex 1.
Camera interfaces Status LEDs Status LEDs LED2 LED1 Figure 44: Position of status LEDs Each of the two LEDs is tricolor, showing green, red or orange. RED means: red LED permanent on RED blinking means: red LED blinks fast +RED pulsing means: red LED is switched on for a short time. If the red LED is already on, the LED will be switched off. The state of the other color of the same LED could be on or off.
Camera interfaces Normal conditions Event LED1 LED2 Camera startup During startup all LEDs are switched on consecutively 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 Power on GREEN Bus reset GREEN blinking Asynchronous traffic +GREEN pulsing GREEN Only GOF: asynchronous traffic +GREEN pulsing (inverted) GREEN Only GOF: GOF signal detect GREEN GREEN Isochronous tr
Camera interfaces Control data signals The inputs and outputs of the camera can be configured by software. The different modes are described below. Inputs Note For a general description of the inputs and warnings see the Hardware Installation Guide, Chapter STINGRAY input description. The optocoupler inverts all input signals. Inversion of the signal is controlled via the IO_INP_CTRL1..2 register (see Table 22: Advanced register: Input control on page 97).
Camera interfaces Input/output pin control All input and output signals running over the camera I/O connector are controlled by an advanced feature register. Register Name Field Bit Description 0xF1000300 IO_INP_CTRL1 Presence_Inq [0] Indicates presence of this feature (read only) --- [1..6] Reserved Polarity [7] 0: Signal not inverted 1: Signal inverted --- [8..10] Reserved InputMode [11..15] Mode see Table 23: Input routing on page 98 0xF1000304 IO_INP_CTRL2 --- [16..
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. See Figure 45: Input block diagram on page 96. This means that an open input sets the PinState bit to 0.
Camera interfaces Trigger delay 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 various bits.
Camera interfaces Register Name Field Bit Description 0xF0F00834 TRIGGER_DELAY Presence_Inq [0] Presence of this feature: 0: N/A 1: Available Abs_Control [1] 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 ON_OFF [6] Write ON or OFF this feature Read: Status of the feature ON=1 OFF=0 --- [7..19] Reserved Value [20..
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 description. Output features are configured by software. Any signal can be placed on any output.
Camera interfaces Output mode selectable via software Polarity selectable via software Operation state read IntEna FVal Busy Opto- PulseWidthMod WaitingForTrigger Output signal Coupler Operation state read Figure 46: Output block diagram STINGRAY Technical Manual V4.4.
Camera interfaces IO_OUTP_CTRL 1-4 The outputs (Output mode, Polarity) are controlled via 4 advanced feature registers (see Table 28: Advanced register: Output control on page 103). The Polarity field determines whether the output is inverted or not. The output mode can be viewed in the table below. The current status of the output can be queried and set via the PinState. It is possible to read back the status of an output pin regardless of the output mode.
Camera interfaces Register Name Field 0xF1000328 IO_OUTP_CTRL3 Same as IO_OUTP_CTRL1 0xF100032C IO_OUTP_CTRL4 Same as IO_OUTP_CTRL1 Bit Description Table 28: Advanced register: Output control Output modes ID Mode Default / description 0x00 Off 0x01 Output state follows PinState bit Using this mode, the Polarity bit has to be set to 0 (not inverted). This is necessary for an error free display of the output status.
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 47: Output impulse diagram Note The signals can be inverted. Caution Firing a new trigger while IntEna is still active can result in missing image. STINGRAY Technical Manual V4.4.
Camera interfaces Note • • Note that trigger delay in fact delays the image capture 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. Doing so, the achievable maximum frequency is strongly dependent on individual software capabilities. As a rule of thumb, the camera itself will limit the toggle frequency to not more than 700 Hz.
Camera interfaces Period PulseWidth Figure 48: 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 frequencies for the pulse-width modulation (PWM). period min = 3µs 1 - = ------1 - = 333.33kHz frequencymax = --------------------period min 3µs 1 frequency min = ------------------------ = 15.
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 registers, therefore remember always the factor 10-6s. 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 0-7 8-15 data_length 16-23 tg channel 24-31 tCode sy header_CRC Video data payload data_CRC Table 31: Isochronous data block packet format. Source: IIDC V1.
Camera interfaces data output is MSB aligned. The following tables provide a description of the video data format for the different modes. (Source: IIDC V1.31; packed 12-bit mode: AVT) Each component has 8-bit data.
Camera interfaces Y component has 8-bit data. Y(K+0) Y(K+1) Y(K+2) Y(K+3) Y(K+4) Y(K+5) Y(K+6) Y(K+7) Y(K+Pn-8) Y(K+Pn-7) Y(K+Pn-6) Y(K+Pn-5) Y(K+Pn-4) Y(K+Pn-3) Y(K+Pn-2) Y(K+Pn-1) Table 35: Y (Mono8) format: Source: IIDC V1.31 / Y (Raw8) format: AVT Y component has 16-bit data.
Camera interfaces Y(K+0) [11..4] Y(K+1) [3..0] Y(K+1) [11..4] Y(K+2) [11..4] Y(K+4) [11..4] Y(K+5) [3..0] Y(K+0) [3..0] Y(K+3) [3..0] Y(K+3) [11..4] Y(K+2) [3..0] Y(K+5) [11..4] Y(K+4) [3..0] Y(K+6) [11..4] Y(K+7) [3..0] Y(K+7) [11..4] Y(K+6) [3..0] Table 37: Packed 12-Bit Mode (mono and raw) Y12 format (AVT) Each component has 8-bit data.
Camera interfaces Each component (Y, R, G, B) has 8-bit data. The data type is Unsigned Char. Y, R, G, B Signal level (decimal) Data (hexadecimal) Highest 255 0xFF 254 0xFE . . . . 1 0x01 0 0x00 Lowest Figure 49: Data structure of Mono8, RGB8; Source: IIDC V1.31 / Y(Mono8/Raw8) format: AVT Each component (Y, U, V) has 8-bit data. The Y component is the same as in the above table.
Camera interfaces Y component has 16-bit data. The data type is Unsigned Short (big-endian). Y Signal level (decimal) Data (hexadecimal) Highest 65535 0xFFFF 65534 0xFFFE . . . . 1 0x0001 0 0x0000 Lowest Figure 51: Data structure of Y(Mono16); Source: IIDC V1.31 Y component has 12-bit data. The data type is unsigned. Y Signal level (decimal) Data (hexadecimal) Highest 4095 0x0FFF 4094 0x0FFE . . . .
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 individual blocks are described in more detail in the following paragraphs. For sensor data see Chapter Specifications on page 46.
8 bit 16 bit Frame memory 14 bit Analog Sharpness 8 bit Raw8, Raw12, Raw16: 16 bit HSNR control Gain Camera control Hue Saturation Color correction Color conversion Horizontal sub-sampling Camera control Offset 8 bit 14 bit Analog IEEE 1394b interface Horizontal masking ADC 1394b 14 bit 14 bit 12 10 LUT White balance 14 bit 14 bit Test-Pattern Color interpolation Analog Sensor Shading correction Horizontal mirror Description of the data path Color cameras 14 bit HIROSE I/
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 continuously) • auto white balance (AWB): continuously optimizes the color characteristics of the image Stingray color cameras have both one-push white balance and auto white balance. White balance is applied so that non-colored image parts are displayed noncolored. STINGRAY Technical Manual V4.4.
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 Bit 0xF0F0080C WHITE_BALANCE Presence_Inq [0] Description Presence of this feature: 0: N/A 1: Available Abs_Control [1] 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 will be ignored. --- [2..
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 54: U/V slider range Type Range Range in dB Stingray color cameras 0 ... 568 10 dB Table 40: Manual gain range of the various Stingray types The increment length is ~0.0353 dB/step.
Description of the data path Note The following ancillary conditions should be observed for successful white balance: • There are no stringent or special requirements on the image content, it requires only the presence of monochrome pixels in the image. If the image capture is active (e.g. IsoEnable set in register 614h), the frames used by the camera for white balance are also output on the 1394 bus. Any previously active image capture is restarted after the completion of white balance.
Description of the data path Auto white balance can also be enabled by using an external trigger. However, if there is a pause of >10 seconds between capturing individual frames this process is aborted. Note The following ancillary conditions should be observed for successful white balance: • • There are no stringent or special requirements on the image content, it requires only the presence of equally weighted RGB pixels in the image.
Description of the data path AOI: X-size 0,0 AF_AREA_POSITION: Left,Top AOI: Y-size Sampling grid for Auto-Function AF_AREA_SIZE: Height: n x 4 AF_AREA_SIZE: Width: n x 4 Figure 56: 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 pixels is to be monochrome. Auto shutter In combination with auto white balance, Stingray cameras are equipped with auto shutter feature.
Description of the data path To configure this feature in control and status register (CSR): Register Name Field Bit Description 0xF0F0081C SHUTTER Presence_Inq [0] Presence of this feature: 0: N/A 1: Available Abs_Control [1] 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 will be ignored. --- [2..
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 145: Advanced register: Auto gain control on page 316. 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.
Description of the data path Register Name Field Bit Description 0xF0F00820 GAIN Presence_Inq [0] Presence of this feature: 0: N/A 1: Available Abs_Control [1] 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..
Description of the data path Register Name Field Bit Description 0xF0F00804 AUTO_EXPOSURE Presence_Inq [0] Presence of this feature: 0: N/A 1: Available Abs_Control [1] 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..
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 manually adjusted on the fly by means of a simple command register write.
Description of the data path The following table shows the BRIGHTNESS register: Register Name Field Bit Description 0xF0F00800 BRIGHTNESS Presence_Inq [0] Presence of this feature: 0: N/A 1: Available Abs_Control [1] 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..
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. This function is especially useful when the camera is looking at objects with the help of a mirror or in certain microscopy applications.
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 camera 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 correction data. Surface plots and histograms were created using the ImageJ program. 255.0 surface plot 0.0 ls xe pi 0.0 48 histogram els 0 pix 640.
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 background must be visible and the brightest pixel has a gray value of less than 255 when automatic generation of shading data is started. It may be necessary to use a neutral white reference, e.g. a piece of paper, instead of the real image.
Description of the data path Note Configuration To configure this feature in an advanced register: See Table 138: Advanced register: Shading on page 307. Note • The SHDG_CTRL register should not be queried at very short intervals. This is because each query delays the generation of the shading image. An optimal interval time is 500 ms. Note • • The calculation of shading data is always carried out at the current resolution setting.
Description of the data path 255.0 surface plot 0.0 p 0.0 48 ls ixe histogram 0p 640. ixels 0 256 Count: 307200 Mean: 157.039 StdDev: 2.629 Min: 139 Max: 162 Mode: 158 (84449) Figure 60: 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 255: darkest pixels). The remaining gra- STINGRAY Technical Manual V4.4.
Description of the data path • dient is related to the fact that the source image is lower than 50% on the right hand side. The histogram shows a peak with very few different gray values. Loading a shading image out of the camera GPDATA_BUFFER is used to load a shading image out of the camera.
Description of the data path Note Configuration • • To configure this feature in an advanced register: See Table 138: Advanced register: Shading on page 307. For information on GPDATA_BUFFER: See Chapter GPDATA_BUFFER on page 340. Loading a shading image into the camera GPDATA_BUFFER is used to load a shading image into the camera.
Description of the data path Note Configuration • • To configure this feature in an advanced register: See Table 138: Advanced register: Shading on page 307. For information on GPDATA_BUFFER: See Chapter GPDATA_BUFFER on page 340. Look-up table (LUT) and gamma function The AVT Stingray camera provides one user-defined look-up table (LUT).
Description of the data path Output = f (Input) Stingray, gamma=0.45 1000 800 t u p t u O 600 400 200 0 0 500 1000 1500 2000 2500 3000 3500 4000 Input Figure 63: LUT with gamma=0.45 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. Therefore input must be handled in several steps. The flow diagram below shows the sequence required to load data into the camera.
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. The X marks a defect pixel. 50% brightness of pixel value 1. example 50% brightness of pixel value X b/w 50% brightness of pixel value 50% brightness of pixel value 2.
Description of the data path Building defect pixel correction image in Format_7 modes horizontal Binning/sub-sampling is always done after defect pixel correction. Defect pixel correction is always done on full horizontal resolution. Therefore defect pixel detection has always to be done in full horizontal resolution. vertical Binning/sub-sampling is done in the sensor, before defect pixel correction. Therefore defect pixel detection has to be done in the correct vertical resolution.
Description of the data path Flow diagram of defect pixel correction The following flow diagram illustrates the defect pixel detection: Set resolution to Format_7 Mode_x Or Set resolution to Format_7 Mode_0 when using fixed modes. Set AOI to max. Set values for shutter, gain to max.
Description of the data path Building defect pixel data Note • • • • • • Defect pixel detection is only possible in Mono8/ Raw8 modes. In all other modes you get an error message in advanced register 0xF1000298 bit [1] see Table 142: Advanced register: Defect pixel correction on page 312. Using Format_7 Mode_x: Defect pixel detection is done in Format_7 Mode_x. Using a fixed format (Format_0, Format_1 or Format_2): Defect pixel detection is done in Format_7 Mode_0.
Description of the data path Defect pixel coordinates are: – 16-bit y-coordinate and – 16-bit x-coordinate The calculated mean value is written in advanced register Mean field (0xF1000298 bit [18..24]). 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 information see Table 142: Advanced register: Defect pixel correction on page 312.
Description of the data path Note • • Switch off camera and switch on again: defect pixel data in dual port RAM will get lost Start-up camera / initialize camera: non-volatile stored defect pixel data are loaded automatically from EEPROM to dual port RAM. 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.
Description of the data path Binning (only Stingray b/w and F-201C/504C) 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. Note • • • • Only Stingray b/w cameras and Stingray F-201C/ F-504C have this feature. Stingray F-201C: color binning Stingray F-504C: usual binning (no color binning) Binning does not change offset, brightness or blacklevel.
Description of the data path • • • • • • 2 x H-binning 2 x V-binning 4 x H-binning 4 x V-binning 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) • 8 x full binning (a combination of 8 x H-binning and 8 x V-binning) Vertical binning Vertical binning increases the light sensitivity of the camera by a factor of two (4 or 8) by adding together the values of two
Description of the data path 4 x vertical binning (not F-201C, but F-504C) Figure 69: 4 x vertical binning 8 x vertical binning (not F-201C, but F-504C) Figure 70: 8 x vertical binning Note 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 binning). If vertical binning is activated the image may appear to be over-exposed and may require correction. STINGRAY Technical Manual V4.4.
Description of the data path Note The image appears vertically compressed in this mode and no longer exhibits a true aspect ratio. Horizontal binning (F-201C only 2 x horizontal binning) F-504C has 2x/4x/8x horizontal binning (no color binning) Definition In horizontal binning adjacent horizontal pixels in a line are combined digitally 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 4 x horizontal binning (not F-201C, but F-504C) Figure 72: 4 x horizontal binning 8 x horizontal binning (not F-201C, but F-504C) Figure 73: 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. STINGRAY Technical Manual V4.4.
Description of the data path 2 x full binning/4 x full binning/8 x full binning (F-201C only 2 x full binning) F-504C has 2x/4x/8x full binning (no color binning) If horizontal and vertical binning are combined, every 4 (16 or 64) pixels are consolidated into a single pixel. At first two (4 or 8) vertical pixels are put together and then combined horizontally.
Description of the data path 8 x full binning (not F-201C, but F-504C) Figure 76: 8 x full binning 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 the data path 2 out of 4 Figure 77: Horizontal sub-sampling 2 out of 4 (b/w) 2 out of 8 only F-145, F-146, F-201 Figure 78: Horizontal sub-sampling 2 out of 8 (b/w) 2 out of 4 Figure 79: Horizontal sub-sampling 2 out of 4 (color) 2 out of 8 only F-145, F-146, F-201, F504C Figure 80: Horizontal sub-sampling 2 out of 8 (color) STINGRAY Technical Manual V4.4.
Description of the data path Note The image appears horizontally compressed in this mode and no longer exhibits a true aspect ratio. STINGRAY Technical Manual V4.4.
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 81: Vertical sub-sampling (b/w) STINGRAY Technical Manual V4.4.
Description of the data path 2 out of 4 2 out of 8 (only F-145, F-146, F-201) Figure 82: Vertical sub-sampling (color) Note Format_7 Mode_6 The image appears vertically compressed in this mode and no longer exhibits a true aspect ratio. By default and without further remapping use Format_7 Mode_6 for 2 out of 4 H+V sub-sampling The different sub-sampling patterns are shown below. 2 out of 4 H+V sub-sampling Figure 83: 2 out of 4 H+V sub-sampling (b/w) STINGRAY Technical Manual V4.4.
Description of the data path 2 out of 8 H+V sub-sampling (only F-145, F-146, F-201) Figure 84: 2 out of 8 H+V sub-sampling (b/w) STINGRAY Technical Manual V4.4.
Description of the data path 2 out of 4 H+V sub-sampling Figure 85: 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 86: 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. STINGRAY Technical Manual V4.4.
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 number of available Format_7 modes is limited and lower than the possible combinations.
Description of the data path F7M3 F7M4 F7M5 F7M6 F7M7 mapping of each of 27 modes to F7M1..
Description of the data path Note Configuration To configure this feature in an advanced register: See Table 157: Advanced register: Format_7 mode mapping on page 327.
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 shutter.
Description of the data path • • • Frame rate / transfer rate can be interrupted. This is shown in the diagram below whenever FVal goes low after a reception of a new shutter command while Sync was low.
Description of the data path Encapsulated Update (begin/end) The Encapsulated Update (begin/end) has the following characteristics: • Host will set a parameter update begin flag in the camera (UpdActive Field in Register 0xF1000570, see Table 154: Advanced register: Update timing modes on page 324) • Host will send several parameters to the camera and then signalize end by resetting the flag • All parameters will become active for the same next image • Dependent on timing mode, the camera – (standard Updat
Description of the data path • • • • Host sends a list with parameters to the camera (advanced feature space) Microcontroller processes that list All parameters will become active for the same image Dependent on timing mode, the camera will: – Standard Format Change Mode: use the previous parameters until the new parameter set is copied to the FPGA – Quick Format Change Mode (QFCM): waits until all parameters have been copied to the FPGA and may interrupt an already started integration for a new integrati
Description of the data path Standard Update (IIDC) In the Standard Update (IIDC) mode single parameter are sent to the camera.
Description of the data path Packed 12-Bit Mode All Stingray cameras have the so-called Packed 12-Bit Mode. This means: two 12-bit pixel values are packed into 3 bytes instead of 4 bytes. B/w cameras Color cameras Packed 12-Bit MONO camera mode Packed 12-Bit RAW camera mode SmartView: MONO12 SmartView: RAW12 Mono and raw mode have the same implementation. Table 52: Packed 12-Bit Mode Note For data block packet format see Table 34: Packed 12-Bit Mode (mono and raw) Y12 format on page 114.
Description of the data path High SNR mode (High Signal Noise Ratio) Note Configuration To configure this feature in an advanced register: See Table 151: Advanced register: High Signal Noise Ratio (HSNR) on page 321. In this mode the camera grabs and averages a set number of images and outputs 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. Stingray cameras are equipped with 32 MByte of RAM (Stingray F-504: 64 MByte).
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 140: Advanced register: Deferred image transport on page 310. HoldImg mode By setting the HoldImg flag, transport of the image over the 1394 bus is stopped completely. All captured images are stored in the internal ImageFiFo.
Description of the data path The following screenshot shows the sequence of commands needed to work with deferred mode.
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. The lower this value is, the lower the attainable frame rate is. By setting FastCapture to true, all images are recorded at the highest possible frame rate, i.e.
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. In color interpolation a red, green or blue value is determined for each pixel.
Description of the data path In color interpolation a red, green or blue value is determined for each pixel.
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 +0.25 +0.5 +0.25 Least sharp 1 +0.125 +0.75 +0.125 Less sharp 2 0 1 0 3 -0.25 +1.5 -0.25 Some sharp 4 -0.5 2 -0.
Description of the data path Note Sharpness does not show any effect on Stingray color models in the Raw8, Raw12 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 123: Feature control register on page 285. Hue and saturation Stingray CCD color models are equipped with hue and saturation registers.
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 on page 177. Color correction is needed to eliminate the overlap in the color channels.
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. To obtain an identity matrix set values of 1000 for the diagonal elements and 0 for all others. As a result you get colors like in the RAW modes. The sums of all rows should be equal to each other. If not, you get tinted images.
Description of the data path Color conversion (RGB YUV) The conversion from RGB to YUV is made using the following formulae: Y = 0.3 R + 0.59 G + 0.11 B U = – 0.169 R – 0.33 G + 0.498 B + 128 (@ 8 bit) V = 0.498 R – 0.420 G – 0.082 B + 128 (@ 8 bit) Formula 6: RGB to YUV conversion Note • • As mentioned above: Color processing can be bypassed by using so-called RAW image transfer. RGB YUV conversion can be bypassed by using RGB8 format and mode.
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. Incoming data of the serial interface is put in a camera buffer and can be polled via simple read commands from this buffer.
Description of the data path To configure this feature in access control register (CSR): Offset Name Field Bit 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 6: 19200 bps 7: 38400 bps 8: 57600 bps 9: 115200 bps 10: 230400 bps Other values reserved Char_Length [8..
Description of the data path Offset Name 0004h Field Bit Description SERIAL_CONTROL_REG RE [0] Receive enable RD: Current status WR: 0: Disable 1: Enable TE [1] Transmit enable RD: Current status WR: 0: disable 1: Enable --- [2..
Description of the data path Offset Name Field Bit Description 008h RECEIVE_BUFFER_ STATUS_CONTRL RBUF_ST [0..7] SIO receive buffer status 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 --- [16..31] Reserved TBUF_ST [0..7] SIO output buffer status RD: Space left in TX buffer WR: Ignored TBUF_CNT [8..
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?). 3. Read received characters from SIO_DATA_REGISTER, beginning at char 0. 4.
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.
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 94: Trigger_Mode_0 and 1 STINGRAY Technical Manual V4.4.
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. • Filling the camera's internal image buffer with one external trigger without overriding images.
Controlling image capture The functionality is controlled via bit [6] and bitgroup [12-15] of the following register: Register Name Field Bit Description [0] Presence of this feature: 0: N/A 1: Available Abs_Control [1] 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..
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 continuous mode. Only one image is grabbed precisely with the first external trigger.
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 various bits.
Controlling image capture Register Name Field Bit Description 0xF0F00834 TRIGGER_DELAY Presence_Inq [0] Presence of this feature: 0: N/A 1: Available Abs_Control [1] 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 ON_OFF [6] Write: ON or OFF this feature Read: read a status 0: OFF 1: ON If this bit = 0, other fields will be read only.
Controlling image capture The advanced register allows start of the integration to be delayed by max. 221 µ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. This feature works with external Trigger_Mode_0 only. • Software trigger A software trigger is an external signal that is controlled via a status and control register: 62Ch on page 283: to activate software trigger set bit [0] to 1.
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.
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]). This number is in the range between 1 and 4095. The shutter register value is multiplied by the time base register value (see Table 134: Time base ID on page 302). The default value here is set to 20 µs.
Controlling image capture Camera model Minimum exposure time Effective min. exp. time = Min. exp.
Controlling image capture Note • • • • Exposure times entered via the 81Ch register are mirrored 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. Depending on the application, these effects may limit the longest usable integration time. Changes in this register have immediate effect, even when the camera is transmitting.
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 / freerun on page 200), this flag is ignored. If one-shot mode is combined with the external trigger, the one-shot command is used to arm it. The following screenshot shows the sequence of commands needed to put the camera into this mode.
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 single 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. The following values apply only when the camera is idle and ready for use. Full resolution must also be set.
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 ± 62.5 µs This time jitters with the cycle time of the bus (125 µs). OneShot Command Exposure Integration-Start Timebase Reg. X Shutter-Reg.
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 200), this flag is ignored and deleted automatically once all the images have been recorded.
Controlling image capture The following screenshot shows an example of broadcast commands sent with the Firedemo example of FirePackage: Figure 100: Broadcast one-shot • • Line 1 shows the broadcast command, which stops all cameras connected to the same IEEE 1394 bus. It is generated by holding the Shift key down while clicking on Write. Line 2 generates a broadcast one_shot in the same way, which forces all connected cameras to simultaneously grab one image.
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 (while FVal) Exposure start jitter (while camera idle) Stingray F-033 9.75 µs 1.30 µs Stingray F-046 11.59 µs 1.30 µs Stingray F-080 15.29 µs 3.33 µs Stingray F-125 13.50 µs 3.10 µs Stingray F-145 23.20 µs 5.40 µs Stingray F-146 23.20 µs 5.
Controlling image capture Sequence mode Generally all AVT Stingray cameras enable certain image settings to be modified 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 running. An uncertainty of up to 3 images remains because normally the host does not know (especially with external trigger) when the next image will arrive.
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 software in the PC. Caution • • Incorrect handling may lead to image corruption or loss of subsequent images. Please ask for detailed support if you want to use this feature.
Controlling image capture Register Name Field Bit Description 0xF1000228 SEQUENCE_ST EP Presence_Inq [0] Indicates presence of this feature (read only) --- [1..4] Reserved PerformStep [5] Sequence is stepped one item forward PerformReset [6] Reset the sequence to start position --- [7..23] Reserved SeqPosition [24..31] Get the current sequence position Table 73: 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. 0x82 Stepping of the sequence is controlled by a rising edge of an external signal. The new parameter set becomes active with the next integration start.
Controlling image capture The following flow diagram shows how to set up a sequence. Set SEQUENCE_CTRL ON_OFF flag to true (1) Set 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 variable ImageRepeat in SEQUENCE_PARAM.
Controlling image capture I/O controlled sequence pointer reset can be combined with Quick Format Change Modes. See Chapter Standard Parameter Update Timing on page 162 and Chapter New: Quick Format Change Mode (QFCM) on page 162. I/O controlled sequence stepping mode and I/O controlled sequence pointer reset via software command Both sequence modes can be controlled via software command.
Controlling image capture Figure 102: 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. Click Extras Sequence dialog Figure 103: SmartView: Extras Sequence dialog STINGRAY Technical Manual V4.4.
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 • • • • • • • • • Assuming camera runs in continuous mode, the check of monotonically changing bus cycle time is a simple test that no image was skipped or lost in the camera or subsequently in the image processing chain. In (synchronized) multi-camera applications, SIS can be used to identify those images, shot at the same moment in time.
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) specification. Resolutions smaller than the generic sensor resolution are generated from the center of the sensor and without binning. Note • • • Note The maximum frame rates can only be achieved with shutter settings lower than 1/framerate.
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 fps 0 120 fps 60 fps 30 fps 15 fps 7.5 fps 3.75 fps 1.
Video formats, modes and bandwidth Format Mode Resolution Color mode Maximal S800 frame rates for Format_7 modes 656 x 492 Mono8 Mono12 Mono16 84 fps 84 fps 84 fps 656 x 492 YUV411 YUV422,Raw16 Mono8,Raw8 RGB8 Raw12 84 fps 84 fps 84 fps 67 fps 84 fps 1 328 x 492 Mono8 Mono12 Mono16 84 fps 84 fps 84 fps 2 656 x 246 Mono8 Mono12 Mono16 149 fps 2x V-binning 149 fps 2x V-binning 149 fps 2x V-binning 3 328 x 246 Mono8 Mono12 Mono16 149 fps 2x H+V binning 149 fps 2x H+V binn
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 fps 0 120 fps 60 fps 30 fps 15 fps 7.5 fps 3.75 fps 1.
Video formats, modes and bandwidth Format Mode Resolution Color mode Maximal S800 frame rates for Format_7 modes 780 x 580 Mono8 Mono12 Mono16 61 fps 61 fps 61 fps 780 x 580 YUV411 YUV422,Raw16 Mono8,Raw8 RGB8 Raw12 61 fps 61 fps 61 fps 48 fps 61 fps 1 388 x 580 Mono8 Mono12 Mono16 61 fps 61 fps 61 fps 2 780 x 290 Mono8 Mono12 Mono16 111 fps 2x V-binning 111 fps 2x V-binning 111 fps 2x V-binning 3 388 x 290 Mono8 Mono12 Mono16 111 fps 2x H+V binning 111 fps 2x H+V binn
Video formats, modes and bandwidth Stingray F-080B / Stingray F-080C and board level F-080B BL / F-080C BL Format Mode Resolution 0 1 Color mode 240 fps 120 fps 60 fps 30 fps 15 fps 7.5 fps 3.75 fps 1.
Video formats, modes and bandwidth Format Mode Resolution 7 Color mode Maximal S800 frame rates for Format_7 modes 1032 x 776 Mono8 Mono12 Mono16 31 fps 31 fps 31 fps 1032 x 776 YUV411 YUV422,Raw16 Mono8,Raw8 RGB8 Raw12 31 31 31 27 31 1 516 x 776 Mono8 Mono12 Mono16 31 fps 31 fps 31 fps 2x H-binning 2x H-binning 2x H-binning 2 1032 x 388 Mono8 Mono12 Mono16 53 fps 53 fps 53 fps 2x V-binning 2x V-binning 2x V-binning 3 516 x 388 Mono8 Mono12 Mono16 53 fps 53 fps 53
Video formats, modes and bandwidth Stingray F-125B / Stingray F-125C and board level F-125B BL / F-125C BL Format Mode Resolution 0 1 2 Color mode 240 fps 120 fps 60 fps 30 fps 15 fps 7.5 fps 3.75 fps 1.
Video formats, modes and bandwidth Format Mode Resolution 7 Color mode Maximal S800 frame rates for Format_7 modes 0 1292 x 964 Mono8 Mono12 Mono16 1292 x 964 YUV411 YUV422,Raw16 Mono8,Raw8 RGB8 Raw12 30 30 26 30 26 30 17 30 1 644 x 964 Mono8 Mono12 Mono16 30 fps 30 fps 30 fps 2x H-binning 2x H-binning 2x H-binning 2 1292 x 482 Mono8 Mono12 Mono16 53 fps 53 fps 52 fps 2x V-binning 2x V-binning 2x V-binning 3 644 x 482 Mono8 Mono12 Mono16 53 fps 53 fps 53 fps 2x H+V bi
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) but frame rate = f (2 x AOI height) STINGRAY Technical Manual V4.4.
Video formats, modes and bandwidth Stingray F-145B / Stingray F-145C and board level F-145B BL / F-145C BL Format Mode Resolution 0 1 2 Color mode 240 fps 120 fps 60 fps 30 fps 15 fps 7.5 fps 3.75 fps 1.
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 160 • see Chapter Format_7 mode mapping on page 327 STINGRAY Technical Manual V4.4.
Video formats, modes and bandwidth Format Mode Resolution 7 Color mode Maximal S800 frame rates for Format_7 modes fps fps fps fps fps fps fps fps 0 1388 x 1038 Mono8 Mono12 Mono16 1388 x 1038 YUV411 YUV422,Raw16 Mono8,Raw8 RGB8 Raw12 16 16 16 16 16 16 15 16 1 692 x 1038 Mono8 Mono12 Mono16 16 fps 16 fps 16 fps 2x H-binning 2x H-binning 2x H-binning 2 1388 x 518 Mono8 Mono12 Mono16 27 fps 27 fps 27 fps 2x V-binning 2x V-binning 2x V-binning 3 692 x 518 Mono8
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) but frame rate = f (2 x AOI height) STINGRAY Technical Manual V4.4.
Video formats, modes and bandwidth Stingray F-146B / Stingray F-146C and board level F-146B BL / F-146C BL Format Mode Resolution 0 1 2 Color mode 240 fps 120 fps 60 fps 30 fps 15 fps 7.5 fps 3.75 fps 1.
Video formats, modes and bandwidth Format Mode Resolution 7 Color mode Maximal S800 frame rates for Format_7 modes 0 1388 x 1038 Mono8 Mono12 Mono16 1388 x 1038 YUV411 YUV422,Raw16 Mono8,Raw8 RGB8 Raw12 15 15 15 15 15 15 15 15 1 692 x 1038 Mono8 Mono12 Mono16 15 fps 15 fps 15 fps 2x H-binning 2x H-binning 2x H-binning 2 1388 x 518 Mono8 Mono12 Mono16 26 fps 26 fps 26 fps 2x V-binning 2x V-binning 2x V-binning 3 692 x 518 Mono8 Mono12 Mono16 26 fps 26 fps 26 fps 2x H+V
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) but frame rate = f (2 x AOI height) STINGRAY Technical Manual V4.4.
Video formats, modes and bandwidth Stingray F-201B / Stingray F-201C and board level F-201B BL / F-201C BL Format Mode Resolution 0 1 2 Color mode 240 fps 120 fps 60 fps 30 fps 15 fps 7.5 fps 3.75 fps 1.
Video formats, modes and bandwidth Format Mode Resolution 7 Color mode Maximal S800 frame rates for Format_7 modes 0 1624 x 1234 Mono8 Mono12 Mono16 1624 x 1234 YUV411 YUV422,Raw16 Mono8,Raw8 RGB8 Raw12 14 14 14 14 14 14 10 14 1 812 x 1234 Mono8 Mono12 Mono16 14 fps 14 fps 14 fps 2x H-binning 2x H-binning 2x H-binning 812 x 1234 14 14 14 14 14 fps fps fps fps fps 2x H-binning 2x H-binning 2x H-binning 2x H-binning 2x H-binning 26 fps 26 fps 26 fps 2x V-binning 2x V-binni
Video formats, modes and bandwidth Format Mode Resolution 7 Color mode Maximal S800 frame rates for Format_7 modes 5# 1624 x 616 Mono8 Mono12 Mono16 1624 x 616 YUV411 YUV422,Raw16 Mono8,Raw8 RGB8 Raw12 14 14 14 14 14 14 14 14 fps fps fps fps fps fps fps fps 2 out of 4 V-sub-sampling 2 out of 4 V-sub-sampling 2 out of 4 V-sub-sampling 2 out of 4 V-sub-sampling 2 out of 4 V-sub-sampling 2 out of 4 V-sub-sampling 2 out of 4 V-sub-sampling 2 out of 4 V-sub-sampling 6# 812 x 616 14 1
Video formats, modes and bandwidth Stingray F-504B / Stingray F-504C and board level F-504B BL / F-504C BL Format Mode Resolution 0 1 2 Color mode 240 fps 120 fps 60 fps 30 fps 15 fps 7.5 fps 3.75 fps 1.
Video formats, modes and bandwidth Format Mode Resolution 7 7 Color mode Maximal S800 frame rates for Format_7 modes 0 2452 x 2056 Mono8 Mono12 Mono16 2452 x 2056 YUV411 YUV422,Raw16 Mono8,Raw8 RGB8 Raw12 9 fps 8 fps 6 fps 8 fps 6 fps 9 fps 4 fps 8 fps 1 1224 x 2056 Mono8 Mono12 Mono16 9 fps 9 fps 9 fps 2x H-binning 2x H-binning 2x H-binning 2 2452 x 1028 Mono8 Mono12 Mono16 15 fps 15 fps 12 fps 2x V-binning 2x V-binning 2x V-binning 3 1224 x 1028 Mono8 Mono12
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) but frame rate = f (2 x AOI height) Area of interest (AOI) The camera’s image sensor has a defined resolution. This indicates the maximum number of lines and pixels per line that the recorded image may have. However, often only a certain section of the entire image is of interest.
Video formats, modes and bandwidth Figure 104: 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. In addition to the area of interest (AOI), some other parameters have an effect on the maximum frame rate: STINGRAY Technical Manual V4.4.
Video formats, modes and bandwidth • • • The time for reading the image from the sensor and transporting it into the FRAME_BUFFER The time for transferring the image over the FireWire‚Ñ¢ bus The length of the exposure time.
Video formats, modes and bandwidth Note Autofunction AOI is independent from Format_7 AOI settings. If you switch off autofunction AOI, work area position and work area size follow the current active image size. To switch off autofunctions, carry out following actions in the order shown: 1. Uncheck Show AOI check box (SmartView Ctrl2 tab). 2. Uncheck Enable check box (SmartView Ctrl2 tab). Switch off Auto modi (e.g. Shutter and/or Gain) (SmartView Ctrl2 tab).
Video formats, modes and bandwidth 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. Per cycle up to 8192 bytes (or around 2000 quadlets = 4 bytes@ 800 Mbit/s) can thus be transmitted.
Video formats, modes and bandwidth Format Mode 0 0 Resolution 240 fps 120 fps 60 fps 30 fps 15 fps 7.
Video formats, modes and bandwidth Format Mode Resolution 1 0 800 x 600 YUV (4:2:2) 16 bit/pixel 1 240 fps 120 fps 60 fps 800 x 600 RGB 800 x 600 Y (Mono8) 8 bit/pixel 3 1024 x 768 YUV (4:2:2) 8 bit/pixel 6 800 x 600 (Mono16) 16 bit/pixel 7 1.
Video formats, modes and bandwidth Format 2 Mode Resolution 60 fps 0 1280 x 960 YUV (4:2:2) 30 fps 16 bit/pixel 1 1280 x 960 RGB 24 bit/pixel 2 1280 x 960 Y (Mono8) 3.75 fps 1.
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. Details are described in the next chapters: • Max. frame rate of CCD (theoretical formula) • Diagram of frame rates as function of AOI by constant width: the curves describe RAW8, RAW12/YUV411, RAW16/YUV422, RGB8 and max.
Video formats, modes and bandwidth Stingray F-033/F-033 BL: AOI frame rates 1 max. frame rate of CCD = ---------------------------------------------------------------------------------------------------------------------------------------------------138µs + AOI height 23.62µs + 509 – AOI height 2.64µs Formula 7: Stingray F-033: theoretical max.
Video formats, modes and bandwidth Stingray F-046/F-046 BL: AOI frame rates 1 max. frame rate of CCD = -----------------------------------------------------------------------------------------------------------------------------------------------------------136.22µs + AOI height 27.59µs + 597 – AOI height 2.64µs Formula 8: Stingray F-046: theoretical max.
Video formats, modes and bandwidth Stingray F-080/F-080 BL: AOI frame rates 1 max. frame rate of CCD = ---------------------------------------------------------------------------------------------------------------------------------------------------222µs + AOI height 40.50µs + 778 – AOI height 7.00µs Formula 9: Stingray F-080: theoretical max.
Video formats, modes and bandwidth Stingray F-125/F-125 BL: AOI frame rates 1 max. frame rate of CCD = -----------------------------------------------------------------------------------------------------------------------------------------------------------189.28µs + 977 – AOI height 5.03µs + AOI height 33.19µs Formula 10: Stingray F-125: theoretical max.
Video formats, modes and bandwidth Stingray F-145/F-145 BL: AOI frame rates 1 max. frame rate of CCD = -----------------------------------------------------------------------------------------------------------------------------------------------------------------450.00µs + AOI height 59.36µs + 1051 – AOI height 10.92µs Formula 11: Stingray F-145: theoretical max.
Video formats, modes and bandwidth Stingray F-146/F-146 BL: AOI frame rates 1 max. frame rate of CCD = -----------------------------------------------------------------------------------------------------------------------------------------------------------------301.60µs + AOI height 53.55µs + 1051 – AOI height 10.46µs Formula 12: Stingray F-146: theoretical max.
Video formats, modes and bandwidth Stingray F-201/F-201 BL: AOI frame rates 1 max. frame rate of CCD = --------------------------------------------------------------------------------------------------------------------------------------------------------------344.90µs + AOI height 54.81µs + 1238 – AOI height 7.14µs Formula 13: Stingray F-201: theoretical max.
Video formats, modes and bandwidth Stingray F-504/F-504 BL: AOI frame rates 1 max. frame rate of CCD = -----------------------------------------------------------------------------------------------------------------------------------------------------------------292.80µs + 2069 – AOI height 10.25µs + AOI height 52.53µs Formula 15: Stingray F-504: theoretical max.
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. According to the 1394b specification on isochronous transfer, the largest data payload size of 8192 bytes per 125 µs cycle is possible with bandwidth of 800 Mbit/s. In addition, there is a limitation, only a maximum number of 65535 (216 -1) packets per frame are allowed.
How does bandwidth affect the frame rate? ByteDepth is based on the following values: Mode Mono8, Raw8 bit/pixel byte per pixel 8 1 Mono12, Raw12 12 1.5 Mono16, Raw16 14 2 Mono16, Raw16 (High SNR mode) 16 2 YUV4:2:2 16 2 YUV4:1:1 12 1.
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. In combo box Test images choose Image 1 or another test image. 4. Activate Test image check box on. 5. In combo box Test images choose Image 1 or another test image.
How does bandwidth affect the frame rate? Test images for color cameras The color cameras have 1 test image: YUV4:2:2 mode Figure 113: Color test image Mono8 (raw data) Figure 114: 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. Note The first pixel of the image is always the red pixel from the sensor. (Mirror must be switched off.) STINGRAY Technical Manual V4.4.
Configuration of the camera Configuration of the camera All camera settings are made by writing specific values into the corresponding registers. This applies to: • values for general operating states such as video formats and modes, exposure times, etc. • extended features of the camera that are turned on and off and controlled via corresponding registers (so-called advanced registers).
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 Bit Bit Bit 0 1 2 ... MSB Bit Bit 30 31 LSB Table 106: 32-bit register Example This requires, for example, that to enable ISO_Enabled mode (see Chapter ISO_Enable / free-run on page 200), (bit 0 in register 614h), the value 80000000 h must be written in the corresponding register. STINGRAY Technical Manual V4.4.
Configuration of the camera Offset of Register: (0xF0F00614) ISO_Enable Write 80000000 and click Write Content of register: 80000000 = 1000 0000 0000 0000 0000 0000 0000 0000 Figure 115: Enabling ISO_Enable STINGRAY Technical Manual V4.4.
Configuration of the camera Offset of Register: (0xF1000040) ADV_FNC_INQ Content of register: FEA2E583 = 1111 1110 1010 0010 1110 0101 1000 0011 ExtdShutter Testimage Look-up tables Shading DeferredTrans Trigger Delay Misc.
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)); // Start DMA logic if(Result==FCE_NOERROR) Result=Camera.
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.
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.
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 110: Computing effective start address 420h + 000002h x 4 = 428h Node unique ID leaf Offset 0-7 8-15 16-23 24-31 428h 00 02 5E 9E ....CRC 42Ch 00 0A 47 01 ….
Configuration of the camera Offset 0-7 8-15 16-23 24-31 444h 00 0B A9 6E ....unit_dep_info_length, CRC Unit dependent info 448h 44Ch 40 3C 00 00 ....command_regs_base 81 00 00 02 ....vender_name_leaf 450h 82 00 00 06 ....model_name_leaf 454h 38 00 00 10 ....unit_sub_sw_version 458h 39 00 00 00 ....Reserved 45Ch 3A 00 00 00 ....Reserved 460h 3B 00 00 00 ....Reserved 464h 3C 00 01 00 ....vendor_unique_info_0 468h 3D 00 92 00 ....
Configuration of the camera Implemented registers (IIDC V1.31) The following tables show how standard registers from IIDC V1.31 are implemented in the camera: • Base address is F0F00000h • Differences and explanations can be found in the Description column. Camera initialize register Offset Name Description 000h INITIALIZE Assert MSB = 1 for Init.
Configuration of the camera Inquiry register for video mode Offset Name Field Bit Description Color mode 180h V_MODE_INQ Mode_0 [0] 160 x 120 YUV 4:4:4 (Format_0) Mode_1 [1] 320 x 240 YUV 4:2:2 Mode_2 [2] 640 x 480 YUV 4:1:1 Mode_3 [3] 640 x 480 YUV 4:2:2 Mode_4 [4] 640 x 480 RGB Mode_5 [5] 640 x 480 MONO8 Mode_6 [6] 640 x 480 MONO16 Mode_X [7] Reserved --- [8..
Configuration of the camera Offset Name Field Bit Description 19Ch V_MODE_INQ Mode_0 [0] Format_7 Mode_0 (Format_7) Mode_1 [1] Format_7 Mode_1 Mode_2 [2] Format_7 Mode_2 Mode_3 [3] Format_7 Mode_3 Mode_4 [4] Format_7 Mode_4 Mode_5 [5] Format_7 Mode_5 Mode_6 [6] Format_7 Mode_6 Mode_7 [7] Format_7 Mode_7 --- [8..
Configuration of the camera Offset Name Field Bit Description 208h V_RATE_INQ FrameRate_0 [0] 1.875 fps (Format_0, Mode_2) FrameRate_1 [1] 3.75 fps FrameRate_2 [2] 7.5 fps FrameRate_3 [3] 15 fps FrameRate_4 [4] 30 fps FrameRate_5 [5] 60 fps FrameRate_6 [6] 120 fps (V1.31) FrameRate_7 [7] 240 fps (V1.31) --- [8..31] Reserved (zero) V_RATE_INQ FrameRate_0 [0] 1.875 fps (Format_0, Mode_3) FrameRate_1 [1] 3.75 fps FrameRate_2 [2] 7.
Configuration of the camera Offset Name Field Bit Description 214h V_RATE_INQ FrameRate_0 [0] 1.875 fps (Format_0, Mode_5) FrameRate_1 [1] 3.75 fps FrameRate_2 [2] 7.5 fps FrameRate_3 [3] 15 fps FrameRate_4 [4] 30 fps FrameRate_5 [5] 60 fps FrameRate_6 [6] 120 fps (V1.31) FrameRate_7 [7] 240 fps (V1.31) --- [8..31] Reserved (zero) (Format_0, Mode_6) [0] 1.875 fps FrameRate_1 [1] 3.75 fps FrameRate_2 [2] 7.
Configuration of the camera Offset Name Field Bit Description 224h V_RATE_INQ FrameRate_0 [0] Reserved (Format_1, Mode_1) FrameRate_1 [1] Reserved FrameRate_2 [2] 7.5 fps FrameRate_3 [3] 15 fps FrameRate_4 [4] 30 fps FrameRate_5 [5] 60 fps FrameRate_6 [6] 120 fps (V1.31) FrameRate_7 [7] 240 fps (V1.31) --- [8..31] Reserved (zero) V_RATE_INQ FrameRate_0 [0] Reserved (Format_1, Mode_2) FrameRate_1 [1] Reserved FrameRate_2 [2] 7.
Configuration of the camera Offset Name Field Bit Description 230h V_RATE_INQ FrameRate_0 [0] 1.875 fps (Format_1, Mode_4) FrameRate_1 [1] 3.75 fps FrameRate_2 [2] 7.5 fps FrameRate_3 [3] 15 fps FrameRate_4 [4] 30 fps FrameRate_5 [5] 60 fps FrameRate_6 [6] 120 fps (V1.31) FrameRate_7 [7] 240 fps (V1.31) --- [8..31] Reserved (zero) V_RATE_INQ FrameRate_0 [0] 1.875 fps (Format_1, Mode_5) FrameRate_1 [1] 3.75 fps FrameRate_2 [2] 7.
Configuration of the camera Offset Name Field Bit Description 23Ch V_RATE_INQ FrameRate_0 [0] 1.875 fps (Format_1, Mode_7) FrameRate_1 [1] 3.75 fps FrameRate_2 [2] 7.5 fps FrameRate_3 [3] 15 fps FrameRate_4 [4] 30 fps FrameRate_5 [5] 60 fps FrameRate_6 [6] 120 fps (V1.31) FrameRate_7 [7] Reserved --- [8..31] Reserved (zero) V_RATE_INQ FrameRate_0 [0] 1.875 fps (Format_2, Mode_0) FrameRate_1 [1] 3.75 fps FrameRate_2 [2] 7.
Configuration of the camera Offset Name Field Bit Description 248h V_RATE_INQ FrameRate_0 [0] 1.875 fps (Format_2, Mode_2) FrameRate_1 [1] 3.75 fps FrameRate_2 [2] 7.5 fps FrameRate_3 [3] 15 fps FrameRate_4 [4] 30 fps FrameRate_5 [5] 60 fps FrameRate_6 [6] 120 fps (V1.31) FrameRate_7 [7] Reserved --- [8..31] Reserved (zero) V_RATE_INQ FrameRate_0 [0] 1.875 fps (Format_2, Mode_3) FrameRate_1 [1] 3.75 fps FrameRate_2 [2] 7.
Configuration of the camera Offset Name Field Bit Description 254h V_RATE_INQ FrameRate_0 [0] 1.875 fps (Format_2, Mode_5) FrameRate_1 [1] 3.75 fps FrameRate_2 [2] 7.5 fps FrameRate_3 [3] 15 fps FrameRate_4 [4] 30 fps FrameRate_5 [5] 60 fps FrameRate_6 [6] Reserved FrameRate_7 [7] Reserved --- [8..31] Reserved (zero) V_RATE_INQ FrameRate_0 [0] 1.875 fps (Format_2, Mode_6) FrameRate_1 [1] 3.75 fps FrameRate_2 [2] 7.
Configuration of the camera Offset Name Field Bit Description 2E0h V-CSR_INQ_7_0 [0..31] CSR_quadlet offset for Format_7 Mode_0 2E4h V-CSR_INQ_7_1 [0..31] CSR_quadlet offset for Format_7 Mode_1 2E8h V-CSR_INQ_7_2 [0..31] CSR_quadlet offset for Format_7 Mode_2 2ECh V-CSR_INQ_7_3 [0..31] CSR_quadlet offset for Format_7 Mode_3 2F0h V-CSR_INQ_7_4 [0..31] CSR_quadlet offset for Format_7 Mode_4 2F4h V-CSR_INQ_7_5 [0..31] CSR_quadlet offset for Format_7 Mode_5 2F8h V-CSR_INQ_7_6 [0.
Configuration of the camera Inquiry register for basic function Offset Name 400h Field Bit Description BASIC_FUNC_INQ Advanced_Feature_Inq [0] Inquiry for advanced features (Vendor unique Features) [1] Inquiry for existence of Vmode_Error_Status register Vmode_Error_Status_Inq Feature_Control_Error_Status_Inq [2] Inquiry for existence of Feature_Control_Error_Status Opt_Func_CSR_Inq [3] Inquiry for Opt_Func_CSR --- [4..
Configuration of the camera Inquiry register for feature presence Offset Name Field Bit Description 404h FEATURE_HI_INQ Brightness [0] Brightness control Auto_Exposure [1] Auto_Exposure control Sharpness [2] Sharpness control White_Balance [3] White balance control Hue [4] Hue control Saturation [5] Saturation control Gamma [6] Gamma control Shutter [7] Shutter control Gain [8] Gain control Iris [9] Iris control Focus [10] Focus control Temperature [11] Temperature
Configuration of the camera Offset Name Field Bit Description Reserved 410h Address error on access .. 47Fh 480h Advanced_Feature_Inq Advanced_Feature_Quadlet_Offset [0..31] Quadlet offset of the 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. Access_Control_Register does not prevent access to advanced features.
Configuration of the camera Inquiry register for feature elements Register Name 0xF0F00500 BRIGHTNESS_INQUIRY Field Bit Description Presence_Inq [0] Indicates presence of this feature (read only) Abs_Control_Inq [1] Capability of control with absolute value --- [2] Reserved One_Push_Inq [3] One-push auto mode (controlled automatically by the camera once) Readout_Inq [4] Capability of reading out the value of this feature ON_OFF [5] Capability of switching this feature ON and OFF Aut
Configuration of the camera Register Name Field Bit Description 530h TRIGGER_INQ Presence_Inq [0] Indicates presence of this feature (read only) Abs_Control_Inq [1] Capability of control with absolute value --- [2..
Configuration of the camera Register Name Field 534h TRIGGER_DELAY_INQUIRY Presence_Inq 538 ..
Configuration of the camera Status and control registers for camera Register Name Field Bit 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..
Configuration of the camera Inquiry register for absolute value CSR offset address Offset Name 700h ABS_CSR_HI_INQ_0 Always 0 704h ABS_CSR_HI_INQ_1 Always 0 708h ABS_CSR_HI_INQ_2 Always 0 70Ch ABS_CSR_HI_INQ_3 Always 0 710h ABS_CSR_HI_INQ_4 Always 0 714h ABS_CSR_HI_INQ_5 Always 0 718h ABS_CSR_HI_INQ_6 Always 0 71Ch ABS_CSR_HI_INQ_7 Always 0 720h ABS_CSR_HI_INQ_8 Always 0 724h ABS_CSR_HI_INQ_9 Always 0 728h ABS_CSR_HI_INQ_10 Always 0 72Ch ABS_CSR_HI_INQ_11 Always 0 730h
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 119).
Configuration of the camera Offset Name 804h AUTO-EXPOSURE Field Bit Description See above Note: Target grey level parameter in SmartView corresponds to Auto_exposure register 0xF0F00804 (IIDC). 808h SHARPNESS See above Table 123: Feature control register STINGRAY Technical Manual V4.4.
Configuration of the camera Offset Name Field Bit Description 80Ch WHITE-BALANCE Presence_Inq [0] Presence of this feature 0: N/A 1: Available Always 0 for Mono Abs_Control [1] 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.
Configuration of the camera Offset Name 810h HUE Field Bit Description 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: • see Chapter Exposure time (shutter) and offset on page 194 • see Chapter Time base on page 301 See Table 41: CSR: Shutter on page 123 820h GAIN See above 824h IRIS Always 0 828h FOCUS Always 0 82Ch TEMPERATURE See Table 126: CSR: Temperature on page 291 830h TRIGGER_MODE
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 124: 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 117: Frame rate inquiry register on page 268) gives 003C2000h.
Configuration of the camera Offset Name Description 024h . . COLOR_CODING_INQ Vendor Unique Color_Coding 0-127 (ID=128-255) ID=132 ECCID_MONO12 ID=136 ECCID_RAW12 033h ID=133 Reserved ID=134 Reserved ID=135 Reserved See Chapter Packed 12-Bit Mode on page 167. 034h PIXEL_NUMER_INQ According to IIDC V1.31 038h TOTAL_BYTES_HI_INQ According to IIDC V1.31 03Ch TOTAL_BYTES_LO_INQ According to IIDC V1.31 040h PACKET_PARA_INQ See note 044h BYTE_PER_PACKET According to IIDC V1.
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 Bit Description 0xF0F0082C TEMPERATURE Presence_Inq [0] Presence of this feature: 0: N/A 1: Available Abs_Control [1] 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..
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 (AVTspecific) advanced features in ascending register order. Note This chapter is a reference guide for advanced registers and does not explain the advanced features itself.
Configuration of the camera Register Register name Description 0xF1000240 LUT_CTRL 0xF1000244 LUT_MEM_CTRL See Table 137: Advanced register: LUT on page 305 0xF1000248 LUT_INFO 0xF1000250 SHDG_CTRL 0xF1000254 SHDG_MEM_CTRL 0xF1000258 SHDG_INFO 0xF1000260 DEFERRED_TRANS See Table 140: Advanced register: Deferred image transport on page 310 0xF1000270 FRAMEINFO 0xF1000274 FRAMECOUNTER See Table 141: Advanced register: Frame information on page 311 0xF1000298 DPC_CTRL 0xF100029C DPC
Configuration of the camera Register Register name Description 0xF10003A4 COLOR_CORR_COEFFIC11 = Crr Stingray color cameras only 0xF10003A8 COLOR_CORR_COEFFIC12 = Cgr 0xF10003AC COLOR_CORR_COEFFIC13 = Cbr See Table 147: Advanced register: Color correction on page 318 0xF10003B0 COLOR_CORR_COEFFIC21 = Crg 0xF10003B4 COLOR_CORR_COEFFIC22 = Cgg 0xF10003B8 COLOR_CORR_COEFFIC23 = Cbg 0xF10003BC COLOR_CORR_COEFFIC31 = Crb 0xF10003C0 COLOR_CORR_COEFFIC32 = Cgb 0xF10003C4 COLOR_CORR_COEFFIC33
Configuration of the camera Register Register name Description 0xF1000800 0xF1000804 IO_OUTP_PWM1 Stingray housing and board level cameras: 0xF1000808 0xF100080C IO_OUTP_PWM2 See Table 30: PWM configuration registers on page 106 0xF1000810 0xF1000814 IO_OUTP_PWM3 0xF1000818 0xF100081C IO_OUTP_PWM4 0xF1000840 IO_INP_DEBOUNCE_1 0xF1000850 IO_INP_DEBOUNCE_2 0xF1000860 IO_INP_DEBOUNCE_3 0xF1000870 IO_INP_DEBOUNCE_4 0xF1000FFC GPDATA_INFO 0xF1001000 GPDATA_BUFFER See Table 64: Advan
Configuration of the camera Extended version information register The presence of each of the following features can be queried by the 0 bit of the corresponding register. Register Name Field Bit Description 0xF1000010 VERSION_INFO1 µC type ID [0..15] Always 0 µC version [16..31] Bcd-coded version number 0xF1000014 VERSION_INFO1_EX µC version [0..31] Bcd-coded version number 0xF1000018 VERSION_INFO3 Camera type ID [0..15] See Table 129: Camera type ID list on page 297.
Configuration of the camera The FPGA type ID (= camera type ID) identifies the camera type with the help of the following list (BL = board level): ID Camera type 401 STINGRAY F-033B (BL) 402 STINGRAY F-033C (BL) 403 --- 404 --- 405 STINGRAY F-046B (BL) 406 STINGRAY F-046C (BL) 407 STINGRAY F-080B (BL) 408 STINGRAY F-080C (BL) 409 STINGRAY F-125B (BL) 410 STINGRAY F-125C (BL) 413 STINGRAY F-145B (BL) 414 STINGRAY F-145C (BL) 415 STINGRAY F-146B (BL) 416 STINGRAY F-146C (BL) 417
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.
Configuration of the camera Register Name Field Bit 0xF1000044 ADV_INQ_2 Input_1 Input_2 --Output_1 Output_2 Output_3 Output_4 --IntEnaDelay --Output 1 PWM Output 2 PWM Output 3 PWM Output 4 PWM --Camera Status [0] [1] [2..7] [8] [9] [10] [11] [12..15] [16] [17..23] [24] [25] [26] [27] [28..31] [0] Max IsoSize [1] Paramupd_Timing [2] F7 mode mapping [3] Auto Shutter [4] Auto Gain [5] Auto FNC AOI [6] --- [7..31] --- [0] --- [1] --- [2] --- [18..
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). The ExSyncArmed flag indicates that the camera is set up for external triggering. Even if the camera is waiting for an external trigger event the Idle flag might get set.
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 46ff. Register Name Field Bit Description 0xF1000200 MAX_RESOLUTION MaxWidth [0..15] Sensor width (read only) MaxHeight [16..
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 65: Camera-specific exposure time offset on page 194) has to be added to the exposure time (set by any shutter register) to compute the real exposure time.
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 Bit Description 0xF100020C EXTD_SHUTTER Presence_Inq [0] Indicates presence of this feature (read only) --- [1..5] Reserved ExpTime [6..31] Exposure time in µs Table 135: Advanced register: Extended shutter The minimum allowed exposure time depends on the camera model.
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 • auto shutter • auto white balance Register Name Field Bit Description 0xF1000210 TEST_IMAGE Presence_Inq [0] Indicates presence of this feature (read only) --- [1..
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. The possible values for LutNo are 0..n-1, whereas n can be determined by reading the field NumOfLuts of the LUT_INFO register.
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 grayvalue round-up the BitsPerValue field to the next byte boundary.
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. The camera has automatic shading correction to do this. Provided that a shading image is present in the camera, the on/off bit can be used to enable shading correction.
Configuration of the camera Register Name Field Bit Description 0xF1000254 SHDG_MEM_CTRL Presence_Inq [0] Indicates presence of this feature (read only) --- [1..4] Reserved EnableMemWR [5] Enable write access EnableMemRD [6] Enable read access --- [7] Reserved AddrOffset [8..31] In bytes Presence_Inq [0] Indicates presence of this feature (read only) --- [1..3] Reserved MaxMemChannel [4..
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 number of available image buffers. GrabCount is automatically adjusted to a power of two. Do not poll the SHDG_CTRL register too often, while automatic generation is in progress. Each poll delays the process of generating the shading image. An optimal poll interval time is 500 ms.
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. When FastCapture is set (in Format_7 only), images are recorded at the highest possible frame rate.
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 signal. This is a mirror of the frame counter information found at 0xF1000610.
Configuration of the camera Defect pixel correction Definition The defect pixel correction mode allows to correct an image with defect pixels. 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. DPC = defect pixel correction WR = write RD = read MEM, Mem = memory Note • • Defect pixel correction is always done in Format_7 Mode_0.
Configuration of the camera Register Name Field Bit Description 0xF100029C DPC_MEM Presence_Inq [0] Indicates presence of this feature (read only) --- [1] Reserved EnaMemWR [2] Enable write access from host to RAM EnaMemRD [3] Enable read access from RAM to host DPDataSize [4..17] Size of defect pixel data to read from RAM to host. A maximum of 256 defect pixels can be stored. In case of more than 256 defect pixels, DPDataSize is set to 257 and BuildError flag is set to 1.
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 activates/deactivates integration delay. The time can be set in µs in DelayTime. Note • • Only one edge is delayed. If IntEna_Out is used to control an exposure, it is possible to have a variation in brightness or to precisely time a flash.
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 0xF1000360 AUTOSHUTTER_CTRL 0xF1000364 AUTOSHUTTER_LO Field Bit Description Presence_Inq [0] Indicates presence of this feature (read only) --- [1..31] Reserved --- [0..5] Reserved MinValue [6..
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. Note As with the Extended Shutter the value of MinValue and MaxValue must not be set to a lower value than the minimum shutter time.
Configuration of the camera Autofunction AOI The table below illustrates the advanced register for autofunction AOI. Register Name 0xF1000390 AUTOFNC_AOI 0xF1000394 AF_AREA_POSITION 0xF1000398 AF_AREA_SIZE Field Bit Description Presence_Inq [0] Indicates presence of this feature (read only) --- [1..3] Reserved ShowWorkArea [4] Show work area --- [5] Reserved ON_OFF [6] Enable/disable AOI (see note above) --- [7] Reserved YUNITS [8..19] Y units of work area/pos.
Configuration of the camera Color correction To switch off color correction in YUV mode: see bit [6] Register Name 0xF10003A0 COLOR_CORR Field Bit Description Presence_Inq [0] Indicates presence of this feature (read only) --- [1..5] Reserved ON_OFF [6] Color correction on/off default: on Write: 02000000h to switch color correction OFF Write: 00000000h to switch color correction ON Reset [7] Reset to defaults --- [8..31] Reserved 0xF10003A4 COLOR_CORR_COEFFIC11 = Crr [0..
Configuration of the camera Trigger delay Register Name 0xF1000400 TRIGGER_DELAY Field Bit Description Presence_Inq [0] Indicates presence of this feature (read only) --- [1..5] Reserved ON_OFF [6] Trigger delay on/off --- [7..10] Reserved DelayTime [11..31] Delay time in µs Table 148: Advanced register: Trigger delay The advanced register allows start of the integration to be delayed via DelayTime by max. 221 µs, which is max. 2.1 s after a trigger edge was detected.
Configuration of the camera Soft reset Register Name 0xF1000510 SOFT_RESET Field Bit Description Presence_Inq [0] Indicates presence of this feature (read only) --- [1..5] Reserved Reset [6] Initiate reset --- [7..19] Reserved Delay [20..
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 Bit Description 0xF1000520 HIGH_SNR Presence_Inq [0] Indicates presence of this feature (read only) --- [1..5] Reserved ON_OFF [6] High SNR mode on/off High SNR mode on requires a minimum GrabCount value of 2. Set grab count and activation of HighSNR in one single write access. --- [7..
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 Bit Description 0xF1000560 ISOSIZE_S400 Presence_Inq [0] Indicates presence of this feature (read only) --- [1..5] Reserved ON_OFF [6] Enable/Disable S400 settings Set2Max [7] Set to maximum supported packet size --- [8..15] Reserved MaxIsoSize [16..
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, ...) n/a Linux: libdc1394_1.x No restrictions Linux: libdc1394_2.
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 161. Register Name Field Bit Description 0xF1000570 PARAMUPD_TIMING Presence_Inq [0] Indicates presence of this feature (read only) --- [1..
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. Every time the PARAMUPD_TIMING register is written to with the UpdActive flag set to 1 a 10 second time-out is started / restarted.
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 Bit Description 0xF1100000 PARAMLIST_INFO Presence_Inq [0] Indicates presence of this feature (read only) --- [1..15] Reserved BufferSize [16..31] Size of parameter list buffer in bytes 0xF1101000 PARAMLIST_BUFFER ...
Configuration of the camera Format_7 mode mapping With Format_7 mode mapping it is possible to map special binning and subsampling modes to F7M1..F7M7 (see Figure 87: Mapping of possible Format_7 modes to F7M1...F7M7 on page 160). Register Name Field Bit Description 0xF1000580 F7MODE_MAPPING Presence_Inq [0] Indicates presence of this feature (read only) --- [1..31] Reserved F7MODE_00_INQ [0] Format_7 Mode_0 presence F7MODE_01_INQ [1] Format_7 Mode_1 presence ... ... ...
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 87: Mapping of possible Format_7 modes to F7M1...F7M7 on page 160.
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) Frame counter (frames read out of the sensor) Trigger counter (external trigger seen only) Various camera settings into a selectable line position within the image.
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. SIS UserValue can be written into the camera’s image. In sequence mode for every sequence entry an own SIS UserValue can be written.
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 A nCycleTime can be accessed: • using the SIS structure S_SIS_DATA of the UniAPI: • using byte array: If you can access the image buffer as an array of bytes you can assemble the first four bytes of the image b
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 0xF1000610 FRMCNT_STAMP 0xF1000614 FRMCNT Field Bit Description Presence_Inq [0] Indicates presence of this feature (read only) Reset [1] Reset frame counter --- [2..31] Reserved [0..
Configuration of the camera Advanced register: trigger counter The trigger counter feature is controlled by the following advanced feature register: Register Name 0xF1000620 TRIGGER_COUNTER 0xF1000624 TRGCNT Field Bit Description Presence_Inq [0] Indicates presence of this feature (read only) Reset [1] Reset trigger counter --- [2..31] Reserved TriggerCounter [0..
Configuration of the camera Where to find cycle time, frame counter and trigger counter in the image Cycle time 1 2 3 4 Trigger counter 5 6 7 8 9 10 11 12 .. .. . Output line of image . Frame counter Bytes Figure 117: 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. (Here SIS has 48 bytes.
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 0xF1000640 SWFEATURE_CTRL Field Bit Description Presence_Inq [0] Indicates presence of this feature (read only) BlankLED_Inq [1] Indicates presence of Disable LEDs feature. --- [2..
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 Restore Set default 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. To restore the settings from a previous stored profile: 1. Write the desired ProfileID with the RestoreProfile flag set. 2. Read back the register and check the ErrorCode field. To set the default profile to be loaded on startup, reset or initialization: 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. • by writing 00000000h to the USER_PROFILE register.
Configuration of the camera Note • • • • • A profile save operation automatically disables capturing of images. A profile save or restore operation is an uninterruptable (atomic) operation. The write response (of the asynchronous write cycle) will be sent after completion of the operation. Restoring a profile will not overwrite other settings than listed above.
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 GPDATA_BUFFER Register Buffer size query indicates the actual storage range Name 0xF1000FFC GPDATA_INFO 0xF1001000 Field Bit Description --- [0..15] Reserved BufferSize [16..
Appendix Appendix Sensor position accuracy of AVT FireWire cameras camera body pixel area pixel area A y R camera body Y D sensor case I N sensor case x M AVT Guppy Series Automated mechanical alignment of sensor into camera front module. (lens mount front flange) Reference points: Sensor: Center of pixel area (photo sensitive cells). Camera: Center of camera front flange (outer case edges). L I Method of Positioning: x/y: z: E Accuracy: P R D: +/- 0.
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; each part consists of two digits): Special.Major.Minor.Bugfix or xx.xx.xx.
Index Index Numbers 0xF1000010 (version info) .......................296 0xF1000040 (advanced feature inquiry)......298 0xF1000100 (camera status) .....................300 0xF1000200 (max. resolution) ..................301 0xF1000208 (time base) ..........................301 0xF100020C (extended shutter)..........195, 303 0xF1000210 (test image) .........................304 0xF1000220 (sequence mode) ...................204 0xF1000240 (LUT)...................................305 0xF1000250 (shading) ........
Index base address .....................................279 inquiry.............................................277 advanced register Advanced feature inquiry ....................298 Auto gain control ..............................316 Auto shutter control ..........................315 Autofunction AOI ..............................317 Camera status ...................................300 Color correction ................................318 defect pixel correction .......................
Index cameras ...........................................115 BOSS...................................................... 33 BRIGHTNESS....................................128, 285 Brightness inquiry register .................................278 brightness auto shutter .....................................122 average............................................124 decrease ..........................................315 descending.......................................209 effects ................................
Index data packets ..........................................109 data path...............................................115 data payload size ...............................38, 253 data_length ...........................................109 DCAM ........................................28, 214, 257 debounce time for input ports ..................................193 debounce time for trigger ........................192 debounce (advanced registers summary).....295 declaration of conformity ..................
Index FCC Class B.............................................. 30 fiber technology ...................................... 29 FIFO Stingray F-504 with 64 MByte ........60, 169 FireDemo extended shutter ...............................303 FirePackage additional checks image integrity ........213 OHCI API software .............................. 28 FireView extended shutter ...............................303 FireWire connecting capabilities ....................... 34 definition.................................
Index I ID color coding .....................................167 IEEE 1394 ............................................... 28 IEEE 1394 standards ................................. 31 IEEE 1394 Trade Association .....................257 IEEE 1394b connector............................... 89 IIDC..........................................28, 214, 257 data structure ............................112, 113 isochronous data block packet format...109 pixel data.........................................
Index example ...........................................137 gamma ............................................137 general ............................................137 loading into camera...........................139 volatile ............................................138 LUT (advanced register) ...........................305 LutNo....................................................305 LutNo (Field)..........................................305 LUT_CTRL...............................................
Index P Packed 12-Bit Mode ................................167 Packed 12-Bit MONO................................167 Packed 12-Bit RAW..................................167 packet format.........................................109 parameter list example ...........................................165 parameter list (example) ..........................326 Parameter-List Update ............... 163, 164, 165 Parameter-List Update (advanced register)..326 PI controller...........................................
Index shading image........................................131 automatic generation.........................132 delay ...............................................133 Format_7 .........................................133 generation .......................................134 load into camera ...............................136 load out of camera ............................135 shading images ......................................307 shading reference image ..........................
Index T tag field ................................................109 target grey level corresponds to Auto_exposure.............286 Target grey level (auto exposure) .......127, 315 Target grey level (SmartView) corresponds to auto exposure..............122 tCode ....................................................109 TEMPERATURE.........................................291 Temperature (CSR register) .......................291 test image .............................................255 Bayer-coded ........
Index tripod dimensions .................................... 74 types Stingray cameras ................................ 29 U UNIT_POSITION_INQ................................236 UNIT_SIZE_INQ.......................................236 Update timing modes (advanced register)...324 user profile stored settings..................................338 user profiles ...........................................336 error code ........................................337 User profiles (advanced register) ..............