//
// Copyright (c) 2001-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 Jai CV-M1 camera
// is supported in non-interlaced, asynchronous reset 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               OFF
//  6               ON
//  7               ON
//  8               OFF
//
//
// Cable: 300-0282 (CVM1 & CVM3 & 8501 & 8504)
//
/*  
Created April 4, 2001 13:45:28
*/

format name = "Jai CV-M1 1280x1024 IntDrv (rapid-reset, shutter-sw-doublePulse) CCF";

format width = 1280;
format height = 1024;

format video_interface = analog;
format input_width = 8;
format video_encoding = mono;

format bits_per_pel = 8;
format peltype = mono;
format taps = 1;

format ctrl1_direction =  unused;

format pclk_direction = unused;
format pclk_source = oscillator;
format pclk_frequency = 14.3496;

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

format htotal = 1616;
format hdrive = 1 1609;
format hdrive = 0 185;
format hsync = 1 92;
format hsync = 0 156;
format hsample = 1 235;
format hsample = 0 255;
format active_start = 335;

format vd_direction = out;
format vd_interface = ttl;
format vd_signal = vd;
format vd_polarity = active_low;
format vertical_reference = none;
format vtotal = 2081;

format vdrive = 1 1044;  // Ext. SG pulse to camera
format vdrive = 0 1046;
format vsync = 1 1042;
format vsync = 0 1045;
format vsample = 1 1041;
format vsample = 0 1042;
format vaoi = 1 1055;
format vaoi = 0 2079;
// vctrl2 is Ext. Trigger pulse to camera
format vctrl2 = 1 1041;  // min exposure
format vctrl2 = 0 1043; 
format vstrobe = 1 1042;
format vstrobe = 0 1048;

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

format cti_width_min = 1.0;
format cti_end_field0 = 1045.0;

format shutter_mode = pulse_position;
format shutter_line = ctrl2;
format ctrl2_direction = out;
format ctrl2_interface = ttl;
format ctrl2_polarity = active_low;
format shutter_min_exposure = 3.378e-4;   // 3H, 1H = 112.6uS
format shutter_max_exposure = 0.058777;   // 522H
format shutter_adjustment_granularity = line;
format shutter_per_field = 0;

format strobe_mode = pulse_position;

format settling_time = 0.5;

vs version = 5;
vs revision = 1;

ccf version = 1;
ccf build_number = 3;

ccf_checksum 0x03C4C11A
