//
// Copyright (c) 2004 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-HR58 in its 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
// 
// INT/EXT HD/VD   EXT               
// -------------------------
//
// cable: 300-0316 (8504/8501)
//

format name = "Sony XC-HR58 756x574 IntDrv (rapid-reset, shutter-sw-EDONPISHAII) CCF";

format width = 756;
format height = 574;
format bits_per_pel = 8;
format video_interface = analog;
format video_encoding = mono;
format peltype = mono;
format taps = 1;

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

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

format htotal = 944;
format hdrive = 1 938;
format hdrive = 0 96;
format hsync = 1 18;
format hsync = 0 91;
format hsample = 1 124;
format hsample = 0 168;

format active_start = 188;

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 = 4091;          // 3466 + 625
format vdrive = 1 3466;
format vdrive = 0 3473.5;
format vsync = 1 3469.5;       // nominal
format vsync = 0 3472.0;
// format vsample = 1 3488;    // no VSample 
// format vsample = 0 3496;
format vaoi = 1 3514;
format vaoi = 0 4088;
format vctrl1 = 1 3465.0625;
format vctrl1 = 0 3465.1250;   // Minimum exposure
format vstrobe = 1 3465.0625;
format vstrobe = 0 3471.0625;

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 = 3464;

format cti_width_min = 1.0;
format cti_end_field0 = 3467.0625; 

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.0e-6;
format shutter_max_exposure = 0.22144;
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 = 2;

ccf_checksum 0x03DAC44D
