//
// Copyright (c) 2006-2008 by Cognex Corporation, Natick, MA USA
// All rights reserved. This material contains unpublished,
// copyrighted work, which includes confidential and proprietary
// information of Cognex.
//
// With this CCF, Cognex requires using the XC-HR90 in its 30FPS, 
// E-DONPISHA II trigger shutter, progressive scan, asynchronous reset mode.
// The switches on the back of the camera must be set as described below. 
// Disconnect all electrical connections to the camera before making any 
// changes to the settings.
// -------------------------
// DIP             Setting
// Switch  
// -------------------------
// 1               OFF
// 2               OFF
// 3               OFF
// 4               OFF
// 5               OFF
// 6               OFF
// 7               ON
// 8               ON
// 9               OFF
// 0               OFF
//
//
//  ON   ON   
//            OFF  OFF 
//   1    2    3    4
//
//
// Cable: 300-0316 or (300-0136 & 300-0313) (8504/8501/8504e/8500Le)
//
//
// Notes (March, 2008)
// Known limitation:
//   1.  Images acquired using this CCF and XC-HR90 camera on 8504/8501
//       frame grabber may exhibit excessive "edge softness".  It is 
//       recommended that this CCF and XC-HR90 only be used on 8504e
//       or 8500Le; platform on which this image quality limitation
//       does not apply,
//   2.  Use of this CCF and 4 XC-HR90 cameras on 8504 for simultaneous 
//       or overlapped image capture is not supported due to frame
//       grabber bandwidth limitation.  A 4-HR90 system typically 
//       requires the use of 8504e, which has higher bandwidth than 8504.  
// 

format name = "Sony XC-HR90 1280x960 IntDrv (rapid-reset, shutter-sw-EDONPISHAII) CCF";

format width = 1280;
format height = 960;

format video_interface = analog;
format video_encoding = mono;
format bits_per_pel = 8;
format peltype = mono;
format taps = 1;

format pclk_direction = unused;
format pclk_source = oscillator;
format pclk_frequency = 49.302;

format hd_direction = out;
format hd_interface = ttl;
format hd_signal = hd;
format hd_polarity = active_low;
format horiz_reference = none;
format hctrl1 = 1 0;

format htotal = 1660;
format hdrive = 1 1600;
format hdrive = 0 106;
format hsync = 1 16;
format hsync = 0 252;
format hsample = 1 276;
format hsample = 0 310;

format active_start = 335;     // 334;

format vd_direction = out;
format vd_interface = ttl;
format vd_signal = vd;
format vd_polarity = active_low;
format vertical_reference = none;
format vlock_position = 0;

format vtotal = 4095;          // 3100 + 995
format vdrive = 1 3102;
format vdrive = 0 3111;
format vsync = 1 3106;
format vsync = 0 3109;
format vaoi = 1 3133;
format vaoi = 0 4093;
format vctrl1 = 1 3101.0625;
format vctrl1 = 0 3101.1250;   // Minimum exposure
format vstrobe = 1 3101.0625;
format vstrobe = 0 3107.0625;

format ctrl2_direction = unused;

format number_of_fields = 1;
format aoi_per_field = 1;
format x_subsampling = 1;
format interlace = 0;
format rapid_reset = 1;
format rapid_reset_min_position = 3100;

format cti_end_field0 = 3103.0625;
format cti_width_min = 1.0;

format shutter_mode = pulse_width_adjust_leading;
format shutter_line = ctrl1;
format ctrl1_direction = out;
format ctrl1_polarity = active_high;
format ctrl1_interface = ttl;
format shutter_min_exposure = 7.104e-6;    // 1/16-H + 5 us
format shutter_max_exposure = 0.104377;    // 3100H
format shutter_adjustment_granularity = pel;
format shutter_per_field = 0;
format im_shutter_capable = 1;

format strobe_mode = pulse_position;

format init_acq_count = 1;
format settling_time = 0.500;

vs version = 5;
vs revision = 1;

ccf version = 1.0;
ccf build_number = 4;

ccf_checksum 0x03DDAB12
