• Four Separate Video Decoder Channels With• Internal Phase-Locked Loop (PLL) for
Features for Each Channel:Line-Locked Clock (Separate for Each Channel)
– Accept NTSC (J, M, 4.43), PAL (B, D, G, H, I,
M, N, Nc), and SECAM (B, D, G, K, K1, L)• Sub-Carrier Genlock Output for Synchronizing
VideoColor Sub-Carrier of External Encoder
– Support ITU-R BT.601 Standard Sampling• Standard Programmable Video Output Format
– High-Speed 9-Bit Analog-to-Digital Converter– ITU-R BT.656, 8-Bit 4:2:2 With Embedded
(ADC)Syncs
– Two Composite Inputs or One S-Video Input– 8-Bit 4:2:2 With Discrete Syncs
(for Each Channel)
– Fully Differential CMOS AnalogFormats
Preprocessing Channels With Clamping and
Automatic Gain Control (AGC) for Best
Signal to Noise (SNR) Performance
– Brightness, Contrast, Saturation, Hue, and
Cross-Chrominance Noise Reduction
– Patented Architecture for Locking to Weak,
Noisy, or Unstable Signals
• Four Independent Polymorphic Scalers
• Single or Concurrent Scaled and Unscaled
Outputs Via Dual Clocking Data, Interleaved
54-MHz Data or Single 27-MHz Clock
• Scaled/Unscaled Image Toggle Mode Gives
Variable Field Rate for Both Scaled and
Unscaled Video
• Low Power Consumption: 700 mW Typical
• 128-Pin Thin Quad Flat Pack (TQFP) Package
• Single 14.31818-MHz Crystal for All Standards
and All Channels
and Sampling
• Advanced Programmable Video Output
– 2× Over-Sampled Raw Vertical Blanking
Interval (VBI) Data During Active Video
– Sliced VBI Data During Horizontal Blanking
or Active Video
• VBI Modes Supported:
– Teletext (NABTS, WST)
– Closed-Caption Decode With FIFO, and
Extended Data Services (EDS)
– Wide Screen Signaling (WSS), Video
Program System (VPS), Copy Generation
Management System (CGMS), Vertical
Interval Time Code (VITC)
– Gemstar 1×/2× Electronic Program Guide
Compatible Mode
– Custom Configuration Mode Allows User to
Program the Slice Engine for Unique VBI
Data Signals
• Improved Fast Lock Mode Can Be Used When
Input Video Standard Is Known and Signals on
Switching Channels Are Clean
• Four Possible I2C Addresses Allowing 16
Decoder Channels on a Single I2C Bus
• Available in Commercial (0°C to 70°C) and
Industrial (–40°C to 85°C) Temperature Ranges
1.2Description
The TVP5154A device is a 4-channel, low-power, NTSC/PAL/SECAM video decoder. Available in a
space-saving 128-pin thin quad flat pack (TQFP) package, each channel of the TVP5154A decoder
converts NTSC, PAL, or SECAM video signals to 8-bit ITU-R BT.656 format. Discrete syncs are also
1
Please be aware that an important notice concerning availability, standard warranty, and use in critical applications of Texas
Instruments semiconductor products and disclaimers thereto appears at the end of this data sheet.
PRODUCTION DATA information is current as of publication date.
Products conform to specifications per the terms of the Texas
Instruments standard warranty. Production processing does not
necessarily include testing of all parameters.
available. All four channels of the TVP5154A are independently controllable. The decoders share one
crystal for all channels and for all supported standards. The TVP5154A can be programmed using a single
inter-integrated circuit (I2C) serial interface. The decoder uses a 1.8-V supply for its analog and digital
supplies, and a 3.3-V supply for its I/O. The optimized architecture of the TVP5154A decoder allows for
low power consumption. The decoder consumes less than 720 mW of power in typical operation.
Each channel of the TVP5154A is an independent video decoder with a programmable polymorphic
scaler. Each channel converts baseband analog video into digital YCbCr 4:2:2 component video, which
can then be scaled down to any resolution to 1/256 vertical and 15-bit horizontal in 2-pixel decrements.
Composite and S-video inputs are supported. Each channel includes one 9-bit analog-to-digital converter
(ADC) with 2× sampling. Sampling is ITU-R BT.601 (27.0) MHz, generated from a single 14.31818-MHz
crystal or oscillator input) and is line locked. The output formats can be 8-bit 4:2:2 with discrete syncs or
8-bit ITU-R BT.656 with embedded synchronization.
The TVP5154A utilizes Texas Instruments patented technology for locking to weak, noisy, or unstable
signals. A real-time control (RTC) output is generated for each channel for synchronizing downstream
video encoders.
Complementary 4-line adaptive comb filtering is available per channel for both the luma and chroma data
paths to reduce both cross-luma and cross-chroma artifacts. A chroma trap filter also is available.
An improved fast lock mode can be used when the input video standard is known and the signals on the
switching channels are clean. Note, switching from snow and/or noisy channels to good channels takes
longer. In fast lock mode, video lock is achieved in three fields or less.
www.ti.com
Video characteristics, including hue, contrast, brightness, saturation, and sharpness, may be
independently programmed for each channel using the industry standard I2C serial interface. The
TVP5154A generates synchronization, blanking, lock, and clock signals in addition to digital video outputs
for each channel. The TVP5154A includes methods for advanced vertical blanking interval (VBI) data
retrieval. The VBI data processor slices, parses, and performs error checking on teletext, closed caption,
and other data in several formats.
I2C commands can be sent to one or more decoder cores simultaneously, reducing the amount of I2C
activity necessary to configure each core. A register controls which decoder core receives I2C commands,
and can be configured such that all four decoders receive commands at the same time.
The main blocks for each of the channels of the TVP5154A decoder include:
•Robust sync detector
•ADC with analog processor
•Y/C separation using 4-line adaptive comb filter
•Independent, concurrent scaler outputs
•Chrominance processor
•Luminance processor
•Video clock/timing processor and power-down control
•I2C interface
•VBI data processor
1.3Applications
•Security/Surveillance Digital Video Recorders/Servers and PCI Products
PowerPAD is a trademark of Texas Instruments.
Macrovision is a trademark of Macrovision Corporation.
Gemstar is a trademark of Gemstar-TV Guide International.
Other trademarks are the property of their respective owners.
1.6Document Conventions
Throughout this data manual, several conventions are used to convey information. These conventions are:
•To identify a binary number or field, a lower case b follows the numbers. For example: 000b is a 3-bit
binary field.
•To identify a hexadecimal number or field, a lower case h follows the numbers. For example: 8AFh is a
12-bit hexadecimal field.
•All other numbers that appear in this document that do not have either a b or h following the number
are assumed to be decimal format.
•If the signal or terminal name has a bar above the name (for example, RESETB), then this indicates
the logical NOT function. When asserted, this signal is a logic low, 0, or 0b.
•RSVD indicates that the referenced item is reserved.
SLES214C–DECEMBER 2007–REVISED SEPTEMBER 2010
1.7Ordering Information
T
A
0°C to 70°C
–40°C to 85°C
(1) For the most current package and ordering information, see the Package Option Addendum at the end
of this document, or see the TI web site at www.ti.com.
AIP1A2maximum input range is 0–0.75 VPP, and may require an attenuator to reduce the input
AIP1B3amplitude to the desired level. If not used, connect to AGND via a 0.1-µF capacitor. See the
AIP2A11maximum input range is 0-0.75 VPP, and may require an attenuator to reduce the input
AIP2B12amplitude to the desired level. If not used, connect to AGND via a 0.1-µF capacitor. See the
AIP3A22maximum input range is 0-0.75 VPP, and may require an attenuator to reduce the input
AIP3B23amplitude to the desired level. If not used, connect to AGND via a 0.1-µF capacitor. See the
AIP4A31maximum input range is 0-0.75 VPP, and may require an attenuator to reduce the input
AIP4B32amplitude to the desired level. If not used, connect to AGND via a 0.1-µF capacitor. See the
AVDDPAnalog power supply. Connect to 1.8-V analog supply.
AGND29, 35,GAnalog power supply return. Connect to analog ground.
AIxGNDGAnalog input signal return. Connect to analog ground.
PLL_GNDGPLL power supply return. Connect to analog ground.
PLL_VDDPPLL power supply. Connect to 1.8-V analog supply.
REFMxI
REFPxI
Digital Section
DGNDGDigital power supply return. Connect to digital ground
DVDDPDigital power supply. Connect to 1.8-V digital supply.
IOGNDGI/O power supply return. Connect to digital ground.
IOVDDPI/O power supply. Connect to 3.3-V digital supply
6, 17, 26,Reference supply decoupling . Connect to analog ground through a 1-µF capacitor. Connect
125to REFPx through a 1-µF capacitor.
7, 18, 27,Reference supply decoupling . Connect to analog ground through a 1-µF capacitor. Connect
126to REFMx through a 1-µF capacitor.
47, 66, 82,
99, 116
46, 65, 81,
98, 115
44, 63, 79,
96, 113
45, 64, 80,
97, 114
I/ODESCRIPTION
Analog inputs for Channel 1. Connect to the video analog input via a 0.1-µF capacitor. The
I
schematic in Section 10.
Analog inputs for Channel 2. Connect to the video analog input via a 0.1-µF capacitor. The
I
schematic in Section 10.
Analog inputs for Channel 3. Connect to the video analog input via a 0.1-µF capacitor. The
I
schematic in Section 10.
Analog inputs for Channel 4. Connect to the video analog input via a 0.1-µF capacitor. The
I
schematic in Section 10.
1. FID: Odd/even field indicator or vertical lock indicator. For the odd/even indicator, a 1
indicates the odd field.
O2. GLCO: This serial output carries color PLL information. A slave device can decode the
information to allow chroma frequency control from the TVP5154A decoder. Data is
transmitted at the CLK rate in Genlock mode.
O
1. Interrupt request : Open drain when active low.
2. GPCL: General-purpose output. In this mode, the state of GPCL is directly programmed
I/O
via I2C.
3. VBLK: Vertical blank output. In this mode, the GPCL terminal is used to indicate the VBI
of the output video. The beginning and end times of this signal are programmable via
I2C.
I2CA0118Iaddress the device is configured to. A 10-kΩ resistor should pull this either high (to IOVDD)
I2CA1117Iaddress the device is configured to. A 10-kΩ resistor should pull this either high (to IOVDD)
CLK1103
CLK284
CLK361
CLK442
SCLK1104
SCLK285Scaled system data clock at 27 MHz. This signal can be used to qualify scaled/unscaled
SCLK362data when the unscaled system data clock is set to 54 MHz.
SCLK443
XIN/OSC124Icrystal oscillator. The user may connect XOUT to the other terminal of the crystal oscillator
XOUT123Oor not connect XOUT at all. One single 14.31818-MHz crystal or oscillator is needed for
CH1_OUT[7:0]105–112ODecoded ITU-R BT.656 output/YCbCr 4:2:2 output with discrete sync for channel 1
CH2_OUT[7:0]86–93ODecoded ITU-R BT.656 output/YCbCr 4:2:2 output with discrete sync for channel 2
CH3_OUT[7:0]67–74ODecoded ITU-R BT.656 output/YCbCr 4:2:2 output with discrete sync for channel 3
CH4_OUT[7:0]48–55ODecoded ITU-R BT.656 output/YCbCr 4:2:2 output with discrete sync for channel 4
TMS36I
I/ODESCRIPTION
OHorizontal synchronization
1. VSYNC: Vertical synchronization
O
2. PALI: PAL line indicator or horizontal lock indicator. For the PAL line indicator, a 1
indicates a noninverted line, and a 0 indicates an inverted line.
Power down (active low). A 0 on this pin puts the decoder in standby mode. PDN preserves
the value of the registers.
Active-low reset. RESETB can be used only when PDN = 1. When RESETB is pulled low, it
resets all the registers and restarts the internal microprocessor.
During power-on reset, this pin is sampled along with pin 117 (I2CA1) to determine the I2C
or low to select different I2C device addresses.
During power-on reset, this pin is sampled along with pin 118 (I2CA0) to determine the I2C
or low to select different I2C device addresses.
OUnscaled system data clock at either 27 MHz or 54 MHz
O
External clock reference. The user may connect XIN to an oscillator or to one terminal of a
ITU-R BT.601 sampling, for all supported standards.
Test-mode select. This pin should be connected to digital ground for correct device
operation.
Each channel of the TVP5154A decoder has an analog input channel that accepts two video inputs, which
should be ac coupled through 0.1-µF capacitors. The decoder supports a maximum input voltage range of
0.75 V; therefore, an attenuation of one-half is needed for standard input signals with a peak-to-peak
variation of 1.5 V. The maximum parallel termination before the input to the device is 75 Ω. See the
schematic in Section 10 for recommended configuration. The two analog input ports can be connected as
follows:
•Two selectable composite video inputs or
•One S-video input
An internal clamping circuit restores the ac-coupled video signal to a fixed dc level.
The programmable gain amplifier (PGA) and the automatic gain control (AGC) circuit work together to
ensure that the input signal is amplified or attenuated correctly, ensuring the proper input range for the
ADC.
When switching CVBS inputs from one input to the other, the AGC settings are internally stored and the
previous settings for the new input are restored. This eliminates flashes and dark frames associated with
switching between inputs that have different signal amplitudes.
The ADC has nine bits of resolution and runs at a maximum speed of 27 MHz. The clock input for the
ADC comes from the PLL.
SLES214C–DECEMBER 2007–REVISED SEPTEMBER 2010
3.2Composite Processing Block Diagram
The composite processing block processes NTSC/PAL/SECAM signals into the YCbCr color space.
Figure 2-1 shows the basic architecture of this processing block.
Figure 2-1 shows the luminance/chrominance (Y/C) separation process in the TVP5154A decoders. The
composite video is multiplied by sub-carrier signals in the quadrature modulator to generate the color
difference signals Cb and Cr. Cb and Cr are then low pass (LP) filtered to achieve the desired bandwidth
and to reduce crosstalk.
An adaptive 4-line comb filter separates CbCr from Y. Chroma is remodulated through another quadrature
modulator and subtracted from the line-delayed composite video to generate luma. Contrast, brightness,
hue, saturation, and sharpness (using the peaking filter) are programmable via I2C.
The Y/C separation is bypassed for S-video input. For S-video, the remodulation path is disabled.
The 4-line comb filter can be selectively bypassed in the luma or chroma path. If the comb filter is
bypassed in the luma path, then chroma trap filters are used which are shown in Figure 3-1 and
Figure 3-2. TI's patented adaptive 4-line comb filter algorithm reduces artifacts, such as hanging dots at
color boundaries, and detects and properly handles false colors in high-frequency luminance images, such
as a multiburst pattern or circle pattern.
In some applications, it is desirable to limit the Cb/Cr bandwidth to avoid crosstalk. This is especially true
in the case of video signals that have asymmetrical Cb/Cr sidebands. The provided color LP filters limit the
bandwidth of the Cb/Cr signals. Color LP filters are needed when the comb filtering turns off, due to
extreme color transitions in the input image. See Chrominance Control #2 Register (Section 7.2.27), for
the response of these filters. The filters have three options that allow three different frequency responses
based on the color frequency characteristics of the input video as shown in Figure 3-3.
SLES214C–DECEMBER 2007–REVISED SEPTEMBER 2010
Figure 3-3. Color Low-Pass Filter with Filter Characteristics, NTSC/PAL ITU-R BT.601 Sampling
3.5Luminance Processing
The luma component is derived from the composite signal by subtracting the remodulated chroma
information. A line delay exists in this path to compensate for the line delay in the adaptive comb filter in
the color processing chain. The luma information is then fed into the peaking circuit, which enhances the
high-frequency components of the signal, thus, improving sharpness.
3.6Chrominance Processing
For NTSC/PAL formats, the color processing begins with a quadrature demodulator. The Cb/Cr signals
then pass through the gain control stage for chroma saturation adjustment. An adaptive comb filter is
applied to the demodulated signals to separate chrominance and eliminate cross-chrominance artifacts.
An automatic color-killer circuit is also included in this block. The color killer suppresses the chrominance
processing when the burst amplitude falls below a programmable threshold (see I2C subaddress 06h,
Section 7.2.7). The SECAM standard is similar to PAL except for the modulation of color, which is FM
instead of QAM.
3.7Timing Processor
The timing processor is a combination of hardware and software running in the internal microprocessor
that serves to control horizontal lock to the input sync pulse edge, AGC and offset adjustment in the
analog front end, and vertical sync detection.
The TVP5154A VBI data processor (VDP) slices various data services, such as teletext (WST, NABTS),
closed caption (CC), wide screen signaling (WSS), etc. These services are acquired by programming the
VDP to enable standards in the VBI. The results are stored in a FIFO and/or registers. The teletext results
are stored in a FIFO only. Table 3-1 lists a summary of the types of VBI data supported according to the
video standard. It supports ITU-R BT.601 sampling for each.
Table 3-1. Data Types Supported by the VDP
LINE MODE REGISTER
(D0h–FCh) BITS [3:0]
0000bWST SECAMTeletext, SECAM
0001bWST PAL BTeletext, PAL, System B
0010bWST PAL CTeletext, PAL, System C
0011bWST, NTSC BTeletext, NTSC, System B
0100bNABTS, NTSC CTeletext, NTSC, System C
0101bNABTS, NTSC DTeletext, NTSC, System D (Japan)
0110bCC, PALClosed caption PAL
0111bCC, NTSCClosed caption NTSC
1000bWSS/CGMS-A, PALWide-screen signaling/Copy Generation Management System-Analog, PAL
1001bWSS/CGMS-A, NTSCWide-screen signaling/Copy Generation Management System-Analog, NTSC
1010bVITC, PALVertical interval timecode, PAL
1011bVITC, NTSCVertical interval timecode, NTSC
1100bVPS, PALVideo program system, PAL
1101bGemstar 2x Custom 1Electronic program guide
1110bReservedReserved
1111bActive VideoActive video/full field
NAMEDESCRIPTION
www.ti.com
At power up, the host interface is required to program the VDP-configuration RAM (VDP-CRAM) contents
with the lookup table (see Section 7.2.69). This is done through port address C3h. Each read from or write
to this address auto increments an internal counter to the next RAM location. To access the VDP-CRAM,
the line mode registers (D0h–FCh) must be programmed with FFh to avoid a conflict with the internal
microprocessor and the VDP in both writing and reading. Full field mode must also be disabled.
Available VBI lines are from line 6 to line 27 of both field 1 and field 2. Each line can be any VBI mode.
Output data is available either through the VBI-FIFO (B0h) or through dedicated registers at 90h–AFh,
Sliced VBI data can be output as ancillary data in the video stream in the ITU-R BT.656 mode. VBI data is
output during the horizontal blanking period following the line from which the data was retrieved. Table 3-2
shows the header format and sequence of the ancillary data inserted into the video stream. This format is
also used to store any VBI data into the FIFO. The size of FIFO is 512 bytes. Therefore, the FIFO can
store up to 11 lines of teletext data with the NTSC NABTS standard.
Table 3-2. Ancillary Data Format and Sequence
BYTE NO.D6D5D4D3D2D1DESCRIPTION
000000000Ancillary data preamble
111111111
211111111
3NEPEP010DID2DID1DID0Data ID (DID)
4NEPEPF5F4F3F2F1F0Secondary data ID (SDID)
5NEPEPN5N4N3N2N1N0Number of 32 bit data (NN)
6Video line # [7:0]Internal data ID0 (IDID0)
7000Data error Match #1Match #2Video line # [9:8]Internal data ID1 (IDID1)
81. DataData byte1st word
EP:Even parity for D0–D5
NEP:Negated even parity
DID:91h: Sliced data of VBI lines of first field
53h: Sliced data of line 24 to end of first field
55h: Sliced data of VBI lines of second field
97h: Sliced data of line 24 to end of second field
SDID:This field holds the data format taken from the line mode register of the corresponding line.
NN:Number of Dwords beginning with byte 8 through 4(N+2). This value is the number of Dwords where each Dword is 4
bytes.
IDID0:Transaction video line number [7:0]
IDID1:Bit 0/1 = Transaction video line number [9:8]
Bit 2 = Match 2 flag
Bit 3 = Match 1 flag
Bit 4 = 1 if an error was detected in the EDC block. 0 if not.
CS:Sum of D0–D7 of DID through last data byte
Fill byte:Fill bytes make a multiple of four bytes from byte 0 to last fill byte. For teletext modes, byte 8 is the sync pattern byte.
The TVP5154A decoder can output raw A/D video data at 2× sampling rate for external VBI slicing. This is
transmitted as an ancillary data block during the active horizontal portion of the line and during vertical
blanking.
3.11 Output Formatter
The output formatter is responsible for generating the output digital video stream. The YCbCr digital output
can be programmed as 8-bit 4:2:2 or 8-bit ITU-R BT.656 parallel interface standard. Depending on which
output mode is selected, the output for each channel can be unscaled data, scaled data, or both scaled
and unscaled data interleaved in various ways.
Table 3-3. Summary of Line Frequencies, Data Rates and Pixel Counts for Different Standards
The I2C standard consists of two signals, serial input/output data line (SDA) and input/output clock line
(SCL), which carry information between the devices connected to the bus. The input pins I2CA0 and
I2CA1 are used to select the slave address to which the device responds. Although the I2C system can be
multimastered, the TVP5154A decoder functions as a slave device only.
Both SDA and SCL must be connected to IOVDD via pullup resistors. When the bus is free, both lines are
high. The slave address select terminals (I2CA0 and I2CA1) enable the use of four TVP5154A decoders
on the same I2C bus. At the trailing edge of reset, the status of the I2CA0 and I2CA1 lines are sampled to
determine the device address used. Table 4-1 summarizes the terminal functions of the I2C-mode host
interface. Table 4-2 shows the device address selection options.
Data transfer rate on the bus is up to 400 kbit/s. The number of interfaces connected to the bus is
dependent on the bus capacitance limit of 400 pF. The data on the SDA line must be stable during the
high period of the SCL, except for start and stop conditions. The high or low state of the data line can only
change with the clock signal on the SCL line being low. A high-to-low transition on the SDA line while the
SCL is high indicates an I2C start condition. A low-to-high transition on the SDA line while the SCL is high
indicates an I2C stop condition.
Every byte placed on the SDA must be eight bits long. The number of bytes that can be transferred is
unrestricted. Each byte must be followed by an acknowledge bit. The acknowledge-related clock pulse is
generated by the I2C master.
To simplify programming of each of the four decoder channels, a single I2C write transaction can be
transmitted to any one or more of the four cores in parallel. This reduces the time required to download
firmware or to configure the device when all channels are to be configured in the same manner. It also
enables the addresses for all registers to be common across all decoders.
I2C sub-address 0xFE contains four bits, with each bit corresponding to one of the decoder cores. If this
bit is set, I2C write transactions are sent to the corresponding decoder core. If the bit is 0, the
corresponding decoder does not receive the I2C write transactions.
I2C sub-address 0xFF contains four bits, with each bit corresponding to one of the decoder cores. If this
bit is set, I2C read transactions are sent to the corresponding decoder core. Note, only one of the bits in
this register should be set at a given time, ensuring that only one decoder core is accessed at a time for
read operations. If more than one bit is set, the lowest set bit number corresponds to the core that
responds to the read transaction.
Note that, when register 0xFE is written to with any value, register 0xFF is set to 0x00. Likewise, when
register 0xFF is written to with any value, register 0xFE is set to 0x00.
Data transfers occur utilizing the following illustrated formats.
An I2C master initiates a write operation to the TVP5154A decoder by generating a start condition (S)
followed by the TVP5154A I2C address (as shown below), in MSB first bit order, followed by a 0 to
indicate a write cycle. After receiving an acknowledge from the TVP5154A decoder, the master presents
the sub-address of the register, or the first of a block of registers it wants to write, followed by one or more
bytes of data, MSB first. The TVP5154A decoder acknowledges each byte after completion of each
transfer. The I2C master terminates the write operation by generating a stop condition (P).
I2C write data (master)DataDataDataDataDataDataDataData
(1)
Step 7
I2C acknowledge (slave)A
Step 80
I2C stop (master)P
(1) Repeat steps 6 and 7 until all data have been written.
9
4.2I2C Read Operation
The read operation consists of two phases. The first phase is the address phase. In this phase, an I2C
master initiates a write operation to the TVP5154A decoder by generating a start condition (S) followed by
the TVP5154A I2C address, in MSB first bit order, followed by a 0 to indicate a write cycle. After receiving
acknowledges from the TVP5154A decoder, the master presents the sub-address of the register or the
first of a block of registers it wants to read. After the cycle is acknowledged, the master terminates the
cycle immediately by generating a stop condition (P).
The second phase is the data phase. In this phase, an I2C master initiates a read operation to the
TVP5154A decoder by generating a start condition followed by the TVP5154A I2C address (as shown
below for a read operation), in MSB first bit order, followed by a 1 to indicate a read cycle. After an
acknowledge from the TVP5154A decoder, the I2C master receives one or more bytes of data from the
TVP5154A decoder. The I2C master acknowledges the transfer at the end of each byte. After the last data
byte desired has been transferred from the TVP5154A decoder to the master, the master generates a not
acknowledge followed by a stop.
I2C read data (slave)DataDataDataDataDataDataDataData
(1)
Step 11
I2C not acknowledge (master)A
Step 120
I2C stop (master)P
(1) Repeat steps 10 and 11 for all bytes read. Master does not acknowledge the last read data received.
9
4.2.1I2C Timing Requirements
The TVP5154A decoder requires delays in the I2C accesses to accommodate its internal processor's
timing. In accordance with I2C specifications, the TVP5154A decoder holds the I2C clock line (SCL) low to
indicate the wait period to the I2C master. If the I2C master is not designed to check for the I2C clock line
held-low condition, the maximum delays must always be inserted where required. These delays are of
variable length; maximum delays are indicated in the following diagram:
Table 4-3. I2C Timing
StartAckSubaddressAckData (XXh)AckWait 128 µs
(1) If the SCL pin is not monitored by the master to enable pausing, a delay of 128 µs should be inserted between transactions for registers
An internal line-locked PLL generates the system and pixel clocks. A 14.31818-MHz clock is required to
drive the PLL. This may be input to the TVP5154A decoder on terminal 124 (XIN), or a crystal of
14.31818-MHz fundamental resonant frequency may be connected across terminals 123 and 124 (XIN
and XOUT). Figure 5-1 shows the reference clock configurations. For the example crystal circuit shown (a
parallel-resonant crystal with 14.31818-MHz fundamental frequency), the external capacitors must have
the following relationship:
CL1= CL2= 2CL– C
where C
is the terminal capacitance with respect to ground and CLis the crystal load capacitance
STRAY
specified by the crystal manufacturer. Figure 5-1 shows the reference clock configurations.
NOTE: The resistor (R) in parallel with the crystal is recommended to support a wide range of crystal types. A 100-kΩ resistor
A Genlock control (GLCO) function is provided to support a standard video encoder to synchronize its
internal color oscillator for properly reproduced color with unstable timebase sources like VCRs.
The frequency control word of the internal color subcarrier digital control oscillator (DTO) and the
subcarrier phase reset bit are transmitted via the GLCO terminal. The frequency control word is a 23-bit
binary number. The frequency of the DTO can be calculated from the following equation:
where F
of the CLK.
6.1TVP5154A Genlock Control Interface
A write of 1 to bit 4 of the chrominance control register at I2C subaddress 1Ah causes the subcarrier DTO
phase reset bit to be sent on the next scan line on GLCO. The active-low reset bit occurs seven CLKs
after the transmission of the last bit of DCO frequency control. Upon the transmission of the reset bit, the
phase of the TVP5154A internal subcarrier DCO is reset to zero.
A Genlock slave device can be connected to the GLCO terminal and uses the information on GLCO to
synchronize its internal color phase DCO to achieve clean line and color lock.
6.2RTC Mode
is the frequency of the DTO, F
dto
SLES214C–DECEMBER 2007–REVISED SEPTEMBER 2010
is the 23–bit DTO frequency control, and F
ctrl
is the frequency
clk
(1)
Figure 6-1 shows the timing diagram of the RTC mode. Clock rate for the RTC mode is four times slower
than the GLCO clock rate. For PLL frequency control, the upper 22 bits are used. Each frequency control
bit is two clock cycles long. The active-low reset bit occurs six CLKs after the transmission of the last bit of
PLL frequency control.
The RESETB and PDN terminals work together to put the TVP5154A decoder into one of the two modes.
Table 6-1 shows the configuration.
After power-up, the device is in an unknown state with its outputs undefined, until it receives a RESETB
signal as depicted in Figure 6-2. After RESETB is released, the data (CHn_OUT[7:0]), sync (HSYNCn,
VSYNCn/PALIn), and clock (CLKn, SCLKn) outputs are Hi-Z until the chip is initialized and the outputs are
activated.
The TVP5154A decoder is initialized and controlled by sets of internal registers that set all device
operating parameters. Communication between the external controller and the TVP5154A decoder is
through the I2C. Two sets of registers exist, direct and indirect. Table 7-1 shows the summary of the direct
registers. Reserved registers must not be written. Reserved bits in the defined registers must be written
with zeros, unless otherwise noted. The detailed programming information of each register is described in
the following sections.
I2C register FEh controls which of the four decoders receives I2C commands. I2C register FFh controls
which decoder core responds to I2C reads. Note, for a read operation, it is necessary to perform a write
first, to set the desired sub-address for reading.
After power up and the hardware reset, each decoder must be started by writing 00h to register 7Fh for all
four decoders.
Table 7-1. Direct Register Summary
REGISTER FUNCTIONADDRESSDEFAULTR/W
Video input source selection #100h00hR/W
Analog channel controls01h15hR/W
Operation mode controls02h00hR/W
Miscellaneous controls03h01hR/W
Autoswitch mask04hDChR/W
Clock control05h08hR/W
Color killer threshold control06h10hR/W
Luminance processing control #107h60hR/W
Luminance processing control #208h00hR/W
Brightness control09h80hR/W
Color saturation control0Ah80hR/W
Hue control0Bh00hR/W
Contrast control0Ch80hR/W
Outputs and data rates select0Dh47hR/W
Luminance processing control #30Eh00hR/W
Configuration shared pins0Fh08hR/W
Reserved10h
Active video cropping start MSB for unscaled data11h00hR/W
Active video cropping start LSB for unscaled data12h00hR/W
Active video cropping stop MSB for unscaled data13h00hR/W
Active video cropping stop LSB for unscaled data14h00hR/W
Genlock/RTC15h01hR/W
Horizontal sync start16h80hR/W
Ancillary SAV/EAV control17h52hR/W
Vertical blanking start18h00hR/W
Vertical blanking stop19h00hR/W
Chrominance processing control #11Ah0ChR/W
Chrominance processing control #21Bh14hR/W
Interrupt reset register B1Ch00hR/W
Interrupt enable register B1Dh00hR/W
www.ti.com
(1)
(1) R = Read only, W = Write only, R/W = Read and write