l ITU-601 Compliant Image Formatting
l ITU-656 and SMPT E-125/M Transport s
2
l I
C Control Interface
l Limited Secondary I
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,
with no limitation on Vertical Size
l Programmable "Chroma Kill" circ uit
l Highly integrated for low part count camer as
l Three DACs providing simultaneous composite,
S-video outputs
l Multi-standard su pport for N TSC-M, NTS C-
JAPAN, PAL (B, D, G, H, I, M, N, Combinatio n N)
l On-chip voltage r eference generator m odes, tri-
state DACs and p ower down mode.
2
C Bus Master
Description
The CS7654 is a low-power Digital Color-Space Processor for CCD cameras. It provides all the necessary digital
image processing for sta nda rd four- color in terline tr ansfer CCD imagers. The CS 765 4 p roce sses t he mag enta ,
yellow, cyan, and green (MYCG) CCD imager data int o
YCrCb formatted c omponent digital video a nd into a nalog PAL or NTSC. Internal processing includes color
separation, autom atic white balance, user p rogrammable gamma correction, programmable scaling
(interpolation), digital output formatting and encoding
function for analo g outp ut. Al so, a speci al " 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 systems. Closed Caption is suppo rted in NTSC. Three 10bit 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 als o av aila ble to he lp c onserve valuable b oard space and to pro vide up to eight
“boot” configurations.The CS7654 is designed to work
directly with the CS7615 CCD Imager Analog Processor.
ORDERING INFORMATION
CS7654-KQ0° to 70° C64-pin TQFP
(10 mm x 10 mm x 1.4 mm)
Preliminary produc t informat ion des cribes p roducts w hich are in product ion, but for which f ull char acteriz ation dat a is not yet avai lable. Adv anced
product inf ormat ion des crib es pro ducts wh ich ar e in deve lopmen t and s ubjec t to deve lopmen t cha nges. Ci rrus Lo gic, I nc. has made be st ef forts
to ensure t ha t the informat ion contained i n this document is accurate and reliabl e. H ow ev er, the infor m at i on is subject t o c hange without no t i c e
and is provid ed “AS IS” without warranty of any k i nd (express or im plied). No responsibility is assume d by Cirrus Logic , Inc. for the use of this
information, no r for in fringe ments of pate nts or other rights of third partie s. This d ocume nt is t he prop erty of Cirrus Logic , Inc. and implies no
license unde r pat ents , co pyr ight s, t rade mar ks, or tra de secr ets. N o part of t his pu bl icat io n may be copi ed, repr oduc ed, sto red i n a retrieval system, or trans m it ted, in any form or by any mean s (electronic, mec hanical, 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
which may be registered in some jurisdictions. A list of Cirrus Logic, Inc. trademarks and service marks can be found at http://www.cirrus.com.
2
INTERNAL REGISTER STRUCTURE AND USER INTERFACE ..................... 25
Operating CS7654 in Normal I2C Configuration (Three-Byte Mode) ....... 25
Station Address .................................................................................. 25
Write Operations in Three-Byte Mode ............................................... 25
Address Set Operation ....................................................................... 26
Read Operations in Three-Byte Mode ............................................ ... 2 6
Operating CS7654 in Four-Byte I2C Configuration ............................ 26
Write Operations in Four-Byte mode ................................................. 26
Read Operations in Four-Byte Mode ....................................... ....... ... 27
Initializing Slave Devices on Secondary I2C bus from an EPROM .......... 27
Controlling the Configuration Process ...................................................... 28
Reserved Registers and Test Pins ........................................................... 29
General Purpose I/O Port ......................................................................... 29
CLKIN2X Frequency Rangef
Input Data setup time, DI[9:0]t
Input Data hold time, DI[9:0]t
CLK2X
S1
H1
-2730MHz
5--ns
5--ns
Digital Output
Channel A/B Digital Data Output ClockInterleaved Data
Channel A/B Output Hold Timet
Channel A/B Output Propagation Delayt
Digital Output Rise Time with 30 pF loadt
Digital Output Fall Time with 30 pF loadt
f
CLKOUT_GRG
OH
PD
R
F
--30MHz
-0-ns
-1.95ns
-15-ns
-15-ns
.
Specifications are subject to change without notice
Supply VoltageVAA4.755.05.25V
Digital Supply Current (Encoder)IAA1-70mA
Analog Supply (Encoder)Low-Z(Note 1)IAA2-100-mA
Power Supply Rejection RatioPSRR-0.020.05%/%
Normal ModeI
Low Power ModeI
DD
DD
-150200mA
-716mA
Analog Outputs
Full Scale Output Current COMP_VID/Y/C(Notes 2, 3)IO32.934.736.5mA
Full Scale Output Current COMP_VID/Y/C(Notes 2, 4)IO8.228.689.13mA
LSB Current COMP_VID/Y/C(Notes 2, 3)IB32.233.935.7mA
LSB Current COMP_VID/Y/C(Notes 2, 4)IB8.048.488.92mA
DAC-to DAC MatchingMAT-2-%
Output ComplianceVOC0-+ 1.4V
Output ImpedanceROUT-15-k
Output CapacitanceCOUT--30pF
DAC Output DelayODEL-412nsec
DAC Rise/Fall Time (Note 5)TRF-2.55nsec
Ω
Notes: 1. Low-Z - 3 dacs on
2. Output current levels with ISET = 4 KΩ , 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.
5
CS7654
POWER CONSUMPTION (Continued)
ParameterSymbol MinTyp Max Units
Voltage Reference
Reference Voltage OutputVOV1.1701.2321.294V
Rreference Input CurrentUVC--10uA
Static Performance
DAC Resolution--10Bits
Differential Non-LinearityDNL-1+
Integral Non-LinearityINL- 2+
Dynamic Performance
Differential GainDG-25%
Differential PhaseDP-+
Hue AccuracyHA--2deg
Signal to Noise RatioSNR70--dB
Saturation AccuracySAT-12%
SCL Clock Frequencyf
Bus Free Time Between Transmissionst
Start Condition Hold Timet
Clock Pulse WidthHigh
Low
Setup Time for Repeat Start Conditiont
SDAIN Hold Time from SCL Fallingt
SDAIN Setup Time from SCL Risingt
SDAIN and SCL Rise Timet
SDAIN and SCL Fall Timet
Setup Time for Stop Conditiont
StopStart
SDA
t
buf
CL
S
t
hdst
t
high
SCL
buf
hdst
t
high
t
low
sust
hdd
sud
r
f
susp
Repeated
Start
-400kHz
1.3-µs
0.6-µs
0.6
1.3
-
-
µs
µs
0.6-µs
0-µs
0.1-µs
-1.0µs
-0.3µs
0.6-µs
Stop
t
hdst
t
f
t
susp
t
low
t
hdd
t
sud
t
sust
t
r
I2C Timing Diagram
6
CS7654
RECOMMENDED OPERATING CHARACTERISTICS
ParameterSymbol Min TypMaxUnit
Power Supply VoltageV
DD
Ground to Ground Voltage Differential--10mV
Digital Input Rise/Fall Time--10ns
CLKIN Level Setup to CLKIN2X Rising (non-interpolated)t
CLKIN Level Hold after CLKIN2X Rising (non-interpolated)t
S2
H2
Digital Input Voltage Range0-V
Operating Temperature RangeT
A
ABSOLUTE MAXIMUM RATINGS
ParameterSymbolMinMaxUnit
Power Supply VoltageV
Digital Input Voltage RangeGND - 0.3V
Forced Digital Output Current-50mA
Sustained Digital Output VoltageGND - 0.3V
Output Short Circuit Current--mA
Operating Temperature RangeT
Lead Solder Temperature (10 s duration)-+260°C
Storage Temperature Range-65+160°C
DD
A
4.55.05.5V
8--ns
8--ns
DD
0-70°C
-0.36.0V
+ 0.3V
DD
+ 0.3V
DD
070°C
V
WARNING: Operation at or beyond these limits may result in permanent damage to the device.
Normal operation is not guaranteed at these extremes.
7
CS7654
GENERAL DESCRIPTION
Overview
The CS7654 is a complete color space converter
and multi-standard digital video encoder implemented in current CMOS technology. It provides
all necessary digital image processing for standard
four-color interline transfer CCD imagers. The
CS7654 processes the magenta, yellow, cyan, and
green (MYCG) CCD imager data into YCrCb formatted component and into NTSC-M, NTSC-J,
PAL-B, PAL-D, PAL-G, PAL-H, PAL-I, PAL-M,
PAL-N, or PAL-N Argentina-compatible analog
video.
Two 10-bit DAC outputs provide high quality SVideo analog output while another 10-bit DAC simultaneously generates composite analog video.
In order to lower overall system costs, the CS7654
provides an internal voltage reference that eliminates the requirement for an external, discrete,
three-pin voltage reference.
The CS7654 forms the heart of a four chip digital
CCD Camera. The four chips include the CCD imager, the CS7615 CCD digitizer, the CS7654 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 CS7654
processor to form a simple and cost-effective Analog output format digital camera. The CS7615 and
CS7654 together support imager formats ranging
from 175×175 pixels up to 1000x1000 pixels. Timing control is located in the CS7615 analog processor, while the CS7654 synchronizes itself by
decoding the timing cues embedded in the CS7615
data stream. Alternately, the CS7654 accepts horizontal and vertical timing signals on HREFIN and
VREFIN pins. The block diagram in Figure 1 illustrates a typical system interconnect.
The CS7654 provides color separation of standard
MYCG chroma block data from industry standard
CS7615
CCD
6
512x480
Vertical
Drive
+18V to +12V
Figure 1. Typical 4-Chip Digital CCD Camera
CDS/ADC
Timing
6
I2CI2C
CCD
Bias
CS7654
Image
Processor
2
+5V
four-color CCD imagers. Gamma correction and
white balance adjustment functions are also included in the CS7654. The YCrCb (luminance and
chrominance) data is output at twice the scaled
pixel rate in 10-bit format. The digital YCrCb output data from the CS7654 conforms to the ITU-656
parallel component digital video recommendation
with embedded synchronization (see Embedded
EAV and SAV discussion).
The CS7654 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
common 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.
The CS7615 and CS7654 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 CS7654, where all output formats
8
CS7654
follow the ITU-601/656 recommendation even if
the image formats differ in horizontal a nd vertical
pixel dimensions.
0Cb00Start of Digital Video
1Y0For VBLANK line 1 to 19
2Cr0
3Y11
4Cb22
5Y2
6Cr2
7Y33
2nCbnnFor active pixels 20
2n + 1Yn
2n + 3Crn
Yn+1n+1
1272Cb636636
1273Y636
1274Cr636
1275Y637637
1276Cb638638
1277Y638
1278Cr638
1279Y639End of Digital VIdeo
Table 1. Detail of Scan Line for 640x480 Image
Cr = Cb = 80h
Y = 10h
and 264 to 283
Cr = Cb = 80h
Y = 10h
through 263 and 283 to
525 for n=even from pix-
els 0 to 638
10
CS7654
Digital Output Formats
The CS7654 can output data in a 10-bit format at
a 2x output pixel clock rate. Figure 3 details 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 CS7654 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 at
SA34h) 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
CLIP_OFF register will set the digital section on
the data path to the extended range of value. If you
want to have the analog output set to extended
range, you will also have to set Register 06h at Station Address (SA ) 0x00.
The digital outputs are configured for 10-bit interleaved Y and CrCb data
The CS7654 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,
DOUT1 and DOUT0 are not used. However,
DOUT[9:2] is 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.
Internal Horizontal Scaler
The internal horizontal scaler is used to bridge between common CCD imager formats and computer
or television formats.
Several pre-defined scaler modes may be selected
by writing a 3-bit value to bits 0-2 of register 04h at
SA 0x34h. These default scaling modes are described in Table 2. If the CUSTOM bit (bit 3 of register 04h at SA 0x34h) 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 at
SA 0x34h.)
24.5454MHz
CLKOUT
SAV
DO [9-0]
A
Line 3 Pixel 776
to Line 4 P i xel 3
DO [9-0]
A
Line 263 Pixel 638
to Line 264 Pixel 645
DO [9-0]
A
Line 525 Pixel 638
to Line 1 Pixel 645
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.
FFh00h00hABh80h10h80h10h80h10h80h10h80h10h
EAV
FFh00h00hF1h80h10h80h10h80h10h80h10h80h10h
EAV
11
CS7654
CLKIN2X Input Timing
The CLKIN2X, pin 59, will always require a primary pixel rate clock source. CCD manufacturers
generally specify a pixel clock frequency that is
compatible with one of the analog encoders that
can be used with a given imager. If the analog out-
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.
CLKOUT_GRG
put is used, the clock frequency input 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
CLKOUT_GRG follows the output data rate The
clock output is at 2x the output luma sample rate,
there is no non-interlaced digital output on the
CS7654.
a wide range of pixel and frame rates.
ModeCCD FormatCCD Clock (MHz)Output FormatInput Clock (MHz)Scaling Ratio
Table 2. Default S caling Modes (Reg i ster 04h at SA34h)
12
CS7654
INTERNAL PROCESSING
The internal operation of the CS7654 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 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 for mats. Thes e include R GB and YU V,
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 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 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 at SA 0x34h. For manual
control, the red balance is accessed through register
08h, and the blue balance is accessed through register 09h ( both at SA 0x34h).
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 at SA 0x34h.
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 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 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
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 value used when the input data is FFh.
The gamma table is read in a similar manner. However, certain restrictions ar e 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 intens ity 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.
13
CS7654
Internal Filters
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 images. This filter is enabled by setting register 05h bit
3 to a value of 0 at SA 0x34h. By default the lowpass 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 orchestrating 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 subcarrier frequency for NTSC or PAL. The CS7654 generates 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 compensation. 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 programming 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 begins around 1.1 MHz with an attenuation of greater
than 20 dB.
The output of the chroma low-pass filter is connected to the chroma interpolation filter in which upsampling from 4:2:2 to 4:4:4 is accomplished.
Following the interpolation filter, the U and V
chroma signals pass through two independent variable 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 reduce 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 provided via the 8-bit BRIGHTNESS_OFFSET Register.
14
CS7654
Following the luma delay, the data is passed
through an interpolation filter that has a programmable bandwidth, followed by a variable gain amplifier 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 accomplished 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), blanking 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 adjustable 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 terminated 75 Ω) or high-impedance loads (double terminated 300 Ω).
The DACs can be put into tri-state mode via hostaddressable 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 applying 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 specified by the size of resistor placed between the
ISET_DAC current reference pin and electrical
ground.
A 4 kΩ resistor needs to be connected between
ISET_DAC pin and GND. The DAC output currents are optimized to either drive a doubly terminated load of 75 Ω (low impedence mode) or a
double terminated load of 300 Ω (high impedence
mode). The 2 output current modes are software selectable 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 insertion (001), and finally insertion of the two data
bytes per line. Data low at the video outputs corresponds 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 provided to simplify the handshake between the driver
15
CS7654
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 software 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 accomplished primarily through the control register
block. All of the control registers are uniquely addressable via the internal address register. The control register bits are initialized during device
RESET.
See the Programming section of this data sheet for
the individual register bit allocations, bit operational descriptions, and initialization states.
The registers of the CS7654 are located in two separate 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 located in a different Station Address. Note that both
sections of this device cannot bear the same I2C address.
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 asynchronous 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 restrictions.
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 Table 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, Register (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 decompression 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 processed for NTSC, and 288 active lines total per
field are processed for PAL. Frame vertical dimensions are 480 lines for NTSC and 576 lines for
PAL. Table 3 specifies active line numbers for both
NTSC and PAL.
The CS7654 supports analog NTSC-M, NTSC-J
and PAL-M modes where there are 525 total lines
per frame and two fixed 262.5-line fields per frame
and 30 total frames occurring per second. NTSC in-
318
terlaced vertical timing is illustrated in Figure 5.
Each field consists of one line for closed caption,
240 active lines of video, plus 21.5 lines of blanking.
17
CS7654
Analog
Field 1
523524525123456789
Analog
Field 2
261262 263
Analog
Field 3
523524525
261262 263
Burst begins with positive half-cycleBurst begins with negative half-cycle
1 23456 789
Analog
Field 4
VSYNC Drops
VSYNC Drops
1022
285284272271270269268267266265264
1022
285284272271270269268267266265264
Figure 5. NTSC Video Interlaced Timing
PAL Interlaced
The CS7654 supports analog PAL modes B, D, G,
H, I, N, and Combination N, in which there are 625
total lines per frame, two fixed 312.5 line fields per
frame, and 25 total frames per second. Figure 7 illustrates PAL interlaced vertical timing. Each field
consists of 287 active lines of video plus 25.5 lines.
Progressive Scan
The CS7654 supports an analog progessive scan
mode in which the video output is non-interlaced.
This is accomplished by displaying only the odd
video field for NTSC or PAL. To preserve precise
MPEG-2 frame rates of 30 and 25 per second, the
CS7654 displays the same odd field repetitively but
alternately varies the field times. This mode is in
contrast to other digital video encoders, which
commonly support progressive scan by repetitively
displaying a 262 line field (524/525 lines for
NTSC). The common method is flawed: over time,
the output display rate will overrun a system-clo cklocked MPEG-2 decompressor and display a field
twice every 8.75 seconds. NTSC non-interlaced
timing is illustrated in Figure 7. PAL non-interlaced timing is illustrated in Figure 8.
Digital Video Input Modes
The CS7654 provides two different digital video
input modes that are selectable through the
IN_MODE bit in the CONTROL_0 Register at SA
0x00.
In Mode 0 and upon RESET, the CS7654 defaults
to output a solid color (one of a possible of 256 colors). The background color is selected by writing
the BKG_COLOR Register (0x08) at SA 0x00.
The colorspace of the register is RGB 3:3:2 and is
unaffected by gamma correction. The default color
following RESET is blue.
18
VSY NC Drops
Analog
Field 1
CS7654
62062462512345672324
62062462512345672324
62062462512345672324
621622623
Analog
Field 2
308311312313314315316317318319320336337
308311312313314315316317318319320336337
309310
Analog
Field 3
621622623
Analog
Field 4
309310
Analog
Field 5
621622623
Analog
Field 6
308311312313314315316317318319320336337
62062462512345672324
308311312313314315316317318319320336337
309310
Analog
Field 7
621622623
Analog
Field 8
309310
Burst Phase = 135 degrees relative to UBurst Phase = 225 degrees relative to U
Figure 6. PAL Interlaced Timing
19
Loading...
+ 43 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.