Four-Channel NTSC/PAL Video Decoders
With Independent Scalers, Noise Reduction, Auto
Contrast, and Flexible Output Formatter for Security and
Other Multi-Channel Video Applications
Data Manual
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.
•Noise reduction and auto contrasttemperature range
•Robust automatic video standard• Additional TVP5158/TVP5157 Specific Features
detection (NTSC/PAL) and switching
•Programmable hue, saturation,audio sample rate of 8 kHz or 16 kHz
sharpness, brightness and contrast
•Luma-peaking processing
•Patented architecture for locking to weak,
noisy, or unstable signals
– Four independent scalers support horizontal
and/or vertical 2:1 downscaling
– Channel multiplexing capabilities with
metadata insertion
•Pixel-interleaved mode supports up to
four-channel D1 multiplexed 8-bit output
at 108 MHz
•Supports concurrent NTSC and PAL
inputs
– Support crystal interface with on-chip
oscillator and single clock input mode
– Single 27-MHz clock input or crystal for all
standards and all channels
line-locked clock (separate for each channel)
and sampling
– Standard programmable video output format
– 3.3-V compatible I/O
– 128-pin TQFP package
– Available in commercial (0°C to 70°C)
– Integrated four-channel audio ADC with
– Support Master and Slave mode I2S Output
– Support audio cascade connection
• Additional TVP5158 Specific Features
– Enhanced channel multiplexing capability –
Line-interleaved mode
– Four-channel D1 multiplexed output at 8 bit
at 108 MHz
– Video cascade connection for 8-Ch CIF, 8-Ch
Half-D1, and 8-Ch CIF + 1-Ch D1 outputs
– Also available in Industrial (-40°C to 85°C)
temperature range
• Qualified for Automotive Applications
(AEC-Q100 Rev G – TVP5158IPNPQ1,
TVP5158IPNPRQ1)
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.
2DaVinci is a trademark of Texas Instruments.
3Macrovision is a trademark of Macrovision Corporation.
4All other trademarks are the property of their respective owners.
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.
•Security/surveillance digital video recorders/servers and PCI products
•Automotive infotainment video hub
•Large format video wall displays
•Game systems
1.3Related Products
•TVP5154A
•TVP5150AM1
•TVP5146M2
•TVP5147M1
1.4Trademarks
DaVinci, PowerPAD are trademarks of Texas Instruments.
Macrovision is a trademark of Macrovision Corporation.
Other trademarks are the property of their respective owners.
1.5Document Conventions
Throughout this data manual, several conventions are used to convey information. These conventions are
as follows:
•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.
www.ti.com
1.6Description
The TVP5158, TVP5157, and TVP5156 devices are 4-channel, high-quality NTSC/PAL video decoder that
digitizes and decodes all popular base-band analog video formats into digital video output. Each channel
of this decoder includes 10-bit 27-MSPS A/D converter (ADC). Preceding each ADC in the device, the
corresponding analog channel contains an analog circuit that clamps the input to a reference voltage and
applies the gain.
Composite input signal is sampled at 2x the ITU-R BT.601 clock frequency, line-locked alignment, and is
then decimated to the 1x pixel rate. CVBS decoding uses five-line adaptive comb filtering for both the
luma and chroma data paths to reduce both cross-luma and cross-chroma artifacts. A chroma trap filter is
also available. On CVBS inputs, the user can control video characteristics such as contrast, brightness,
saturation, and hue via an I2C host port interface. Furthermore, luma peaking (sharpness) with
programmable gain is included.
All 4 channels are independently controllable. These decoders share a single clock input for all channels
and for all supported standards.
TVP5158 provides a glueless audio and video interface to TI DaVinci™ video processors. Video output
ports support 8-bit ITU-R BT.656 and 16-bit 4:2:2 YCbCr with embedded synchronization. TVP5158
supports multiplexed pixel-interleaved and line-interleaved mode video outputs with metadata insertion.
TVP5158 and TVP5157 integrate 4-Ch audio ADCs to reduce the BOM cost for surveillance market.
Multiple TVP5158 devices can be cascade connected to support up to 8-Ch Video or 16-Ch audio
processing.
Noise reduction and auto contrast functions improve the video quality under low light condition which is
very critical for surveillance products.
The TVP5158, TVP5157, and TVP5156 can be programmed by using a single I2C serial interface. I2C
commands can be sent to one or more decoder cores simultaneously, reducing the amount of I2C activity
necessary to configure each core. This is especially useful for fast downloading modified firmware to the
decoder cores.
TVP5158, TVP5157, and TVP5156 use 1.1-V, 1.8-V, and 3.3-V power supplies for the analog/digital core
and I/O. These devices are available in a 128-pin TQFP package.
SLES243D–JULY 2009–REVISED OCTOBER 2010
Table 1-1. Device Options
Device Name4-Ch Audio ADCLine-Interleaved Modes
TVP5156NoNo
TVP5157YesNo
TVP5158YesYes
1.7Ordering Information
(3)
(3)
(1) (2)
PACKAGE OPTION
Tray
Tape and reel
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.
(2) Package drawings, thermal data, and symbolization are available at www.ti.com/packaging.
(3) AEC-Q100 Rev G certified
VIN_1_P108IAnalog video input for ADC channel 1.
VIN_1_N109ICommon-mode reference input for ADC channel 1.
VIN_2_P112IAnalog video input for ADC channel 2.
VIN_2_N113ICommon-mode reference input for ADC channel 2.
VIN_3_P121IAnalog video input for ADC channel 3.
VIN_3_N122ICommon-mode reference input for ADC channel 3.
VIN_4_P125IAnalog video input for ADC channel 4.
VIN_4_N126ICommon-mode reference input for ADC channels.
REXT_2K116IExternal resistor for AFE bias generator. Connect external 1.8kΩ resistor to ground.
AIN_195IAnalog audio input for channel 1 (No Connect for TVP5156 Only)
AIN_294IAnalog audio input for channel 2 (No Connect for TVP5156 Only)
AIN_393IAnalog audio input for channel 3 (No Connect for TVP5156 Only)
AIN_492IAnalog audio input for channel 4 (No Connect for TVP5156 Only)
XTAL_IN99I
XTAL_REF100GCrystal reference. Connected to analog ground internally.
XTAL_OUT101O
Analog Power
VDDA_1_1103, 106, 119P1.1V analog supply
VDDA_1_8114, 115, 120,P1.8V analog supply
VDDA_3_3128P3.3V analog supply for all 4 video channels
VSSAGAnalog ground
Digital Power
VSS49, 55, 61, 65,GDigital ground
VDD_1_135, 44, 52, 64,PDigital core supply. Connect to 1.1-V digital supply.
VDD_3_3PDigital I/O supply. Connect to 3.3-V digital supply.
Digital Section
INTREQ2OInterrupt request. Interrupt signal to host processor.
RESETB3IReset. An active low signal that controls the reset state.
SCL4I/OI2C serial clock (open drain)
SDA5I/OI2C serial data (open drain)
OSC_OUT97OBuffered crystal oscillator output. 1.8-V compatible.
OCLK_P51OOutput data clock+. All 4 digital video output ports are synchronized to this clock.
OCLK_N/CLKIN50I/O
DVO_A_[7:0]ODigital video output data bus.
91, 102, 107,
127
96, 98, 104,
105, 110, 111,
117, 118, 123,
124
1, 6, 12, 14, 20,
26, 33, 38, 47,
73, 79, 82, 87,
90
13, 18, 23, 32,
67, 76, 84
15, 29, 41, 58,
70, 81
68, 69, 71, 72,
74, 75, 77, 78
I/ODESCRIPTION
External clock reference input. It may be connected to external oscillator with 1.8-V compatible
clock signal or 27.0-MHz crystal oscillator.
External clock reference output. Not connected if XTAL_IN is driven by an external
single-ended oscillator.
Output data clock- for 2-Ch time-multiplexed mode or data clock input for 8-Ch video cascade
mode
I2CA166II2C slave address bit 1
I2CA248II2C slave address bit 2
Digital Audio Section (Not supported on TVP5156)
BCLK_R85I/O
LRCLK_R86I/O
SD_R88OI2S serial data output for recording.
SD_M89OI2S serial data output for mixed audio or recording.
SD_CO83OAudio serial data output for cascade mode
LRCLK_CI16II2S left/right clock input for cascade mode. Also known as I2S word select (WS).
BCLK_CI17II2S bit clock input for cascade mode. Also known as I2S serial clock (SCK).
SD_CI19IAudio serial data input for cascade mode.
No Connect Pins
T1, T2, T3, T4,7, 8, 9, 10, 11,
T5, NC34
53, 54, 56, 57,
59, 60, 62, 63
36, 37, 39, 40,Digital video output data bus. In cascade mode, all pins operate as input from another
42, 43, 45, 46TVP5158 device.
21, 22, 24, 25,Digital video output data bus. In cascade mode, all pins operate as input from another
27, 28, 30, 31TVP5158 device.
I/ODESCRIPTION
I2S bit clock for recording. Also known as I2S serial clock (SCK). Supports master and slave
modes.
I2S left/right clock for recording. Also known as I2S word select (WS). Supports master and
slave modes.
Each video decoder accepts one composite video input and performs video clamping, anti-aliasing
filtering, video amplification, A/D conversion, and gain and offset adjustments to center the digitized video
signal. Figure 3-1 shows the video analog processing and ADC block diagram.
Figure 3-1. Video Analog Processing and ADC Block Diagram
3.1.1Analog Video Input
Supports NTSC (J, M, 4.43) and PAL (B, D, G, H, I, M, N, Nc, 60) video standards. Each video decoder
channel supports a composite video input with a pseudo-differential pin which improves the noise
immunity and analog performance.
www.ti.com
Each video decoder input should be ac-coupled through a 0.1-µF capacitor. The nominal parallel
termination resistor before the input to the device is 75 Ω.
Each video decoder integrates an anti-aliasing filter to provide good stop-band rejection on the analog
video input signal. Figure 3-2 shows the frequency response of the anti-aliasing filter.
Figure 3-2. Anti-Aliasing Filter Frequency Response
An internal clamping circuit provides dc restoration for all four analog composite video inputs. The dc
restoration circuit (sync-tip clamp) restores sync-tip level of the ac-coupled composite video signal to a
fixed dc level near the bottom of the A/D converter range.
3.1.3A/D Converter
All ADCs have a resolution of 10 bits and can operate at 27 MSPS. Each A/D channel receives a clock
from the on-chip phase-locked loop (PLL) at a nominal frequency of 27 MHz. All ADC reference voltages
are generated internally.
3.2Digital Video Processing
Digital Video Processing block receives digitized video signals from the ADCs and performs composite
processing and YCbCr signal enhancements. The digital data output can be programmed to two formats:
ITU-R BT.656 8-bit 4:2:2 with embedded syncs or 16-bit 4:2:2 with embedded syncs. The circuit also
detects pseudo-sync pulses, AGC pulses, and color striping in Macrovision-encoded copy-protected
material.
3.2.12x Decimation Filter
All input signals are over-sampled by a factor of 2 (by 27-MHz clock). The A/D outputs initially pass
through decimation filters that reduce the data rate to 1x the pixel rate. The decimation filter is a half-band
filter. Over-sampling and decimation filtering can effectively increase the overall signal-to-noise ratio by
3 dB.
SLES243D–JULY 2009–REVISED OCTOBER 2010
3.2.2Automatic Gain Control
The automatic gain control (AGC) can be enabled and can adjust the signal amplitude controlled by 14-bit
digital gain stage after the ADC. The AGC algorithms can use up to four amplitude references: sync
height, color burst amplitude, composite peak, and luma peak.
The specific amplitude references being used by the AGC algorithms can be controlled using the AGC
white peak processing register located at sub-address 2Dh. The gain increment speed and gain increment
delay can be controlled using the AGC increment speed register located at sub-address 29h and the AGC
increment delay register located at sub-address 2Ah. The gain decrement speed and gain decrement
delay can be controlled using the AGC decrement speed register located at sub-address 2Bh and the
AGC decrement delay register located at sub-address 2Ch.
3.2.3Composite Processor
This Composite Processor circuit receives a digitized composite signal from the ADCs and performs sync
and Y/C separation, chroma demodulation for PAL/NTSC, and YUV signal enhancements. The slice levels
of the sync separator are adaptive. The slice levels continually adapt to changes in the back-porch and
sync-tip levels. The 10-bit composite video is multiplied by the sub carrier signals in the quadrature
demodulator to generate U and V color difference signals. The U and V signals are then sent to low-pass
filters to achieve the desired bandwidth. An adaptive 5-line comb filter separates UV from Y based on the
unique property of color phase shifts from line to line. The chroma is re-modulated through a quadrature
modulator and subtracted from line-delayed composite video to generate luma. This form of Y/C
separation is completely complementary, thus there is no loss of information. However, in some
applications, it is desirable to limit the U/V bandwidth to avoid crosstalk. In that case, notch filters can be
turned on. To accommodate some viewing preferences, a peaking filter is also available in the luma path.
Contrast, brightness, sharpness, hue, and saturation controls are programmable through the I2C host port.
Figure 3-3 shows the block diagram of Composite Processor.
High filter bandwidth preserves sharp color transitions and produces crisp color boundaries. However, for
nonstandard video sources that have asymmetrical U and V side bands, it is desirable to limit the filter
bandwidth to avoid UV crosstalk. The color low-pass filter bandwidth is programmable to enable one of the
three notch filters. Figure 3-4 and Figure 3-5 represent the frequency responses of the wideband color
low-pass filters.
Figure 3-4. Color Low-Pass Filter Frequency Response
Figure 3-5. Color Low-Pass Filter with Filter Characteristics, NTSC/PAL ITU-R BT.601 Sampling
3.2.3.2Y/C Separation
Y/C separation can be done using adaptive 5-line (5-H delay) comb filters or a chroma trap filter. The
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-6 and Figure 3-7. The TI
patented adaptive comb filter algorithm reduces artifacts such as hanging dots at color boundaries. It
detects and properly handles false colors in high-frequency luminance images such as a multiburst pattern
or circle pattern.
Figure 3-7. Chroma Trap Filter Frequency Response, PAL ITU-R BT.601 Sampling
3.2.4Luminance Processing
The digitized composite video signal passes through either a luminance comb filter or a chroma trap filter,
either of which removes chrominance information from the composite signal to generate a luminance
signal. The luminance signal is then fed into the input of a peaking circuit. Figure 3-8 shows the basic
functions of the luminance data path. A peaking filter (edge enhancer) amplifies high-frequency
components of the luminance signal. Figure 3-9 shows the characteristics of the peaking filter at four
different gain settings that are user-programmable via the I2C interface.
AVID or active video cropping provides a means to decrease the amount of video data output. This is
accomplished by horizontally blanking a number of AVID pulses and by vertically blanking a number of
lines per frame. Horizontal cropping can be enabled/disabled using bit-6 of address B1h. When line
cropping is enabled, active video will be reduced from 720 to 704 pixels for unscaled video and from 360
to 352 pixels for down-scaled video.
SLES243D–JULY 2009–REVISED OCTOBER 2010
When line cropping is enabled, the TVP5158 crops an equal amount from both the start and end of active
video. Register 8Ch can be used to delay both the start and end of active video. It allows selecting which
704 pixels out of 720 are actually being used for active video when line cropping is enabled.
3.4Embedded Syncs
Standards with embedded syncs insert SAV and EAV codes into the data stream at the beginning and end
of horizontal blanking. These codes contain the V and F bits which also define vertical timing. F and V
change on EAV. Table 3-1 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. Please refer to 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
Table 3-1. EAV and SAV Sequence
8-BIT DATA
D7 (MSB)D6D5D4D3D2D1D0
Preamble11111111
Preamble00000000
Preamble00000000
Status word1FVHP3P2P1P0
Each video decoder has an independent horizontal and vertical scaler, which supports D1 to half-D1 or
CIF conversion. Table 3-2 gives the details of video resolution including un-cropped and cropped.
Table 3-3 shows the video resolutions converted by the scaler.
Table 3-2. Standard Video Resolutions
Format
D1720 x 480720 x 576704 x 480704 x 576
Half-D1360 x 480360 x 576352 x 480352 x 576
CIF360 x 240360 x 288352 x 240352 x 288
Table 3-3. Video Resolutions Converted by the Scaler
A video sequence shot under low light condition, which is typical of video surveillance applications, can
contain lots of noise. Human eyes are very sensitive to oscillating signals, the visual quality degenerates
significantly even when the noise level is small.
Each video decoder uses a TI proprietary spatial filter to reduce video noise. For each frame of image, the
video noise filter (VNF) produces an estimate of the Y/U/V noise. Based on the noise estimates, the
firmware adjusts the threshold for Y/U/V filtering. The filtered video shows improved video quality and
lower compression bit-rate. The firmware can also utilize the Y/U/V noise estimates to make decisions to
disable color if the video noise is determined to be too high. This "color killer" decision bit can be used to
control another module that implements the color killing function.
The Noise Reduction can be controlled using I2C registers from 50h to 5Fh. This module can also be set
to bypass mode by I2C register 5Dh (Bit 0).
3.7Auto Contrast
The Auto Contrast (AC) module can adjust the picture brightness automatically or manually (user
programmable) for better image quality. The goal of AC processing is to make the dark area brighter and
high-light area dimmer. This makes it possible for the viewer to see details hidden in the shadows. It also
prevents loss of details in the washed-out high light area. The AC processing is mostly for video
surveillance applications.
For each frame of image, the auto contrast module collects the statistics of its Y (luminance) values. The
AC algorithm implemented in the firmware processes the statistics and generates a look-up table (LUT).
This LUT is used to map each incoming pixel Y value to an output pixel Y value for the next frame of
image. The LUT is updated during the blanking period between two frames.
The Auto Contrast Mode can be controlled by using I2C registers 0Fh. This module can also be set to
disable mode by I2C register 0Fh (Bit 1:0).
The output formatter is responsible for generating the output digital video stream. Table 3-4 provides a
summary of line frequencies, data rates, and pixel counts for different input standards. TVP5158 supports
non-interleaved output mode, pixel-interleaved output mode and line-interleaved output mode. The
non-interleaved mode is similar to the TVP5154A device, except that a single fixed clock output is used. In
the interleaved modes, the video output data from multiple decoder channels are multiplexed together and
then output to a single 8-bit or 16-bit port. The video output data from selected channels can be
interleaved on a pixel or line basis.
Table 3-4. Summary of Line Frequencies, Data Rates and Pixel Counts for Different Standards
StandardsActive PixelsLines per
(ITU-R BT.601)per LineFrame
NTSC-J, M85872052513.53.57954515.73426
NTSC-4.4385872052513.54.4336187515.73426
PAL-M85872052513.53.5756114915.73426
PAL-6085872052513.54.4336187515.73426
PAL-B, D, G, H, I86472062513.54.4336187515.625
PAL-N86472062513.54.4336187515.625
PAL-Nc86472062513.53.5820562515.625
Pixels per LineFrequencyFrequencyRate
PixelColor SubcarrierHorizontal Line
(MHz)(MHz)(kHz)
3.8.1Non-Interleaved Mode
In the non-interleaved mode, the YCbCr digital output is programmed as 8-bit ITU-R BT.656 parallel
interface standard. Depending on which output mode is selected, the output for each channel can be
un-scaled data or scaled data. Also each video output port can be selected to output the video data from
any 1 of 4 video decoders. Table 3-5 shows the detailed information about non-interleaved mode.
Table 3-5. Output Ports Configuration for Non-Interleaved Mode
Video OutputCascadeI2C Address:OCLK
FormatStageB0h(MHz)
1-Ch D1n/a00h27Any 1 of 4 ChAny 1 of 4 ChAny 1 of 4 ChAny 1 of 4 Ch
1-Ch Half-D1n/a02h27Any 1 of 4 ChAny 1 of 4 ChAny 1 of 4 ChAny 1 of 4 Ch
1-Ch CIFn/a03h27Any 1 of 4 ChAny 1 of 4 ChAny 1 of 4 ChAny 1 of 4 Ch
Port APort BPort CPort D
3.8.2Pixel-Interleaved Mode
Each video decoder supports multiplexing two or four channels ITU-R BT.656 format data together on a
pixel basis. The output from each video decoder channel is still ITU-R BT.656 format. After the processing
in output formatter, two or four channels video data has been interleaved together by strictly one pixel
from each channel.
The pixel-interleaved mode is dedicated for the backend chip which has limited video input ports.
Table 3-6 gives the output port configuration for pixel-interleaved mode.
Table 3-6. Output Ports Configuration for Pixel-Interleaved Mode
Video OutputCascadeI2C Address:OCLK
FormatStageB0h(MHz)
2-Ch D1n/a50h54Any 2 of 4 ChAny 2 of 4 ChHi-ZHi-Z
4-Ch D1n/a60h108All 4 ChHi-ZHi-ZHi-Z
4-Ch Half-D1n/a62h54All 4 ChHi-ZHi-ZHi-Z
4-Ch CIFn/a63h54All 4 ChHi-ZHi-ZHi-Z
Port APort BPort CPort D
3.8.2.12-Ch Pixel-Interleaved Mode
In 2-Ch pixel-interleaved mode, the video output data with D1 resolution from two video channels is
multiplexed pixel by pixel at 54 MHz. The output ports DVO_A and DVO_B are used in this mode. The
output clocks OCLK_P and OCLK_N are synchronized with each channel so that the backend chip can
de-multiplexed each video channel data easily. The video output from each channel is compatible with
ITU-R BT.656 format. Figure 3-10 shows the timing diagram for 2-Ch pixel-interleaved mode.
In 4-Ch pixel-interleaved mode, the video output data with D1 resolution from four video channels is
multiplexed pixel by pixel at 108 MHz. The output DVO_A is used in this mode. The output clock OCLK_P
is synchronized with all four channels data. Each channel video data is compatible with ITU-R BT.656
format. Figure 3-11 shows the timing diagram for 4-Ch pixel-interleaved mode.
In 4-Ch pixel-interleaved mode, TVP5158 also supports Half-D1 and CIF format data multiplexed at 54
MHz. The output DVO_A is used in this mode. The output clock OCLK_P is synchronized with all four
channels data.
3.8.2.3Metadata Insertion for Non-Interleave Mode and Pixel-Interleaved Mode
In non-interleaved mode and pixel-interleaved mode, the video detection status (VDET) has also been
inserted in MSB of SAV/EAV control byte. Table 3-7 shows VDET status insertion in SAV/EAV codes.
Table 3-7. VDET Statues Insertion in SAV/EAV Codes
In the pixel-interleaved mode, Channel ID is inserted in the horizontal blanking code as Table 3-8. The
backend chip can easily identify the video data from which video decoder channel by inserted Channel ID.
Table 3-8. Channel ID Insertion in Horizontal Blanking Code
The TVP5158 supports 2-Ch, 4-Ch, and 8-Ch line-interleaved modes. In the line-interleaved mode, the
video channels are multiplexed together on a line-by-line basis. Compared to the pixel-interleaved mode,
the line-interleaved mode significantly reduces the code complexity and MIPS consumption of the backend
processor. The 8-Ch modes require connecting two TVP5158 devices together using a video cascade
interface (see Section 3.8.3.3). The TVP5158 also supports different image resolutions (for example, D1,
Half-D1, and CIF) in the line-interleaved mode. All supported line-interleaved modes are shown in
Table 3-10.
Table 3-10. Output Ports Configuration for Line-Interleaved Mode
Video OutputCascadeI2C Address:OCLK
FormatStageB0h(MHz)
2-Ch D1n/a90h54Any 2 of 4 ChAny 2 of 4 ChHi-ZHi-Z
4-Ch D1n/aA0h108All 4 ChHi-ZHi-ZHi-Z
4-Ch Half-D1n/aA2h54All 4 ChHi-ZHi-ZHi-Z
4-Ch CIFn/aA3h27All 4 ChHi-ZHi-ZHi-Z
4-Ch D1All 4 ChAll 4 Ch
(16-bit)(Y data)(C data)
4-Ch Half-D1All 4 ChAll 4 Ch
(16-bit)(Y data)(C data)
8-Ch Half-D1
8-Ch CIF
4-Ch Half-D1 +4 Ch Half-D1 +
1-Ch D1Any 1 of 4 D1
4-Ch CIF +4-Ch CIF + Any
1-Ch D11 of 4 D1
8-Ch CIF +
1-Ch D1
n/aA8h54Hi-ZHi-Z
n/aAAh27Hi-ZHi-Z
1stB2h108Hi-ZHi-Z
2ndB6h54Hi-ZHi-ZHi-Z
1stB3h54Hi-ZHi-Z4-Ch CIF Input
2ndB7h27Hi-ZHi-ZHi-Z
n/aE2h108Hi-ZHi-ZHi-Z
n/aE3h54Hi-ZHi-ZHi-Z
1stF3h108Hi-Z1-Ch D1 Input4-Ch CIF Input
2ndF7h271-Ch D1 OutputHi-ZHi-Z
Port APort BPort CPort D
8-Ch Half-D14-Ch Half-D1
OutputInput
4-Ch Half-D1
Output
8-Ch CIF
Output
4-Ch CIF
Output
8-Ch CIF + Any
1 of 8 D1
4-Ch CIF
Output
www.ti.com
3.8.3.12-Ch Line-Interleaved Mode
TVP5158 supports 2-Ch line-interleaved mode at 54 MHz. The video output data with D1 resolution from
any two video channels is multiplexed together on a line basis. The output ports DVO_A and DVO_B are
used in this mode. The output clock OCLK_P is synchronized with both output ports.
3.8.3.24-Ch Line-Interleaved Mode
In 4-Ch line-interleaved mode, the video output data from all 4 channels is multiplexed together on a line
basis. The output resolution of video data can be D1, Half-D1 or CIF. For D1 and Half-D1 output
resolutions, the video output port can be configured to support 8-bit BT.656 or 16-Bit YCbCr 4:2:2 data
with embedded sync. Port DVO_A is used for 8-bit output. Ports DVO_A and DVO_B are used for 16-Bit
output. The output clock OCLK_P is synchronized with all four output ports.
TVP5158 supports multiplexing 4-Ch CIF and 1-Ch D1 data together and then output through DVO_A at
54 MHz. 1-Ch D1 can be from any one of 4 video channels. In typical surveillance applications, CIF
resolution is used for recording and D1 resolution is used for video preview.
TVP5158 also supports multiplexing 4-Ch Half-D1 and 1-Ch D1 data together and then output through
DVO_A at 108 MHz. The backend chip can use Half-D1 to generate CIF format by dropped one field.
Pleas note that the line-interleaved mode does NOT strictly output one line from each decoder channel
sequentially. The order of multiplexed the video line data is based on the availability of video output data
from each decoder channel. Therefore, it is possible to output two consecutive lines from the same
decoder channel or to skip one decoder channel output.
3.8.3.38-Ch Line-Interleaved Mode
Two TVP5158 devices can be cascade connected and work as single 8-Ch video decoder. In cascade
mode, the port DVO_C and DVO_D of master TVP5158 (first stage) can be configured as the video input
interface. The DVO_A and DVO_B of master TVP5158 are configured as the output interface for two
devices. This mode is dedicated for the backend chip with extremely limited input ports.
In the video cascade mode, the open-drain interrupt request (INTREQ) outputs from the first and second
stages can be combined using a wired-OR connection.
Typical applications with cascade mode show in the following diagrams.
Figure 3-12 shows the Cascade Connection for 16-Ch CIF Recoding and Multi-Ch CIF Preview.
Figure 3-13 shows the Cascade Connection for 16-Ch CIF Recoding and Multi-Ch Half-D1 Preview.
Figure 3-14 shows the Cascade Connection for 16-Ch CIF Recoding and 2-Ch D1/Multi-Ch CIF
Preview.
SLES243D–JULY 2009–REVISED OCTOBER 2010
Figure 3-12. Cascade Connection for 16-Ch CIF Recoding and Multi-Ch CIF Preview
Figure 3-14. Cascade Connection for 16-Ch CIF Recoding and 2-Ch D1/Multi-Ch CIF Preview
Submit Documentation Feedback
Product Folder Link(s): TVP5158 TVP5157 TVP5156
FFh 00h 00h XYh
SAV
SC3 SC3 SC2 SC2
Channel Data
SC1 SC1 SC0 SC0
SAV for
encapsulated
frame
Cb Y Cr Y
FFh 00h 00h XYh
EAV
Start code for
channel data
EAV for
encapsulated
frame
Horizontal Active Period (SAV2EAV)
Horizontal Blanking Interval
64 clock cycles (fixed)
EAV2SAVStart Code
TVP5158, TVP5157, TVP5156
www.ti.com
3.8.3.4Hybrid Modes
The TVP5158 also supports multiplexing both scaled and unscaled data streams in the line-interleaved
mode. In these hybrid modes (4-Ch Half-D1 + 1-Ch D1, 4-Ch CIF + 1-Ch D1, and 8-Ch CIF + 1-Ch D1),
the D1 line is split into two equal-length half lines and then multiplexed with the other CIF lines. Therefore,
all video data is actually multiplexed by CIF line length. In these hybrid modes, the line cropping mode
affects both the scaled and unscaled data streams. The line cropping mode is controlled by bit 6 of I2C
register B1h.
3.8.3.5Metadata Insertion for Line-Interleaved Mode
In the line-interleaved mode, the video data is rearranged on a line-by-line basis. There can be no
guaranteed output line order, because all analog video inputs are not synchronized. To be compatible with
general backend BT.656 decoder, the video data is encapsulated on TVP5158 output so that all input data
is preserved and output data is understandable to a BT.656 decoder.
To prevent confusion over image line count and vertical blanking appearing haphazardly, SAV/EAV codes
have FID and V data stripped and replaced with FID = V = 0. Because vertical blanking in the input is
being masked out, artificial vertical sync is inserted every encapsulated frame (a.k.a., super frame). Thus,
to the unaware BT.656 decoder, the stream appears to be progressive data with 2 lines of vertical
blanking. The default super-frame format and timing for each line-interleaved output format is shown in
Table 3-11.
Table 3-11. Default Super-Frame Format and Timing
SLES243D–JULY 2009–REVISED OCTOBER 2010
Video Output FormatsEAV2SAV (bytes)SAV2EAV (bytes)
TMS320DM6467) interfaces to the first stage.
0: First stage (channels 1 to 4)
1: Second stage (channels 5 to 8)
2-bit Channel ID. Video decoder channel number.
00: Channel 1
10: Channel 3
11: Channel 4
Active-high beginning of line flag. Used in split-line mode which may be required for hybrid formats (e.g.
1-Ch D1 + 8-Ch CIF). Set high when the current encapsulated line of channel data includes the beginning of
a video line.
0: BOL not included (2nd half of split line)
1: BOL included (1st half of split line or full line)
Active-high end of line flag. Used in split-line mode which may be required for hybrid formats (e.g. 1-Ch D1 +
8-Ch CIF). Set high when the current line of channel data includes the end of a video line.
0: EOL not included (1st half of split line)
1: EOL included (2nd half of split line or full line)
Active-high video detection status
1: Video detected
Submit Documentation Feedback
Product Folder Link(s): TVP5158 TVP5157 TVP5156
TVP5158, TVP5157, TVP5156
www.ti.com
SLES243D–JULY 2009–REVISED OCTOBER 2010
Table 3-13. Bit Field Definition of 4-Byte Start Code for Active Video Line (continued)
BITNAMEFUNCTION
[17:16]LN_ID[8:7]video (i.e., resets once per field). During the vertical blanking interval, the line counter may either continue
15~LN_ID[6]Always set to the complement of bit 14 (LN_ID[6]).
[14:8]LN_ID[6:0]video (i.e., resets once per field). During the vertical blanking interval, the line counter may either continue
71Always set to 1.
6F0: First field of frame
5V0: when not in vertical blanking
4H0: SAV
3P3P3 = V XOR H, Protection bits used for error detection/correction
2P2P2 = F XOR H, Protection bits used for error detection/correction
1P1P1 = F XOR V, Protection bits used for error detection/correction
0P0P0 = F XOR V XOR H, Protection bits used for error detection/correction
Two MSBs of 9-bit Line ID, active video line number. Line counter resets to 000h at beginning of active
counting or hold the terminal count determined at the end of active video.
Seven LSBs of 9-bit Line ID, active video line number. Line counter resets to 000h at beginning of active
counting or hold the terminal count determined at the end of active video.
F-bit
1: Second field of frame
V-bit
1: during vertical blanking
H-bit. Always set to 0.
1: EAV (never used)
NOTE
For line-interleaved output mode, if none of video decoder channels has the data ready at a
given time, TVP5158 outputs the dummy line until any one of video decoder channels is
ready to output a line. The backend chip needs to keep only the active video line and ignore
the dummy line.
The start code of the dummy line is different with active video line. Table 3-14 shows the bit assignment
and field definition of 4-Byte start code for the Dummy Line.
Table 3-14. Bit Assignment of 4-Byte Start Code for the Dummy Line
The audio sub-system integrates a 4-Ch audio analog-to-digital converter, digital processing, and I2S
encoder. TVP5158 audio sub-system supports 4-Ch mono analog audio input and standard/multiple I2S
output. TVP5158 also supports audio cascade connection up to four devices cascade connected for 16-Ch
audio input.
3.9.1Features
•Four mono analog audio input channels
– Requires external passive attenuator to support 2.828-Vpp analog audio input
•Programmable Gain Amplifier (PGA)
– Gain range: -12 ~ 0 dB, Gain Step: 1.5 dB
•Integrated Anti-Aliasing Filter (AAF)
•10-Bit Analog-to-Digital Converter
•Integrates Audio High-pass filter to eliminate low frequency hum
•Digital serial audio interface
– 16-Bit Linear PCM, 8-Bit A-Law and 8-Bit µ-Law Data
– I2S or DSP Format
– Master and Slave mode operation
– Up to 16 slots TDM output
– 64 fsor 256 fssystem clock
•Sampling Rate : 16 kHz, 8 kHz
•Audio Cascade connection
– Up to 4 cascaded devices
– I2S format
– 256 fssystem clock
•Audio Mixing Output
– Audio ADC has one register to set mix ratio
– The Mixing output pin SD_M can also be used for recording. Combined with the recording output
pin SD_R, two I2S bit-streams can be output simultaneously.
The timing for the TVP5158 serial audio interface is shown in Figure 3-18. The TVP5158 audio data
output (SD_R) and frame sync pulse (LRCLK) are aligned with the falling edge of the bit clock (BCLK).
The TVP5158 audio data is delayed one BCLK cycles from the falling edge of the frame sync pulse. In the
DSP mode, the TVP5158 frame sync pulse is high for only one BCLK cycle.
TVP5158 supports up to four devices cascaded together for audio cascade connection. The I2S output of
master TVP5158 (1st stage) combines all audio channel data from cascaded TVP5158 devices.
Key Features of Audio Cascade Connection
Figure 3-19. Audio Cascade Connection
•16-Bit linear PCM data
s
•I2S format
•Bit Clock: 256 f
•All cascade inputs are always in slave mode
•Second to fourth stage serial audio outputs are always in master mode
•First stage serial audio output can be in either master or slave mode
•Common clock source for all cascaded devices is required
The Serial Audio Output Channel Assignment shown on Table 3-15.
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, I2CA1
and I2CA2 are used to select the slave address to which the device responds. Although the I2C system
can be multi-mastered, the TVP5158 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, I2CA1 and I2CA2) enable the use of up to eight devices
on the same I2C bus. At the trailing edge of reset, the status of the I2CA0, I2CA1 and I2CA2 lines are
sampled to determine the device address used. Table 3-16 summarizes the terminal functions of the I2C
host interface. Table 3-17 shows the device address selection options.
Data transfer rate on the bus is up to 400 kbit/s. The number of devices 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 8 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.
To simplify programming of each of the 4 decoder channels a single I2C write transaction can be
transmitted to any one or more of the 4 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 FEh contains 4 bits with each bit corresponding to one of the decoder cores. If a decoder
write enable bit is set, then I2C write transactions will be sent to the corresponding decoder core. For
multi-byte I2C write transactions there are options to auto-increment the sub-address or to auto-increment
through the selected decoders or both.
I2C sub-address FFh contains 4 bits with each bit corresponding to one of the decoder cores. If a decoder
read enable bit is set, then I2C read transactions will be sent to the corresponding decoder core.
If more than one decoder is enabled for reads then the lowest numbered decoder that is enabled will
respond to the read transaction. For multi-byte I2C read transactions there are options to auto-increment
the sub-address or to auto-increment through the selected decoders or both.
Data transfers occur utilizing the following formats.
An I2C master initiates a write operation to the decoder by generating a start condition (S) followed by the
decoder 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 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
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
www.ti.com
76543210
9
Step 80
I2C Stop (master)P
(1) Repeat steps 6 and 7 until all data have been written.
3.10.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 decoder by generating a start condition (S) followed by the
decoder slave address, in MSB first bit order, followed by a 0 to indicate a write cycle. After receiving
acknowledge from the 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 has the option of generating a
stop condition or not.
In the data phase, an I2C master initiates a read operation to the decoder by generating a start condition
followed by the decoder I2C slave 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 decoder, the I2C master receives
one or more bytes of data from the decoder. The I2C master acknowledges the transfer at the end of each
byte. After the last data byte has been transferred from the decoder, the master generates a not
acknowledge followed by a stop.
The TVP5158 video decoder has additional internal registers accessible through an indirect access to an
internal 24-bit address wide VBUS. Figure 3-20 shows the VBUS registers access.
An analog clock multiplier PLL is used to generate a system clock from an external 27-MHz crystal
(fundamental resonant frequency) or external clock reference input. A crystal can be connected across
terminals 99 (XTAL_IN) and 101 (XTAL_OUT), or a 1.8-V external clock input can be connected to
terminal 99. Four horizontal PLLs generate the line-locked sample clock for each video decoder core from
the system clock. Four color PLLs generate the color subcarrier frequency for each video decoder core
from the corresponding line-locked clock. Four vertical PLLs generate the field/frame sync for each video
decoder core. A frequency synthesizer generates the 32.768-MHz audio oversampling clock for each
analog audio input from the system clock.
Figure 3-21 shows the reference clock configurations. For the example crystal circuit shown, the external
capacitors must have the following relationship:
CL1= CL2= 2CL– C
Where C
specified by the crystal manufacturer.
is the terminal capacitance with respect to ground, and CLis the crystal load capacitance
Terminals 3 (RESETB) is active low signal to hold the decoder into reset. Table 3-18 shows the
configuration of reset mode. Table 3-19 describes the status of the decoder signals during and
immediately after reset. Figure 3-22 shows the reset timing.
After power-up, the device will be in an unknown state until properly reset. An active low reset, Reset B, of
greater than or equal to 20 ms is required following active and stable supply ramp-up. To avoid potential
I2C issues, keep SCL and SDA inactive (high) for at least 260 µs after reset goes high. There are no
power sequencing requirements except that all power supplies should become active and stable within
500 ms of each other.
The decoder is initialized and controlled by a set of internal registers which set all device operating
parameters. Communication between the external controller and the decoder is through I2C. Table 4-1
shows the summary of these registers. The reserved registers must not be written. Reserved bits in the
defined registers must be written with 0s, 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 will receive 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 in order to set the desired sub-address for reading.
Compared to previous video decoder, TVP5154A, the TVP5156, TVP5157, and TVP5158 add decoder
auto increment and address auto increment bits control. If decoder auto increment bit is set, the next
read/write is from/to the next decoder that is enabled. If address auto increment bit is set, the address will
increment after all the decoders enabled read/writes are completed. The detail of I2C registers FEh and
FFh is shown in their register section.
Table 4-1. Registers Summary
REGISTER NAMEI2C SUBADDRESSDEFAULTR/W
Status 100hR
Status 201hR
Color Subcarrier Phase Status02hR
Reserved03h
ROM Version04hR
Reserved05h - 07h
Chip ID MSB08h51hR
Chip ID LSB09h58hR
Reserved0Ah - 0Bh
Video Standard Status0ChR
Video Standard Select0Dh00hR/W
CVBS Autoswitch Mask0Eh03hR/W
Auto Contrast Mode0Fh03hR/W
Luminance Brightness10h80hR/W
Luminance Contrast11h80hR/W
Brightness and Contrast Range Extender12h00hR/W
Chrominance Saturation13h80hR/W
Chrominance Hue14h00hR/W
Reserved15h
Color Killer16h10hR/W
Reserved17h
Luminance Processing Control 118h40hR/W
Luminance Processing Control 219h00hR/W
Power Control1Ah00hR/W
Chrominance Processing Control 11Bh00hR/W
Chrominance Processing Control 21Ch0ChR/W
Reserved1Dh - 1Fh
AGC Gain Status 120hR
AGC Gain Status 221hR
(1)
(1) R = Read only, W = Write only, R/W = Read and write
Weak Signal Low Threshold97h50hR/W
Reserved98h - 9Dh
NR_Y_T09Eh0AhR/W
NR_U_T09FhBChR/W
NR_V_T0A0hBChR/W
ReservedA1h
Vertical Line Count StatusA2h - A3hR
ReservedA4h - A7H
Output Formatter Control 1 (write to all four decoder cores)A8h44hR/W
Output Formatter Control 2 (write to all four decoder cores)A9h40hR/W
ReservedAAh - ACh
Interrupt ControlADh00hR/W
Embedded Sync Offset Control 1 (write to all four decoder cores)AEh00hR/W
Embedded Sync Offset Control 2 (write to all four decoder cores)AFh00hR/W
AVD Output Control 1B0h00hR/W
AVD Output Control 2B1h10hR/W
OFM Mode ControlB2h20hR/W
OFM Channel Select 1B3hE4hR/W
OFM Channel Select 2B4hE4hR/W
OFM Channel Select 3B5h00hR/W
OFM Super-Frame Size LSBsB6h1BhR/W
OFM Super-Frame Size MSBsB7h04hR/W
OFM H-Blank Duration LSBsB8h40hR/W
OFM H-Blank Duration MSBsB9h00hR/W
Misc Ofm ControlBAh00hR/W
ReservedBBh - BFh00hR/W
Audio Sample Rate ControlC0h00hR/W
Analog Audio Gain Control 1C1h88hR/W
Analog Audio Gain Control 2C2h88hR/W
Audio Mode ControlC3hC9hR/W
Audio Mixer SelectC4h01hR/W
Audio Mute ControlC5h00hR/W
Audio Mixing Ratio Control 1C6h00hR/W
Audio Mixing Ratio Control 2C7h00hR/W
Audio Cascade Mode ControlC8h00hR/W
ReservedC9hA5hR/W
ReservedCAhFFhR/W
ReservedCBh7EhR/W
ReservedCCh01hR/W
ReservedCDh - CFh
Super-frame EAV2SAV duration status LSBsD0hR
Super-frame EAV2SAV duration status MSBsD1hR
Super-frame SAV2EAV duration status LSBsD2hR
Super-frame SAV2EAV duration status MSBsD3hR
ReservedD4h - DFh
VBUS Data Access With No VBUS Address IncrementE0hR/W
VBUS Data Access With VBUS Address IncrementE1hR/W
This register identifies the MSB of device ID. Value = 51h
Table 4-7. Chip ID LSB
Subaddress09h
DefaultRead only
76543210
Chip ID LSB [7:0]
Chip ID LSB [7:0]
This register identifies the LSB of device ID. Value = 58h
Table 4-8. Video Standard Status
www.ti.com
Subaddress0Ch
DefaultRead only
76543210
AutoswitchReservedVideo standard [2:0]
This register contains information about the detected video standard that the device is currently operating. When in autoswitch mode, this
register can be tested to determine which video standard as has been detected. See subaddress: 0Dh.
Autoswitch Mode
0Single standard set
1Autoswitch mode enabled
Video Standard [2:0]
00hReserved
01h(M, J) NTSC
02h(B, D, G, H, I, N) PAL
03h(M) PAL
04h(Combination-N) PAL
05hNTSC 4.43
06hReserved
07hPAL 60
The user can force the device to operate in a particular video standard mode by writing the appropriate value into this register. Changing
these bits will cause some register settings to be reset to their defaults. See subaddress: 0Ch.
CVBS Standard [2:0]
00hCVBS Autoswitch mode (default)
01h(M, J) NTSC
02h(B, D, G, H, I, N) PAL
03h(M) PAL
04h(Combination-N) PAL
05hNTSC 4.43
06hReserved
07hPAL 60
This register works for the luminance. See subaddress 12h.
0000 0000 0 (dark)
1000 0000 128 (default)
1111 1111 255 (bright)
The output black level relative to the nominal black level (64 out of 1024) as a function of the Brightness[7:0] setting is as follows:
Where MBis the brightness multiplier setting in the Brightness and Contrast Range Extender register at I2C subaddress 12h.
Table 4-13. Luminance Contrast
Subaddress11h
Default80h
76543210
Contrast [7:0]
Contrast [7:0]
This register works for the luminance. See subaddress 12h.
0000 0000 0 (minimum contrast)
1000 0000 128 (default)
1111 1111 255 (maximum contrast)
The total luminance gain relative to the nominal luminance gain as a function of the Contrast [7:0] setting is as follows:
Where MCis the contrast multiplier setting in the Brightness and Contrast Range Extender register at I2C subaddress 12h.
www.ti.com
Table 4-14. Brightness and Contrast Range Extender
Subaddress12h
Default00h
76543210
ReservedBrightness multiplier [3:0]
Contrast multiplier [4] (MC)
Increases the contrast control range.
02x contrast control range (default), Gain = n/64 – 1 where n is the contrast control and 64 ≤ n ≤255
1Normal contrast control range, Gain = n/128 where n is the contrast control and 0 ≤ n ≤ 255
Brightness multiplier [3:0] (MB)
Increases the brightness control range from 1x to 16x.
0h1x (default)
1h2x
3h4x
7h8x
Fh16x
Note: The brightness multiplier should be set to 3h for 8-bit outputs.
This register works for the chrominance.
0000 0000 0 (no color)
1000 0000 128 (default)
1111 1111 255 (maximum)
The total chrominance gain relative to the nominal chrominance gain as a function of the Saturation [7:0] setting is as follows:
Chrominance Gain = (nominal_chrominance_gain) × (Saturation[7:0] / 128)
Table 4-16. Chrominance Hue
Subaddress14h
Default80h
76543210
Hue [7:0]
Saturation [7:0]
This register works for the chrominance.
0000 0000 -180°
1000 0000 0° (default)
1111 1111 +180°
Table 4-17. Color Killer
Subaddress16h
Default10h
76543210
ReservedAutomatic color killerColor killer threshold [4:0]
Automatic color killer
00Automatic mode (default)
01Reserved
10
11Color killer disabled
Color killer threshold [4:0]:
Controls the upper and lower color killer hysteresis thresholds.
(1) Expressed as a percent of the nominal color burst amplitude (measured after front-end AGC).
(2) For proper color killer operation, the color PLL must be locked to the color burst frequency.
Color killer enabled, The UV terminals are forced to a zero
color state.
Selects one of the four trap filters to produce the luminance signal by removing the chrominance signal from the composite video
signal. The stop band of the chroma trap filter is centered at the chroma subcarrier frequency with the stop-band bandwidth
controlled by the two control bits.
Power down audio channel 4, active high
0Normal operation (default)
1Audio channel 4 power down
Pwd_ach3
Power down audio channel 3, active high
0Normal operation (default)
1Audio channel 3 power down
Pwd_ach2
Power down audio channel 2, active high
0Normal operation (default)
1Audio channel 2 power down
Pwd_ach1
Power down audio channel 1, active high
0Normal operation (default)
1Audio channel 1 power down
Pwd_vpll
Power down video PLL, active high
0Normal operation (default)
1Video PLL power down
Pwd_ref
Power down bandgap reference, active high
0Normal operation (default)
1Bandgap reference power down
Pwd_ofm_clk
Power down OFM clock, active high
0Normal operation (default)
1OFM clock power down
Pwd_video
Power down video channel corresponding to current decoder core, active high
0Normal operation (default)
1Power down video channel corresponding to current decoder core
These AGC gain status registers are updated automatically when the AGC is enabled; in manual gain control mode these register values
are not updated.
Since this register is a multi byte register it is necessary to "capture" the setting into the register to ensure that the value is not updated
between reading the lower and upper bytes. In order to cause this register to "capture" the current settings bit 0 of I2C register 24h (Status
Request) should be set to a 1. Once the internal processor has updated this register bit 0 of register 24h will be cleared, indicating that both
bytes of the AGC gain status register have been updated and can be read. Either byte may be read first since no further update will occur
until bit 0 of 24h is set to 1 again.
Table 4-24. Back-End AGC Status
Subaddress23h
DefaultRead Only
76543210
Gain [7:0]
Current back-end AGC ratio = Gain/128.
Table 4-25. Status Request
Subaddress24h
Default00h
76543210
ReservedCapture
Capture
Setting a 1 in this register causes the inter processor to capture the current settings of the AGC status, noise measurement, and
the vertical line count registers. Since this capture is not immediate it is necessary to check for completion of the capture by
reading the "capture" bit repeatedly after setting it and waiting for it to be cleared by the internal processor. Once the "capture" bit
is 0 the AGC status, noise measurement and vertical line counters (20h/21h, 94h/95h and A2h/A3h) will have been updated, and
can be safely read in any order.
Table 4-26. AFE Gain Control
Subaddress25h
DefaultF5h
76543210
ReservedALCReservedAGC
Reserved
For future compatibility, all reserved bits must be set to logic 1.
Upper hysteresis threshold for luma ALC freeze function. The lower hysteresis threshold for the ALC freeze function is fixed at 1 count out
of 4096. Setting the upper threshold to 00h (default condition) disables the ALC freeze function.
Table 4-28. Chroma ALC Freeze Upper Threshold
Subaddress27h
Default00h
76543210
Chroma ALC freeze [7:0]
Upper hysteresis threshold for chroma ALC freeze function. The lower hysteresis threshold for the ALC freeze function is fixed at 1 count
out of 4096. Setting the upper threshold to 00h (default condition) disables the ALC freeze function. Recommend a setting of 02h or greater
when enabled.
Table 4-29. AGC Increment Speed
Subaddress29h
Default06h
76543210
ReservedAGC increment speed [3:0]
AGC increment speed
Controls the filter coefficient of the first-order, recursive automatic gain control (AGC) algorithm whenever incrementing the gain.
0000 (fastest)
1106 (default)
1117 (slowest)
Table 4-30. AGC Increment Delay
Subaddress2Ah
Default1Eh
76543210
AGC increment delay [7:0]
AGC increment delay [7:0]
Number of frames to delay gain increments. Also see AGC decrement delay at subaddress 2Ch.
000000000
0001111030 frames (default)
11111111255 frames
Controls the filter coefficient of the first-order recursive automatic gain control (AGC) algorithm when decrementing the gain.
NOTE: This register affects the decrement speed only when the amplitude reference used by the AGC is either the composite peak
or the luma peak.
Also see AGC increment speed at subaddress 29h.
1117 (slowest)
1106 (default)
0000 (fastest)
Table 4-32. AGC Decrement Delay
Subaddress2Ch
Default00h
76543210
AGC decrement delay [7:0]
AGC decrement delay [7:0]
Number of frames to delay gain decrements.
NOTE: This register affects the decrement delay only when the amplitude reference used by the AGC is either the composite peak
or the luma peak.
Also see AGC increment delay at subaddress 2Ah.
If all four bits of the lower nibble are set to logic 1 (that is, no amplitude reference selected), then the front-end analog and digital gains are
automatically set to nominal values.
If all four bits of the upper nibble are set to logic 1 (that is, no amplitude reference selected), then the back-end gain is set automatically to
unity. If the input sync height is greater than 100% and the AGC-adjusted output video amplitude becomes less than 100%, then the
back-end scale factor attempts to increase the contrast in the back-end to restore the video amplitude to 100%.
Luma peak A
Use of the luma peak as a video amplitude reference for the back-end feed-forward type AGC algorithm
0Enabled (default)
1Disabled
Color burst A
Use of the color burst amplitude as a video amplitude reference for the back-end
0Enabled (default)
1Disabled
Sync height A
Use of the sync-height as a video amplitude reference for the back-end feed-forward type AGC algorithm
0Enabled (default)
1Disabled
Luma peak B
Use of the luma peak as a video amplitude reference for front-end feedback type AGC algorithm
0Enabled (default)
1Disabled
Composite peak
Use of the composite peak as a video amplitude reference for front-end feedback type AGC algorithm
0Enabled (default)
1Disabled
Color burst B
Use of the color burst amplitude as a video amplitude reference for front-end feedback type AGC algorithm
0Enabled (default)
1Disabled
Sync height B
Use of the sync-height as a video amplitude reference for front-end feedback type AGC algorithm
0Enabled (default)
1Disabled
This register allows disabling the back-end AGC when the front-end AGC uses specific amplitude references (sync-height, color burst or
composite peak) to decrement the front-end gain. For example, writing 09h to this register disables the back-end AGC whenever the
front-end AGC uses the sync-height to decrement the front-end gain.
Peak
Disables back-end AGC when the front-end AGC uses the composite peak as an amplitude reference.
0Enabled (default)
1Disabled
Color
Disables back-end AGC when the front-end AGC uses the color burst as an amplitude reference.
0Enabled (default)
1Disabled
Sync
Disables back-end AGC when the front-end AGC uses the sync height as an amplitude reference.
0Enabled (default)
1Disabled
Table 4-35. AFE Fine Gain
Subaddress34h-35h
Default086Ah
Subaddress76543210
34hFGAIN [7:0]
35hReservedFGAIN [13:8]
FGAIN [13:0]
This fine gain applies to CVBS. Fine Gain = (1/2048) × FGAIN where 0 ≤ FGAIN ≤ 16383. This register works only in manual gain
control mode. When AGC is active, writing to any value is ignored.
AVID start pixel number, this is a absolute pixel location from HS start pixel 0.
The TVP5158 updates the AVID start only when the AVID start MSB byte is written to. AVID start pixel register also controls the
position of SAV code. If these registers are modified, then the TVP5158 will retain the values for each video standard until the
device is reset. The values for a particular video standard should be set by forcing the TVP5158 to the desired video standard first
using register 0Dh then setting this register. This should be repeated for each video standard where the default values need to be
changed.
AVID active
0AVID out active in VBLK (default)
1AVID out inactive in VBLK
Table 4-37. AVID Pixel Width
Subaddress4Ah-4Bh
Default02D0h
www.ti.com
Subaddress76543210
4AhAVID Width [7:0]
4BhReservedAVID Width [9:8]
AVID Width [9:0]
AVID pixel width. The number of pixels width of active video must be an even number. This is an absolute pixel location from HS
start pixel 0.
The TVP5158 updates the AVID pixel width only when the AVID pixel width MSB byte is written to. AVID pixel width register also
controls the position of EAV code. If these registers are modified, then the TVP5158 will retain the values for each video standard
until the device is reset. The values for a particular video standard should be set by forcing the TVP5158 to the desired video
standard first using register 0Dh then setting this register. This should be repeated for each video standard where the default
values need to be changed.
Table 4-38. Noise Reduction Max Noise
Subaddress5Ch
Default28h
76543210
ReservedNR_Max_Noise [6:0]
NR_Max_Noise [6:0]
User-defined maximum noise level
0010 1000 40 (default)
Noise reduction color killer enabled
0Disabled (default)
1Enabled
Block_Width_UV
Number of UV pixel values which the algorithm will use to generate the noise average.
0128 pixels
1256 pixels (default)
Block_Width_Y
Number of Y pixel values which the algorithm will use to generate the noise average.
0256 pixels (default)
1512 pixels
Test_Bypass
Test mode bypass. This test bypass mode bypasses the Noise Reduction module completely via hard wires and has zero delay for
processing.
0Bypass disabled (default)
1Bypass enabled
NR_Bypass
Noise reduction module bypass. The noise reduction module has a bypass capability which enables it to pass through the incoming
data during the output active video period, while matching the delay in operation mode.
When in the Normal mode, the horizontal PLL (H-PLL) response time is set to its slowest setting. This mode improves noise
immunity and provides a more stable output line frequency for standard TV signal sources (for example, TV tuners, DVD players,
video surveillance cameras, etc.).
When in the Fast mode, the H-PLL response time is set to its fastest setting. This mode enables the H-PLL to respond more
quickly to large variations in the horizontal timing (for example, VCR head switching intervals). This mode is recommended for
VCRs and also cameras locked to the AC power-line frequency.
When in the Adaptive mode, the H-PLL response time is automatically adjusted based on the measured horizontal phase error. In
this mode, the H-PLL response time typically approaches its slowest setting for most standard TV signal sources and approaches
its fastest setting for most VCR signal sources.
Upper hysteresis threshold for vertical sync-height detection (value/32×target sync height).
Table 4-45. Clear Lost Lock Detect
Subaddress81h
Default00h
76543210
Reserved
Clear lost lock detect
Clear bit 4 (lost lock detect) in the status 1 register at subaddress 00h
0No effect (default)
1Clears bit 4 in the status 1 register (00h)
Table 4-46. VSYNC Filter Shift
Clear lost lock
detect
Subaddress85h
Default03h
76543210
ReservedVSYNC filter shift [1:0]
VSYNC filter shift [1:0]
Used for adaptation of VPLL time constant
000 (fast)
011
102
113 (slow)
Table 4-47. 656 Version/F-bit Control
Subaddress87h
Default00h
76543210
Reserved656 versionF-control
656 version
0Timing confirms to ITU-R BT.656-4 specifications (default)
1Timing confirms to ITU-R BT.656-3 specifications
F-control
0Odd field causes 0 → 1 transition in F-bit when in TVP5146 F/V mode (see register 88h)
1Even field causes 0 → 1 transition in F-bit when in TVP5146 F/V mode (see register 88h)
1111ReservedReservedReservedReservedReserved
656ITU-R BT.656 standard
ToggleToggles from field to field
PulsePulses low for 1 line prior to field transition
SwitchV bit switches high before the F bit transition and low after the F bit transition
Switch9V bit switches high 1 line prior to F bit transition, then low after 9 lines
ReservedNot used
Enable fast lock where vertical PLL is reset and a 2 second timer is initialized when vertical lock is lost; during timeout the detected
input VS is output.
0Disabled
1Enabled (default)
F and V [1:0]
F and V control bits are only enabled for F-bit control mode 01 and 10 (see register 88h)
F and VLines Per FrameF BitV Bit
StandardITU-R BT.656ITU-R BT.656
00Non standard-evenForced to 1Switch at field boundary
Enable horizontal PLL to free run
0Disabled (default)
1Enabled
StandardITU-R BT.656ITU-R BT.656
Non standardTogglesSwitch at field boundary
StandardITU-R BT.656ITU-R BT.656
Non standardPulsed modeSwitch at field boundary
User table selection for auto contrast user mode when the register 0Fh sets to 02h.
000Brighter 1
001Brighter 2
010Brighter 3 (Brightest)
011Darker 1
100Darker 2
101Darker 3 (Darkest)
110 to
Reserved
111
Table 4-52. Blue Screen Y Control
Subaddress90h
Default10h
www.ti.com
76543210
Y value [9:2]
The Y value of the color screen output when enabled by bit 2 or 3 of the output formatter 2 register is programmable using a 10-bit value.
The 8 MSBs, bits[9:2], are represented in this register. The remaining two LSB are found in the Blue screen LSB register. The default color
screen output is black.
Table 4-53. Blue Screen Cb Control
Subaddress91h
Default80h
76543210
Cb value [9:2]
The Cb value of the color screen output when enabled by bit 2 or 3 of the output formatter 2 register is programmable using a 10-bit value.
The 8 MSBs, bits[9:2], are represented in this register. The remaining two LSB are found in the Blue screen LSB register. The default color
screen output is black.
Table 4-54. Blue Screen Cr Control
Subaddress92h
Default80h
76543210
Cr value [9:2]
The Cr value of the color screen output when enabled by bit 2 or 3 of the output formatter 2 register is programmable using a 10-bit value.
The 8 MSBs, bits[9:2], are represented in this register. The remaining two LSB are found in the Blue Screen LSB register. The default color
screen output is black.
Used by the weak signal detection algorithm.
Since this register is a double byte register it is necessary to "capture" the setting into the register to ensure that the value is not
updated between reading the lower and upper bytes. In order to cause this register to "capture" the current settings bit 0 of I2C
register 24h (status request) should be set to a 1. Once the internal processor has updated this register bit 0 of register 24h will be
cleared, indicating that both bytes of the noise measurement register have been updated and can be read. Either byte may be read
first since no further update will occur until bit 0 of 24h is set to 1 again.
Table 4-57. Weak Signal High Threshold
Subaddress96h
Default60h
76543210
Level [7:0]
This register controls the upper threshold of the noise measurement used to determine whether the input signal should be considered a
weak signal.
Table 4-58. Weak Signal Low Threshold
Subaddress97h
Default50h
76543210
Level [7:0]
This register controls the lower threshold of the noise measurement used to determine whether the input signal should be considered a
weak signal.
9EhNoise Reduction Y T0 [7:0]
9FhNoise Reduction U T0 [7:0]
A0hNoise Reduction V T0 [7:0]
These registers control how much noise filtering is done for Y/U/V channels. The bigger the value is, the more noise filtering at the expense
of video details.
Table 4-60. Vertical Line Count Status
SubaddressA2h-A3h
DefaultRead Only
Subaddress76543210
A2hVertical line [7:0]
A3hReservedVertical line [9:8]
This status register is only updated when a status request is initiated via bit 0 of subaddress 24h.
Vertical line [9:0] represent the detected a total number of lines from the previous frame. This can be used with nonstandard video signals
such as a VCR in trick mode to synchronize downstream video circuitry.
NOTE: This register is not double buffered.
Since this register is a double byte register it is necessary to "capture" the setting into the register to ensure that the value is not updated
between reading the lower and upper bytes. In order to cause this register to "capture" the current settings bit 0 of I2C register 24h (Status
Request) should be set to a 1. Once the internal processor has updated this register bit 0 of register 24h will be cleared, indicating that both
bytes of the vertical line count register have been updated and can be read. Either byte may be read first since no further update will occur
until bit 0 of 24h is set to 1 again.
Table 4-61. Output Formatter Control 1
SubaddressA8h
Default44h
76543210
ReservedCbCr rangeReserved
This register should be written to all four video decoder cores.
YCbCr output code range
0ITU-R BT.601 coding range (Y ranges from 64 to 940. Cb and Cr range from 64 to 960.)
1Extended coding range (Y, Cb and Cr range from 4 to 1016.) (default)
ReservedBlue screen output [1:0]Reserved
This register should be written to all four video decoder cores.
Blue screen output [1:0] (internal use only)
Fully programmable color of "blue screen" to support clean input/channel switching. When enabled, in case of lost lock, or when
forced, the TVP5158 waits until the end of the current frame, then switches the output data to a programmable color. Once
displaying the "blue screen", the inputs can be switched without causing snow or noise to be displayed on the digital output data.
Once the inputs have settled the "blue screen" can be disabled, where the TVP5158 then waits until the end of the current video
frame before re-enabling the video stream data to the output ports.
00Normal operation (default)
01Blue screen out when TVP5158 detects lost lock
10Force Blue screen out
11Reserved
Table 4-63. Interrupt Control
SubaddressADh
Default00h
76543210
Int_PolInt_TypeReserved
Int_Pol
Interrupt polarity
0Active low (default)
1Active high (do not use with open drain output)
Note: Active high output should be used only when push-pull output type is selected (Int Type = 1).
Int_Type
Interrupt output type
0Open drain output (default)
1Push-pull output
Note: An external pullup resistor is required when open drain output is selected (Int Type = 0).
Table 4-64. Embedded Sync Offset Control 1
SubaddressAEh
Default00h
76543210
Offset [7:0]
Offset [7:0]
This register allows the line position of the embedded F and V bit signals to be offset from the 656 standard positions. This register
is only applicable to input video signals with standard number of lines.
This register allows the line relationship between the embedded F and V bit signals to be offset from the 656 standard positions,
and moves F relative to V. This register is only applicable to input video signals with standard number of lines.
Interleave_modeChannel_Mux_NumberOutput_ typeVCS_IDVideo_Res_Sel
This register should be written to all four video decoder cores.
Interleave_mode
Interleave mode for multi-channel formats
00Non-interleaved (a.k.a. 1-Ch mode) – (default)
01Pixel-interleaved mode (2-Ch and 4-Ch only)
10Line-interleaved mode
11Line-interleaved, hybrid mode (adds 1-Ch D1 to selected 4-Ch Half-D1, 4-Ch CIF or 8-Ch CIF format)
Channel_Mux_Number
Number of time-multiplexed channels
001-Ch (reserved)
012-Ch
104-Ch (or 4-Ch Half-D1 or CIF + 1-Ch D1 for line-interleaved, hybrid mode)
8-Ch cascade (format depends on VCS_ID, line-interleaved mode only)
•Line-interleaved mode
–1st stage: 8-Ch Half-D1 or 8-Ch CIF (video port A)
11–2nd stage: 4-Ch Half-D1 or 4-Ch CIF (video port A)
•Line-interleaved, hybrid mode
–1st stage: 8-Ch CIF + 1-Ch D1 (video port A)
–2nd stage: 4-Ch CIF (video port A) and 1-Ch D1 (video port B)
Output_type
Output interface type
08-bit ITU-R BT.656 interface (default)
116-bit ITU-R BT.601 interface (4-Ch D1 and 4-Ch Half-D1 line-interleaved modes only)
VCS_ID
Video cascade stage ID. Set to 0 for normal operation. For line-interleaved mode only.
01st stage (channels 1 to 4) (default)
12nd stage (channels 5 to 8)
This register should be written to all four video decoder cores.
LLC_En
Line-locked clock enable, active high. For non-interleaved mode only. For use with Port A only.
0Line-locked clock disabled (default)
1Line-locked clock enabled
Line_ Crop_En
AVD line cropping enable, active high. Effects both scaled and unscaled AVD outputs.
0Cropping disabled (unscaled: 720 pixels/line, down-scaled: 360 pixels/line) – (default)
1Cropping enabled (unscaled: 704 pixels/line, down-scaled: 352 pixels/line)
Quan_Ctrl
10-bit to 8-bit quantization control. Dithering algorithm based on truncation error from previous pixel.
00Enable simple truncation
01Enable dithering (default)
10Enable simple rounding
11Reserved
Line_ID_Ctrl
Line ID control. For line-interleaved mode only.
0Line ID continues counting through the vertical blanking interval - (default)
1Line ID holds the terminal count from the end of active video through the vertical blanking interval
Chan_ID_SAVEAV_En
Channel ID inserted in SAV/EAV codes enable, active high. For pixel-interleaved mode only. Always disabled for
non-interleaved and line-interleaved modes.
0Disabled (default)
1Enabled
Chan_ID_Blank_En
Channel ID inserted in blanking level enable, active high. For pixel-interleaved mode only. Always disabled for non-interleaved and
line-interleaved modes.
0Disabled (default)
1Enabled
Video_Det_SAVEAV_En
Video detection status inserted in SAV/EAV codes enable, active high. For non-interleaved and pixel-interleaved
modes. Always enabled for line-interleaved mode.
This register only needs to be written to video decoder core 0.
Out_CLK_Freq_Ctl
Output clock frequency control for 4-Ch Half-D1 + 1-Ch D1 and 8-Ch CIF + 1-Ch D1 line-interleaved, hybrid output formats only.
Affects both OCLK_P and OCLK_N.
0108 MHz (default)
181 MHz
OSC_OUT_En
Oscillator output enable, active high
0OSC_OUT disabled
1OSC_OUT enabled (default)
Out_CLK_Pol_Sel
Output clock polarity select. Affects both OCLK_P and OCLK_N.
0Non-inverted (default)
1Inverted
Out_CLK_Freq_Sel
Output clock frequency select for 2-ch pixel-interleaved mode only. Affects both OCLK_P and OCLK_N.
054 MHz (default)
127 MHz
Out_CLK_P_En
Output data clock+ (OCLK_P) enable, active high
0OCLK_P disabled (default)
1OCLK_P enabled
Out_CLK_N_En
Output data clock- (OCLK_N) enable, active high
0OCLK_N disabled (default)
1OCLK_N enabled (for 2-Ch mode only)
Video_Port_En
Video port output enable, active high
0All four video ports disabled (default)
1All video ports required for selected output format enabled
Chan_Sel_Port_DChan_Sel_Port_CChan_Sel_Port_BChan_Sel_Port_A
This register only needs to be written to video decoder core 0. OFM channel select by video port in 1-Ch mode.
Chan_Sel_Port_D
Channel select for port D
00Ch 1
01Ch 2
10Ch 3
11Ch 4 (default)
Chan_Sel_Port_C
Channel select for port C
00Ch 1
01Ch 2
10Ch 3 (default)
11Ch 4
Chan_Sel_Port_B
Channel select for port B
00Ch 1
01Ch 2 (default)
10Ch 3
11Ch 4
Chan_Sel_Port_A
Channel select for port A
00Ch 1 (default)
01Ch 2
10Ch 3
11Ch 4
NOTE: Each video port must be set to a different channel.
2nd_Chan_Sel_Port_B1st_Chan_Sel_Port_B2nd_Chan_Sel_Port_A1st_Chan_Sel_Port_A
This register only needs to be written to video decoder core 0. OFM channel select by video port in 2-Ch mode.
2nd_Chan_Sel_Port_B
Second channel select for port B
00Ch 1
01Ch 2
10Ch 3
11Ch 4 (default)
1st_Chan_Sel_Port_B
First channel select for port B
00Ch 1
01Ch 2
10Ch 3 (default)
11Ch 4
2nd_Chan_Sel_Port_A
Second channel select for port A
00Ch 1
01Ch 2 (default)
10Ch 3
11Ch 4
1st_Chan_Sel_Port_A
First channel select for port A
00Ch 1 (default)
01Ch 2
10Ch 3
11Ch 4
NOTE: Each video port must be set to a different channel.
Table 4-71. OFM Channel Select 3
SubaddressB5h
Default00h
76543210
ReservedHybrid_Chan_Sel [2:0]
This register only needs to be written to video decoder core 0.
Hybrid_Chan_Sel [2:0]
OFM channel select for 1-Ch D1 channel in video cascade mode and hybrid format mode.
000Ch 1 (default)
001Ch 2
010Ch 3
011Ch 4
100Cascade input from Port C (for video cascade 1st stage only)
101Reserved
110Reserved
111Reserved
B7hReservedCtrl_Mode [1:0]Super_Frame_Size [11:8]
These registers write to decoder core 0 only.
Ctrl_Mode [1:0]
Super-frame size control mode
00Super-frame size based on 525-line standard (default)
01Super-frame size based on 625-line standard
10Reserved
11Super-frame size based on manual setting (see subaddress B6h/B7h)
Super_Frame_Size [11:0]
Total number of lines per super-frame. For line-interleaved mode only.
0100 0001 10111051 (default)
NOTE: Has no effect on port B in the video cascade interface.
These registers write to decoder core 0 only.
HBlank_Duration_Mode
H-blank duration control mode.
0H-blank duration automatically controlled (8-bit output mode: 40h, 16-bit output mode: 80h)
1H-blank duration based on manual setting (see subaddress B8h/B9h)
OFM_HBlank_Duration [9:0]
Horizontal blanking duration in OCLK_P clock cycles. For non-interleaved and line-interleaved modes.
00 0100 000064 (default)
HBlank_
Mode
Table 4-74. Misc OFM Control
SubaddressBAh
Default00h
76543210
Reserved
OFM_Soft_Reset
Soft reset for OFM logic.
Note: This bit is automatically cleared by firmware when the reset is completed.
0Normal operation (default)
1Reset output formatter logic
NOTE: In cascade mode, the OFM reset of the 1st stage should be asserted after the OCLK_N output of the 2nd stage is enabled.
Analog audio gain control for audio Ch 2. See values below.
Audio_Gain_Ctrl_CH1
Analog audio gain control for audio Ch 1
0000-12.0 dB
0001-10.5 dB
0010-9 dB
0011-7.5 dB
0100-6 dB
0101-4.5 dB
0110-3 dB
0111-1.5 dB
10000 dB (default)
1001Reserved
1010Reserved
1011Reserved
1100Reserved
1101Reserved
1110Reserved
1111Reserved
Analog audio gain control for audio Ch 4. See values below.
Audio_Gain_Ctrl_CH3
Analog audio gain control for audio Ch 3
0000-12.0 dB
0001-10.5 dB
0010-9 dB
0011-7.5 dB
0100-6 dB
0101-4.5 dB
0110-3 dB
0111-1.5 dB
10000 dB (default)
1001Reserved
1010Reserved
1011Reserved
1100Reserved
1101Reserved
1110Reserved
1111Reserved
Audio Cascade Mode control which is cascade stage ID. Set to 00 for standalone operation.
00First stage (channels 1 to 4) (default)
01Second stage (channels 5 to 8)
10Third stage (channels 9 to 12)
11Fourth stage (channels 13 to 16)
Table 4-84. Super-Frame EAV2SAV Duration Status
SubaddressD0h-D1h
DefaultRead Only
Subaddress76543210
D0hEAV2SAV [7:0]
D1hReservedEAV2SAV [9:8]
EAV2SAV [9:0]
Super-frame EAV2SAV duration (bytes). For line-interleaved mode only.
Super-frame SAV2EAV duration (bytes). For line-interleaved mode only.
Table 4-86. VBUS Data Access With No VBUS Address Increment
SubaddressE0h
Default00h
76543210
VBUS data [7:0]
VBUS data [7:0]
VBUS data register for VBUS single-byte read/write transaction
Table 4-87. VBUS Data Access With VBUS Address Increment
SubaddressE1h
Default00h
76543210
VBUS data [7:0]
VBUS data [7:0]
VBUS data register for VBUS multi-byte read/write transaction. VBUS address is auto-incremented after each data byte read/write.
Table 4-88. VBUS Address Access
SubaddressE8hE9hEAh
Default00h00h00h
Subaddress76543210
E8hVBUS address [7:0]
E9hVBUS address [15:8]
EAhVBUS address [23:16]
VBUS access address [23:0]
VBUS is a 24-bit wide internal bus. The user needs to program the 24-bit address of the internal register to be accessed via host
port indirect access mode.
The Interrupt Status register represents the interrupt status after applying mask bits. Therefore, the status bits are the result of a logical
AND between the raw status and mask bits. The external interrupt pin is derived from this register as an OR function of all non-masked
interrupts in this register.
Reading data from the corresponding register does not clear the status flags automatically. These flags are reset using the corresponding
bits in interrupt clear register.
Sig_Present
Signal present detect interrupt
0Not available
1Available
Weak_Sig
Weak signal detect interrupt
0Not available
1Available
Vid_Lock
Video (HV) lock change interrupt
0Not available
1Available
Macrovision
Macrovision change interrupt
0Not available
1Available
Vid_Std
Video standard change interrupt
0Not available
1Available
The host interrupt mask register can be used by the external processor to mask unnecessary interrupt sources for Interrupt Status register
bits, and for the external interrupt pin. The external interrupt is generated from all non-masked interrupt flags.
Sig_Present
Signal present detect interrupt mask
0Interrupt disabled (default)
1Interrupt enabled
Weak_Sig
Weak signal detect interrupt mask
0Interrupt disabled (default)
1Interrupt enabled
The host interrupt Clear register is used by the external processor to clear the interrupt status bits in the host interrupt status register. When
no non-masked interrupts remain set in the register, the external interrupt pin also becomes inactive.
Sig_Present
Signal present interrupt clear
0No effect (default)
1Clear interrupt bit
Weak_Sig
Weak signal interrupt clear
0No effect (default)
1Clear interrupt bit
Vid_Lock
Video (HV) lock change interrupt clear
0No effect (default)
1Clear interrupt bit
Macrovision
Macrovision change interrupt clear
0No effect (default)
1Clear interrupt bit
Vid_Std
Video standard change interrupt clear
0No effect (default)
1Clear interrupt bit
Table 4-92. Decoder Write Enable
SubaddressFEh
Default0Fh
76543210
ReservedAddr Auto IncrDecoder 4Decoder 3Decoder 2Decoder 1
This register controls which of the four decoder cores receives I2C write transactions. A 1 in the corresponding Decoder bit will enable the
decoder to receive write commands. Any combination of decoders can be configured to receive write commands, allowing all four decoders
to be programmed concurrently.
The following table shows how the address auto-increment and decoder auto-increment functions operate when a multi-byte I2C write
transaction occurs. For this example, decoders 2, 3 and 4 are enabled for writes, the sub-address is 0xA0 and 8 bytes of data are written.
ReservedAddr Auto IncrDecoder 4Decoder 3Decoder 2Decoder 1
This register controls which of the four decoder cores responds to I2C read transactions. A 1in the corresponding bit position will enable the
decoder to respond to read commands. A 1in Decoder Auto Increment will read the next byte from the next enabled decoder. If Decoder
Auto Increment is 0 and more than one decoder is enabled for reading then only the lowest numbered decoder will respond. A 1in Address
Auto Increment causes the sub-address to increment after read(s) of the current sub-address are completed.
The following table shows how the address auto-increment and decoder auto-increment functions operate when a multi-byte I2C read
transaction occurs. For this example, decoders 2, 3 and 4 are enabled for reads, the sub-address is 0xA0 and 8 bytes of data are read.
over operating free-air temperature range (unless otherwise noted)
V
V
V
T
T
V
(1) Stresses beyond those listed under absolute maximum ratings may cause permanent damage to the device. These are stress ratings
(2) Electrostatic discharge (ESD) to measure device sensitivity/immunity to damage caused by electrostatic discharges into the device.
(3) Tested per JEDEC JESD22-A114F
(4) Tested per JEDEC JESD22-C101D
Supply voltage rangeVDDA_3_3 to VSSA_3_3-0.3 V to 3.6 V
DD
Digital input voltage rangeVIto DGND-0.5 V to 4.5 V
I
Digital output voltage rangeVOto DGND-0.5 V to 4.5 V
O
Analog video input voltage rangeAINto AGND-0.2 V to 2.5 V
Analog audio input voltage rangeAINto AGND-0.2 V to 2.0 V
Operating free-air temperature range
A
Storage temperature range-65°C to 150°C
stg
ESD stress voltage
ESD
(2)
only, and functional operation of the device at these or any other conditions beyond those indicated under recommended operatingconditions is not implied. Exposure to absolute-maximum-rated conditions for extended periods may affect device reliability.
(1)
VDD_3_3 to VSS_3_30.5 V to 4.0 V
VDD_1_1 to VSS_1_1-0.2 V to 1.2 V
VDDA_1_8 to VSSA_1_8-0.2 V to 2.0 V
VDDA_1_1 to VSSA_1_1-0.2 V to 1.2 V
Commercial range0°C to 70°C
Industrial range-40°C to 85°C
Analog video input voltage (ac-coupling necessary)
Analog audio input voltage (ac-coupling necessary)0.8V
Input voltage high, digital
Input voltage low, digital
(1) Specified based on a typical 100% Color Bar Signal
(2) Exception: 0.7 VDDA_1_8 for XTAL_IN terminal
(3) Specified by design
(4) Exception: 0.3 VDDA_1_8 for XTAL_IN terminal
(1) This number is the required specification for the external crystal/oscillator and is not tested.
5.4Electrical Characteristics
5.5DC Electrical Characteristics
For minimum/maximum values: VDD_1_1 = 1.0 to 1.2 V, VDD_3_3 = 3.0 V to 3.6 V, VDDA_1_1 = 1.0 V to 1.2 V,
VDDA_1_8 = 1.65 V to 1.95 V, VDDA_3_3 = 3.0 V to 3.6 V
For typical values (TA= 25°C): VDD_1_1 = 1.1 V, VDD_3_3 = 3.3 V, VDDA_1_1 = 1.1 V, VDDA_1_8 = 1.8 V,
VDDA_3_3 = 3.3 V
I
DD(33D)
I
DD(11D)
I
DD(33A)
I
DD(18A)
I
DD(11A)
P
TOT
P
APWD
P
DOWN
I
lkg
C
I
V
OH
V
OL
(1) Typical current measurements made with 4-Ch D1 video output at 108 MHz with 4-Ch audio.
(2) Specified by design
3.3-V I/O digital supply current
1.1-V core digital supply current
3.3-V analog supply current
1.8-V analog supply current
1.1-V analog supply current
Total power dissipation, normal
operation
Power dissipation with audio powered
down
Total power dissipation with power
down (I2C register 1Ah set to FFh)
Input leakage current20µA
Input capacitance
Output voltage highIOH= -4 mA0.8 VDD_3_3V
Output voltage lowIOL= 4 mA0.2 VDD_3_3V
(1)
PARAMETERTEST CONDITIONSMINTYPMAX UNIT
2-Ch D1 mode at 54 MHz33mA
4-Ch D1 mode at 108 MHz41mA
2-Ch D1 mode at 54 MHz143mA
4-Ch D1 mode at 108 MHz156mA
2-Ch D1 mode at 54 MHz4.5mA
4-Ch D1 mode at 108 MHz4.5mA
2-Ch D1 mode at 54 MHz172mA
4-Ch D1 mode at 108 MHz168mA
2-Ch D1 mode at 54 MHz14mA
4-Ch D1 mode at 108 MHz17mA
2-Ch D1 mode at 54 MHz606mW
4-Ch D1 mode at 108 MHz643mW
Input impedance, analog audio inputs
Input capacitance, analog audio inputs
i
Full-scale input voltage range of ADCC
DNLAbsolute differential non-linearity
INLAbsolute integral non-linearityAFE only12.5LSB
XTALK Crosstalk between any two channels-50dB
SNRSignal-to-noise ratio (all channels)fS= 16 kHz, VIN= -60 dB, 1 kHz56dB
t1Bus free time between STOP and START1.3µs
t2Data Hold time00.9µs
t3Data Setup time100ns
t4Setup time for a (repeated) START condition0.6µs
t5Setup time for a STOP condition0.6ns
t6Hold time (repeated) START condition0.6µs
t7Rise time SDA and SCL signal250ns
t8Fall time SDA and SCL signal250ns
NOTE: System level ESD protection is not included in above application circuit but is recommended.
NOTE: Resistor divider may vary dependent on expected max input audio levels. Desired analog audio input levels should
not exceed 1Vpp.
Figure 6-6. Audio Input Connectivity
6.5Designing with PowerPAD™ Devices
The TVP5158 device is housed in a high-performance, thermally enhanced, 128-terminal PowerPAD
package. Use of the PowerPAD package does not require any special considerations except to note that
the thermal pad, which is an exposed die pad on the bottom of the device, is a metallic thermal and
electrical conductor. Therefore, if not implementing the PowerPAD PCB features, the use of solder masks
(or other assembly techniques) can be required to prevent any inadvertent shorting by the exposed
thermal pad of connection etches or vias under the package. The recommended option, however, is not to
run any etches or signal vias under the device, but to have only a grounded thermal land as in the
following explanation. Although the actual size of the exposed die pad may vary, the minimum size
required for the keep-out area for the 128-terminal PFP PowerPAD package is 9mm x 9mm.
It is recommended that there be a thermal land, which is an area of solder-tinned-copper, underneath the
PowerPAD package. The thermal land varies in size, depending on the PowerPAD package being used,
the PCB construction, and the amount of heat that needs to be removed. In addition, the thermal land may
or may not contain numerous thermal vias depending on PCB construction.
Other requirements for using thermal lands and thermal vias are detailed in the TI application note
PowerPAD Thermally Enhanced Package application report (SLMA002).
For the TVP5158 device, this thermal land must be grounded to the low-impedance ground plane of the
device. This improves not only thermal performance but also the electrical grounding of the device. It is
also recommended that the device ground terminal landing pads be connected directly to the grounded
thermal land. The land size should be as large as possible without shorting device signal terminals. The
thermal land can be soldered to the exposed thermal pad using standard reflow soldering techniques.
While the thermal land can be electrically floated and configured to remove heat to an external heat sink, it
is recommended that the thermal land be connected to the low-impedance ground plane for the device.
More information can be obtained from the TI application note PHY Layout (SLLA020).
The marketing status values are defined as follows:
ACTIVE: Product device recommended for new designs.
LIFEBUY: TI has announced that the device will be discontinued, and a lifetime-buy period is in effect.
NRND: Not recommended for new designs. Device is in production to support existing customers, but TI does not recommend using this part in a new design.
PREVIEW: Device has been announced but is not in production. Samples may or may not be available.
OBSOLETE: TI has discontinued the production of the device.
Status
(1)
Package Type Package
Drawing
PinsPackage Qty
Eco Plan
& no Sb/Br)
& no Sb/Br)
& no Sb/Br)
& no Sb/Br)
& no Sb/Br)
& no Sb/Br)
& no Sb/Br)
& no Sb/Br)
(2)
Lead/
Ball Finish
CU NIPDAU Level-3-260C-168 HRPurchase Samples
CU NIPDAU Level-3-260C-168 HRPurchase Samples
CU NIPDAU Level-3-260C-168 HRRequest Free Samples
CU NIPDAU Level-3-260C-168 HRPurchase Samples
CU NIPDAU Level-3-260C-168 HRRequest Free Samples
CU NIPDAU Level-3-260C-168 HRPurchase Samples
CU NIPDAU Level-3-260C-168 HRRequest Free Samples
CU NIPDAU Level-3-260C-168 HRPurchase Samples
MSL Peak Temp
(3)
Samples
(Requires Login)
(2)
Eco Plan - The planned eco-friendly classification: Pb-Free (RoHS), Pb-Free (RoHS Exempt), or Green (RoHS & no Sb/Br) - please check http://www.ti.com/productcontent for the latest availability
information and additional product content details.
TBD: The Pb-Free/Green conversion plan has not been defined.
Pb-Free (RoHS): TI's terms "Lead-Free" or "Pb-Free" mean semiconductor products that are compatible with the current RoHS requirements for all 6 substances, including the requirement that
lead not exceed 0.1% by weight in homogeneous materials. Where designed to be soldered at high temperatures, TI Pb-Free products are suitable for use in specified lead-free processes.
Pb-Free (RoHS Exempt): This component has a RoHS exemption for either 1) lead-based flip-chip solder bumps used between the die and package, or 2) lead-based die adhesive used between
the die and leadframe. The component is otherwise considered Pb-Free (RoHS compatible) as defined above.
Green (RoHS & no Sb/Br): TI defines "Green" to mean Pb-Free (RoHS compatible), and free of Bromine (Br) and Antimony (Sb) based flame retardants (Br or Sb do not exceed 0.1% by weight
in homogeneous material)
(3)
MSL, Peak Temp. -- The Moisture Sensitivity Level rating according to the JEDEC industry standard classifications, and peak solder temperature.
Addendum-Page 1
PACKAGE OPTION ADDENDUM
www.ti.com
Important Information and Disclaimer:The information provided on this page represents TI's knowledge and belief as of the date that it is provided. TI bases its knowledge and belief on information
provided by third parties, and makes no representation or warranty as to the accuracy of such information. Efforts are underway to better integrate information from third parties. TI has taken and
continues to take reasonable steps to provide representative and accurate information but may not have conducted destructive testing or chemical analysis on incoming materials and chemicals.
TI and TI suppliers consider certain information to be proprietary, and thus CAS numbers and other limited information may not be available for release.
14-Jul-2010
In no event shall TI's liability arising out of such information exceed the total purchase price of the TI part(s) at issue in this document sold by TI to Customer on an annual basis.
Addendum-Page 2
Loading...
+ 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.