//
// 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.
//
// This CCF supports the Teli CS3951D in a non-interlaced, 
// shuttered mode.  The shutter mode is Teli Random Trigger 
// Shutter (RTS), pulse width control in Non-Reset, Single VD 
// mode.  
// This CCF supports software controllable exposure using the 
// variable shutter capability of the camera.
//
// The switches on the back of the camera body must be set as 
// described below. Disconnect all electrical connections to 
// the camera before making any changes to the settings.
// ------------------------------------------------------------
// Switch Function      DIP             Setting
//                      Switch  
// ------------------------------------------------------------
// E shutter speed      1               ON
// E shutter speed      2               ON
// E shutter speed      3               ON
// E shutter speed      4               ON
// Shutter mode         5               OFF
// Shutter mode         6               OFF
// Partial scan         7               OFF
// Partial scan         8               OFF
// Trigger polarity     9               OFF  (Positive edge)
// Reserved             10              OFF
// -------------------------------------------------------------
// Additionally, the External Sync-IN Impedance selection switch
// must be set to 75 Ohms. Set the GAIN selection switch to 
// Manual (M) if gain adjustment via potentiometer is desired.
// Otherwise, leave the GAIN selection switch in Fixed (F) 
// position.
// -------------------------------------------------------------
// cable: 300-0316 (8504/8501)
//

format name = "Teli CS3951D 1018x768 IntDrv (rapid-reset, shutter-sw-random-trigger) CCF";

format width = 1018;
format height = 768;
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 = 1270;
format hdrive = 1 1256;
format hdrive = 0 88;
format hsync = 1 10;
format hsync = 0 84;
format hsample = 1 154;
format hsample = 0 198;

format active_start = 248;

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 = 4065;           // 3266 + 799
format vdrive = 1 3266;
format vdrive = 0 3275;
format vsync = 1 3270;
format vsync = 0 3273;
// format vsample = 1 3278;     // no VSample 
// format vsample = 0 3286;
format vaoi = 1 3295;
format vaoi = 0 4063;
format vctrl1 = 1 3265.0;
format vctrl1 = 0 3265.1250;    // Minimum shutter pulse width
format vstrobe = 1 3265.0625;   // Delay in start of CCD integration
format vstrobe = 0 3271.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 = 3264;

format cti_width_min = 1.0;
format cti_end_field0 = 3267.0; 

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 = 13.4e-6;  // = T1 + 8.0us
format shutter_max_exposure = 0.125;    // Maximum supported
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 = 1;

ccf_checksum 0x03D324FD
