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.
Literature Number: SLES241B
September 2009–Revised June 2010
TVP5151
SLES241B–SEPTEMBER 2009–REVISED JUNE 2010
www.ti.com
Contents
1TVP5151 Features ............................................................................................................... 7
• Fully Differential CMOS Analog Preprocessing
Channels With Clamping and Automatic Gain• Advanced Programmable Video Output
Control (AGC) for Best Signal-to-Noise (S/N)Formats
Performance
• Ultralow Power ConsumptionInterval (VBI) Data During Active Video
• 48-Terminal PBGA Package (ZQC) or– Sliced VBI Data During Horizontal Blanking
32-Terminal TQFP Package (PBS)or Active Video
• Power-Down Mode: <1 mW• VBI Modes Supported
• Brightness, Saturation, Hue, and Sharpness– Teletext (NABTS, WST)
Control Through I2C
• Complementary 4-Line (3-H Delay) AdaptiveExtended Data Services (XDS)
Comb Filters for Both Cross-Luminance and
Cross-Chrominance Noise Reduction
• Patented Architecture for Locking to Weak,Code
Noisy, or Unstable Signals
• Single 27.000-MHz Crystal for All StandardsCompatible Mode
• Internal Phase-Locked Loop (PLL) for– Custom Configuration Mode That Allows
Line-Locked Clock and SamplingUser to Program Slice Engine for Unique VBI
• Subcarrier Genlock Output for Synchronizing
Color Subcarrier of External Encoder• Power-On Reset
• Variable Digital I/O Supply Voltage Range from• Industrial Temperature Range (TVP5151I):
1.8 V to 3.3 V–40°C to 85°C
<br>
<br>
• Standard Programmable Video Output Formats
– ITU-R BT.656, 8-Bit 4:2:2 With Embedded
Syncs
– 8-Bit 4:2:2 With Discrete Syncs
• Macrovision™ Copy Protection Detection
– 2× Oversampled Raw Vertical Blanking
– Closed-Caption Decode With FIFO and
– Wide Screen Signaling, Video Program
System, CGMS-A, Vertical Interval Time
– Gemstar 1x/2x Electronic Program Guide
Data Signals
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.
The TVP5151 device is an ultralow-power NTSC/PAL/SECAM video decoder. Available in a space-saving
48-terminal PBGA package or a 32-terminal TQFP package, the TVP5151 decoder converts NTSC, PAL,
and SECAM video signals to 8-bit ITU-R BT.656 format. Discrete syncs are also available. The optimized
architecture of the TVP5151 decoder allows for ultralow power consumption. The decoder consumes
138-mW power under typical operating conditions and consumes less than 1 mW in power-down mode,
considerably increasing battery life in portable applications. The decoder uses just one crystal for all
supported standards. The TVP5151 decoder can be programmed using an I2C serial interface.
The TVP5151 decoder converts baseband analog video into digital YCbCr 4:2:2 component video.
Composite and S-video inputs are supported. The TVP5151 decoder includes one 9-bit analog-to-digital
converter (ADC) with 2× sampling. Sampling is ITU-R BT.601 (27.0 MHz, generated from the 27.000-MHz
crystal or oscillator input) and is line locked. The output formats can be 8-bit 4:2:2 or 8-bit ITU-R BT.656
with embedded synchronization.
The TVP5151 decoder utilizes Texas Instruments patented technology for locking to weak, noisy, or
unstable signals. A Genlock/real-time control (RTC) output is generated for synchronizing downstream
video encoders.
Complementary four-line adaptive comb filtering is available for both the luminance and chrominance data
paths to reduce both cross-luminance and cross-chrominance artifacts; a chrominance trap filter is also
available.
www.ti.com
Video characteristics including hue, brightness, saturation, and sharpness may be programmed using the
industry standard I2C serial interface. The TVP5151 decoder generates synchronization, blanking, lock,
and clock signals in addition to digital video outputs. The TVP5151 decoder 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.
The TVP5151 decoder detects copy-protected input signals according to the Macrovision™ standard and
detects Type 1, 2, 3, and colorstripe processes.
The main blocks of the TVP5151 decoder include:
•Robust sync detector
•ADC with analog processor
•Y/C separation using four-line adaptive comb filter
•Chrominance processor
•Luminance processor
•Video clock/timing processor and power-down control
The following is a partial list of suggested applications:
•Digital televisions
•PDAs
•Notebook PCs
•Cell phones
•Video recorder/players
•Internet appliances/web pads
•Handheld games
•Surveillance
•Portable navigation
•Portable video projectors
2.3Related Products
•TVP5150AM1
•TVP5154A
•TVP5146M2
•TVP5147M1
•TVP5158
SLES241B–SEPTEMBER 2009–REVISED JUNE 2010
2.4Trademarks
TI and MicroStar Junior are trademarks 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.
2.5Document 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), 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.
The TVP5151 video decoder is packaged in a 48-terminal PBGA package or a 32-terminal TQFP
package. Figure 2-2 shows the terminal diagrams for both packages. Table 2-1 gives a description of the
terminals.
AIP1AA11Irange is 0-0.75 VPP, and may require an attenuator to reduce the input amplitude to the
AIP1BB12Irange is 0-0.75 VPP, and may require an attenuator to reduce the input amplitude to the
CH_AGNDA331GAnalog ground
CH_AVDDA232PAnalog supply. Connect to 1.8-V analog supply.
NC––No connect
PLL_AGNDC23GPLL ground. Connect to analog ground.
PLL_AVDDC14PPLL supply. Connect to 1.8-V analog supply.
REFMA430O
REFPB429O
XTAL1/OSCD25I
XTAL2D16O
Digital Section
NO.I/ODESCRIPTION
ZQCPBS
Analog input. Connect to the video analog input via 0.1-µF capacitor. The maximum input
desired level. If not used, connect to AGND via a 0.1-µF capacitor (see Figure 6-1).
Analog input. Connect to the video analog input via 0.1-µF capacitor. The maximum input
desired level. If not used, connect to AGND via a 0.1-µF capacitor (see Figure 6-1).
B2, B3,
B6, C4,
C5,
D3–D6,
E2–E5,
F2, F5, F6
A/D reference negative output. Connect to analog ground through a 1-µF capacitor. Also, it
is recommended to connect directly to REFP through a 1-µF capacitor (see Figure 6-1).
A/D reference positive output. Connect to analog ground through a 1-µF capacitor (see
Figure 6-1).
External clock reference input. Connect to analog ground if an external single-ended
oscillator is connected to AVID/CLK_IN pin.
External clock reference output. Not connected if XTAL1 or CLK_IN is driven by an external
single-ended oscillator.
Active video indicator output/external clk input
When XTAL1 is used as a reference clock and this terminal is left unconnected, this
terminal is internally pulled down.
AVID/CLK_INA626I/O
DGNDE619GDigital ground
DVDDE720PDigital supply. Connect to 1.8-V digital supply.
FID/GLCOC623OGLCO: This serial output carries color PLL information. A slave device can decode the
HSYNCA725OHorizontal synchronization signal
INTREQ/GPCL/
VBLK
B527O
When XTAL1 is used as a reference clock and AVID output is required, this pin must be
low until terminal is configured as an output. This may be dependent on external circuitry
connected to this terminal.
When XTAL 1 is connected to ground, CLK_IN may be connected to an external
single-ended oscillator from a 1.8-V to 3.3-V compatible clock signal depending on
IO_DVDD voltage.
FID: Odd/even field indicator or vertical lock indicator. For the odd/even indicator, a 1
indicates the odd field.
information to allow chrominance frequency control from the TVP5151 decoder. Data is
transmitted at the SCLK rate in Genlock mode. In RTC mode, SCLK/4 is used.
INTREQ: Interrupt request output
GPCL/VBLK: General-purpose control logic. This terminal has two functions:
•GPCL: General-purpose output. In this mode the state of GPCL is directly programmed
via I2C.
•VBLK: Vertical blank output. In this mode the GPCL terminal indicates the vertical
blanking interval of the output video. The beginning and end times of this signal are
programmable via I2C.
IO_DVDDG210PDigital output supply, 1.8 V to 3.3 V
PCLK/SCLKG19OSystem clock at either 1× or 2× the frequency of the pixel clock.
PDNA528I
RESETBF18I
SCLD721I/OI2C serial clock (open drain)
SDAC722I/OI2C serial data (open drain)
VSYNC/PALIB724O
YOUT[6:0]G515OITU-R BT.656 output/YCbCr 4:2:2 output with discrete syncs
YOUT7/I2CSELF311I/O
NO.I/ODESCRIPTION
ZQCPBS
Power-down terminal (active low). Puts the decoder in standby mode. 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.
VSYNC: Vertical synchronization signal
PALI: PAL line indicator or horizontal lock indicator. For the PAL line indicator:
1 = Noninverted line
0 = Inverted line
G312
F413
G414
G616
G717
F718
I2CSEL: Determines address for I2C (sampled during reset). A pullup or pulldown resistor is
needed (>1 kΩ) to program the terminal to the desired address.
1 = Address is BAh
0 = Address is B8h
YOUT7: Most significant bit (MSB) of ITU-R BT.656 output/YCbCr 4:2:2 output
The TVP5151 decoder has an analog input channel that accepts two video inputs that are ac-coupled.
The decoder supports a maximum input voltage range of 0.75 V; therefore, an attenuation of one-half is
needed for most input signals with a peak-to-peak variation of 1.5 V. The nominal parallel termination
before the input to the device is recommended to be 75 Ω. See the application diagram in Figure 6-1 for
the 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 sync-tip of the ac-coupled video signal to a fixed dc level.
The programmable gain amplifier (PGA) and the automatic gain control (AGC) algorithm work together to
make sure that the input signal is amplified sufficiently to ensure the proper input range for the ADC.
The ADC has nine bits of resolution and runs at a nominal speed of 27 MHz. The clock input for the ADC
comes from the horizontal PLL.
3.2Composite Processing Block Diagram
The composite processing block processes NTSC/PAL/SECAM signals into the YCbCr color space.
Figure 3-1 shows the basic architecture of this processing block.
SLES241B–SEPTEMBER 2009–REVISED JUNE 2010
Figure 3-1 shows the luminance/chrominance (Y/C) separation process in the TVP5151 decoder. The
composite video is multiplied by subcarrier 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 four-line comb filter separates CbCr from Y. Chrominance is remodulated through another
quadrature modulator and subtracted from the line-delayed composite video to generate luminance.
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 four-line comb filter can be selectively bypassed in the luminance or chrominance path. If the comb
filter is bypassed in the luminance path, then chrominance trap filters are used which are shown in
Figure 3-2 and Figure 3-3. TI's patented adaptive four-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.
Response, NTSC ITU-R BT.601 SamplingResponse, PAL ITU-R BT.601 Sampling
3.4Color Low-Pass Filter
In some applications, it is desirable to limit the Cb/Cr bandwidth to avoid crosstalk. This is especially true
in case of video signals that have asymmetrical Cb/Cr sidebands. The color LP filters provided 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 Section 3.21.25, Chrominance Control #2 Register, 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-4.
Figure 3-4. Color Low-Pass Filter with Filter Characteristics, NTSC/PAL ITU-R BT.601 Sampling
The luminance component is derived from the composite signal by subtracting the remodulated
chrominance 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 luminance 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 chrominance 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 color burst of the video signal is present. 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, vertical sync detection, and Macrovision detection.
3.8VBI Data Processor (VDP)
The TVP5151 VDP slices various data services such as teletext (WST, NABTS), closed captioning (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 only
in a FIFO. 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.
www.ti.com
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-AWide-screen signaling/Copy Generation Management System-Analog, PAL
1001bWSS/CGMS-AWide-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
At power-up the host interface is required to program the VDP-configuration RAM (VDP-CRAM) contents
with the lookup table (see Section 3.21.58). 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 to 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 to AFh,
both of which are available through the I2C port.
3.9VBI FIFO and Ancillary Data in Video Stream
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
000000000
111111111Ancillary data preamble
211111111
3NEPEP010DID2DID1DID0Data ID (DID)
4NEPEPF5F4F3F2F1F0Secondary data ID (SDID)
5NEPEPN5N4N3N2N1N0Number of 32-bit data (NN)
6Video line [7:0]Internal data ID0 (IDID0)
7000Match 1 Match 2Video line [9:8]Internal data ID1 (IDID1)
81. DataData byte
EP:Even parity for D0–D5
NEP:Negated even parity
DID:91h: Sliced data of VBI lines of first 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
IDID0:Transaction video line number [7:0]
D7D0
(MSB)(LSB)
Data
error
m–1. DataData byte
m. DataData byte
RSVDCS[5:0]Check sum
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
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 4 bytes from byte 0 to last fill byte.
3.10 Raw Video Data Output
The TVP5151 decoder can output raw A/D video data at 2x 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 YCbCr digital output can be programmed as 8-bit 4:2:2 or 8-bit ITU-R BT.656 parallel interface
standard.
Table 3-3. Summary of Line Frequencies, Data Rates, and Pixel Counts
A.AVID rising edge occurs four SCLK cycles early when in the ITU-R BT.656 output mode.
Figure 3-6. Horizontal Synchronization Signals
3.13 Active Video (AVID) Cropping
AVID cropping provides a means to decrease bandwidth of the video output. This is accomplished by
horizontally blanking a number of AVID pulses and by vertically blanking a number of lines per frame. The
horizontal AVID cropping is controlled using registers 11h and 12h for start pixels MSB and LSB,
respectively.
www.ti.com
Registers 13h and 14h provide access to stop pixels MSB and LSB, respectively. The vertical AVID
cropping is controlled using the vertical blanking (VBLK) start and stop registers at addresses 18h and
19h. Figure 3-7 shows an AVID application.
Standards with embedded syncs insert SAV and EAV codes into the datastream at the beginning and end
of horizontal blanking. These codes contain the V and F bits that also define vertical timing. F and V
change on EAV. Table 3-4 gives the format of the SAV and EAV codes.
H equals 1 always indicates EAV. H equals 0 always indicates SAV. The alignment of V and F to the line
and field counter varies depending on the standard. See ITU-R BT.656 for more information on embedded
syncs.
The P bits are protection bits:
P3 = V xor H
P2 = F xor H
P1 = F xor V
P0 = F xor V xor H
D7 (MSB)D6D5D4D3D2D1D0
Preamble11111111
Preamble00000000
Preamble00000000
Status word1FVHP3P2P1P0
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. A third signal (I2CSEL) is used
for slave address selection. Although the I2C system can be multimastered, the TVP5151 decoder
functions only as a slave device.
Both SDA and SCL must be connected to a positive supply voltage via a pullup resistor. When the bus is
free, both lines are high. The slave address select terminal (I2CSEL) enables the use of two TVP5151
decoders tied to the same I2C bus. At power up, the status of the I2CSEL is polled. Depending on the
write and read addresses to be used for the TVP5151 decoder, it can either be pulled low or high through
a resistor. This terminal is multiplexed with YOUT7 and hence must not be tied directly to ground or
IO_DVDD. Table 3-6 summarizes the terminal functions of the I2C-mode host interface.
www.ti.com
Table 3-5. Write Address
Selection
I2CSELWRITE ADDRESS
0B8h
1BAh
Table 3-6. I2C Terminal Description
SIGNALTYPEDESCRIPTION
I2CSEL (YOUT7)ISlave address selection
SCLI/O (open drain)Input/output clock line
SDAI/O (open drain)Input/output data line
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 which 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.
Data transfers occur utilizing the following illustrated formats.
An I2C master initiates a write operation to the TVP5151 decoder by generating a start condition (S)
followed by the TVP5151 I2C slave address (see the following illustration), in MSB first bit order, followed
by a 0 to indicate a write cycle. After receiving an acknowledge from the TVP5151 decoder, the master
presents the subaddress 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 TVP5151 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.
3.15.2 I2C 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 TVP5151 decoder by generating a start condition (S) followed by
the TVP5151 I2C slave address, in MSB first bit order, followed by a 0 to indicate a write cycle. After
receiving an acknowledge from the TVP5151 decoder, the master presents the subaddress 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
TVP5151 decoder by generating a start condition followed by the TVP5151 I2C slave address (see the
following illustration of a read operation), in MSB first bit order, followed by a 1 to indicate a read cycle.
After an acknowledge from the TVP5151 decoder, the I2C master receives one or more bytes of data from
the TVP5151 decoder. The I2C master acknowledges the transfer at the end of each byte. After the last
data byte desired has been transferred from the TVP5151 decoder to the master, the master generates a
not acknowledge followed by a stop.