//
// Copyright (c) 2005 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, image acquisition using a CIS VCC-G20S20 camera 
// is supported in a progressive scan, asynchronous reset, 
// shuttered 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               ON
// 5               OFF
// 6               OFF
// 7               OFF
// 8               OFF
// 9               OFF
// 10              ON
// 
// -------------------------
//
// Cable: 300-0316 or (300-0136 & 300-0313) (8504/8501)
//

format name = "CIS VCC-G20S20 1356x1039 IntDrv (rapid-reset, shutter-sw-pulseWidth) CCF";

format width = 1356;
format height = 1039;

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

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 vd_direction = unused;
format vertical_reference = none;

format htotal = 1790;
format hdrive = 1 1776;
format hdrive = 0 180;
format hsync = 1 114;
format hsync = 0 254;
format hsample = 1 284;
format hsample = 0 314;

format active_start = 425;

format vtotal = 4070;           // 3002 + 1068
format vsync = 1 3010;
format vsync = 0 3013;
format vaoi = 1 3024;
format vaoi = 0 4063;
format vctrl1 = 1 3002;
format vctrl1 = 0 3004;
format vstrobe = 1 3002;
format vstrobe = 0 3008;

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

format cti_end_field0 = 3004;
format cti_width_min = 2.5;

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 = 143.77e-6;  // 2.3H
format shutter_max_exposure = 187.27e-3;  // 2996H
format shutter_adjustment_granularity = line;
format shutter_per_field = 0;
// format im_shutter_capable = 1;

format strobe_mode = pulse_position;

format init_acq_count = 2;
format settling_time = 0.500;

vs version = 5;
vs revision = 1;

ccf version = 1.0;
ccf build_number = 1;

ccf_checksum 0x037B614E
