//
// Copyright (c) 2002-2003 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 BCC-G01V40 camera 
// is supported in a progressive scan, asynchronous reset, 
// shuttered mode. 
//
//
// The rotary switch and DIP switch on the camera must be set as described below.
// Disconnect all electrical connections to the camera before making any 
// changes to the settings.
//
// The rotary switch 1 has to be positioned at 9. 
//
// -------------------------
// DIP             Setting
// Switch 2
// -------------------------
// B1               OFF
// B2               OFF
// B3               ON
// B4               OFF
// B5               OFF
// B6               OFF
// B7               OFF
// B8               OFF
//
// -------------------------
//
//
// 10Pin connector(CN1)
//
// -------------------------
// PIN             Setting
// -------------------------
// 1               POWER_IN
// 2               GND
// 3               VIDEO_OUT
// 4               GND
// 5               HD_IN_OUT
// 6               TRG_IN
// 7               GND
// 8               VD_IN_OUT
// 9               WEN_OUT
// 10              EXT_VR_IN
//
// -------------------------
//
// Created/Edited by Cognex CIT February 06, 2007, 14:11:54

format name = "CIS BCC-G01V40 640x480 IntDrv (rapid-reset, shutter-sw-pulseWidth) CCF";

format width = 640;
format height = 480;

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

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 = out;
format vd_interface = ttl;
format vd_signal = vd;
format vd_polarity = active_low;
format vertical_reference = none;

format htotal = 780;
format hdrive = 1 768;
format hdrive = 0 63;
format hsync = 1 6;
format hsync = 0 72;
format hsample = 1 76;
format hsample = 0 120;

format active_start = 132;

format vtotal = 4091;//             3566 + 525
format vdrive = 0 3.578e3;
format vdrive = 1 3.569e3;
format vsync = 1 3.57e3;
format vsync = 0 3.573e3;//             nominal
format vaoi = 1 3.593e3;
format vaoi = 0 4.073e3;
format vctrl1 = 1 3.565e3;
format vctrl1 = 0 3.565125e3;//             Minimum exposure
format vstrobe = 1 3.565e3;
format vstrobe = 0 3.571e3;

format ctrl1_direction = out;
format ctrl1_polarity = active_high;
format ctrl1_interface = ttl;

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_end_field0 = 3.57e3;
format cti_width_min = 1;

format shutter_mode = pulse_width_adjust_leading;
format shutter_line = ctrl1;
format shutter_min_exposure = 10e-6;
format shutter_max_exposure = 250e-3;
format shutter_adjustment_granularity = pel;
format shutter_per_field = 0;
format im_shutter_capable = 1;

format hlock_position = 0;
format vlock_position = 0;

format strobe_mode = pulse_position;

format init_acq_count = 1;
format settling_time = 500e-3;

vs version = 5;
vs revision = 1;

ccf version = 1;
ccf build_number = 1;

ccf_checksum 0x03E66BE4
