CS7666 Digital Color-Space Processor for CCD Cameras Features Description l ITU-601 Compliant Image Formatting l ITU-656 and SMPTE-125/M Transport l Provides Separate HREF and VREF (or The CS7666 is a low-power Digital Color-Space Processor for CCD cameras. It provides all necessary digital image processing for standard four-color interline transfer CCD imagers. The CS7666 processes the magenta, yellow, cyan, and green (MYCG) CCD imager data into YCrCb formatted component digital video. Internal processing includes color separation, automatic white balance, user programmable gamma correction, programmable scaling (interpolation), and output formatting. Also, a special "Color Killer" circuit eliminates false colors during saturation. The digital output of the CS7666 can be configured to comply with the ITU-601, ITU-656 and SMPTE-125/M standards. Additionally, HREF and VREF (or HSYNC and VSYNC) output pins are provided to support older analog video encoders and the current ZV-Port definition. alternately HSYNC and VSYNC) Signals l I2C Control Interface l Limited Secondary I2C Bus Master l Automatic White Balance l Programmable Gamma Correction l Programmable Interpolation l Programmable Luma Gain and Saturation Control l Fully Programmable Color Separation Matrix Coefficients l Supports up to 1440, active pixels per line, The CS7666 is designed to work directly with the with no limitation on Vertical Size CS7615 CCD Imager Analog Processor, and is a drop in l Pin and software compatible with the CS7665 replacement for the CS7665. l Programmable "Color Killer" circuit l Highly integrated for low part count cameras ORDERING INFORMATION CS7666-KQ 0° to 70° C (10 mm x 10 mm x 1.4 mm) 64-pin TQFP I CCD DATA SECONDARY I2C BUS DEFORMATTER I2C INTERFACE COLOR SEPARATION AND ANITALIASING WHITE BALANCE AWB CONTROL GAMMA CORRECTION SCALER OUTPUT FORMATTER REGISTER BLOCK PLL AND CLOCK DRIVER OUTPUT TIMING YCrCb DATA VREF/VSYNC HREF/HSYNC PRIMARY I2C BUS XTAL Preliminary Product Information Cirrus Logic, Inc. Crystal Semiconductor Products Division P.O. Box 17847, Austin, Texas 78760 (512) 445 7222 FAX: (512) 445 7581 http://www.crystal.com This document contains information for a new product. Cirrus Logic reserves the right to modify this product without notice. Copyright Cirrus Logic, Inc. 1998 (All Rights Reserved) JUL ‘98 DS302PP1 1 CS7666 TABLE OF CONTENTS CHARACTERISTICS AND SPECIFICATIONS ................................................... 3 DIGITAL CHARACTERISTICS.................................................................... 3 SWITCHING CHARACTERISTICS ............................................................. 3 POWER CONSUMPTION ........................................................................... 3 CONTROL PORT CHARACTERISTICS ..................................................... 4 RECOMMENDED OPERATING CHARACTERISTICS............................... 5 ABSOLUTE MAXIMUM RATINGS .............................................................. 5 GENERAL DESCRIPTION .................................................................................. 6 Overview ..................................................................................................... 6 The 640 Pixel Horizontal Line ..................................................................... 7 Embedded ITU-656 EAV and SAV Timing ............................................... 10 Individual Timing and Synchronization Signals ........................................ 11 HREFOUT/HSYNC ................................................................................... 11 VREFOUT/VSYNC ................................................................................... 11 Digital Output Formats .............................................................................. 11 Internal Horizontal Scaler ......................................................................... 14 CLKIN and CLKIN2X Input Timing ........................................................... 14 CLKOUT ................................................................................................... 15 INTERNAL PROCESSING ................................................................................ 15 Input Data Format and Chroma Separator ............................................... 15 Color Saturation Control ........................................................................... 15 White Balance and Gamma Correction .................................................... 15 Chroma Kill ............................................................................................... 16 Internal Filters ........................................................................................... 16 INTERNAL REGISTER STRUCTURE AND USER INTERFACE ..................... 16 Operating CS7666 in Normal I2C Configuration (Three-Byte Mode) ....... 16 Station Address .................................................................................. 17 Write Operations in Three-Byte Mode ................................................ 17 Address Set Operation ....................................................................... 17 Read Operations in Three-Byte Mode ............................................... 17 Operating CS7666 in Four-Byte I2C Configuration ............................ 17 Write Operations in Four-Byte mode .................................................. 18 Read Operations in Four-Byte Mode ................................................. 18 Initializing Slave Devices on Secondary I2C bus from an EPROM .......... 19 Controlling the Configuration Process ...................................................... 19 Reserved Registers and Test Pins ........................................................... 20 PIN DESCRIPTIONS ......................................................................................... 34 Power Supply Connection ........................................................................ 34 Input Data and Clocks .............................................................................. 35 I2C Serial Control ..................................................................................... 35 Digital Video Outputs and Clocking .......................................................... 36 Miscellaneous ........................................................................................... 38 DEFINITIONS ..................................................................................................... 39 PACKAGE DIMENSIONS .................................................................................. 40 2 DS302PP1 CS7666 CHARACTERISTICS AND SPECIFICATIONS DIGITAL CHARACTERISTICS (TA = 25 °C; VDD = 5 V; CL = 30 pF; Input Levels: logic 0 = 0 V, logic 1 = VDD.) Parameter Symbol Min Typ Max Unit Logic Inputs High-Level Input Voltage VIH VDD - 0.8 - - V Low-Level Input Voltage VIL - - 0.8 V Input Leakage Current IIN - - 10.0 µA Input Pin Capacitance CDI - 10 - pF - -0.7 - V Input Clamp Voltage Logic Outputs High-Level Output Voltage @ IOH = 2mA VOH VDD - 0.4 - - V Low-Level Output Voltage @ IOL = 2mA VOL 0.4 - - V IZ - - 10.0 µA Symbol Min Typ Max Unit fCLK2X - - 30 MHz Input Data setup time, DI[9:0] tS1 5 - - ns Input Data hold time, DI[9:0] tH1 5 - - ns fCLKOUT - - 30 15 MHz MHz Channel A/B Output Hold Time tOH - 0 - ns Channel A/B Output Propagation Delay tPD - 1.9 5 ns Digital Output Rise Time with 30 pF load tR - 15 - ns Digital Output Fall Time with 30 pF load tF - 15 - ns High-Z Leakage Current SWITCHING CHARACTERISTICS (TA = 25 °C; VDD = 5 V; CL = 30 pF; Input Levels: logic 0 = 0 V, logic 1 = VDD.) Parameter Digital Input CLKIN2X Frequency Range (Note 1) Digital Output Channel A/B Digital Data Output Clock Interleaved Data Parallel Data Notes: 1. CLKIN, fCLK, is fCLK2X/2 in non-interpolated mode and fCLK2X * 2/5 in interpolated mode. POWER CONSUMPTION (TA = 25 °C; VDD = 5 V; CL = no load; Input Levels: logic 0 = 0 V, logic 1 = VDD.) Parameter Symbol Min Typ Max Unit Normal Mode IDD - 80 100 mA Low Power Mode IDD - 7 16 mA Specifications are subject to change without notice DS302PP1 3 CS7666 CLKIN2X t H2 t S2 CLKIN t S1 t H1 Mosaic Input Data DI[9:0] Input Timing Diagram CLKOUT t PD t OH Output Data DOA[9:0] DOB[9:0] Output Timing Diagram CONTROL PORT CHARACTERISTICS (TA = 25 °C; VDD = 5 V; Input Levels: logic 0 = 0 V, logic 1 = VDD.) Parameter Symbol Min Max Unit SCL Clock Frequency fSCL - 400 kHz Bus Free Time Between Transmissions tbuf 1.3 - µs Start Condition Hold Time thdst 0.6 - µs thigh tlow 0.6 1.3 - µs µs Setup Time for Repeat Start Condition tsust 0.6 - µs SDAIN Hold Time from SCL Falling thdd 0 - µs SDAIN Setup Time from SCL Rising tsud 0.1 - µs SDAIN and SCL Rise Time tr - 1.0 µs SDAIN and SCL Fall Time tf - 0.3 µs tsusp 0.6 - µs Clock Pulse Width High Low Setup Time for Stop Condition Stop Repeated Start Start Stop SD A t buf t t high hdst tf t hdst t susp SCL t low t t hdd sud t sust t r 2 I C Timing Diagram 4 DS302PP1 CS7666 RECOMMENDED OPERATING CHARACTERISTICS Parameter Power Supply Voltage Symbol Min Typ Max Unit VDD 4.5 5.0 5.5 V - - 10 mV Ground to Ground Voltage Differential Digital Input Rise/Fall Time - - 10 ns CLKIN Level Setup to CLKIN2X Rising (non-interpolated) tS2 8 - - ns CLKIN Level Hold after CLKIN2X Rising (non-interpolated) tH2 8 - - ns 0 - VDD V 0 - 70 °C Digital Input Voltage Range Operating Temperature Range TA ABSOLUTE MAXIMUM RATINGS Parameter Power Supply Voltage Symbol Min Max Unit VDD -0.3 7.0 V GND - 0.3 VDD + 0.3 V - 50 mA GND - 0.3 VDD + 0.3 V - - mA 0 70 °C - +260 °C -65 +160 °C Digital Input Voltage Range Forced Digital Output Current Sustained Digital Output Voltage Output Short Circuit Current Operating Temperature Range Lead Solder Temperature (10 s duration) Storage Temperature Range TA WARNING: Operation at or beyond these limits may result in permanent damage to the device. Normal operation is not guaranteed at these extremes. DS302PP1 5 CS7666 GENERAL DESCRIPTION Overview The CS7666 forms the heart of a four chip digital CCD Camera. The four chips include the CCD imager, the CS7615 CCD digitizer, the CS7666 color space processor, and a vertical drive interface-chip for the CCD imager. Most four-phase CCD imagers (and their associated vertical drives) can be used with the CS7615 digitizer and the CS7666 processor to form a simple and cost-effective YCrCb output format digital camera. The CS7615 and CS7666 together support imager formats ranging from 175×175 pixels up to 1000x1000 pixels. Timing control is located in the CS7615 analog processor, while the CS7666 synchronizes itself by decoding the timing cues embedded in the CS7615 data stream. Alternately, the CS7666 accepts horizontal and vertical timing signals on pin inputs. The block diagram in Figure 1 illustrates a typical system interconnect. CS7615 6 512x480 Timing Vertical Drive Image Processor CDS/ADC CCD I 2C Video Codec I2C 6 +18V to +12V CS4954 CS7666 2 CCD Bias I2C Bus +5V Figure 1. Typical 4-Chip Digital CCD Camera CCD DATA SECONDARY I2C BUS DEFORMATTER I2C INTERFACE The CS7666 is a CCD camera color separation and color-space processor designed to process the fourcolor mosaic CCD imager data into ITU-601 compliant 4:2:2 YCrCb digital component video. The CS7666 timing control is based on the built-in crystal oscillator or on the master clock provided by the CS7615, and provides formatted component digital video compliant with SMPTE-125 and ITU-656 transport protocols. The CS7666 provides color separation of standard MYCG chroma block data from industry standard four-color CCD imagers. Gamma correction and white balance adjustment functions are also included in the CS7666. The YCrCb (luminance and chrominace) data is output at the scaled CCD pixel rate in 20-bit format, or at twice the scaled pixel rate in 10-bit format (see discussion on Digital Output Formats). The YCrCb output data from the CS7666 conforms to the ITU-656 parallel component digital video recommendation with embedded synchronization (see Embedded EAV and SAV discussion). External horizontal and vertical synchronization signals are also provided to support ITU-601 interfaces, as well as the PC-Card ZoomVideo standard being used in notebook computers. The CS7666 incorporates an internal horizontal scaler which may be turned on to increase the horizontal pixel count of the popular 360 (CIF) and 512 horizontal pixel per line imagers. The most com- COLOR SEPARATION AND ANITALIASING WHITE BALANCE AWB CONTROL GAMMA CORRECTION SCALER OUTPUT FORMATTER REGISTER BLOCK PLL AND CLOCK DRIVER OUTPUT TIMING YCrCb DATA VREF/VSYNC HREF/HSYNC PRIMARY I2C BUS XTAL Figure 2. CS7666 Block Diagram 6 DS302PP1 CS7666 mon target resolutions for the scaler are 640 and 720 pixels per line (square and rectangular pixel formats), but it is possible to provide generic scaling of M/N where M and N are values from 1 to 31. abled (scaler mode 1). Many other imager/scaler combinations are possible, but the digital video format would not be significantly different than the 640x480 case described. The CS7615 and CS7666 chip set supports a wide range of imager formats while providing an output format that follows the ITU-601 Component Digital Video recommendation. The ITU-601 document primarily specifies horizontal resolutions of 720 active horizontal pixels (which is required for broadcast television compatibility). However, many of today’s digital video receivers are capable of operating with a wide range of video image formats. Even though these digital video receivers allow image formats not specified in the ITU601/656 recommendation, all of these receivers expect the basic ITU-601/656 protocol to be followed in terms of data sequence and timing cues. This is the case with the CS7666, where all output formats follow the ITU-601/656 recommendation even if the image formats differ in horizontal and vertical pixel dimensions. Transmitted during each active line are 1280 multiplexed luminance and chrominance values (640 luminance, 320 chrominance Cr, and 320 chrominance Cb values). Eight of the remaining 280 interface clock intervals are used to transmit synchronizing information. The first of these 1560 interface clock intervals is designated line 0 word 0 for the purpose of reference only. The 1560 sample words per total line are therefore numbered 0 through 1559. Intervals 0 through 1279, inclusive, contain video data. The 640 Pixel Horizontal Line The following discussion assumes that a 512 horizontal pixel class imager has been selected for the camera, the CS7615 has been programmed to provide 512 active pixels and 112 inactive pixels, and that the internal 4:5 horizontal scaler has been en- DS302PP1 The interface clock intervals occurring during digital blanking are designated 1280 through 1559. Intervals 1280 through 1283 are reserved for the endactive-video (EAV) timing reference. Intervals 1556 through 1559 are reserved for the start-of-active-video (SAV) timing reference. Figure 3 indicates the values of the timing reference signals (F, V, H) for an entire frame of interlaced video. Please note the scan lines are numbered 1 through 525 consecutively in the time domain (spatially they are interlaced). Table 1 defines the 1560 samples of a single scan line of video. 7 CS7666 EAV H=1 SAV H=0 Lines 1 to 19 V=1 Horizontal Blanking Vertical Blanking Lines 20 to 263 V=0 F=0 Lines 4 to 265 Active Video Field 1 Lines 264 to 282 V=1 Horizontal Blanking Vertical Blanking F=1 Lines 266 to 3 639 0 Active Video Field 2 779 640 Lines 283 to 525 V=0 Figure 3. Horizontal and Vertical Timing States (640×480 resolution) 8 DS302PP1 CS7666 Word Data Content Pixel Notes EAV EAV EAV EAV Fro pixels 642 to 777 Cr = Cb = 80h Y = 10h 1280 1281 1282 1283 1284 1285 1286 1287 1111 0000 0000 1FV1 1000 0001 1000 0001 1111 0000 0000 P3P2P1P0 0000 0000 0000 0000 640 1552 1553 1554 1555 1556 1557 1558 1559 0 1 2 3 4 5 6 7 2n 2n + 1 2n + 3 1000 0001 1000 0001 1111 0000 0000 1FV0 0000 0000 0000 0000 1111 0000 0000 P3P2P1P0 776 1272 1273 1274 1275 1276 1277 1278 1279 Cb0 Y0 Cr0 Y1 Cb2 Y2 Cr2 Y3 Cbn Yn Crn Yn+1 Cb636 Y636 Cr636 Y637 Cb638 Y638 Cr638 Y639 641 642 643 777 778 779 0 1 2 3 n n+1 636 SAV SAV SAV SAV Start of Digital Video For VBLANK line 1 to 19 and 264 to 283 Cr = Cb = 80h Y = 10h For active pixels 20 through 263 and 283 to 525 for n=even from pixels 0 to 638 637 638 End of Digital VIdeo Table 1. Detail of Scan Line for 640x480 Image DS302PP1 9 CS7666 Embedded ITU-656 EAV and SAV Timing The lines in Figure 3 are numbered 1 through 525. Video data is not present on lines 1 to 19 or 264 to 282, which constitute the vertical blanking periods. The vertical blanking is in full line increments, where Y samples are set to 10h, while Cb and Cr samples are set to 80h. The interval starting with EAV and ending with SAV is the digital horizontal synchronization, which occurs on every line. It is implicit that the timing reference signals are contiguous with the video data and continue through the vertical blanking interval. Each timing reference signal consists of the four-word sequence in Table 2. The first three words are a preamble, followed by a fourth word indicating a) even field (field 2) identification, b) state of vertical blanking, and c) state of horizontal blanking. Table 1 details the timing reference format. The protected bit Bit Position 7 6 Word 1281 and 1556 1 1 Word 1281 and 1557 0 0 Word 1282 and 1558 0 0 5 1 0 0 4 1 0 0 3 2 1 0 1 1 1 1 0 0 0 0 0 0 0 0 states are dependent on the F, V, and H bits according to Table 3. Value FFh 00h 00h xyh First Byte Second Byte Third Byte Fourth Byte Description Fixed Fixed Fixed See Table 3 Table 2. Timing Reference Signal Protected State Bits - In Tables 3 and 4, H, V, and F bits provide all the necessary timing and state information. Bits 0 to 3 provide error detection and correction information. The protection bits allow for correction of single-bit errors and detection of two-bit errors. The F or field bit indicates which of the interlaced fields is active, the first/odd field which contains 262 lines, or the second/even field which contains 263 lines. Word 1283 Description and 1589 1 Fixed F F = 0 during Field 1/ODDF = 1 during Field 2/EVEN V V = 0 during Active VideoV = 1 during Vertical Blanking H H = 1 at end of Active VideoH = 0 at start of Active Video P3 see Protected Bits State Table 4 P2 see Protected Bits State Table 4 P1 see Protected Bits State Table 4 P0 see Protected Bits State Table 4 Table 3. EAV and SAV Timing Reference Signal Detail. Bit 7 1 1 1 1 1 1 1 1 Bit 6 (F) 0 0 0 0 1 1 1 1 Bit 5 (V) 0 0 1 1 0 0 1 1 Bit 4 (H) 0 1 0 1 0 1 0 1 Bit 3 (P3) 0 1 1 0 0 1 1 0 Bit 2 (P2) 0 1 0 1 1 0 1 0 Bit 1 (P1) 0 0 1 1 1 1 0 0 Bit 0 (P0) 0 1 1 0 1 0 0 1 Table 4. EAV and SAV Protected Bit States Detail. 10 DS302PP1 CS7666 Individual Timing and Synchronization Signals In addition to the embedded EAV and SAV timing signals, the CS7666 provides individual synchronization output signals which are employed by many video encoder circuits. These synchronization signals are typically used to interface the ITU-656 digital video stream to other components and subsystems. The individual synchronization signals include HREFOUT and VREFOUT. HREFOUT/HSYNC HREFOUT is an active-high signal indicating when active pixel data is being transmitted on DOA[9:0] or DOB[9:0]. HREFOUT is low when non-active picture data is being transmitted during horizontal blanking. Depending on the mode of operation, the HREFOUT signal follows either the HREFIN signal or the HREF defined by the EAV and SAV code. The HREFOUT pin may also be configured to provide a HSYNC output that provides an active low pulse for 64 pixel clocks whose falling edge occurs 16 pixel clocks after the end of active video for NTSC (12 clocks for PAL) as per the ITU-R BT.601 specification. HSYNC is chosen by setting the Operation Control Register II (07h) HS_SEL bit (bit 0) to a value of 1. This pin may be inverted by setting the H_INV bit (register 07h bit2) to a value of 1. The HSYNC signal may be delayed by 0, 0.5, 1, or 1.5 pixel clocks by setting H_SFT[1-0] appropriately (register 07h bits 5 and 4.) VREFOUT/VSYNC VREFOUT is an output signal that is active high when the CS7666 is putting out active video lines. The active-low portion of this signal defines the vertical blanking period. If the VS_SEL bit in register 07h is set, this output pin produces a vertical sync signal that is compatible with current PAL or NTSC analog systems. See Figure 4. This signal is DS302PP1 active for 3 line times in NTSC mode (bit 5 of register 04h = 0) and 2.5 line times in PAL mode (bit5 of register 04h = 1.) This line may be inverted by setting the V_INV bit (register 07h) to a value of 1. Alternately, when the ZV mode bit in register 06h is set, this output behaves as a VSYNC signal appropriate for ZV ports. In the ZV mode, the VSYNC signal is active-high during the first six horizontal line periods of every field. The transition in VSYNC signal lags the HREF signal’s rising edge during odd fields and leads the rising edge of HREF during even fields. Digital Output Formats The CS7666 outputs data in a 20-Bit wide format at the output pixel clock rate. Alternately, the data can be multiplexed in a 10-bit format at a 2x output pixel clock rate. Figures 5 and 6 detail the clock and data relationships. The output data transitions on the falling edge of the clock such that the rising edge of the clock can be used to latch the data into subsequent circuitry. The CS7666 delivers 4:2:2 component digital video output data in YCrCb format. The data conforms to the ITU-R BT.656 specification. The Y component range is 16-235 (8-bit data) and the Cr and Cb component ranges are 16-240 (8-bit data). However, by setting CLIP_OFF (register 07h bit 6) to a value of 1, the output data can be extended to a range of 1-254 (8-bit data). Only 00 and FF are restricted to allow digital timing codes. The digital outputs can be configured for 10-bit interleaved Y and CrCb data, or for 20-bit parallel operation. The INTERL bit of the Operational Control Register 06h determines which output format is active. Logic 0 places the CS7666 in interleave mode with output data on channel "A." Logic 1 places the CS7666 in non-interleaved mode where luminance data is output on channel "A" and chrominance data is output on channel "B." 11 CS7666 NTSC Vertical Timing (odd field) Line HSYNC 525 1 2 3 4 5 VSYNC 6 7 8 9 10 269 270 271 272 273 4 5 6 7 23 316 317 318 319 336 3H 6H VSYNC ZV Mode VREF 9H NTSC Vertical Timing (even field) Line HSYNC 263 264 265 266 267 VSYNC 268 3H VSYNC ZV Mode 6H VREF 9H PAL Vertical Timing (odd field) Line 624 625 1 2 3 HSYNC VSYNC 2.5H VSYNC ZV Mode 6H VREF 24H PAL Vertical Timing (even field) Line HSYNC VSYNC 311 312 313 314 315 2.5H VSYNC ZV Mode 6H VREF 25H Figure 4. Vertical Timing 12 DS302PP1 CS7666 24.5454MHz CLKOUT SAV DOA [9-0] Line 3 Pixel 776 to Line 4 Pixel 3 80h 10h 80h 10h FFh 00h 00h ABh 80h 10h 80h 10h 80h 10h F1h 80h 10h 80h 10h 80h 10h 9Dh 80h 10h 80h 10h 80h 10h EAV DOA [9-0] Line 263 Pixel 638 to Line 264 Pixel 645 80h 10h 80h 10h FFh 00h 00h EAV DOA [9-0] Line 525 Pixel 638 to Line 1 Pixel 645 Cb638 Y638 Cr638 Y639 FFh 00h 00h NOTE: EAV, SAV, and Blanking data values are based on the 8 MSB’s of the output data, the two LSBs are considered fractional. Figure 5. 2x Pixel Clock, 10-Bit interleaved Output Format for 640x480 Image Format. 12.2727MHz CLKOUT HREF DOA [9-0] 10h Y0 Y1 Y2 Y3 Y4 Y633 DOB [9-0] 80h Cb0 Cr0 Cb2 Cr2 Cb4 Cb632 Cr634 Cb634 Cr636 Cb636 Cb638 Cr638 Y634 Y635 Y636 Y637 Y638 Y639 10h 80h NOTE: EAV, SAV, and Blanking data values are based on the 8 MSB’s of the output data, the two LSBs are considered fractional. Figure 6. 1x Pixel Clock, 20-Bit Parallel Output Format for 640x480 Image Format. DS302PP1 13 CS7666 In 20-bit wide mode, the luminance information is output on DOA[9:0] and the chrominance information is output on DOB[9:0]. DOA[9:0] DOB[9:0] CLKOUT Parallel INTERL = 1 10-Bit Luminance Data 10-Bit Chrominance Data Pixel Rate Interleaved INTERL = 0 Interleaved 10-Bit Luminance Data and 10-Bit Chrominance Data 0 selected by setting the INTERP pin (pin 54 on the CS7666) to a logical one. The 4:5 scaler will convert a standard 512 horizontal pixel width CCD imager used for cam-corders into the VGA 640x480 format. The CS7615 (if that device is used in the system) must also have its INTERP pin set high. Register 04h Pin 54 Operation Scaling Ratio bit 4 0 0 CS7665 mode 1:1 0 1 CS7665 mode 4:5 1 X CS7666 mode programmable 2x Pixel Rate Table 5. INTERL Controlled Output Formats Table 6. INTERP Pin (Pin 54) The CS7666 supports both 8-bit and 10-bit operation as per the ITU-656 recommendation. The ITU656 recommendation defines the primary data path as 8-bits wide with two additional fractional bits that can be used to form a 10-bit data path. If only 8-bits of output data are used, the two LSBs, DOA1 and DOA0 (DOB1, DOB0) are not used. However, DOA[9:2] (DOB[9:2]) are connected exactly the same as in a 10-bit system. This is essential to properly pass the image data and synchronization signals to the next component. When the CS7666 is in the native CS7666 mode (True_7666 in register 04h set to 1), the INTERP pin is ignored and the internal scaling ratio is programmed by the user. The CS7615 must have its INTERP pin tied to ground. Internal Horizontal Scaler The internal horizontal scaler is used to bridge between common CCD imager formats and computer or television formats. In the CS7665 compatibility mode (default after reset) a 4:5 data rate scaler is Mode 000 001 010 011 100 101 110 111 CCD Format CCD 512x480 512x480 512x576 362x480 362x480 362x576 512x576 512x480 512x576 CCD Clock (MHz) ½ input clock 9.818 9.346 9.281 6.75 6.75 6.75 9.563 9.000 9.000 Several pre-defined scaler modes may be selected by writing a 3-bit value to bits 0-2 of register 04h. These default scaling modes are described in Table 7. If the CUSTOM bit (bit 3 of register 04h) is set to a 1, then the scaling ratio is determined by the M and N values contained in the Scaler Control registers (2Dh - 2Fh.) CLKIN and CLKIN2X Input Timing The CLKIN, pin 55, will always require a primary pixel rate clock source. CCD manufacturers generally specify a pixel clock frequency that is compat- Output Format same as CCD 640x480 720x480 720x480 640x480 720x480 720x576 720x576 720x480 720x576 Input Clock (MHz) (30 MHz max.) 24.5454 27.000 27.000 24.5454 27.000 27.000 27.000 27.000 27.000 Scaling Ratio 1:1 4:5 9:13 11:16 11:20 1:2 17:24 2:3 Table 7. Default Scaling Modes (Register 04h) 14 DS302PP1 CS7666 ible with one of the analog encoders that can be used with a given imager. If an analog encoder is used in the camera to generate an analog output, the pixel clock frequency expected by the encoder must be matched precisely. However, digital display systems, such as those based on VGA graphics adapter cards and Zoom Video systems, are generally not sensitive to pixel clock frequency, and will tolerate a wide range of pixel and frame rates. Specific pixel-rate clock frequencies for analog encoders include 14.31818 MHz for 768H imagers, the primary ITU-601 13.5 MHz for 720H imagers, and down to 12.272727 MHz clock rates for 640H VGA format imagers. In CS7665 compatibility mode (register 04h bit 4 = 0), The CLKIN2X, pin 56, will either require a 2.5X CCD pixel rate clock when the internal 4:5 scaler is enabled (INTERP pin high) or a 2x times the CCD pixel rate clock in non-interpolation mode (INTERP pin low). The CLKIN2X pin is used as a crystal input pin when the CS7666 is in native mode (register 04h bit4 = 1). CLKOUT CLKOUT follows the output data rate as described in the Digital Output Formats section. In the noninterleaved mode the clock output is at the output luma sample rate whereas in the interleaved mode the clock output is at 2x the output luma sample rate. INTERNAL PROCESSING The internal operation of the CS7666 can be separated into several distinct blocks. The following section provides an overview of how these blocks operate and interact. Input Data Format and Chroma Separator The CS7666 accepts up to 10-bit MYCG image data from a CCD digitizer such as the CS7615. suitable CCD analog processing unit. The CS7666 internally converts the four-color CCD MYCG inDS302PP1 terlaced image data into the various color space formats. These include RGB and YUV, as well as YCrCb. The individual image adjustments are performed in the most appropriate color space representation. Ultimately the image is converted to YCrCb format for outputting data. Color Saturation Control Color saturation control is via the Red Saturation and the Blue Saturation control register addresses 0Ah and 0Bh. White Balance and Gamma Correction The red and blue color balances can be adjusted through the I2C control port. During the AWB (automatic white balance) sequence the red level is adjusted to minimize the (Y-R) difference component; similarly the blue level is adjusted to minimize the (Y-B) color difference component. An automatic white balance is initiated by writing a 1 to register 05h bit 1. For manual control, the red balance is accessed through register 08h, and the blue balance is accessed through register 09h. Gamma correction is provided to offset the non-linear illumination profile of the display device. Separate 256 entry tables are supplied for red, green, and blue. Each entry is 8-bits. The gamma table is programmed through register 0Ch. The write format is similar to the write format described in the normal I2C operation section later in this document. The first byte contains the CS7666 device address and write bit, the second byte contains the CS7666 gamma table register address (0Ch), the third byte determines which gamma RAM to update (red, green, and blue), the next 256 bytes contain the gamma table entries. The blue gamma RAM is selected by setting register 0Ch bit 0 to a one; the green gamma RAM is selected by setting register 0Ch bit 1 to a one; and the red gamma RAM is selected by setting register 0Ch bit2 to a one. Any, or all of the gamma RAMs may be selected . The most common implementation is 15 CS7666 to write the same gamma table to all 3 RAMs by setting bits 0-2 high. The gamma table itself is loaded from low to high. The first byte after the RAM selection byte will correspond to the value used when the input data is 00h, the 256th byte after the RAM selection byte will correspond to the value used when the input data is FFh. INTERNAL REGISTER STRUCTURE AND USER INTERFACE The gamma table is read in a similar manner. However, certain restrictions are made to reads. First, the gamma RAMs may only be read one at a time (RAM selection byte = 01,02,04 only) and, second, the gamma table may only be read when gamma correction is disabled (register 05 bit2 = 0). The CS7666 has two I2C ports: (1) a slave I2C port called the primary I2C port, and (2) a secondary I2C port with limited I2C master capabilities. The primary I2C port allows an external controller to control the CS7666. It is assumed the external controller will also directly control any other I2C slave devices on the camera board. This is the normal I2C operation mode of CS7666. The secondary I2C port, on the other hand, may be used to control all the other slave devices on a camera board through the CS7666 only. This feature is useful when the external I2C controller is used to control multiple cameras. When used in this configuration the 4BYTEMODE pin (pin 1) of the CS7666 must be tied high and the device is operated in four-byte mode. Chroma Kill As the brightness of an image increases, the green, yellow, cyan, and magenta pixels within the CCD array will saturate at different intensity levels. As a result, a highly illuminated object or light source may start to look cyan. To overcome this effect, an internal Chroma killer circuit compares the luma and chroma values of each pixel to a set of programmable thresholds. If the pixel’s luma value is greater than the Y_THR value (register 27h) and its Cr and Cb values are between the CR_THR_H , CR_THR_L , CB_THR_H, and CB_THR_L threshold values respectively, then that pixel will lose its chroma value (become white.) These thresholds are stored in registers 27h - 2Ch. Internal Filters The CS7666 has an internal low-pass chroma filter to reduce the effects of color aliasing. This filter is enabled by writing a value of 0 to bit 4 of register 05h. The CS7666 also contains a luma peaking filter to enhance the edges of blurred images. This filter is enabled by setting register 05h bit 3 to a value of 0. 16 The user interface describes the user’s external view of the CS7666 and the basic control operations. These areas include digital data output modes and organization, timing and synchronization signals, I2C interface, and miscellaneous controls. Operating CS7666 in Normal I2C Configuration (Three-Byte Mode) In normal mode, the CS7666 is connected as a slave device to an external I2C controller through the primary I2C port. The connection is done via a two-wire serial bus. Other I2C devices on the camera may also share the same serial bus. The external controller communicates with the I2C devices by sending and receiving short packets of 8-bit words in accordance with the I2C protocol. The packets contain the station address of the target device, the desired register address, and data. There are three packet formats: WRITE format, ADDRESS SET format, and READ format. Each packet is addressed to a device by the station address. The LSB of the station address is the R/W (data direction) bit. This bit is set LOW in the WRITE and ADDRESS SET packets, and it is set DS302PP1 CS7666 HIGH for READ packets. The master can read and write to non-existent registers within the selected device. WRITE operations will have no effect; READ operations will return a value of 00h. Byte Sequence WRITE Format Packet Detail First Byte Station Address with LSB Set LOW Second Byte Device Register Address (0..255) Third Byte Register Data (0..255) Table 8. WRITE Format Packet Station Address Each device on the I2C bus has a unique 7-bit address. An eighth bit, the R/W bit, determines if the current data transfer writes data to the slave device or reads data from the slave device. It is common to represent the station address and R/W bit as two 8bit station addresses, one address for write accesses and another address for read accesses. We will follow this practice. The CS7666 default station address is 34h for writes and 35h for reads. The station address can be changed by writing a new station address to register FFh. The value written to this register does not include the R/W bit. For example. The default station address (34h write / 35h read) will be stored as 1Ah in register FFh. Write Operations in Three-Byte Mode The WRITE format consists of a three-byte packet. The first byte is the station address with the data direction bit set LOW to indicate a write. The second byte is the device register address (0..255). The third byte is the register data (0..255). No additional bytes are allowed. Address Set Operation The ADDRESS SET format consists of a two-byte packet which sets the address of a subsequent READ operation. The first byte of the Station Address with the LSB (data direction bit) set LOW to indicate a write operation. The second byte is the register address (0..255). The ADDRESS SET format is the same as the WRITE format, without the register data (third byte). Byte Sequence First Byte Second Byte ADDRESS SET format Packet Details Station Address with LSB Set LOW Device Register Address (0..255) Table 9. ADDRESS SET Format Packet Operation Read Operations in Three-Byte Mode The READ operation may consist of two or more bytes. The first byte is the station address with the LSB (data direction bit) set HIGH indicating a read operation. The addressed device then sends one or more bytes back from the register last addressed by the previous WRITE operation or the previous ADDRESS SET operation. EPROM CS7615 Byte Sequence READ Format Packet Details First Byte Station Address with LSB set HIGH; Source Device then Returns One Byte of Register Data (0..255) Second Byte Returned data from CS7666 primary I2C CS4954 secondary I2C CS7666 External controller To other sub-systems Figure 7. I2C configuration showing primary and secondary I2C busses. DS302PP1 Table 10. READ Format Packet. Operating CS7666 in Four-Byte I2C Configuration In this configuration the external controller talks only to the CS7666 through the primary I2C interface. All the other slave devices on the camera 17 CS7666 board are tied to the secondary I2C port of the CS7666. WRITE and READ packets only are defined in four-byte mode. Independent address set operations to slave devices on the secondary I2C bus is not allowed in four-byte mode. Four-byte mode is active when the 4BYTEMODE pin (pin 1) is logic high. Write Operations in Four-Byte mode All WRITE operations from an external controller, through the CS7666, to any slave device must use the four-byte mode; this includes writing to the CS7666 itself. The external controller sends a fourbyte WRITE command to the CS7666 which initiates a WRITE operation to the destination slave device and sets the I2CBUSY bit in the status register (01h). The I2CBUSY bit is cleared when the write operation on the secondary bus is complete. The External controller can poll the status register to check if the CS7666 has completed the command. The CS7666 has a one command buffer which allows the external controller to queue one additional command while the current command is still being executed. If more than one command is sent before the I2CBUSY bit is cleared, the CS7666 saves only the last command and executes it after the current one is completed. Commands that involve writing or reading only to CS7666 registers are not put in the queue but are executed immediately without affecting any transactions occurring on the master I2C interface. Any attempt by the external I2C controller to write to the CS7666 registers while the CS7666 is busy initializing from an external EEPROM will be ignored. However, reads from the CS7666 are allowed during this time. If, during a READ or WRITE operation to a slave device, the CS7666 fails to receive an acknowledge bit the execution of the command is aborted and the NODEV bit in the status register is set high. This 18 bit remains set unless it is explicitly cleared by writing to it or a new command is written to CS7666. Byte Sequence WRITE Format Packet Detail First Byte Station Address of CS7666 with LSB Set LOW Second Byte Station Address of target slave device with LSB Set LOW Third Byte Device Register Address (0..255) Fourth Byte Register Data (0..255) Table 11. Four-byte WRITE Format Packet Read Operations in Four-Byte Mode The READ operation in four-byte mode first requires a three-byte READ-TRIGGER packet to the CS7666. The first byte is the station address of the CS7666 with the LSB set LOW. The second byte is the target slave device’s station address with the LSB (data direction bit) set HIGH. The third byte is the register address (0..255). Byte Sequence First Byte Second Byte Third Byte READ-TRIGGER format Packet Details CS7666 Station Address with LSB Set LOW Target device Station Address with LSB Set HIGH Device Register Address (0..255) Table 12. READ-TRIGGER packet in four-byte mode The READ-TRIGGER packet initiates a READ operation by the CS7666 from the target slave device on the secondary I2C bus. The status register in the CS7666 may be checked to see if the read operation has been completed. The I2CBUSY bit in status register 01h is set to zero when the operation is completed. On completion of a read cycle from the target device, the CS7666 places the data read into the Slave Data Hold register at address 19h. The external controller can read this data through the primary I2C port. This requires first performing an ADDRESS SET operation to set the address to 19h and DS302PP1 CS7666 then sending a one-byte station address indicating read to the CS7666. The data from register 19h is then returned by the CS7666. Byte Sequence WRITE Format Packet Detail First Byte Station Address of CS7666 with LSB Set LOW Second Byte Station Address of CS7666 with LSB Set LOW Third Byte Slave Data Hold reg. address 19h Table 13. Address Set for Slave Data Hold register in Four-byte mode Byte Sequence READ Format Packet Details First Byte CS7666 Station Address with LSB set HIGH. Second Byte Returned data from register 19h of CS7666 Table 14. READ Format Packet. Initializing Slave Devices on Secondary I2C bus from an EPROM An EPROM may be attached to the secondary I2C bus for initialization purposes. Resetting the CS7666 initiates a download of register values from the EPROM into any of the slave devices on the secondary I2C bus. The EPROM is assumed to be at station address A0h. If during initialization, the CS7666 does not receive an acknowledge bit from the EPROM, all transactions with the EPROM are aborted and the NODEV status bit is set in status register at address 01h. The data within the EPROM is formatted in threebyte packets that represent the destination address, register address, and data. After reading a packet, the CS7666 initiates an I2C bus cycle using the first byte as the device station address, the second byte as the device register address, and the third byte as the data being written to the device. If an acknowledge is received from the target device, the CS7666 will fetch the next 3 bytes from the EPROM and repeat the process. The only exception being the gamma table whose entire 256 bytes is transferred in one I2C write cycle. This process will continue DS302PP1 until the total number of packets read equals the value in the EEPROM count register (registers 1Ah and 1Bh), a HALT command is executed, or no acknowledge is received from the target device. While the CS7666 is downloading from the EPROM, the INITACT bit (register 01h bit3) is set in the status register of CS7666. All attempts to write to CS7666 registers by an external controller will be ignored during this time. Controlling the Configuration Process The simplest configuration would consist of an EPROM with one configuration file. In this case, the first commands in the EPROM should write the total number of packets in the EEPROM. This data is written to the EEPROM count high and low byte registers (registers 1Ah and 1Bh). Subsequent bytes would contain all the necessary data to configure the camera. This data will be read in a sequential fashion. If, however, multiple configurations are desired, the EEPROM may be programmed with multiple sets of data, and the CS7666 programmed to select one of 8 configurations. The CS7666 incorporates 3 commands to handle multiple configurations: SKIP, JUMP, and HALT. The SKIP command tells the CS7666 to skip to the address within the EEPROM specified by the Configuration Control registers (30h - 3Fh). The Configuration Control registers are used in pairs to provide a 11-bit EEPROM address. The Configuration Index register determines which two of the 8 pairs will be used. The Configuration Index Register is loaded automatically after reset by the CS7666. The CS7666 will attempt a read cycle from the parallel I/O port of a Crystal CS495X series video encoder or SAA8574 I2C port expander from Philips Semiconductors. If the read cycle is successful, the Configuration Index register will contain the state of the lower 3 bits of the parallel I/O port. If both the 19 CS7666 SAA8574 and a CS495X series part are present, the CS495X series part I/O port value will be used. A set of shunts or DIP switches attached to the I/O port provides a convenient way to select up to 8 configurations. The SKIP command is executed by writing a 1 to bit 1 of the EEPROM Control register (42h). The JUMP is similar to the SKIP command. The user loads a jump address into the Jump Control registers (40h and 41h) and then executes the JUMP command by setting bit 2 of the EEPROM Control register (42h) to a 1. The jump command may be used to reduce the amount of required EEPROM space by allowing multiple configurations to share common data. For example, three configurations may be necessary to adjust for three different CCD timings, but they may all share a common gamma table. The HALT command is used to stop the execution of the boot state machine. When all necessary data has been read from the EEPROM, writing a 1 to bit 0 (HALT) of the EEPROM Control register will safely stop the boot process. EPROM Block 000 (binary) Address 00h CS7666 station address[7] +W 1Ah (addrs of low byte Count) count value CS7666 station address[7] +W 1Bh (addrs of high byte Count) count value Dest. station address + W Dest. device address data value Dest. station address + W Figure 8. Map of EPROM table for initialization of registers The total number of packets that may be stored in the external EEPROM is 2k/3 or 682 3-byte commands. Gamma table packets contain 259bytes. CS7666 station address[7] +W A typical map of the EPROM table is shown in Figure 8. The only exception to this organization is data for the CS7666 gamma table. The data for the gamma table is organized as shown in Figure 9. data [gamma loc 00h] 0Ch (gamma reg. addrs) data = select RGB ram data [gamma loc 01h] Reserved Registers and Test Pins To ensure proper operation of the CS7666, connect SCANMODE (pin 53) and SCANENABLE (pin 64) to ground, and connect TESTPINB (pin 60) and TRANSP (pin 61) to VDD. Registers 23h - 26h must be set to a value of FFh after reset. All other reserved registers may be left in their default states. 20 data [gamma loc FFh] Figure 9. Map of EPROM table for storing gamma ram initialization data. DS302PP1 CS7666 Master Reset Register (00h) 7 res MR 6 res 5 res 4 res Reserved 3 res 2 res 1 res 0 MR W Setting bit MR0 to logic high will initiate a CS7666 master reset equivalent to executing an external reset using the RESET pin. All registers will be placed in their default state, and the download of any external EPROM present on the secondary I2C bus will be initiated. The bit is selfcleared. Status Register (01h) 7 res Reserved 6 P4BYTE R 5 INTERP R 4 HIZENB R 3 INITACT R 2 I2CBUSY R 1 NODEV R 0 EVNFLD R EVNFLD Logic high indicates even field of interline-transfer CCD. Logic low indicates odd field of interline-transfer CCD. This bit provides a course means of synchronizing to the field rate. NODEV Logic high indicates that the addressed slave device on the secondary I2C bus did not respond. I2CBUSY Logic high indicates that the CS7666 secondary I2C master is busy accessing the addressed slave device. INITACT Logic high indicates the CS7666 master is busy initializing registers from the external I2C EPROM on the secondary I2C bus (if present). HIZENB Pin 63 status. INTERP Pin 54 status. P4BYTE Pin 1 status. PIN I/O Control (02h) 7 res 6 res 5 res Reserved 4 res 3 res 2 UV_ENB R/W 1 FIELDOUT R/W 0 PLLOUT R/W PLLOUT Logic high enables the PLL clock output to the CS7615 (pin 51). This pin was a NC on the CS7665. FIELDOUT Logic high changes FIELD (pin 62) from an input to an output pin. Default is input. UV_ENB Logic high replaces FIELD with a U/V clock. Digital Gain Register (03h) 7 res DG[4:0] DS302PP1 6 res Reserved 5 res 4 DG4 3 DG3 2 DG2 R/W 1 DG1 0 DG0 Controls the digital gain applied to the Y (Luminance) signal after the RGB to YCrCb converter block. The range of gains are from 0 to 31/8 in increments of 1/8. A gain of 0, indicates no brightness. 21 CS7666 Scaler Control (04h) 7 res 6 res Reserved 5 PAL R/W 4 TRUE_7666 R/W 3 CUSTOM R/W 2 MODE2 1 MODE1 R/W 0 MODE0 MODE[2:0] Selects 1 of 8 pre-defined scaling ratios. CUSTOM When set, scaler uses custom values held in registers 2Dh-2Fh. TRUE_7666 When set, pin 54 is ignored and the CS7666 is in native mode. The default is CS7665 compatibility mode. (pin 54 selects 5:4 scaler.) PAL Logic 1 selects PAL timing for HREF and VREF. Default is NTSC. Feature Control Register (05h) 7 res 6 res Reserved 5 res 4 CHROFF R/W 3 LUMOFF R/W 2 GAMON R/W 1 AWB R/W 0 res Reserved AWB The Automatic White Balance procedure is initiated by pointing to a white scene and setting this bit high. The bit will return a logic high while the AWB procedure is in progress. Setting this bit low will have no effect. This bit will always be read as a “0” when the AWB is not in progress. GAMON The gamma correction from the gamma ram look up table is applied to the video signal in R-GB space when this bit is set high. The gamma ram is a fully user programmable, 256 entry look up table. LUMOFF Setting LUMOFF bit high disables the luma peaking filter. CHROFF Setting the CHROFF bit high disables the chroma low-pass filter for minimizing color aliasing. 22 DS302PP1 CS7666 Operational Control Register (06h) 7 res Reserved 6 ZV R/W 5 INTERL R/W 4 INREF R/W 3 OE R/W 2 POSPIX R/W 1 EBLU R/W 0 OBLU R/W OBLU Logic high causes the first line after VREF of the odd field to be processed as a BLUE line. Logic low causes the first line of the odd field to be processed as a RED line. EBLU Logic high causes the first line after VREF of the even field to be processed as a BLUE line. Logic low causes the first line of the even field to be processed as a RED line. POSPIX Logic “1” causes the first pixel of the first line to be treated as a positive pixel in the color separation block. Logic “0” causes the first pixel to be treated as a negative pixel. Try toggling this bit if the colors appear “reversed”. OE The Output Enable Bit operates in conjunction with the external Output Enable Pin, as illustrated in Table 15. OE Bit OE Pin 0 0 1 1 0 1 0 1 Digital Outputs Enabled High-Z High-Z Enabled Table 15. OE Pin and Bit Operation INREF Logic “1” causes CS7666 to accept HREF input and VREF input pins as the reference inputs signals. EAV and SAV codes in the CCD data stream are ignored. Logic “0” causes the internal de-formatter to decode and follow the embedded EAV and SAV codes sent from the CCD digitizer (as with the CS7615). INTERL Logic “0” places the digital outputs in interleaved mode with alternate Y and CrCb data on the DO[A0..A9] 10-Bit output. Logic “1” places the digital outputs in parallel mode with Y data on DO[A0..A9] and CrCb on the DO[B0..B9] outputs. ZV A Logic “1” causes VREFOUT pin to output a VSYNC signal compatible with ZV port specifications as well as many composite video encoders. DS302PP1 23 CS7666 Operational Control Register II (07h) 7 TEST_AA R/W 6 CLIP_OFF R/W 5 H_SFT1 4 H_SFT0 3 V_INV R/W R/W 2 H_INV R/W 1 VS_SEL R/W 0 HS_SEL R/W HS_SEL Logic 1 causes HSYNC to be output on pin 31. Logic low causes HREF (horizontal blank) to be output on pin 31. VS_SEL L.ogic 1 causes VSYNC to be output on pin 30. Logic low causes VREF (vertical blank) to be output on pin 30. H_INV Logic 1 inverts the polarity of pin 31. V_INV Logic 1inverts the polarity of pin 30. H_SFT[1:0] Shifts the the signal on pin 30 from 0 to 3 clock cycles. CLIP_OFF When set, excludes only 00 and FF from output data. Otherwise ITU BT TEST_AA This bit is reserved for test purposes and may be set as a 1 or a 0. Red Balance Register (08h) 7 RB7 6 RB6 5 RB5 4 RB4 3 RB3 2 RB2 1 RB1 0 RB0 R/W RB[7:0] The Red Balance register controls the red contribution to the R-Y chrominance signal. When the register value is 00h, the red contribution is minimized; when the register value is FFh, the red contribution is maximized. When the AWB correction is in progress, this register value is adjusted such that the absolute magnitude of the R-Y signal is minimized. Blue Balance Register (09h) 7 BB7 6 BB6 5 BB5 4 BB4 3 BB3 2 BB2 1 BB1 0 BB0 R/W BB[7:0] The Blue Balance register controls the blue contribution to the B-Y chrominance signal. When the register value is 00h, the blue contribution is minimized; when the register value is FFh, the blue contribution is maximized. When the AWB correction is in progress, this register value is adjusted such that the absolute magnitude of the B-Y signal is minimized. Red Saturation Register (0Ah) 7 RS7 6 RS6 5 RS5 4 RS4 3 RS3 2 RS2 1 RS1 0 RS0 R/W RS[7:0] 24 The Red Saturation register value controls the amplitude of the R-Y chrominance signal. When the register value is 00h, the amplitude of the R-Y is minimized; when the register value is FFh, the amplitude of the R-Y is maximized. DS302PP1 CS7666 Blue Saturation Register (0Bh) 7 BS7 6 BS6 5 BS5 4 BS4 3 BS3 2 BS2 1 BS1 0 BS0 R/W BS[7:0] The Blue Saturation register value controls the amplitude of the B-Y chrominance signal. When the register value is 00h, the amplitude of the B-Y is minimized; when the register value is FFh, the amplitude of the B-Y is maximized. Gamma Correction Register (0Ch) Writing to the gamma register (0Ch) selects the R, G, and/or B ram. Continuing data writes without sending a stop bit after the register write results in writes to the ram locations starting with 00h and continuing to FFh. Reads from register 0Ch function in a similar way. NOTE: All three gamma rams may be selected for simultaneous writes, but read should be done one ram table at a time. 7 GC7 6 GC6 5 GC5 4 GC4 3 GC3 2 GC2 1 GC1 0 GC0 R/W GC0 Logic “1” selects BLUE gamma ram for subsequent access. GC1 Logic “1” selects GREEN gamma ram for subsequent ram access. GC2 Logic “1” selects RED gamma ram for subsequent ram access. GC[0:7] Provide R/W access to ram after gamma ram table has been selected. Test Control A Register (0Eh) This register is reserved Test Control B Register (0Fh) This register is reserved. YR Coefficient Register (10h) 7 6 5 4 YR7 YR6 YR5 YR4 3 2 1 0 YR3 YR2 YR1 YR0 R/W Color separation and color space conversion coefficient. CrR Coefficient Register (11h) 7 6 5 4 3 2 1 0 CrR7 CrR6 CrR5 CrR4 CrR3 CrR2 CrR1 CrR0 R/W Color separation and color space conversion coefficient. DS302PP1 25 CS7666 CbR Coefficient Register (12h) 7 6 5 4 3 2 1 0 CbR7 CbR6 CbR5 CbR4 CbR3 CbR2 CbR1 CbR0 3 2 1 0 YG3 YG2 YG1 YG0 3 2 1 0 CrG3 CrG2 CrG1 CrG0 R/W Color separation and color space conversion coefficient. YG Coefficient Register (13h) 7 6 5 4 YG7 YG6 YG5 YG4 R/W Color separation and color space conversion coefficient. CrG Coefficient Register (14h) 7 6 5 4 CrG7 CrG6 CrG5 CrG4 R/W Color separation and color space conversion coefficient. CbG Coefficient Register (15h) 7 6 5 4 3 2 1 0 CbG7 CbG6 CbG5 CbG4 CbG3 CbG2 CbG1 CbG0 3 YB3 2 YB2 1 YB1 0 YB0 3 CrB3 2 CrB2 1 CrB1 0 CrB0 R/W Color separation and color space conversion coefficient. YB Coefficient Register (16h) 7 YB7 6 YB6 5 YB5 4 YB4 R/W Color separation and color space conversion coefficient. CrB Coefficient Register (17h) 7 CrB7 6 CrB6 5 CrB5 4 CrB4 R/W Color separation and color space conversion coefficient. 26 DS302PP1 CS7666 CbB Coefficient Register (18h) 7 CbB7 6 CbB6 5 CbB5 4 CbB4 3 CbB3 2 CbB2 1 CbB1 0 CbB0 R/W Color separation and color space conversion coefficient. Slave Data Hold Register (19h) When an external I2C controller initiates a register read from a slave device on the secondary I2C bus through CS7666, the returned data is placed in this register. The external controller may then read the data from the Slave Data Hold register. This register is read only. EPROM Count Low Byte Register (1Ah) Lower byte of the number of triple-bytes to be read from EPROM upon reset of CS7666. This register is read only. EPROM Count High Byte Register (1Bh) Upper byte of the number of triple-bytes to be read from EPROM upon reset of CS7666. This register is read only. Version (Major) Register (1Ch) The major version register (device ID) in the CS7666 is assigned the value FEh. This register is read only. Version (Minor) Register (1Dh) The minor version register in CS7666 rev A. is assigned the value 00h. With each minor revision the value is increased by 1. This register is read only. Low Power Register (20h) 7 res PD 6 res 5 res 4 res Reserved 3 res 2 res 1 res 0 PD R/W Setting bit PD to “1” will place the CS7666 in low power mode. Test Enable Register (21h) This register is reserved. Reserved Register (22h) This register is reserved and returns a valud of 00 when read. Test_AA1 (23h) This register is reserved and must be set to FFh for normal operation. Test_AA2 (24h) This register is reserved and must be set to FFh for normal operation DS302PP1 27 CS7666 Test_AA3 (25h) This register is reserved and must be set to FFh for normal operation Test_AA4 (26h) This register is reserved and must be set to FFh for normal operation Flare Control 1 (27h) 7 Y_THR9 6 Y_THR8 5 Y_THR7 4 Y_THR6 3 Y_THR5 2 Y_THR4 1 Y_THR3 0 Y_THR2 R/W Y_THR[9:2] Flare control filter Y threshold bits 9-2 (MSB). (Bits 1 and 0 set to 0.) Flare Control 2 (28h) 7 Cr_L9 6 Cr_L8 5 Cr_L7 4 Cr_L6 3 Cr_L5 2 Cr_L4 1 Cr_L3 0 Cr_L2 2 Cb_L4 1 Cb_L3 0 Cb_L2 R/W Cr_L[9:2] Flare control filter Cr low threshold bits 9-2 (MSB). Flare Control 3 (29h) 7 Cb_L9 6 Cb_L8 5 Cb_L7 4 Cb_L6 3 Cb_L5 R/W Cb_L[9:2] Flare control filter Cb low threshold bits 9-2 (MSB). (Bits 1 and 0 set to 0.) Flare Control 4 (2Ah) 7 Cr_H9 6 Cr_H 5 Cr_H7 4 Cr_H6 3 Cr_H5 2 Cr_H4 1 Cr_H3 0 Cr_H2 2 Cb_H4 1 Cb_H3 0 Cb_H2 R/W Cr_H[9:2] Flare control filter Cr high threshold bits 9-2 (MSB). Flare Control 5 (2Bh) 7 Cb_H9 6 Cb_H8 5 Cb_H7 4 Cb_H6 3 Cb_H5 R/W Cb_H[9:2] 28 Flare control filter Cb high threshold bits 9-2 (MSB). (Bits 1 and 0 set to 0.) DS302PP1 CS7666 Flare Control 6 (2Ch) 7 Cb_H1 6 Cb_H0 5 Cr_H1 R/W 4 Cr_H0 3 Cb_L1 R/W 2 Cb_L0 1 Cr_L1 R/W Cr_L[1:0] Flare control filter Cr low threshold bits 1 and 0. Cb_L[1:0] Flare control filter Cb low threshold bits 1 and 0. Cr_H[1:0] Flare control filter Cr high threshold bits 1 and 0. Cb_H[1:0] Flare control filter Cb high threshold bits 1 and 0. 0 Cr_L0 R/W Scaler Control 1 (2Dh) 7 BYPASS1 6 BYPASS0 R/W 5 res Reserved 4 PLL_M4 3 PLL_M3 2 PLL_M2 R/W 1 PLL_M1 PLL_M[4:0] This is the PLL M value when the CUSTOM bit (bit 3 register 04h) is set. BYPASS[1:0] See PLL section. 0 PLL_M0 Scaler Control 2 (2Eh) 7 HALF R/W 6 res 5 res 4 PLL_N4 3 PLL_N3 Reserved 2 PLL_N2 R/W 1 PLL_N1 PLL_N[4:0] This is the PLL N value when the CUSTOM bit (bit 3 register 04h) is set. HALF Sets the internal PLL reference clock to 1/2 the input clock. 0 PLL_N0 Scaler Control 3 (2Fh) 7 OFFSET7 6 OFFSET6 5 OFFSET5 4 OFFSET4 3 OFFSET3 2 OFFSET2 1 OFFSET1 0 OFFSET0 2 SKP010 1 SKP09 R/W 0 SKP08 R/W OFFSET[7:0] This value controls the offset fo the internal Scaler. Configuration Control 0 (30h) 7 res 6 res 5 res Reserved 4 res 3 res This register contains the 3 MSBs of the EEPROM address used when the SKIP bit is set (bit1 register 42h) and the Configuration Index Register (43h) is set to 00h. DS302PP1 29 CS7666 Configuration Control 1 (31h) 7 SKP07 6 SKP06 5 SKP05 4 SKP04 3 SKP03 2 SKP02 1 SKP01 0 SKP00 R/W This register contains the 8 LSBs of the EEPROM start address used when the SKIP bit is set (bit1 register 42h) and the Configuration Index Register (43h) is set to 00h. Configuration Control 2 (32h) 7 res 6 res 5 res Reserved 4 res 3 res 2 SKP110 1 SKP19 R/W 0 SKP18 This register contains the 3 MSBs of the EEPROM address used when the SKIP bit is set (bit1 register 42h) and the Configuration Index Register (43h) is set to 01h. Configuration Control 3 (33h) 7 SKP17 6 SKP16 5 SKP15 4 SKP14 3 SKP13 2 SKP12 1 SKP11 0 SKP10 R/W This register contains the 8 LSBs of the EEPROM start address used when the SKIP bit is set (bit1 register 42h) and the Configuration Index Register (43h) is set to 01h. Configuration Control 4 (34h) 7 res 6 res 5 res Reserved 4 res 3 res 2 SKP210 1 SKP29 R/W 0 SKP28 This register contains the 3 MSBs of the EEPROM address used when the SKIP bit is set (bit1 register 42h) and the Configuration Index Register (43h) is set to 02h. Configuration Control 5 (35h) 7 SKP27 6 SKP26 5 SKP25 4 SKP24 3 SKP23 2 SKP22 1 SKP21 0 SKP20 R/W This register contains the 8 LSBs of the EEPROM start address used when the SKIP bit is set (bit1 register 42h) and the Configuration Index Register (43h) is set to 02h. Configuration Control 6 (36h) 7 res 6 res 5 res Reserved 4 res 3 res 2 SKP310 1 SKP39 R/W 0 SKP38 This register contains the 3 MSBs of the EEPROM address used when the SKIP bit is set (bit1 register 42h) and the Configuration Index Register (43h) is set to 03h. 30 DS302PP1 CS7666 Configuration Control 7 (37h) 7 SKP37 6 SKP36 5 SKP35 4 SKP34 3 SKP33 2 SKP32 1 SKP31 0 SKP30 R/W This register contains the 8 LSBs of the EEPROM start address used when the SKIP bit is set (bit1 register 42h) and the Configuration Index Register (43h) is set to 03h. Configuration Control 8 (38h) 7 res 6 res 5 res Reserved 4 res 3 res 2 SKP410 1 SKP49 R/W 0 SKP48 This register contains the 3 MSBs of the EEPROM address used when the SKIP bit is set (bit1 register 42h) and the Configuration Index Register (43h) is set to 04h. Configuration Control 9 (39h) 7 SKP47 6 SKP46 5 SKP45 4 SKP44 3 SKP43 2 SKP42 1 SKP41 0 SKP40 R/W This register contains the 8 LSBs of the EEPROM start address used when the SKIP bit is set (bit1 register 42h) and the Configuration Index Register (43h) is set to 04h. Configuration Control 10 (3Ah) 7 res 6 res 5 res Reserved 4 res 3 res 2 SKP510 1 SKP59 R/W 0 SKP58 This register contains the 3 MSBs of the EEPROM address used when the SKIP bit is set (bit1 register 42h) and the Configuration Index Register (43h) is set to 05h. Configuration Control 11 (3Bh) 7 SKP57 6 SKP56 5 SKP55 4 SKP54 3 SKP53 2 SKP52 1 SKP51 0 SKP50 R/W This register contains the 8 LSBs of the EEPROM start address used when the SKIP bit is set (bit1 register 42h) and the Configuration Index Register (43h) is set to 05h. Configuration Control 12 (3Ch) 7 res 6 res 5 res Reserved 4 res 3 res 2 SKP610 1 SKP69 R/W 0 SKP68 This register contains the 3 MSBs of the EEPROM address used when the SKIP bit is set (bit1 register 42h) and the Configuration Index Register (43h) is set to 06h. DS302PP1 31 CS7666 Configuration Control 13 (3Dh) 7 SKP67 6 SKP66 5 SKP65 4 SKP64 3 SKP63 2 SKP62 1 SKP61 0 SKP60 R/W This register contains the 8 LSBs of the EEPROM start address used when the SKIP bit is set (bit1 register 42h) and the Configuration Index Register (43h) is set to 06h. Configuration Control 14 (3Eh) 7 res 6 res 5 res Reserved 4 res 3 res 2 SKP710 1 SKP79 R/W 0 SKP78 This register contains the 3 MSBs of the EEPROM address used when the SKIP bit is set (bit1 register 42h) and the Configuration Index Register (43h) is set to 07h. Configuration Control 15 (3Fh) 7 SKP77 6 SKP76 5 SKP75 4 SKP74 3 SKP73 2 SKP72 1 SKP71 0 SKP70 R/W This register contains the 8 LSBs of the EEPROM start address used when the SKIP bit is set (bit1 register 42h) and the Configuration Index Register (43h) is set to 07h. Jump Control 0 (40h) 7 res 6 res 5 res Reserved 4 res 3 res 2 JMP10 1 JMP9 R/W 0 JPM8 This register contains the 3 MSBs of the EEPROM address used when the JUMP bit is set (bit2 register 42h). Jump Control 1 (41h) 7 JMP7 6 JMP6 5 JMP5 4 JMP4 3 JMP3 2 JMP2 1 JMP1 0 JPM0 R/W This register contains the 8 LSBs of the EEPROM start address used when the JUMP bit is set (bit2 register 42h). 32 DS302PP1 CS7666 EEPROM Control (42h) 7 res 6 res 5 res 4 res 3 res 2 JUMP 1 SKIP R/W 0 HALT State machine commands for loading EEPROM data after reset. (see extended EPROM configuration) HALT Writing a 1 to this bit stops the reading of EEPROM data. SKIP Writing a 1 to this bit forces the next EEPROM read cycle to occur at the address held in the Configuration Control (n) register, where "n" is the value held in the Configuration Index Register (43h) JUMP Writing a 1 to this bit forces the next EEPROM access to occur at the address held in registers 40h and 40h. Configuration Index Register (43h) 7 res 6 res 5 res Reserved 4 res 3 res 2 SW2 1 SW1 R/W 0 SW0 This contains the DIP switch status at reset. (see extended EPROM configuration) The value of this register selects the appropriate Configuration register when the SKIP command is executed. Reserved Registers (44h - FEh) These registers are reserved and return a value of 00h when read. Station Address Register (FFh) 7 res Reserved 6 SA6 5 SA5 4 SA4 3 SA3 R/W 2 SA2 1 SA1 0 SA0 CS7666 station address, 7 MSBs (the LSB of the complete 8-bit station address is determined by the LSB which acts as a read/write direction bit). DS302PP1 33 CS7666 PIN DESCRIPTIONS GND CLKIN2X VDD CLKIN CLKOUT INTERP TESTPINB TRANSP FIELD OE SCANENABLE 4BYTEMODE DOA9(MSB) DOA8 DOA7 DOA6 DOA5 DOA4 DOA3 DOA2 GND VDD DOA1 DOA0(LSB) DOB9(MSB) DOB8 DOB7 DOB6 DOB5 DOB4 DOB3 GND VDD DOB2 DOB1 SCANMODE 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 1 48 2 47 3 46 4 45 5 44 6 43 7 8 9 42 64-pin TQFP Top View 10 41 40 39 11 38 12 37 13 36 14 35 15 34 16 33 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 XTAL_OUT CLK_GRG GND ISET SCLSEC SDASEC DI0(LSB) DI1 DI2 DI3 DI4 VDD GND DI5 DI6 DI7 DI8 DI9(MSB) RESET VREFIN HREFIN VREFOUT HREFOUT SCL SDA GND VDD DOB0(LSB) Power Supply Connection VDD - Power Supply, PINS 11, 22, 26, 41, 58. Positive digital supplies. Nominally +5 volts. Pin 58 is an analog supply pin used for the internal PLL but may be connected to the digital supply pins under most circumstances. GND - Digital Ground, PINS 10, 21, 27, 40, 50, 57. Digital ground supplies. Pin 57 is an analog ground pin used for the internal PLL but may be connected to the digital ground pins under most circumstances. 34 DS302PP1 CS7666 Input Data and Clocks DI[9:0] - Digital Mosaic Inputs. CMOS level mosaic coded CCD input data from CCD digitizer CLKIN - Mosaic Input Data Clock, PIN 55. Main system input clock, used to strobe incoming digital CCD mosaic data. The CLKIN frequency is the mosaic input data rate. CLKIN2X - Mosaic Input Data Interpolation Clock, PIN 56. Mosaic input data interpolation clock or crystal oscillator input. Twice the CLKIN input in CS7665 compatibility mode (non-interpolated output data ... see INTERP description). Twice the 5/4 output rate clock when internal 5 to 4 horizontal data rate scaler is in operation (CS7665 compatibility mode.) In CS7666 native mode, this pin operates as the crystal oscillator input pin. The required crystal frequency is 2 X (SCALER RATIO) X (INPUT DATA RATE). For example a 512x492 pixel imager running at 9.818 MHz and scaled by a factor of 5:4 would require 2 X (5/4) X (9.818) = 24.54 MHz. CLK_GRG - CCD Sample Clock, PIN 51. This clock is scaled by the internal PLL and is equal to the CLKIN2X frequency divided by the scaling ratio. This clock is intended to connect to the CS7615 master clock pin (pin 32). XTAL_OUT – Crystal oscillator output, PIN 52. When using the internal crystal oscillator, connect the external crystal to the XTAL_OUT and CLKIN2X pins. HREFIN - Horizontal Input Timing Reference, PIN 32. Active low horizontal input timing reference. Used to synchronize the output timing signals with the incoming mosaic data and timing. When used with CCD digitizers like the CS7615 which imbed the necessary timing signals in the data stream, the HREFIN signal is not needed. VREFIN - Vertical Input Timing Reference, PIN 33. Active low vertical input timing reference. Used to synchronize the output timing signals with the incoming mosaic data and timing. When used with CCD digitizers like the CS7615 which embed the necessary timing signals in the data stream, the VREFIN signal is not needed. I2C Serial Control SDA - Primary I2C Data Bus, PIN 28. Primary I2C data bus. Used with SCL to read and write the internal register set. SCL - Primary I2C Clock, PIN 29. Primary I2C Clock. Used with SDA to read and write the internal register set. DS302PP1 35 CS7666 SDASEC - Secondary I2C Data Bus, PIN 47. Secondary I2C data bus with limited bus mastering capabilities. Used with SCLSEC to read and write I2C devices located on the secondary bus. Various devices can be isolated by the CS7666 from the primary I2C bus. The CS7666 will start reading I2C EPROM devices at addresses A0h after RESET. It will download the EPROM contents into the specified registers inside the secondary bus devices as well as any CS7666 registers specified in the EPROM entries. Devices are typically connected to either the primary or the secondary I2C bus. However, the two busses may be connected together when system design requires the use of EPROM initialization while at the same allowing direct access to all the camera devices from the external I2C controller. SCLSEC - Secondary I2C Clock, PIN 48. Secondary I2C clock with limited bus mastering capabilities. Used with SDASEC to read and write I2C devices located on the secondary bus. Various devices can be isolated by the CS7666 from the primary I2C bus. The CS7666 will start reading I2C EPROM devices at addresses A0h after RESET, and download the EPROM contents into the specified secondary bus registers, as well as any CS7666 registers specified in the EPROM entries. Devices are typically connected to either the primary or the secondary I2C bus. However, the two busses may be connected together when system design requires the use of EPROM initialization while at the same time allowing direct access to all the camera devices from the external I2C controller. 4BYTEMODE - Four-byte Mode I2C Operation Enable, PIN 1. Places CS7666 in the Four-byte mode for I2C transactions on the primary I2C bus. Active high. Digital Video Outputs and Clocking DOA[9:0] - "A" Channel Digital Output Bits. CMOS level 10-bit digital video output channel "A." Either YCrCb interleaved digital video output data, or Y component digital video data is available at this port according to the state of bit 5 in register 06h. DOA0(LSB) is the least significant bit of channel "A"; DOA9(MSB) is the most significant bit of channel "A." DOB[9:0] - "B" Channel Digital Output Bits. CMOS level 10-bit digital video output channel "B." Either logic "0" in interleaved digital video output data mode, or CrCb component digital video data is available at this port according to the state of bit 5 in register 06h. DOB0(LSB) is the least significant bit of channel "B;" DOB9(MSB) is the most significant bit of channel "B." 36 DS302PP1 CS7666 CLKOUT - Digital Output Data Clock, PIN 59. Digital output clock for both channel "A" and channel "B." Output data transitions on the falling edge of CLKOUT and can be latched on the rising edge. In the non-interleaved output mode, the CLKOUT rate is equal to the input mosaic pixel rate multiplied by the scaling ratio currently in use with Y data available on channel "A" and CrCb output data on Channel "B." In interleaved output mode, the CLKOUT rate is equal to twice the input mosaic pixel rate multiplied by the current scaling ratio with Y and CrCb output data available on Channel "A". Output Mode Interleaved, scaler disabled Interleaved, scaler enabled Parallel, scaler disabled Parallel, scaler enabled Mosaic Data Rate 9.818 MHz 9.818 MHz 9.818 MHz 9.818 MHz CLKIN CLKIN2 9.818 MHz 9.818 MHz 9.818 MHz 9.818 MHz 19.63 MHz 24.54 MHz 19.63 MHz 24.54 MHz Channel Channel CLKOUT Horizontal “A” "B” Pixels YcrCb logic "0” 19.63 MHz 512 YcrCb logic "0” 24.54 MHz 640 Y CrCb 9.818 MHz 512 Y CrCb 12.27 MHz 640 Table 16. Example 512x492 Imager Output Options (4:5 scaling ratio chosen) INTERP - Digital Video Horizontal Data Rate Scaler Enable, PIN 54. CMOS input enabling the internal 4:5 horizontal data rate scaler when the CS7666 is in CS7665 compatibility mode (default.) Requires that CLKIN2 be supplied with a 5/2 rate clock relative to the CLKIN clock input which is the incoming CCD mosaic data. This pin control is active logic high. This pin is ignored in CS7666 native mode. HREFOUT - Horizontal Reference Output, PIN 30. CMOS output providing HREF, or alternatively HSYNC horizontal blanking signal. VREFOUT - Vertical Reference Output, PIN 31. CMOS output providing a VREF, or alternatively VSYNC vertical blanking signal. FIELD - Odd/Even Field Indicator, PIN 62. CMOS input/output. As an input, the field pin synchronizes the EAV/SAV timing codes embedded in the output video datastream. As an output, the FIELD indicator changes according to the embedded EAV/SAV timing codes in the input video datastream or the HREFIN and VREFIN inputs. Odd fields are indicated with logic low, and even fields are indicated with logic high. Alternately, the Field pin can be configured as a U/V clock. OE - Output Enable, PIN 63. CMOS input used to place all output pins in a High-Z mode. This control works in conjunction with the OE bit (bit 3)in register 06h. DS302PP1 37 CS7666 Miscellaneous RESET - Master External Reset Control, PIN 34. CMOS input which initiates a complete power-on reset, where all registers are reset to their defaults, and the secondary I2C bus attempts to load any EPROM configuration information. This pin operates in conjunction with bit 0 of register 00h. RESET is an active logic low input. ISET – PLL bias , PIN 49. Connect this pin to analog GND (pin 57) through a 6,000 ohm 1% resistor. SCANMODE - Test Pin, PIN 53. Test pin, connect to GND. TESTPINB - Test Pin, PIN 60. Test pin, connect to VDD. TRANSP - Test Pin, PIN 61. Test pin, connect to VDD. SCANENABLE - Test Pin, PIN 64. Test pin, connect to GND. 38 DS302PP1 CS7666 DEFINITIONS Color Space A color space is a mathematical representation of a set of colors. Three fundamental color models are RGB (used in color computer graphics and color television), YIQ, YUV, or YCrCb (used in broadcast and television systems), and CMYK (used in color printing). RGB Color Space The red, green, and blue (RGB) is widely used throughout computer graphics and imaging. Red, green, and blue are three primary additive colors where the individual components are added together to form the desired color. YUV Color Space The YUV color space is the basic color space used by the PAL (Phase Alternation Line), NTSC (National Television System Committee), and SECAM (Sequential Couleur Avec Memoire or Sequential Color with Memory) composite color video standards. The format conveys intensity in the Y component and color information in the U and V components. In an 8-bit system, where RGB range from code 0 to code 255, Y has a range of code 0 to code 255. The U component ranges over code 0 ± 112 codes, and the V component ranges over code 0 ± 157. YCrCb Color Space The YCrCb color space was developed as part of Recommendation ITU-601 during the development of a world-wide digital component video standard. YCrCb are scaled and offset versions of YUV color space. Y is defined to have a nominal range of code 16 to code 235; Cr and Cb are defined to have a range of code 16 to code 240, with code equal to the zero level. MYCG Colors Standard "color" CCD imagers employ integrated filter dots over the individual pixels. Typically, four color filters are used, Magenta, Yellow, Cyan, and Green. Chroma Block A group of four adjacent CCD pixel with integrated MYCG filter dots. These four pixels are generally formed with two pixels on one horizontal scan line, and two physically just below on the next scan line. There can also be some slight horizontal shift of the pixels to smooth the image. The chroma block is generally processed using a "color separator" into YUV, YCrCb, or RGB color space before any image processing. DS302PP1 39 CS7666 PACKAGE DIMENSIONS 64L TQFP PACKAGE DRAWING E E1 D D1 1 e B ∝ A A1 L INCHES DIM A A1 B D D1 E E1 e L ∝ 40 MIN 0.000 0.002 0.007 0.461 0.390 0.461 0.390 0.016 0.018 0.000 MAX 0.063 0.006 0.011 0.484 0.398 0.484 0.398 0.024 0.030 7.000 MILLIMETERS MIN MAX 0.00 1.60 0.05 0.15 0.17 0.27 11.70 12.30 9.90 10.10 11.70 12.30 9.90 10.10 0.40 0.60 0.45 0.75 0.00 7.00 DS302PP1 • Notes •