//
// Copyright (c) 2000-2003 by Cognex Corporation, Natick, MA USA
// All rights reserved. This material contains unpublished,
// copyrighted work, which includes confidential and proprietary
// information of Cognex.
//

// Created Wed Oct 20 9:45:00 EDT 1999

// The XC-55/55BB camera, as shipped from Sony, is configured to 
// emulate the Sony XC-75 camera. With this CCF, Cognex requires 
// using the XC-55/55BB in its E-DONPISHA II trigger shutter, 
// progressive scan, asynchronous reset mode instead.
//
// Two switch settings convert the XC-55/55BB to trigger shutter 
// mode; one switch is external, while the other is internal. 
// Follow this procedure:
// 1. On the rear panel of the XC-55/55BB, locate the 
//    1N/1I switch. Place this switch in the 1N position.
// 2. Remove the cover of the camera control module. Inside 
//    the camera control module, locate the SG-257 circuit 
//    board.  On the SG-257 circuit board, locate rotary 
//    switch S2, which is in the upper right of a set of 
//    four rotary switches as you hold the camera with its 
//    top cover up and the lens mount on the right. Set this 
//    switch to the E position.
//
// XC-55 cameras purchased from Cognex arrive ready to use; no
// switch setting changes need to be made.  This CCF supports 
// variable exposure using the shutter capability of the camera.
//
// Cable: 300-0136 (CVM1 & CVM3 & 8501 & 8504)
// Cable: 300-0231 (CVM6)
// Cable: 300-0239 (8100M+)
//

format name = "Sony XC-55 640x480 IntDrv (rapid-reset, shutter-sw-EDONPISHAII) 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 = 12.348;

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 = 784;
format hdrive = 1 773;
format hdrive = 0 68; 
format hsync = 1 5;   
format hsync = 0 64;  
format hsample = 1 83;
format hsample = 0 105;

format active_start = 134;

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 = 4075;
format vdrive = 1 3566;
format vdrive = 0 3575;
format vsync = 1 3570;
format vsync = 0 3573;
format vsample = 1 3578;
format vsample = 0 3586;
format vaoi = 1 3593;
format vaoi = 0 4073;
format vctrl1 = 1 3562.625;   // Shutter End, close line
format vctrl1 = 0 3562.9375;  // Minimum exposure
format vstrobe = 0 3568.625;
format vstrobe = 1 3562.625;

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

format cti_width_min = 2.0;  // Minimum for master/slave
format cti_end_field0 = 3568.25;

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 = 0.000020;
format shutter_max_exposure = 0.225;
format shutter_adjustment_granularity = pel;
format shutter_per_field = 0;
format im_shutter_capable = 1;

format strobe_mode = pulse_position;

format init_acq_count = 2;
format settling_time = 0.500;

vs version = 5;
vs revision = 1;

ccf version = 1.0;
ccf build_number = 8;

ccf_checksum 0x03E3DE2B
