//
// Copyright (c) 2004 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-A2 camera is
// supported in a progressive scan, asynchronous reset, shuttered 
// mode. 
//
// This camera is configured via the Hirose 6-pin port located at 
// the back of the camera (RS-232C interface).  Begin the 
// configuration process by downloading and installing the CV-A2
// Camera Control Tool from the Jai site at www.jai.com.
// 
// Next, connect a cable between the host PC's serial port and the 
// camera at the 6-pin port.  The cable must conform to the pin-out
// spec given in the CV-A2 Operation Manual.
// 
// Launch the CV-A2 Control Tool application from the PC's Programs 
// menu.  You will see 3 or more control buttons presented on the 
// single toolbar. Open the Camera Communication and Camera Control
// windows by left-clicking on the proper control buttons displayed 
// on the toolbar.
//
// On the Communications window, the Status box should indicate
// "On-line".  This is an indication that the serial comm. link
// between the PC and the camera is working properly.  The Sychronize 
// box will indicate a "Not Synchronized" or "Synchronized" status.  
// There is no cause for concern either way.
// 
// Read the current camera settings by left-clicking on "Synchronize 
// Program" button.  After a few seconds, status in the Synchronize 
// box should become "Synchronized", confirming that all settings 
// have been successfully read from the camera.
//
// On the Camera Control window, select "Normal" for Shutter Mode, 
// "OFF" for Shutter Speed, "Full Frame" for Partial Scan Mode, and
// "Manual Gain" for Gain Setup. Select "On" or "Off" for Rear 
// Potentiometer gain control, whichever is more appropriate to the
// application.
//
// Select "Pulse Width Control" for Trigger Mode.  Trigger Polarity 
// should be "Active L", Pixel Clock Out should be "Off", and 
// HD Synchronous Accumulation "Async".  Select "WEN" for EEN/WEN, 
// "Active L" for WEN Polarity, and "On" for Sync Signal Output.  
// Turn off binning by selecting "Binning OFF".  Select "Video Out"
// for Iris Select.
//
// Select "Normal" for Sensor Gate Invert and Trig Mode for Sensor
// Gate.  It is best to leave the Black Level and White Clip Level
// values at the calibrated factory defaults.
//
// Return to the Communication window and left-click on the 
// Synchronize Camera button.  After a few seconds, status in the
// Synchronize box should become "Synchronized", confirming that
// all settings have been successfully written to the camera.
//
// There are 3 non-factory choices for storing/loading settings - 
// "User 1", "User 2", and "User 3".  Select one and then left click 
// on the Store button to save the settings into the selected space
// in the camera's non-volatile memory as power-up defaults.
//
// The camera is now configured to operate properly with this CCF.
// You can now disconnect the serial comm. cable from the camera.
//
//
// Cable: 300-0316 or (300-0136 & 300-0313) (8504/8501)
//

format name = "Jai CV-A2 1616x1220 IntDrv (rapid-reset, shutter-sw-pulseWidth) CCF";

format width = 1616;
format height = 1220;

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.15;

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 = unused;
format vertical_reference = none;

format htotal = 1920;
format hdrive = 1 1900;
format hdrive = 0 250;
format hsync = 1 24;
format hsync = 0 160;
format hsample = 1 180;
format hsample = 0 238;

format active_start = 292;

format vtotal = 4068;             // 2798 + 1270
format vsync = 1 2806;
format vsync = 0 2809;
format vaoi = 1 2835;
format vaoi = 0 4055;
format vctrl1 = 1 2799;
format vctrl1 = 0 2801;
format vstrobe = 1 2799;
format vstrobe = 0 2805;

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

format cti_end_field0 = 2803;
format cti_width_min = 2;

format shutter_mode = pulse_width_adjust_leading;
format shutter_line = ctrl1;
format ctrl1_direction = out;
format ctrl1_polarity = active_low;
format ctrl1_interface = ttl;
format shutter_min_exposure = 122.13e-6;   // 2H + 0.3H
format shutter_max_exposure = 0.1061628;   // 1999H
format shutter_adjustment_granularity = pel;
format shutter_per_field = 0;

format strobe_mode = pulse_position;

format settling_time = 0.500;

vs version = 5;
vs revision = 1;

ccf version = 1.0;
ccf build_number = 1;

ccf_checksum 0x0366739C
