//
// 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.
//

// Created Wed Aug 29 2001

// When using the Hitachi KP-F100A digital camera, the switches 
// on the back of the camera body must be set as described below. 
// After making any switch setting changes on the KP-F100A, turn 
// the camera's power off and back on.
//
//     Switch:              Setting:
//     Shutter Data - A0    Off (left)
//     Shutter Data - A1    Off (left)
//     Shutter Data - A2    Off (left)
//     Shutter Data - RM    On (right)
//     Mode                 2
//     FD                   ON
//
// Cable: Cognex cable 300-0214 & 300-0266
//
// This CCF supports variable exposure using the shutter capability 
// of the camera; Mode 2 - Two Trigger.  With this CCF, the camera 
// operates in progressive scan, asynchronous reset mode.
// 

format name = "Hitachi KP-F100A 1280x1024 ExtPixClk (rapid-reset, shutter-sw-twoTrigger) CCF";
format width = 1280;
format height = 1024;

format video_interface = digital_644;
format input_width = 8;
format video_encoding = mono;
format bits_per_pel = 8;
format peltype = mono;
format taps = 1;

format input_width = 8;

format ctrl1_direction = out;
format ctrl1_interface = ttl;
format ctrl2_direction = out;
format ctrl2_interface = ttl;

format pclk_direction = in;
format pclk_source = external;
format pclk_frequency = 20.2;
format pclk_interface = eia644;

format hd_direction = in;
format hd_interface = eia644;
format hd_signal = hd;
format hd_polarity = active_low;
format hctrl1 = 1 0;
format hctrl2 = 1 0;
format horiz_reference = external;
format horiz_reference_type = sync;
format hlock_position = 94;

format active_start = 335;
format htotal = 1616;
format hdrive = 1 0;
format hdrive = 0 200;
format hsync = 1 101;
format hsync = 0 151;

format vd_direction = unused;
format vd_interface = eia644;
format vd_signal = vd;
format vd_polarity = active_low;
format vertical_reference = none;
format vlock_position = 0;

format vtotal = 2089;
format vdrive = 1 2088.0;
format vdrive = 0 1063.0;
format vsync = 1 1052.1;
format vsync = 0 1055.1;
format vaoi = 1 1063;
format vaoi = 0 2087;
format vctrl1 = 0 1054.5;   // Trigger A
format vctrl1 = 1 1051.5;   
format vctrl2 = 0 1055.75;  // Trigger B
format vctrl2 = 1 1052.75;  // min exposure
format vstrobe = 0 1058.5;
format vstrobe = 1 1052.5;

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

format shutter_mode = pulse_position;
format cti_width_min = 2.0; 
format cti_end_field0 = 1059.0;

format shutter_line = ctrl1;
format ctrl1_polarity = active_low;
format ctrl2_polarity = active_low;
format shutter_min_exposure = 0.0001;
format shutter_max_exposure = 0.070;
format shutter_adjustment_granularity = pel;
format shutter_per_field = 0;

format strobe_mode = pulse_position;

format init_acq_count = 2;

vs version = 5;
vs revision = 1;

ccf version = 1.0;
ccf build_number = 6;

ccf_checksum 0x0426C5A5
