CS7654 CIRRUS | Alldatasheet
Document overview
- Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
- PDF pages: 62
Technical content
Features
lITU-601 Compliant Image Formatting lITU-656 and SMPTE-125/M Transports lI2C Control Interface lLimited Secondary I2C Bus Master lAutomatic White Balance lProgrammable Gamma Correction lProgrammable Interpolation lProgrammable Luma Gain and Saturation Control lFully Programmable Color Separation Matrix Coefficients lSupports up to 1440, active pixels per line, with no limitation on Vertical Size lProgrammable "Chroma Kill" circuit lHighly integrated for low part count cameras lThree DACs providing simultaneous composite, S-video outputs lMulti-standard support for NTSC-M, NTSC- JAPAN, PAL (B, D, G, H, I, M, N, Combination N) lOn-chip voltage reference generator modes, tri- state DACs and power down mode.
Description
The CS7654 is a low-power Digital Color-Space Proces- sor for CCD cameras. It provides all the necessary digital image processing for standard four-color interline trans- fer CCD imagers. The CS7654 processes the magenta, yellow, cyan, and green (MYCG) CCD imager data into YCrCb formatted component digital video and into ana- log PAL or NTSC. Internal processing includes color separation, automatic white balance, user programma- ble gamma correction, programmable scaling (interpolation), digital output formatting and encoding function for analog output. Also, a special "Chroma Kill" circuit eliminates false colors during saturation. Video output can be formatted to be compatible with NTSC-M, NTSC-J, PAL-B,D,G,H,I,M,N, and Combination N sys- tems. Closed Caption is supported in NTSC. Three 10- bit DACs provide two channels for an S-Video output port and one composite video outputs.A High-speed I compatible control interface is provided for in system design. A general purpose I/O port is also available to help con- serve valuable board space and to provide up to eight “boot” configurations.The CS7654 is designed to work directly with the CS7615 CCD Imager Analog Processor.
ORDERING INFORMATION
CS7654-KQ 0° to 70° C 64-pin TQFP (10 mm x 10 mm x 1.4 mm) I DEFORMATTER COLOR AND WHITE BALANCE AWB CONTROL GAMMA CORRECTION SCALER OUTPUT FORMATTER I2C INTERFACE REGISTER PLL AND EXTERNAL BLOCK CLOCK TIMING CHROMA VREF/ HREF/ XTAL PRIMARY I2C BUS SECONDARY I2C BUS CCD SEPARATION ANITALIASING VIDEO FORMATTER VSYNC HSYNC INTERPOLATION AND FILTER INTERPOLATION AND DELAY CHROMA LUMA 10-BIT DAC COMPOSITE10-BIT DAC LUMA10-BIT DAC S MOSAIC DATA DRIVER MAY ‘99 DS330PP2
Preliminary product information describes products which are in production, but for which full characterization data is not yet available. Advanced product information describes products which are in development and subject to development changes. Cirrus Logic, Inc. has made best efforts to ensure that the information contained in this document is accurate and reliable. However, the information is subject to change without notice and is provided “AS IS” without warranty of any kind (express or implied). No responsibility is assumed by Cirrus Logic, Inc. for the use of this information, nor for infringements of patents or other rights of third parties. This document is the property of Cirrus Logic, Inc. and implies no license under patents, copyrights, trademarks, or trade secrets. No part of this publication may be copied, reproduced, stored in a retrieval sys- tem, or transmitted, in any form or by any means (electronic, mechanical, photographic, or otherwise). Furthermore, no part of this publication may be used as a basis for manufacture or sale of any items without the prior written consent of Cirrus Logic, Inc. The names of products of Cirrus Logic, Inc. or other vendors and suppliers appearing in this document may be trademarks or service marks of their respective owners
CHARACTERISTICS/SPECIFICATIONS DIGITAL CHARACTERISTICS (TA = 25 °C; VDD = 5 V; CL = 30 pF; Input Levels: logic 0 = 0 V, logic 1 = VDD .) SWITCHING CHARACTERISTICS (TA = 25 °C; VDD = 5 V; CL = 30 pF; Input Levels: logic 0 = 0 V, logic 1 = VDD .) Specifications are subject to change without notice Parameter Symbol Min Typ Max Unit Logic Inputs High-Level Input Voltage V IH VDD - 0.8 - - V Low-Level Input Voltage V IL -- 0 . 8 V Input Leakage Current I IN - - 10.0 µA Input Pin Capacitance C DI -1 0- p F Input Clamp Voltage - -0.7 - V Logic Outputs High-Level Output Source Current @ IOH = 1mA V OH VDD - 0.4 - - V Low-Level Output Sink Current @ IOL = 1mA V OL 0.4 - - V High-Z Leakage Current I Z - - 10.0 µA Parameter Symbol Min Typ Max Unit Digital Input CLKIN2X Frequency Range f CLK2X -2 7 3 0 M H z Input Data setup time, DI[9:0] t S1 5-- n s Input Data hold time, DI[9:0] t H1 5-- n s Digital Output Channel A/B Digital Data Output Clock Interleaved DatafCLKOUT_GRG -- 3 0 M H z Channel A/B Output Hold Time t OH -0- n s Channel A/B Output Propagation Delay t PD -1 . 95 n s Digital Output Rise Time with 30 pF load t R -1 5- n s Digital Output Fall Time with 30 pF load t F -1 5- n s
POWER CONSUMPTION (TA = 25 °C; VDD = 5 V; CL = no load; Input Levels: logic 0 = 0 V, logic 1 = VDD .) Notes: 1. Low-Z - 3 dacs on 2. Output current levels with ISET = 4 KW , VREF = 1.232 V. 3. DACs are set to low impedance mode 4. DACs are set to high impedance mode 5. Times for black-to-white-level and white-to-black-level transitions. Parameter Symbol Min Typ Max Unit Power Supply Supply Voltage VAA 4.75 5.0 5.25 V Digital Supply Current (Encoder) IAA1 - 70 mA Analog Supply (Encoder) Low-Z (Note 1) IAA2 - 100 - mA Power Supply Rejection Ratio PSRR - 0.02 0.05 %/% Normal Mode I DD -1 5 0 2 0 0 m A Low Power Mode I DD -7 1 6 m A Analog Outputs Full Scale Output Current COMP_VID/Y/C (Notes 2, 3) IO 32.9 34.7 36.5 mA Full Scale Output Current COMP_VID/Y/C (Notes 2, 4) IO 8.22 8.68 9.13 mA LSB Current COMP_VID/Y/C (Notes 2, 3) IB 32.2 33.9 35.7 mA LSB Current COMP_VID/Y/C (Notes 2, 4) IB 8.04 8.48 8.92 mA DAC-to DAC Matching MAT - 2 - % Output Compliance VOC 0 - + 1.4 V Output Impedance ROUT - 15 - k W Output Capacitance COUT - - 30 pF DAC Output Delay ODEL - 4 12 nsec DAC Rise/Fall Time (Note 5) TRF - 2.5 5 nsec CLKIN2X CLKIN Mosaic Input Data DI[9:0] tH2 tS2 tH1tS1 CLKOUT Output Data DOA[9:0] DOB[9:0] tPD tOH Input Timing Diagram Output Timing Diagram
POWER CONSUMPTION (Continued) CONTROL PORT CHARACTERISTICS (TA = 25 °C; VDD = 5 V; Input Levels: logic 0 = 0 V, logic 1 = VDD .) Parameter Symbol Min Typ Max Units Voltage Reference Reference Voltage Output VOV 1.170 1.232 1.294 V Rreference Input Current UVC - - 10 uA Static Performance DAC Resolution - - 10 Bits Differential Non-Linearity DNL -1 + 0.5 + 1 LSB Integral Non-Linearity INL - 2 + 1+ 2L S B Dynamic Performance Differential Gain DG - 2 5 % Differential Phase DP - + 0. 5 + 2d e g Hue Accuracy HA - - 2 deg Signal to Noise Ratio SNR 70 - - dB Saturation Accuracy SAT - 1 2 % Parameter Symbol Min Max Unit SCL Clock Frequency f SCL -4 0 0 k H z Bus Free Time Between Transmissions t buf 1.3 - µs Start Condition Hold Time t hdst 0.6 - µs Clock Pulse Width High Low thigh tlow 0.6 1.3 µs µs Setup Time for Repeat Start Condition t sust 0.6 - µs SDAIN Hold Time from SCL Falling t hdd 0- µ s SDAIN Setup Time from SCL Rising t sud 0.1 - µs SDAIN and SCL Rise Time t r -1 . 0 µ s SDAIN and SCL Fall Time t f -0 . 3 µ s Setup Time for Stop Condition t susp 0.6 - µs tbuf thdst thdst tlow tr tf thdd thigh tsud tsust tsusp Stop Start Start Stop Repeated SDA S CL I2C Timing Diagram
RECOMMENDED OPERATING CHARACTERISTICS ABSOLUTE MAXIMUM RATINGS WARNING: Operation at or beyond these limits may result in permanent damage to the device. Normal operation is not guaranteed at these extremes. Parameter Symbol Min Typ Max Unit Power Supply Voltage V DD 4.5 5.0 5.5 V Ground to Ground Voltage Differential - - 10 mV Digital Input Rise/Fall Time - - 10 ns CLKIN Level Setup to CLKIN2X Rising (non-interpolated) t S2 8-- n s CLKIN Level Hold after CLKIN2X Rising (non-interpolated) tH2 8-- n s Digital Input Voltage Range 0 - V DD V Operating Temperature Range T A 0- 7 0 °C Parameter Symbol Min Max Unit Power Supply Voltage V DD -0.3 6.0 V Digital Input Voltage Range GND - 0.3 V DD + 0.3 V Forced Digital Output Current - 50 mA Sustained Digital Output Voltage GND - 0.3 V DD + 0.3 V Output Short Circuit Current - - mA Operating Temperature Range T A 07 0 ° C Lead Solder Temperature (10 s duration) - +260 °C Storage Temperature Range -65 +160 °C
multaneously generates composite analog video. three-pin voltage reference. trates a typical system interconnect. Figure 1. Typical 4-Chip Digital CCD Camera
Figure 2. Horizontal and Vertical Timing States
0 Cb0 0 Start of Digital Video
1 Y0 For VBLANK line 1 to 19
1272 Cb636 636
1273 Y636
1274 Cr636
1275 Y637 637
1276 Cb638 638
1277 Y638
1278 Cr638
1279 Y639 End of Digital VIdeo
Table 1. Detail of Scan Line for 640x480 Image
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 3. 2x Pixel Clock, 10-Bit interleaved Output Format for 640x480 Image Format.
a wide range of pixel and frame rates. Table 2. Default Scaling Modes (Register 04h at SA34h)
The internal operation of the CS7654 can be sepa- rated into several distinct blocks. The following section provides an overview of how these blocks operate and interact. Input Data Format and Chroma Separator The CS7654 accepts up to 10-bit MYCG image data from a CCD digitizer such as the CS7615. The CS7654 internally converts the four-color CCD MYCG interlaced image data into the various color space formats. These include RGB and YUV, as well as YCrCb. The individual image adjust- ments are performed in the most appropriate color space representation. Ultimately the image is con- verted to YCrCb format for outputting digital data. The same digital output data is also encoded in the digital video encoder post processor section and converted to analog NTSC or PAL. White Balance and Gamma Correction The red and blue color balances can be adjusted through the I 2C control port. During the AWB (au- tomatic white balance) sequence the red level is ad- justed 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 at SA 0x34h. For manual control, the red balance is accessed through register 08h, and the blue balance is accessed through reg- ister 09h ( both at SA 0x34h). Gamma correction is provided to offset the non-lin- ear illumination profile of the display device. Sep- arate 256 entry tables are supplied for red, green, and blue. Each entry is 8-bits. The gamma table is programmed through register 0Ch at SA 0x34h. The write format is similar to the write format de- scribed in the normal I 2C operation section later in this document. The first byte contains the CS7654 device address and write bit, the second byte con- tains the CS7654 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 regis- ter 0Ch bit 0 to a one; the green gamma RAM is se- lected by setting register 0Ch bit 1 to a one; and the red gamma RAM is selected by setting register 0Ch bit 2 to a one. Any, or all of the gamma RAMs may be selected . The most common implementation is 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 val- ue used when the input data is FFh. The gamma table is read in a similar manner. How- ever, 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). 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 kill circuit compares the luma and chroma values of each pixel to a set of programma- ble thresholds. If the pixel’s luma value is greater than the Y_THR value (register 27h at SA 0x34h ) 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 at SA 0x34h.
The CS7654 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 01h at SA 0x00h. The CS7654 also contains a luma peaking filter to enhance the edges of blurred imag- es. This filter is enabled by setting register 05h bit 3 to a value of 0 at SA 0x34h. By default the low- pass chrome filter is off and the peaking filter is on. Analog Video Timing Generator All timing generation is accomplished via a 27 MHz input applied to the CLKIN2X pin. The Video Timing Generator is responsible for or- chestrating most of the other modules in the device. It automatically disables color burst on appropriate scan lines and automatically generates serration and equalization pulses on appropriate scan lines. Color Subcarrier Synthesizer The subcarrier synthesizer is a digital frequency synthesizer that produces the appropriate subcarri- er frequency for NTSC or PAL. The CS7654 gen- erates the color burst frequency based on the CLK input (27 MHz). Color burst accuracy and stability are limited by the accuracy of the 27 MHz input. If the frequency varies, then the color burst frequency will also vary accordingly. Controls are provided for phase adjustment of the burst to permit color adjustment and phase com- pensation. Chroma hue control is provided by the CS7654 via a 10-bit Hue Control Register (HUE_LSB and H_MSB). Burst amplitude control is also made available to the host via the 8-bit burst amplitude register (SC_AMP). Horizontal sync to color burst phase adjust is possible by program- ming the SCH register (register 17h, SA 00h). Chroma Path The Video Input Formatter delivers 4:2:2 YUV outputs into separate chroma and luma data paths. The chroma path will be discussed here. The chroma output of the Video Input Formatter is directed to a chroma low-pass 19-tap FIR filter. The filter bandwidth is selected (or the filter can be bypassed) via the CONTROL_1 Register. The passband of the filter is either 650 KHz or 1.3 MHz and the passband ripple is less than or equal to 0.05 dB. The stopband for the 1.3 MHz selection begins at 3 MHz with an attenuation of greater than 35 dB. The stopband for the 650 KHz selection be- gins around 1.1 MHz with an attenuation of greater than 20 dB. The output of the chroma low-pass filter is connect- ed to the chroma interpolation filter in which up- sampling from 4:2:2 to 4:4:4 is accomplished. Following the interpolation filter, the U and V chroma signals pass through two independent vari- able gain amplifiers in which the chroma amplitude can be varied via the U_AMP and V_AMP 8-bit host addressable registers. The U and V chroma signals are fed to a quadrature modulator in which they are combined with the output from the subcarrier synthesizer to produce the proper modulated chrominance signal. The chroma then is interpolated by a factor of two in order to operate the output DACs at twice the pixel rate. The interpolated filters enable running the DACs at twice the pixel rate and this helps re- duce the sinx/x roll-off for higher frequencies and reduces the complexity of the external analog low pass filters. Luma Path Along with the chroma output path, the CS7654 Video Input Formatter initiates a parallel luma data path by directing the luma data to a digital delay line. The delay line is built as a digital FIFO in which the depth of the FIFO replicates the clock period delay associated with the more complex chroma path. Brightness adjustment is also provid- ed via the 8-bit BRIGHTNESS_OFFSET Register.
Following the luma delay, the data is passed through an interpolation filter that has a program- mable bandwidth, followed by a variable gain am- plifier in which the luma dc values are modifiable via the Y_AMP Register. The output of the luma amplifier connects to the sync insertion block. Sync insertion is accom- plished by multiplexing, into the luma data path, the different sync dc values at the appropriate times. The digital sync generator takes horizontal sync and vertical sync timing signals and generates the appropriate composite sync timing (including vertical equalization and serration pulses), blank- ing information, and burst flag. The sync edge rates conform to RS-170A or ITU R.BT601 and ITU R.BT470 specifications. It is also possible to delay the luminance signal, with respect to the chrominance signal, by up to three pixel clocks. This variable delay is useful to offset different propagation delays of the luma baseband and modulated chroma signals. This ad- justable luma delay is available only on the COMP_VID output. Digital to Analog Converters The CS7654 provides three discrete 27 MHz DACs for analog video. The default configuration is one 10-bit DAC for S-video chrominance, one 10-bit DAC for S-Video luminance, one 10-bit DAC for composite output. All three DACs are designed for driving either low-impedance loads (double termi- nated 75W ) or high-impedance loads (double ter- minated 300W ). The DACs can be put into tri-state mode via host- addressable control register bits. Each of the six DACs has its own associated DAC enable bit. In the Disable Mode, the 10-bit DACs source (or sink) zero current. For lower power standby scenarios, the CS7654 also provides power shut-off control for the DACs. Each DAC has an associated DAC shut-off bit. Voltage Reference The CS7654 is equipped with an on-board voltage reference generator (1.232 V) that is used by the DACs. The internal reference voltage is accurate enough to guarantee a maximum of 3% overall gain error on the analog outputs. However, it is possible to override the internal reference voltage by apply- ing an external voltage source to the VREF pin. Current Reference The DAC output current-per-bit is derived in the current reference block. The current step is speci- fied by the size of resistor placed between the ISET_DAC current reference pin and electrical ground. A 4 kW resistor needs to be connected between ISET_DAC pin and GND. The DAC output cur- rents are optimized to either drive a doubly termi- nated load of 75W (low impedence mode) or a double terminated load of 300W (high impedence mode). The 2 output current modes are software se- lectable through a register bit. Note that there are two ISET pins on the device, one for the DACS, and one for the PLL. Closed Caption Insertion The CS7654 is capable of NTSC Closed Caption insertion on lines 21 and 284 independently. Closed captioning is enabled for either one or both lines via the CC_EN [1:0] Register bits and the data to be inserted is also written into the four Closed Caption Data registers. The CS7654, when enabled, automatically generates the seven cycles of clock run-in (32 times the line rate), start bit in- sertion (001), and finally insertion of the two data bytes per line. Data low at the video outputs corre- sponds to 0 IRE and data high corresponds to 50 IRE. There are two independent 8-bit registers per line (CC_21_1 & CC_21_2 for line 21 and CC_284_1 & CC_284_2 for line 284). Interrupts are also pro- vided to simplify the handshake between the driver
software and the device. Typically the host would write all 4 bytes to be inserted into the registers and then enable closed caption insertion and interrupts. As the closed caption interrupts occur the host soft- ware would respond by writing the next two bytes to be inserted to the correct control registers and then clear the interrupt and wait for the next field. Control Registers The control and configuration of the CS7654 is ac- complished primarily through the control register block. All of the control registers are uniquely ad- dressable via the internal address register. The con- trol register bits are initialized during device RESET. See the Programming section of this data sheet for the individual register bit allocations, bit operation- al descriptions, and initialization states. The registers of the CS7654 are located in two sep- arate Station Address ( SA ), the first one at 0x00h and the second one at 0x34h. Be careful to select the proper SA when accessing register because some registers have the same address but are locat- ed in a different Station Address. Note that both sections of this device cannot bear the same I 2C ad- dress. Testability The digital circuits are completely scanned by an internal scan chain, thus providing close to 100% fault coverage. OPERATIONAL DESCRIPTION Reset Hierarchy The CS7654 is equipped with an active low asyn- chronous reset input pin, RESET. RESET is used to initialize the internal registers and the internal state machines for subsequent default operation. See the electrical and timing specification section of this data sheet for specific CS7654 device RESET and power-on signal timing requirements and restric- tions. While the RESET pin is held low, the host interface in the CS7654 is disabled and will not respond to host-initiated bus cycles. All outputs are valid after a time period following RESET pin low. A device RESET initializes the CS7654 internal registers to their default values as described by Ta- ble 13 and 14, Control Registers. In the default state, the CS7654 video DACs are disabled and the device is internally configured to provide blue field video data to the DACs (any input data present on the V [7:0] pins is ignored at this time). Otherwise, the CS7654 registers are configured for NTSC-M ITU R.BT601 output operation. At a minimum, the DAC Registers 0x04 and 0x05 at Station Address 0x00 must be written (to enable the DACs) and the IN_MODE bit of the CONTROL_0 SA 0x00, Reg- ister (0x00) must be set (to enable ITU R.BT601 data input on V [7:0]) for the CS7654 to become operational after RESET. Vertical Timing The CS7654 encoder section can be configured to operate in any of four different analog timing modes: PAL, which is 625 vertical lines, 25 frames per second interlaced; NTSC, which is 525 vertical lines, 30 frames per second interlaced; and either PAL or NTSC in Progressive Scan, in which the display is non-interlaced. These modes are selected in the CONTROL_0 Register (0x00) at SA 0x00h.Note that there are several digital mode (scaler settings ) which will not have an equivalent analog timing mode. The CS7654 conforms to standard digital decom- pression dimensions and does not process digital input data for the active analog video half lines as they are typically in the over/underscan region of televisions. 240 active lines total per field are pro- cessed for NTSC, and 288 active lines total per field are processed for PAL. Frame vertical dimen- sions are 480 lines for NTSC and 576 lines for PAL. Table 3 specifies active line numbers for both NTSC and PAL.
terlaced vertical timing is illustrated in Figure 5. Table 3. Vertical Timing Figure 4. Vertical Timing
consists of 287 active lines of video plus 25.5 lines. mode in which the video output is non-interlaced. laced timing is illustrated in Figure 8. the BKG_COLOR Register (0x08) at SA 0x00. Figure 5. NTSC Video Interlaced Timing
Figure 6. PAL Interlaced Timing
CONTROL_1 Register (0x01) at SA 0x00. registers with the values shown in Table 5. Figure 7. NTSC Video Non-Interlaced Progressive Scan Timing
are very close to standard PAL values. 0×10 - 0×F0 (16 - 240 ) for the chrominance values. Figure 8. PAL Video Non-Interlaced Progressive Scan Timing
Table 5. Multi-standard Format Register Configurations
INTERNAL REGISTER STRUCTURE AND USER INTERFACE The user interface describes the user’s external view of the CS7654 and the basic control opera- tions. These areas include digital data, analog out- put modes and organization, timing and synchronization signals, I 2C interface, and miscel- laneous controls. The CS7654 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 pri- mary I2C port allows an external controller to con- trol the CS7654 ( See Station Address section for more details on Station Address structure ). It is as- sumed the external controller will also directly con- trol any other I 2C slave devices on the camera board. This is the normal I2C operation mode of CS7654. The secondary I2C port, on the other hand, may be used to control all the other slave de- vices on a camera board through the CS7654 only. This feature is useful when the external I 2C con- troller is used to control multiple cameras. When used in this configuration the P4BYTMODE pin (pin 46) of the CS7654 must be tied high and the device is operated in four-byte mode. Operating CS7654 in Normal I2C Configuration (Three-Byte Mode) In normal mode, the CS7654 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 cam- era may also share the same serial bus. The external controller communicates with the I 2C devices by sending and receiving short packets of 8-bit words in accordance with the I 2C 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 ad- dress. 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 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. Station Address Each device on the I2C bus has a unique 7-bit ad- dress. 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 8- bit station addresses, one address for write accesses and another address for read accesses. We will fol- low this practice. Please note that because the reg- ister of the CS7654 are physically implemented in two different banks, the use of two different Station Addresses are necessary. Therefore, to access the proper registers you must first select the proper Sta- tion Address. Both Station Adresses have to be dif- ferent from one another or an internal register conflict will occur. The CS7654 default station address are 34h for writes and 35h for reads for the color processing section and 00h and 01h for the encoder portion of the CS7654. 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 reg- ister 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 di- rection 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 addition- al bytes are allowed.
Table 6. WRITE Format Packet Table 7. ADDRESS SET Format Packet Operation Figure 16. I2C configuration showing primary Table 8. READ Format Packet.
the register address (0..255). Table 9. Four-byte WRITE Format Packet Table 10. READ-TRIGGER packet in four-byte mode Table 11. Address Set for Slave Data Hold register in Table 12. READ Format Packet.
EPROM are aborted and the NODEV status bit is set in status register at address 01h at SA 0x34h. The data within the EPROM is formatted in three- byte packets that represent the destination address, register address, and data. After reading a packet, the CS7654 initiates an I 2C 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 acknowl- edge is received from the target device, the CS7654 will fetch the next 3 bytes from the EPROM and re- peat the process. The only exception being the gamma table whose entire 256 bytes is transferred in one I 2C write cycle. This process will continue until the total number of packets read equals the value in the EEPROM count register (registers 1Ah and 1Bh at SA 0x34h), a HALT command is exe- cuted, or NO ACKNOWLEDGE is received from the target device. While the CS7654 is downloading from the EPROM, the INITACT bit (register 01h bit3 at SA 0x34h) is set in the status register of CS7654. All attempts to write to CS7654 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 at SA 0x34h). 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 CS7654 programmed to select one of 8 configurations. The appropriate configura- tion is defined by the 3 GPIO[2:0] pins. The CS7654 incorporates 3 commands to handle multi- ple configurations: SKIP, JUMP, and HALT. The SKIP command tells the CS7654 to skip to the address within the EEPROM specified by the Con- figuration Control registers (30h - 3Fh at SA 0x34h). 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 auto- matically after reset by the CS7654. The CS7654 will read from the GPIO port. 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. 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 exe- cuted by writing a 1 to bit 1 of the EEPROM Con- trol Register (42h at SA 0x34h). The JUMP is similar to the SKIP command. The user loads a jump address into the Jump Control Registers (40h and 41h at SA 0x34h) and then ex- ecutes the JUMP command by setting bit 2 of the EEPROM Control Register (42h at SA 0x34h) 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. The total number of packets that may be stored in the external EEPROM is 2k/3 or 682 3-byte com- mands. Gamma table packets contain 259bytes. A typical map of the EPROM table is shown in Fig- ure 17. The only exception to this organization is data for the CS7654 gamma table. The data for the gamma table is organized as shown in Figure 18.
All CS7654 analog timing and sequencing is derived from 27 MHz clock input. The analog outputs are controlled internally by the video timing generator in conjunction with master and slave timing. The video output signals perform accordingly for NTSC and PAL specifications. Being that the CS7654 is almost entirely a digital circuit, great care has been taken to guarantee ana- log timing and slew rate performance as specified in the NTSC and PAL analog specifications. Refer- ence the Analog Parameters section of this data sheet for exact performance parameters. VREF The CS7654 can operate with or without the aid of an external voltage reference. The CS7654 is de- signed with an internal voltage reference generator that provides a vrefout signal at the VREF pin. The internal voltage reference is utilized by not making a connection to the VREF pin. The VREF pin can also be connected to an external precision 1.232 volt reference, which then overrides the in- ternal reference. ISET-DAC All three of the CS7654 digital to analog converter DACs are output current normalized with a com- mon ISET-DAC device pin. The DAC output cur- rent per bit is determined by the size of the resistor connected between ISET-DAC pin and electrical ground. Typically a 4 KW , 1% metal film resistor should be used. The ISET resistance can be changed by the user to accommodate varying video output attenuation via post filters and also to suit individual preferred performance. In conjunction with the ISET-DAC value, the user can also independently vary the chroma, luma and colorburst amplitude levels via host addressable control register bits that are used to control internal digital amplifiers. The DAC output levels are de- fined by the following operations: VREF/RISET = IREF COMP_VID/Y/C outputs in low impedance mode: VOUT (max) = IREF*112.88*37.5 W = 1.304V COMP_VID/Y/C outputs in high impedance mode: VOUT (max) = IREF*28.22*150W =1 . 3 0 4V DACs The CS7654 is equipped with three independent, video-grade, current-output, digital-to-analog con- verters (DACs). They are 10-bit DACs operating at a 27 MHz two-times-oversampling rate. All three DACs are disabled and default to a low power mode upon RESET. Each DAC can be individually powered down and disabled. The output-current- per-bit of all three DACs is determined by the size of the resistor connected between the ISET_DAC pin and electrical ground. Luminance DAC The SVID_Y pin is driven from a 10-bit 27 MHz current output DAC that internally receives the SVID_Y, or luminance portion, of the video signal (black and white only). SVID_Y is designed to drive proper video levels into a 37.5W load. Refer- ence the detailed electrical section of this data sheet for the exact SVID_Y digital to analog AC and DC performance data. A EN_L enable control bit in the Control Register 5 (0×05 at SA 0x00h) is provided to enable or disable the luminance DAC. For a complete disable and lower power operation the lu- minance DAC can be totally shut down via the SVIDLUM_PD control bit in the Control Register 4 (0×04 at SA 0x00h). In this mode, turn-on through the control register will not be instantaneous.
The SVID_C pin is driven from a 10-bit 27 MHz current output DAC that internally receives the SVID_C or chrominance portion of the video sig- nal (color only). SVID_C is designed to drive prop- er video levels into a 37.5W load. Reference the detailed electrical section of this data sheet for the exact SVID_C digital to analog AC and DC perfor- mance data. A EN_C enable control register bit in the Control Register 1 (0×05 at SA 0x00h) is pro- vided to enable or disable the chrominance DAC. For a complete disable and lower power operation the chrominance DAC can be totally shut down via the SVIDCHR_PD register bit in the Control Reg- ister 4 (0×04 at SA 0x00h). In this mode turn-on through the control register will not be instanta- neous. COMP_VID DAC The COMP_VID pin is driven from a 10-bit
27 MHz current output DAC that internally re-
ceives a combined luma and chroma signal to pro- vide composite video output. COMP_VID is designed to drive proper composite video levels into a 37.5W load. Reference the detailed electrical section of this data sheet for the exact COMP_VID digital to analog ac and dc performance data. The EN_COM enable control register bit, in Control Register 1 (0×05 at SA 0x00h), is provided to en- able or disable the output pin. When disabled, there is no current flow from the output. For a complete disable and lower power operation, the COMP_VID DAC can be totally shut down via the COMDAC_PD control register bit in Control Register 4 (0×04 at SA 0x00h). In this mode turn- on through the control register will not be instanta- neous. Depending on the external resistor connected to the ISET_DAC pin the output drive of the DACs can be changed. There are two modes in which the DACs should either be operated in. An external re- sistor of 4 kW must be connected to the ISET_DAC pin. The first mode is the high impedance mode (LOW_IMP bit set to 0). The DAC outputs will then drive a double terminated load of 300W and will output a video signal which conforms to the analog video specifications for NTSC and PAL. External buffers will be needed if the DAC output load differs from 300W . The second mode is the low impedence mode (LOW_IMP but set to 1). The DAC output will then drive a double terminated load of 75W and will output a video signal which conforms to the analog video specifications for NTSC and PAL. No external buffers are necessary, the ouputs can di- rectly drive a television input. Note If some of the 3 DACs are not used, it is strongly recommended to power them down (see CONTROL_4 register) in order to reduce the pow- er dissipation.
Table 13. Encoder Control Registers
Control Register 0 at SA 0x00h Address 0 ×00 CONTROL_0 Read/Write Default Value = 01h Control Register 1 at SA 0x00h Address 0 ×01 CONTROL_1 Read/Write Default Value = 02h Bit Number 76543210 Bit Name TV_FMT MSTR CCIR656 PROG IN_MODE CBCR_UV Default 00001001 Bit Mnemonic Function 7:5 TV_FMT selects the TV display format 000: NTSC-M CCIR601 timing (default) 001: NTSC-M RS170A timing 010: PAL-B, D, G, H, I 011: PAL-M 100: PAL-N (Argentina) 101: PAL-N (non Argentina) 110-111: reserved
4 Reserved Set to 0
3 CCIR656 Set to 1
2P R O G Progressive scanning enable (enable = 1)
1 IN_MODE Input select (0 = solid background, 1 = use V [7:0] data)
0 CBCR_UV enable YCbCr to YUV conversion (1 = enable, 0 = disable)
Bit Name LUM DEL CH BW LPF_ON res res PED res Default 0 0 0 0 Reserved Reserved 1 Reserved Bit Mnemonic Function 7:6 LUM DEL luma delay on the composite output 00: no delay (default) 01: 1 pixel clock delay 10: 2 pixel clock delay 11: 3 pixel clock delay 5 CH BW chroma lpf bandwidth (0 = 650 kHz, 1 = 1.3 Mhz) 4L P F ON chroma lpf on/off (0 = off, 1 = on)
3 Reserved Reserved
2 Reserved Reserved
1 PED Pedestal offset (0: 0 IRE, 1: 7.5 IRE)
0 Reserved Reserved
Control Register 2 at SA 0x00h Address 0 ×02 CONTROL_2 Read/Write Default Value = 00h Control Register 3 at SA 0x00h Address 0 ×03 CONTROL_3 Read/Write Default Value = 00h Control Register 4 at SA 0x00h Address 0 ×04 CONTROL_4 Read/Write Default Value = 3Fh Control Register 5 at SA 0x00h Address 0 ×05 CONTROL_5 Read/Write Default Value = 00h Bit Number 76543210 Bit Name res res res res res res res BU_DIS Default Reserved 0 Bit Mnemonic Function 7:1 Reserved Set to 0 0B U DIS Chroma burst disable (1 = disable) Bit Number 76543210 Bit Name res res res res res res res CBAR Default Reserved 0 Bit Mnemonic Function 7:1 Reserved Set to 0
0 CBAR internal color bar generator (0 = off, 1 = on)
Bit Name res res COMDAC_PD SVIDLUM_PD SVIDCHR_PD res res res Default Reserved 1 1 1 Reserved Bit Mnemonic Function 7:6 - Reserved
5 COMDAC_PD
0: power up, 1: power down
4 SVIDLUM_PD
power down luma s-video DAC 0: power up, 1: power down
3 SVIDCHR_PD
power down chroma s-video DAC 0: power up, 1: power down 2:0 - Reserved set to “111” Bit Number 76543210 Bit Name RSVD LOW IMP EN COM EN LE N Cr e s r e s r e s
Control Register 6 at SA 0x00h Address 0 ×06 CONTROL_6 Read/Write Default Value = 00h Background Color Register at SA 0x00h Address 0 ×08 BKG_COLOR Read/Write Default Value = 03h GPIO Control Register at SA 0x00h Address 0 ×09 GPIO__REG Read/Write Default Value = 00h Default 00000 R e s e r v e d Bit Mnemonic Function 7- reserved 6L O W IMP selects between high output impedance (0) or low output impedance (1) mode of DACs 5E N COM enable DAC for composite output 0: tri-state, 1: enable 4E N L enable s-video DAC for luma output 0: tri-state, 1: enable 3E N C enable s-video DAC for chroma output 0: tri-state, 1: enable 2:0 - Reserved set to 0 Bit Number 76543210 Bit Name res CLIP OFF res res res res res res Default 00000000 Bit Mnemonic Function 7 res set to 0 6C L I P OFF Clipping input signals disable (0: clipping active 1: no clipping) 5:0 res set to 0 Bit Number 76543210 Bit Name BG Default 00000011 Bit Mnemonic Function 7:0 BG Background color (7:5 = R, 4:2 = G, 1:0 = B) (default is 0000 0011 - blue) Bit Number 76543210 Bit Name GPR_CNTRL Default res res res res res 0 0 0 Bit Mnemonic Function 2:0 GPR CNTRL Input(0)/output(1) control of GPIO registers (bit 0: GPIO(0), bit 2: GPIO(2))
GPIO Data Register at SA 0x00h Address 0 ×0A GPIO_REG Read/Write Default Value = 00h Sync Register 0 at SA 0x00h Address 0 ×0D Sync_0 Read/Write Default Value = 90h Sync Register 1 at SA 0x00h Address 0 ×0E Sync_1 Read/Write Default Value = F4h I2C Address Register of TV encoder at SA 0x00h Address 0 ×0F I 2C_ADR Read/Write Default Value = 00h Bit Number 76543210 Bit Name GPIO REG Default r e sr e sr e sr e sr e s 0 0 0 Bit Mnemonic Function 2:0 GPIO REG GPIO data register ( data is output on GPIO bus if appropriate bit in address 09 is set to “1”, otherwise data is input/output through I2C)- This register is only accessible in I2C mode. Bit Number 76543210 Bit Name res res res res res res res res Default 10010000 Bit Mnemonic Function 7:0 Reserved Bit Number 76543210 Bit Name res res res res res res res res Default 11110100 Bit Mnemonic Function 7:0 res res Bit Number 76543210 Bit Name RESERVED I2C ADR Default 00000000 Bit Mnemonic Function 7- reserved 6:0 I2C I2C device address (programmable) do not program to 34h
Subcarrier Amplitude Register at SA 0x00h Address 0 ×10 SC_AMP Read/Write Default Value = 1Ch Subcarrier Synthesis Register at SA 0x00h Address 0 ×11 SC_SYNTH0 Read/Write Default Value = 3Eh 0×12 SC_SYNTH1 F8h 0×13 SC_SYNTH2 E0h 0×14 SC_SYNTH3 43h Hue LSB Adjust Register at SA 0x00h Address 0 ×15 HUE_LSB Read/Write Default Value = 00h Hue MSB Adjust Register at SA 0x00h Address 0 ×16 HUE_MSB Read/Write Default Value = 00h Bit Number 76543210 Bit Name BU AMP Default 00011100 Bit Mnemonic Function 7:0 BU AMP Color burst amplitude Register Bits Mnemonic Function SC_SYNTH0 7:0 CC 0 Subcarrier synthesis bits 7:0 SC_SYNTH1 7:0 CC 1 Subcarrier synthesis bits 15:8 SC_SYNTH2 7:0 CC 2 Subcarrier synthesis bits 23:16 SC_SYNTH3 7:0 CC 3 Subcarrier synthesis bits 31:24 Bit Number 76543210 Bit Name HUE LSB Default 00000000 Bit Mnemonic Function 7:0 HUE LSB 8 LSBs for hue phase shift Bit Number 76543210 Bit Name RESERVED MSB Default 00000000 Bit Mnemonic Function 7:2 - reserved 1:0 HUE MSB 2 MSBs for hue phase shift
SCH Sync Phase Adjust at SA 0x00h Address 0 ×17 SCH Read/Write Default Value = 00h Closed Caption Enable Register at SA 0x00h Address 0 ×18 CC_EN Read/Write Default Value = 00h Closed Caption Data Register at SA 0x00h Address 0 ×19 CC_21_1 Read/Write Default Value = 00h 0×1A CC_21_2 00h 0×1B CC_284_1 00h 0×1C CC_284_2 00h Filter Register 0 at SA 0x00h Address 0 ×22 CB_AMP Read/Write Default Value = 80h Filter Register 1 at SA 0x00h Address 0 ×23 CR_AMP Read/Write Default Value = 80h Bit Mnemonic Function 7:0 SCH Default - 00h in increments of »1.4 degree per bit up to 360° Bit Number 765432 1 0 Bit Name RESERVED EN_284 EN_21 Default 000000 0 0 Bit Mnemonic Function 7:2 - reserved
1 CC EN[1] enable closed caption for line 284
0 CC EN[0] enable closed caption for line 21
7:0 CC_21_1 first closed caption databyte of line 21 7:0 CC_21_2 second closed caption databyte of line 21 7:0 CC_284_1 first closed caption databyte of line 284 7:0 CC_284_2 second closed caption databyte of line 284 Bit Number 76543210 Bit Name U_AMP Default 10000000 Bit Mnemonic Function 7:0 U_AMP U(Cb) amplitude coefficient Bit Number 76543210
Filter Register 2 at SA 0x00h Address 0 ×24 Y_AMP Read/Write Default Value = 80h Filter Register 6 at SA 0x00h Address 0 ×28 Bright_Offsett Read/Write Default Value = 00h Bit Name V_AMP Default 10000000 Bit Mnemonic Function 7:0 V_AMP V(Cr) amplitude coefficient Bit Number 76543210 Bit Name Y_AMP Default 10000000 Bit Mnemonic Function 7:0 Y_AMP Luma amplitude coefficient Bit Number 76543210 Bit Name BRIGHTNESS_OFFSET Default 00000000 Bit Mnemonic Function 7:0 BRGHT_OFFSET Brightness adjustment ( range: -128 to +127)
Table 14. DSP Control Register
load of any external EPROM present on the secondary I2C bus will be initiated. The bit is self-cleared. line-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. Table 14. DSP Control Register (Continued)
I2CBUSY Logic high indicates that the CS7654 secondary I2C master is busy accessing the addressed slave device. INITACT Logic high indicates the CS7654 master is busy initializing registers from the external I2C EEPROM on the secondary I2C bus (if present). HIZENB Pin 44 status. P4BYTE Pin 46 status. PIN I/O Control (02h at SA 0x34h) PLLOUT Logic high enables the PLL clock output to the CS7615 (pin 51). Digital Gain Register (03h at SA 0x34h) DG[0:4] Controls the digital gain applied to the SVID_Y (Luminance) signal after the RGB to YCrCb con- verter block. The range of gains are from 0 to 31/8 in increments of 1/8. A gain of 0, indicates no brightness. Scaler Control (04h at SA 0x34h) MODE[2:0] Selects 1 of 8 pre-defined scaling ratios. CUSTOM When set, scaler uses custom values held in registers 2Dh-2Fh. Feature Control Register (05h at SA 0x34h) 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-G- B 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. 76543210 res res res res res res res PLLOUT Reserved Reserved Reserved R/W 76543210 res res res DG4 DG3 DG2 DG1 DG0 Reserved R/W 76543210 res res res res CUSTOM MODE2 MODE1 MODE0 Reserved Reserved Reserved R/W R/W 76543210 res res res CHROFF LUMOFF GAMON AWB res Reserved R/W R/W R/W R/W Reserved
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. itizer (as with the CS7615). TEST_AA This bit is reserved for test purposes and may be set as a 1 or a 0. adjusted such that the absolute magnitude of the R-Y signal is minimized. Table 15. OE Pin and Bit Operation
Blue Balance Register (09h at SA 0x34h) 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 at SA 0x34h) RS[7:0] 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. Blue Saturation Register (0Bh at SA 0x34h) 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 at SA 0x34h) Writing to the gamma register (0Ch at SA 0x34h) 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 simulta- neous writes, but read should be done one ram table at a time. 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 at SA 0x34h) This register is reserved 76543210 BB7 BB6 BB5 BB4 BB3 BB2 BB1 BB0 R/W 76543210 R S 7R S 6R S 5R S 4R S 3R S 2R S 1R S 0 R/W 76543210 BS7 BS6 BS5 BS4 BS3 BS2 BS1 BS0 R/W 76543210 GC7 GC6 GC5 GC4 GC3 GC2 GC1 GC0 R/W
Test Control B Register (0Fh at SA 0x34h) This register is reserved. YR Coefficient Register (10h at SA 0x34h) Color separation and color space conversion coefficient. CrR Coefficient Register (11h at SA 0x34h) Color separation and color space conversion coefficient. CbR Coefficient Register (12h at SA 0x34h) Color separation and color space conversion coefficient. YG Coefficient Register (13h at SA 0x34h) Color separation and color space conversion coefficient. CrG Coefficient Register (14h at SA 0x34h) Color separation and color space conversion coefficient. 76543210 YR7 YR6 YR5 YR4 YR3 YR2 YR1 YR0 R/W 76543210 CrR7 CrR6 CrR5 CrR4 CrR3 CrR2 CrR1 CrR0 R/W 76543210 CbR7 CbR6 CbR5 CbR4 CbR3 CbR2 CbR1 CbR0 R/W 76543210 YG7 YG6 YG5 YG4 YG3 YG2 YG1 YG0 R/W 76543210 CrG7 CrG6 CrG5 CrG4 CrG3 CrG2 CrG1 CrG0 R/W
CbG Coefficient Register (15h at SA 0x34h) Color separation and color space conversion coefficient. YB Coefficient Register (16h at SA 0x34h) Color separation and color space conversion coefficient. CrB Coefficient Register (17h at SA 0x34h) Color separation and color space conversion coefficient. CbB Coefficient Register (18h at SA 0x34h) Color separation and color space conversion coefficient. Slave Data Hold Register (19h at SA 0x34h) When an external I2C controller initiates a register read from a slave device on the secondary I2C bus through CS7654, 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 at SA 0x34h) Lower byte of the number of triple-bytes to be read from EPROM upon reset of CS7654. This register is read only. EPROM Count High Byte Register (1Bh at SA 0x34h) Upper byte of the number of triple-bytes to be read from EPROM upon reset of CS7654. This register is read only. Version (Major) Register (1Ch at SA 0x34h) The major version register (device ID) in the CS7654 is assigned the value FDh. This register is read only. Version (Minor) Register (1Dh at SA 0x34h) The minor version register in CS7654 rev A. is assigned the value 00h. With each minor revision the value is in- creased by 1. This register is read only. 76543210 CbG7 CbG6 CbG5 CbG4 CbG3 CbG2 CbG1 CbG0 R/W 76543210 YB7 YB6 YB5 YB4 YB3 YB2 YB1 YB0 R/W 76543210 CrB7 CrB6 CrB5 CrB4 CrB3 CrB2 CrB1 CrB0 R/W 76543210 CbB7 CbB6 CbB5 CbB4 CbB3 CbB2 CbB1 CbB0 R/W
Low Power Register (20h at SA 0x34h) PD Setting bit PD to “1” will place the CS7654 in low power mode. Test Enable Register (21h at SA 0x34h) This register is reserved. Reserved Register (22h at SA 0x34h) This register is reserved and returns a valud of 00 when read. Anti-Alias (23h at SA 0x34h) This register is reserved and must be set to 08h for normal operation. Test_AA2 (24h at SA 0x34h) This register is reserved and must be set to FFh for normal operation Test_AA3 (25h at SA 0x34h) This register is reserved and must be set to FFh for normal operation Test_AA4 (26h at SA 0x34h) This register is reserved and must be set to FFh for normal operation Flare Control 1 (27h at SA 0x34h) Y_THR[9:2] Flare control filter Y threshold bits 9-2 (MSB). (Bits 1 and 0 set to 0.) Flare Control 2 (28h at SA 0x34h) Cr_L[9:2] Flare control filter Cr low threshold bits 9-2 (MSB). 76543210 res res res res res res res PD Reserved R/W 76543210 Y_THR9 Y_THR8 Y_THR7 Y_THR6 Y_THR5 Y_THR4 Y_THR3 Y_THR2 R/W 76543210 Cr_L9 Cr_L8 Cr_L7 Cr_L6 Cr_L5 Cr_L4 Cr_L3 Cr_L2 R/W
Flare Control 3 (29h at SA 0x34h) 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 at SA 0x34h) Cr_H[9:2] Flare control filter Cr high threshold bits 9-2 (MSB). Flare Control 5 (2Bh at SA 0x34h) Cb_H [9:2] Flare control filter Cb high threshold bits 9-2 (MSB). (Bits 1 and 0 set to 0.) Flare Control 6 (2Ch at SA 0x34h) 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. Scaler Control 1 (2Dh at SA 0x34h) 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. Scaler Control 2 (2Eh at SA 0x34h) PLL_N [4:0] This is the PLL N value when the CUSTOM bit (bit 3 register 04h at SA 0x34h) is set. HALF Sets the internal PLL reference clock to 1/2 the input clock. 76543210 Cb_L9 Cb_L8 Cb_L7 Cb_L6 Cb_L5 Cb_L4 Cb_L3 Cb_L2 R/W 76543210 Cr_H9 Cr_H Cr_H7 Cr_H6 Cr_H5 Cr_H4 Cr_H3 Cr_H2 R/W 76543210 Cb_H9 Cb_H8 Cb_H7 Cb_H6 Cb_H5 Cb_H4 Cb_H3 Cb_H2 R/W 76543210 Cb_H1 Cb_H0 Cr_H1 Cr_H0 Cb_L1 Cb_L0 Cr_L1 Cr_L0 R/W R/W R/W R/W 76543210 BYPASS1 BYPASS0 res PLL_M4 PLL_M3 PLL_M2 PLL_M1 PLL_M0 R/W Reserved R/W 76543210 HALF res res PLL_N4 PLL_N3 PLL_N2 PLL_N1 PLL_N0 R/W Reserved R/W
Scaler Control 3 (2Fh at SA 0x34h) OFFSET [7:0] This value controls the offset fo the internal Scaler. Configuration Control 0 (30h at SA 0x34h) This register contains the 3 MSBs of the EEPROM address used when the SKIP bit is set (bit1 register 42h at SA 0x34h) and the Configuration Index Register (43h at SA 0x34h) is set to 00h. Configuration Control 1 (31h at SA 0x34h) This register contains the 8 LSBs of the EEPROM start address used when the SKIP bit is set (bit1 register 42h at SA 0x34h) and the Configuration Index Register (43h at SA 0x34h) is set to 00h. Configuration Control 2 (32h at SA 0x34h) This register contains the 3 MSBs of the EEPROM address used when the SKIP bit is set (bit1 register 42h at SA 0x34h) and the Configuration Index Register (43h at SA 0x34h) is set to 01h. Configuration Control 3 (33h at SA 0x34h) This register contains the 8 LSBs of the EEPROM start address used when the SKIP bit is set (bit1 register 42h at SA 0x34h) and the Configuration Index Register (43h at SA 0x34h) is set to 01h. Configuration Control 4 (34h at SA 0x34h) This register contains the 3 MSBs of the EEPROM address used when the SKIP bit is set (bit1 register 42h at SA 0x34h) and the Configuration Index Register (43h at SA 0x34h) is set to 02h. 76543210 OFFSET7 OFFSET6 OFFSET5 OFFSET4 OFFSET3 OFFSET2 OFFSET1 OFFSET0 R/W 76543210 res res res res res SKP010 SKP09 SKP08 Reserved R/W 76543210 SKP07 SKP06 SKP05 SKP04 SKP03 SKP02 SKP01 SKP00 R/W 76543210 res res res res res SKP110 SKP19 SKP18 Reserved R/W 76543210 SKP17 SKP16 SKP15 SKP14 SKP13 SKP12 SKP11 SKP10 R/W 76543210 res res res res res SKP210 SKP29 SKP28 Reserved R/W
Configuration Control 5 (35h at SA 0x34h) This register contains the 8 LSBs of the EEPROM start address used when the SKIP bit is set (bit1 register 42h at SA 0x34h) and the Configuration Index Register (43h at SA 0x34h) is set to 02h. Configuration Control 6 (36h at SA 0x34h) This register contains the 3 MSBs of the EEPROM address used when the SKIP bit is set (bit1 register 42h at SA 0x34h) and the Configuration Index Register (43h at SA 0x34h) is set to 03h. Configuration Control 7 (37h at SA 0x34h) This register contains the 8 LSBs of the EEPROM start address used when the SKIP bit is set (bit1 register 42h at SA 0x34h) and the Configuration Index Register (43h at SA 0x34h ) is set to 03h. Configuration Control 8 (38h at SA 0x34h) This register contains the 3 MSBs of the EEPROM address used when the SKIP bit is set (bit1 register 42h at SA 0x34h) and the Configuration Index Register (43h at SA 0x34h) is set to 04h. Configuration Control 9 (39h at SA 0x34h) This register contains the 8 LSBs of the EEPROM start address used when the SKIP bit is set (bit 1 register 42h at SA 0x34h) and the Configuration Index Register (43h at SA 0x34h) is set to 04h. Configuration Control 10 (3Ah at SA 0x34h) This register contains the 3 MSBs of the EEPROM address used when the SKIP bit is set (bit 1 register 42h at SA 0x34h) and the Configuration Index Register (43h at SA 0x34h) is set to 05h. 76543210 SKP27 SKP26 SKP25 SKP24 SKP23 SKP22 SKP21 SKP20 R/W 76543210 res res res res res SKP310 SKP39 SKP38 Reserved R/W 76543210 SKP37 SKP36 SKP35 SKP34 SKP33 SKP32 SKP31 SKP30 R/W 76543210 res res res res res SKP410 SKP49 SKP48 Reserved R/W 76543210 SKP47 SKP46 SKP45 SKP44 SKP43 SKP42 SKP41 SKP40 R/W 76543210 res res res res res SKP510 SKP59 SKP58 Reserved R/W
Configuration Control 11 (3Bh at SA 0x34h) This register contains the 8 LSBs of the EEPROM start address used when the SKIP bit is set (bit 1 register 42h at SA 0x34h) and the Configuration Index Register (43h at SA 0x34h) is set to 05h. Configuration Control 12 (3Ch at SA 0x34h) This register contains the 3 MSBs of the EEPROM address used when the SKIP bit is set (bit 1 register 42h at SA 0x34h) and the Configuration Index Register (43h at SA 0x34h) is set to 06h. Configuration Control 13 (3Dh at SA 0x34h) This register contains the 8 LSBs of the EEPROM start address used when the SKIP bit is set (bit 1 register 42h at SA 0x34h) and the Configuration Index Register (43h at SA 0x34h) is set to 06h. Configuration Control 14 (3Eh at SA 0x34h) This register contains the 3 MSBs of the EEPROM address used when the SKIP bit is set (bit 1 register 42h at SA 0x34h) and the Configuration Index Register (43h at SA 0x34h) is set to 07h. Configuration Control 15 (3Fh at SA 0x34h) This register contains the 8 LSBs of the EEPROM start address used when the SKIP bit is set (bit 1 register 42h at SA 0x34h) and the Configuration Index Register (43h at SA 0x34h) is set to 07h. Jump Control 0 (40h at SA 0x34h) This register contains the 3 MSBs of the EEPROM address used when the JUMP bit is set (bit 2 register 42h at SA 0x34h). 76543210 SKP57 SKP56 SKP55 SKP54 SKP53 SKP52 SKP51 SKP50 R/W 76543210 res res res res res SKP610 SKP69 SKP68 Reserved R/W 76543210 SKP67 SKP66 SKP65 SKP64 SKP63 SKP62 SKP61 SKP60 R/W 76543210 res res res res res SKP710 SKP79 SKP78 Reserved R/W 76543210 SKP77 SKP76 SKP75 SKP74 SKP73 SKP72 SKP71 SKP70 R/W 76543210 res res res res res JMP10 JMP9 JPM8 Reserved R/W
Jump Control 1 (41h at SA 0x34h) This register contains the 8 LSBs of the EEPROM start address used when the JUMP bit is set (bit 2 register 42h at SA 0x34h). EEPROM Control (42h at SA 0x34h) 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 Regis- ter (43h at SA 0x34h) JUMP Writing a 1 to this bit forces the next EEPROM access to occur at the address held in registers 40h and 41h at SA 0x34h . Configuration Index Register (43h at SA 0x34h) 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 at SA 0x34h) These registers are reserved and return a value of 00h when read. Station Address Register (FFh at SA 0x34h) CS7654 station address of the color processor, 7 MSBs (the LSB of the complete 8-bit station address is determined by the LSB which acts as a read/write direction bit). 76543210 JMP7 JMP6 JMP5 JMP4 JMP3 JMP2 JMP1 JPM0 R/W 76543210 res res res res res JUMP SKIP HALT R/W 76543210 res res res res res SW2 SW1 SW0 Reserved R/W 76543210 res SA6 SA5 SA4 SA3 SA2 SA1 SA0 Reserved R/W
The printed circuit layout should be optimized for lowest noise on the CS7654 placed as close to the output connectors as possible. All analog supply traces should be as short as possible to minimize in- ductive ringing. A well designed power distribution network is es- sential in eliminating digital switching noise. The ground planes must provide a low-impedance re- turn path for the digital circuits. A PC board with a minimun of four layers is recommended. The ground layer should be used as a shield to isolate noise from the analog traces. The top layer (1) should be reserved for analog traces but digital traces can share this layer if the digital signals have low edge rates and switch little current or if they are separated from the analog traces by a signigicant distance (dependent on their frequency content and current). The second layer should then be the ground plane followed by the analog power plane on layer three and the digital signal layer on layer four. Power and Ground Planes The power and ground planes need isolation gaps of at least 0.05" to minimize digital switching noise effects on the analog signals and components. A split analog/digital ground plane should be con- nected at one point as close as possible to the CS7654. Power Supply Decoupling Start by reducing power supply ripple and wiring harness inductance by placing a large (33-100 µF) capacitor as close to the power entry point as pos- sible. Use separate power planes or traces for the digital and analog sections even if they use the same supply. If necessary, further isolate the digital and analog power supplies by using ferrite beads on each supply branch followed by a low ESR capac- itor. Place all decoupling caps as close as possible the the device as possible. Surface mount capacitors generally have lower inductance than radial lead or axial lead components. Surface mount caps should be place on the component side of the PCB to min- imize inductance caused by board vias. Any vias, especially to ground, should be as large as possible to reduce their inductive effects. Digital Interconnect The digital inputs and outputs of the CS7654 should be isolated from the analog outputs as much as possible. Use separate signal layers whenever possible and do not route digital signals over the analog power and ground planes. Noise from the digital section is related to the digi- tal edge rates used. Ringing, overshoot, under- shoot, and ground bounce are all related to edge rate. Use lower speed logic such as HCMOS for the host port interface to reduce switching noise. For the video input ports, higher speed logic is re- quired, but use the slowest practical edge rate to re- duce noise. To reduce noise, it is important to match the source impedance, line impedance, and load impedance as much as possible. Generally, if the line length is greater than one fourth the signal edge rate, line termination is necessary. Ringing can also be reduced by damping the line with a se- ries resistor (22-150 W ). Under extreme cases, it may be advisable to use microstrip techniques to further reduce radiated switching noise if very fast edge rates (<2 ns) are used. If microstrip tech- niques are used, split the analog and digital ground planes and use proper RF decoupling techniques. Analog Interconnect The CS7654 should be located as close as possible the output connectors to minimize noise pickup and reflections due to impedance mismatch. All unused analog outputs should be placed in shutdown. This reduces the total power that the CS7654 requires, and eliminates the impedance mismatch presented
high frequency power supply rejection. digital supply, they must be at the same potential. connected to the video output pin. shown in Figure 19 can be used. Figure 19. External Low Pass Filter
SVID_C VDD_DAC GND_DAC COMP_VID ISET_DAC VREF VDD_BG GND_BG NC NC P4BYTMODE SCENABLE HIZEN CLKIN_GRG TEST2 RESET VDD GND VREFIN HREFIN SCLS SDAS NC NC GPIO2 GPIO1 GPIO0 CLKOUT DOUT9 DOUT8 DOUT7 DOUT6 SVID_Y XTAL_OUT XTAL_IN/CLKIN2X CLKOUT_GRG DIN8 DIN9 NC NC SDAM SCLM DOUT0 DOUT1 GND DIN5 DIN6 DIN7 DIN2 DIN3 DIN4 VDD NC NC DIN0 DIN1 VDD_PLL GND_PLL ISET_PLL TEST1 DOUT2 DOUT3 DOUT4 DOUT5 17 19 21 23 25 27 29 31 63 61 59 57 55 53 51 49 18 20 22 24 26 28 30 32 64 62 60 58 56 54 52 50 CS7654 64-pin TQFP Top View
VDD - Power Supply, PINS 8, 40. Positive digital supplies. Nominally +5 volts. VDD_BG, VDD_DAC, VDD_PLL - Power Supply, PINS 50, 55, 61. Positive analog supplies. Nominally +5 volts. Respectively Bandgap, DAC and PLL supplies. GND - Digital Ground, PINS 9, 39. Digital ground supplies. GND_BG, GND_DAC, GND_PLL - Digital Ground, PINS 49, 54, 62. Digital ground supplies. Respectively Bandgap, DAC and PLL ground. Input Data and Clocks DIN[9:0] - Digital Mosaic Inputs, Pins [15:10, 7:3]. CMOS level mosaic coded CCD input data from CCD digitizer CLKIN_GRG - Mosaic Input Data Clock, PIN 43. Main system input clock, used to strobe incoming digital CCD mosaic data. The CLKIN frequency is identical to the mosaic input data rate. XTAL_IN/CLKIN2X - Mosaic Input Data Interpolation Clock, PIN 59. Mosaic input data interpolation clock or crystal oscillator input. CLKOUT_GRG - CCD Sample Clock, PIN 60. 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 58. When using the internal crystal oscillator, connect the external crystal to the XTAL_OUT and CLKIN2X pins. If unused leave floating. HREFIN - Horizontal Input Timing Reference, PIN 37. 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 38. 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.
SDAS - Primary I2C Data Bus, PIN 35. Primary I2C data bus. Used with SCL to read and write the internal register set. SCLS - Primary I2C Clock, PIN 36. Primary I2C Clock. Used with SDA to read and write the internal register set. SDAM - Secondary I2C Data Bus, PIN 17. 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 CS7654 from the primary I2C bus. The CS7654 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 CS7654 registers specified in the EPROM entries. Devices are typically connected to either the primary or the secondary I 2C 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 I 2C controller. SCLM - Secondary I2C Clock, PIN 18. 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 CS7654 from the primary I2C bus. The CS7654 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 CS7654 registers specified in the EPROM entries. Devices are typically connected to either the primary or the secondary I 2C 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 I 2C controller. P4BYTMODE - Four-byte Mode I 2C Operation Enable, PIN 46. Places CS7654 in the Four-byte mode for I2C transactions on the primary I2C bus. Active high. Digital Video Outputs and Clocking DOUT[9:0] - Channel Digital Output Bits, Pins [28:19]. 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 at SA 0x34h. HIZEN - Output enable, PIN 44. CMOS level digital input pin to place all digital video output in HI-Z mode. This pin works in conjunction with OE bit in register 06h at SA 0x34h. To disable/power down DAC see registers description 0x04h and 0x05h at SA 0x00h.
CLKOUT - Digital Output Data Clock, PIN 29. Digital output clock. Output data transitions on the falling edge of CLKOUT and can be latched on the rising edge. 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 DOUT [9:0]. Analog VREF - External voltage reference, PIN 51. Input to an external voltage reference of 1.235V . Leave floating if unused. ISET_DAC - DAC bias, PIN 52. Connect this pin to analog ground ( AGND ) through a 4K00 Ohms 1% resistor. ISET_PLL - PLL bias, PIN 63. Connect this pin to analog ground ( AGND ) through a 6K00 Ohms 1% resistor. SVID_Y - S-Video output, LUMA , PIN 57. Current DAC output, must have a doubly terminated load of 75R0 Ohms 1% resistor. SVID_C - S-Video output, CHROMA , PIN 56. Current DAC output, must have a doubly terminated load of 75R0 Ohms 1% resistor. COMP_VID - Composite video output, PIN 53. Current DAC output, must have a doubly terminated load of 75R0 Ohms 1% resistor. Miscellaneous RESET - Master External Reset Control, PIN 41. 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. TEST2 - Test Pin, PIN 42. Test pin, connect to DGND. TEST1 - Test Pin, PIN 64. Test pin, connect to DGND. SCENABLE - Test Pin, PIN 45. Test pin, connect to GND.
GPIO[2..0]- General Purpose I/O port, PIN [32:30]. CMOS I/O. Also use by EPROM for configuration. NC - No connect, PIN 1, 2, 15, 16, 33, 34, 47, 48. No connect, leave floating.
A 0.000 0.063 0.00 1.60 A1 0.002 0.006 0.05 0.15 B 0.007 0.011 0.17 0.27 D 0.461 0.484 11.70 12.30 D1 0.390 0.398 9.90 10.10 E 0.461 0.484 11.70 12.30 E1 0.390 0.398 9.90 10.10 e 0.016 0.024 0.40 0.60 L 0.018 0.030 0.45 0.75 µ 0.000 7.000 0.00 7.00 64L TQFP PACKAGE DRAWING E D1D e L µ B A
- Notes •