//
// Copyright (c) 2005 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 Sony DXC-390 camera in 3 Plane Color, 
// 2-field (interlaced) mode with the frame grabber's on-board
// PLL deriving the pixel clock and the vertical sync from the
// composite video signal. The frame grabber does not supply
// horizontal and vertical drive signals to the camera.
//
// The camera should be configured in accordance to instructions 
// given in the MVS-8500 Hardware Manual (or similar 
// documentation provided by Cognex) either by Cognex or the user.
//
// 
// Cable: 300-0176 (8504), or
//        300-0406 (8504)
//
// One addtional configuration step needs to be taken when using 
// the specified camera cable.  For this CCF to work properly,  
// composite sync needs to be present in the video signal going 
// into the first camera port of the frame grabber.  With the 
// specified camera cable, the camera's "Red" signal is fed 
// into the first camera port.  This signal does not contain 
// composite sync by default.  To add composite sync to this
// signal from the camera, follow these steps -
//  1.  Bring up the camera's MAIN setup menu by pressing the 
//        MENU button located on the camera's body,
//  2.  Select the SYSTEM setting menu from the MAIN menu,
//  3.  Select the item "RGB SYNC" off the SYSTEM setting menu,
//  4.  By default, the value for this item is G.  Change it
//        to RGB,
//  5.  Exit the setting menu and main menu. The camera is now
//        ready for the mode of operation as defined by this 
//        CCF.
//

format name = "Sony DXC-390 640x480 ExtPLLCo (3 Plane Color, GBR) CCF";
format width = 640;
format height = 480;
format bits_per_pel = 8;
format video_interface = analog;
format video_encoding = mono;
format peltype = RGBplanar;
format taps = 3;
format color_plane_order = blue_red_green;

format hd_direction = unused;
format horiz_reference = sync_separator;
format horiz_reference_type = sync;
format hlock_position = 10;

format vd_direction = unused;
format vertical_reference = sync_separator;
format vertical_reference_type = sync;
format vlock_position = 1.0625;

format ctrl1_direction =  unused;
format ctrl2_direction = unused;

format pclk_direction = unused;
format pclk_source = pll;
format pclk_frequency = 12.288;

format htotal = 781;
format vtotal = 525;
format active_start = 119;

// horizontal events
format hdrive = 1 762;
format hdrive = 0 63;
format hsync = 1 0;
format hsync = 0 59;
format heq = 1 0;
format heq = 0 29;
format heq = 1 393;
format heq = 0 422;
format hvsync = 1 0;
format hvsync = 0 335;
format hvsync = 1 393;
format hvsync = 0 723;
format hsample = 1 80;
format hsample = 0 90;

// vertical events
format vdrive = 1 522;
format vdrive = 0 6;
format vdrive = 1 259.5;
format vdrive = 0 268.5;
format vsync = 1 525;
format vsync = 0 3;
format vsync = 1 262.5;
format vsync = 0 265.5;
format vaoi = 1 19;
format vaoi = 0 259;
format vaoi = 1 282;
format vaoi = 0 522;

format cti_end_field0 = 7;
format cti_end_field1 = 269;
format cti_width_min = 1;

format number_of_fields = 2;
format aoi_per_field = 1;
format x_subsampling = 1;
format interlace = 1;
format rapid_reset = 0;
format shutter_mode = none;
format strobe_mode = trigger;

format settling_time = 1.25;

vs version = 5;
vs revision = 1;

ccf version = 1;
ccf build_number = 4;

ccf_checksum 0x035D0F71
