//
// Copyright (c) 2008-2010 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 CIS VCC-G20V30A in its 
// Pulse Width Trigger, Sync-Non-Reset, full-resolution (494 lines),
// progressive scan 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               ON
// 6               ON
// 7               OFF
// 8               ON
// 9               OFF
// 10              ON
// 
// -------------------------
//
// Cable: 300-0386 (8504/8501/8504e/8500Le)
//

format name = "CIS VCC-G20V30A 640x494 IntDrv (rapid-reset, shutter-sw-pulseWidth) CCF";

format width = 640;
format height = 494;
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 = 24.5454;

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

format htotal = 780;
format hdrive = 1 768;
format hdrive = 0 66;
format hsync = 1 6;
format hsync = 0 64;
format hsample = 1 74;
format hsample = 0 118;

format active_start = 135;

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 = 4093;         // 3566 + 527
format vdrive = 1 3566;
format vdrive = 0 3575;
format vsync = 1 3570;
format vsync = 0 3573;
format vaoi = 1 3589;
format vaoi = 0 4083;
format vctrl2 = 0 0;
format vctrl1 = 1 3565.0;
format vctrl1 = 0 3565.1250;  // Minimum exposure
format vstrobe = 1 3565.0;
format vstrobe = 0 3571.0;

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

format cti_width_min = 1.0;
format cti_end_field0 = 3567;

format ctrl1_direction = out;
format ctrl1_polarity = active_high;
format ctrl1_interface = ttl;
format ctrl2_direction = out;
format ctrl2_polarity = active_low;     // deactivate partial scan
format ctrl2_interface = ttl;

format shutter_mode = pulse_width_adjust_leading;
format shutter_line = ctrl1;
format shutter_min_exposure = 9.0e-6;   // Trigger Width + 5us
format shutter_max_exposure = 113.1e-3; // 3650H
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 0x042D927F
