//
// Copyright (c) 2003 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 CS8541D camera in a 1/60 sec, 
// non-interlaced, shuttered mode.  The shutter mode is Teli 
// Random Trigger Shutter (RDM) in Non-Reset Single VD mode.  
// This CCF supports software controllable exposure using the 
// variable shutter capability of the camera.

// The switches on the bottom of the camera control unit (CCU) 
// 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               OFF
// E shutter speed      2               ON
// E shutter speed      3               ON
// Video Output mode    4               OFF
// Shutter mode         5               OFF
// Shutter mode         6               OFF
// Partial Scan         7               OFF
// Partial Scan         8               OFF
// Trigger Polarity     9               OFF 
// RTS Exposure Mode   10               ON 
//
// Three switches inside the CCU must be set as described below.
// Disconnect all electrical connections to the camera before 
// removing the cover of the CCU.  The camera's Operation Manual 
// shows the location of these switches.
// ------------------------------------------------------------
// Switch Function      Switch          Setting
//                                
// ------------------------------------------------------------
// Video Out coupling   SW1             AC  (Default = DC)
// ExSync In/Out        SW4             IN  (Default = IN)
// ExSync In Impedance  SW5             75  (Default = High)
//
// Additionally, set the GAIN CONTROL selection switch located
// on the side of the CCU to FIX.
// 

//
// Cable: 300-0385 without Camera Breakout Box (8504/8501)
//

format name = "Teli CS8541D 640x480 IntDrv (rapid-reset, shutter-sw-random-trigger) CCF";
format width = 640;
format height = 480;
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 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 71;
format hsample = 1 78;
format hsample = 0 118;

format active_start = 133;

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 = 4090;         // 3565 + 525
format vdrive = 1 3565;
format vdrive = 0 3574;
format vsync = 1 3569;
format vsync = 0 3572;
format vaoi = 1 3599;
format vaoi = 0 4079;
format vctrl1 = 1 3563;   
format vctrl1 = 0 3563.125;   // Minimum pulse width
format vstrobe = 1 3563;
format vstrobe = 0 3569;

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

format cti_width_min = 1.0;
format cti_end_field0 = 3566;

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 = 20.4e-6; // = T1 + 16.4 uS
format shutter_max_exposure = 0.112;
format shutter_adjustment_granularity = pel;
format im_shutter_capable = 1;

format strobe_mode = pulse_position;

format settling_time = 0.500;

vs version = 5;
vs revision = 1;

ccf version = 1.0;
ccf build_number = 5;

ccf_checksum 0x03C74F19
