//
// Copyright (c) 2004-2006 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-G20U20H1 camera 
// is supported in a progressive half-scan, SYNC Non-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               ON
// 6               OFF
// 7               ON
// 8               OFF
// 9               OFF
// 10              ON
// 
// -------------------------
//
// Cable: 300-0316 or (300-0136 & 300-0313) (8504/8501)
//
//
// Notes (Dec, 2009)
// Known image quality issues:
//   1. There may be 7 columns corruption on right side of the image.
//      The corruption is about 5-30 grey levels though it depends on 
//      each camera. 
//      Use the CVL roi property (ch_cvl/prop.h) and a setting of 
//      ccPelRect(0,0,1609,1216) for the property to remove the 
//      7 corrupted columns from the acquired image.
//      ICogAcqROI.SetROIXYWidthHeight method (Cognex.VisionPro.Core.dll)
//      can change the acquisition ROI in VisionPro.
//

format name = "CIS VCC-G20U20H1 1616x544 IntDrv (rapid-reset, shutter-sw-pulseWidth) CCF";

format width = 1616;
format height = 544;

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

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 hlock_position = 0;

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 htotal = 1920;
format hdrive = 1 1875;
format hdrive = 0 140;
format hsync = 1 0;
format hsync = 0 135;
format hsample = 1 214;
format hsample = 0 254;

format active_start = 274;

format vtotal = 4046;
format vdrive = 1 2790;
format vdrive = 0 2799;
format vsync = 1 2795;
format vsync = 0 2798;
format vaoi = 1 2842; 
format vaoi = 0 3386; 
format vctrl1 = 1 2788;
format vctrl1 = 0 2788.125;
format vstrobe = 1 2788;
format vstrobe = 0 2794;

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

format cti_end_field0 = 2790;
format cti_width_min = 1;

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 = 11.5e-6;   // Trigger Width + 4.87us
format shutter_max_exposure = 148.5e-3;  // 2785H
format shutter_adjustment_granularity = pel;
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 0x03E82FEB
