NTSC/PAL/SECAM/Component 2x10-Bit Digital Video
Decoder
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.
NTSC/PAL/SECAM/Component 2x10-Bit Digital Video Decoder
Check for Samples: TVP5160
1Introduction
1.1Features
1
• Two 11-Bit 60-MSPS Analog-to-Digital (A/D)• Fast Switch 4x Oversampled Input for Digital
Converters With Analog PreprocessorsRGB Overlay Switching Between Any CVBS,
(Clamp/AGC)S-Video, or Component Video Input
• Fixed RGB-to-YUV Color Space Conversion• SCART 4x Oversampled Fast Switching
• Robust Sync Detection for Weak and Noisy
Signals as well as VCR
• Supports NTSC (J, M, 4.43), PAL (B, D, G, H, I,
M, N, Nc, 60) and SECAM (B, D, G, K, K1, L)• Chrominance Processor
CVBS, S-Video
• Supports Component Standards 480i, 576i,
480p, and 576p
• Output Formatter Supports Both ITU-R BT.656
(Embedded Syncs) and ITU-R BT.601 (4:2:2
• I2C Host Port Interface
• VBI Data Processor
• "Blue" Screen (Programmable Color) Output
• Macrovision™ Copy Protection Detection
Circuit (Types 1, 2, and 3) on Both Interlaced
and Progressive Signals
1.2Applications
•Digital TV
•LCD TV/monitors
•DVD-R
•PVR
•PC video cards
•Video capture/video editing
•Video conferencing
1.3Description
The TVP5160 device is a high quality, digital video decoder that digitizes and decodes all popular
baseband analog video formats into digital component video. The TVP5160 decoder supports the A/D
conversion of component YPbPr and RGB (SCART) signals, as well as the A/D conversion and decoding
of NTSC, PAL, and SECAM composite and S-Video into component YCbCr. Additionally, component
progressive signals can be digitized. The chip includes two 11-bit, 60-MSPS, A/D converters (ADCs). Prior
to each ADC, each analog channel contains an analog circuit, which clamps the input to a reference
voltage and applies a programmable gain and offset. A total of 12 video input terminals can be configured
to a combination of YPbPr, RGB, CVBS, and S-Video video inputs.
Progressive component signals are sampled at 2× clock frequency (54 MHz) and are then decimated to
the 1× rate. In SCART mode the component inputs and the CVBS inputs are sampled at 54 MHz
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.
alternately, then decimated to the 1× rate. Composite or S-Video signals are sampled at 4× the ITU-R
BT.601 clock frequency (54 MHz), line-locked for correct pixel alignment, and are then decimated to the
1× rate. CVBS decoding utilizes advanced 3D Y/C filtering and 2-dimensional complementary 5-line
adaptive comb filtering for both the luma and chroma data paths to reduce both cross-luma and
cross-chroma artifacts. 3D Y/C color separation may be used on both PAL and NTSC video signals. A
chroma trap filter is also available. On CVBS and Y/C inputs, the user can control video characteristics
such as hue, contrast, brightness, and saturation via an I2C host port interface. Furthermore, luma peaking
with programmable gain is included, as well as a patented color transient improvement (CTI) circuit.
Attenuation at higher frequencies or asymmetrical color subcarrier sidebands are compensated using the
IF compensation block. Frame adaptive noise reduction may be applied to reduce temporal noise on
CVBS, S-Video, or component inputs.
3D noise reduction and 3D Y/C separation may be used at the same time or independently.
The TVP5160 decoder uses Texas Instruments' patented technology for locking to weak, noisy, or
unstable signals and can auto-detect between broadcast quality and VCR-style (nonstandard) video
sources.
The TVP5160 decoder generates synchronization, blanking, field, active video window, horizontal and
vertical syncs, clock, genlock (for downstream video encoder synchronization), host CPU interrupt and
programmable logic I/O signals, in addition to digital video outputs.
The TVP5160 decoder includes methods for advanced vertical blanking interval (VBI) data retrieval. The
VBI data processor (VDP) slices and performs error checking on teletext, closed caption, and other VBI
data. A built-in FIFO stores up to 11 lines of teletext data, and, with proper host port synchronization,
full-screen teletext retrieval is possible. The TVP5160 decoder can pass through the output formatter 2×
sampled raw Luma data for host-based VBI processing.
www.ti.com
Digital RGB overlay can be synchronously switched with any video input, with all signals being
oversampled at 4× the pixel rate.
The TVP5160 detailed functionality includes:
•Two high-speed, 60-MSPS, 11-bit, A/D channels with programmable clamp and gain control
The two ADCs can sample CVBS or S-Video at 54 MHz. YPbPr/RGB is multiplexed between the two
ADCs which sample at 54 MHz giving a channel sampling frequency of 27 MHz.
•Supports ITU-R BT.601 pixel sampling frequencies.
Supports ITU-R BT.601 sampling for both interlaced and progressive signals.
•RGB-to-YUV color space conversion for SCART signals
•3D Y/C separation or 2D 5-line (5H) adaptive comb and chroma trap filter
3-frame NTSC and PAL color separation
•Temporal frame recursive noise reduction (3DNR)
Frame recursive noise reduction can be applied to interlaced CVBS, S-Video, or component inputs for
interlaced signals. Noise reduction can be used at the same time as 3D Y/C separation. Noise
reduction cannot be applied to progressive video signals.
•Line-based time base correction (TBC)
Line based time correction corrects for horizontal phase errors encountered during video decoding up
to ±80 pixels of error. This improves the output video quality from jittery sources such as VCRs. It also
reduces line tearing during video trick modes such as fast forward and rewind.
•IF compensation
Attenuation at higher frequencies or asymmetrical color subcarrier sidebands are compensated using
the IF compensation block
•Fast switch 4× oversampling for digital RGB overlay signals for switching between any CVBS, S-Video,
or component video inputs
The fast switch overlay signals (FSO, DR, DG, DB) are oversampled at 4× the pixel clock frequency.
•SCART 4x oversampled fast switching between component RGB input and CBVS input
•Analog video output
•Supports NTSC (J, M, 4.43), PAL (B, D, G, H, I, M, N, Nc, 60), SECAM (B, D, G, K, K1, L), CVBS, and
•Twelve analog video input terminals for multi-source connection
•User-programmable video output formats
•HS/VS outputs with programmable position, polarity, and width and FID (Field ID) output
•Composite and S-Video processing
•Vertical blank interval data processor
•I2C host port interface
•"Blue" screen output
•Macrovision copy protection detection circuit (types 1, 2, and 3) on both interlaced and progressive
SLES135C–FEBRUARY 2005–REVISED MAY 2010
The phase of these signals is used to mix the selected video input format and a digital RGB input to
generate an output video stream. This improves the overlay picture quality when the external FSO and
digital RGB signals are generated by an asynchronous source.
The SCART overlay control signal (FSS) is oversampled at 4x the pixel clock frequency. The phase of
this signal is used to mix between the CVBS input and the analog RGB inputs. This improves the
analog overlay picture quality when the external FSS and analog video signals are generated by an
asynchronous source.
Buffered analog output with automatic PGA
S-Video
– 10-bit ITU-R BT.656 4:2:2 YCbCr with embedded syncs
– 20-bit 4:2:2 YCbCr with discrete syncs
– 10-bit 4:2:2 YCbCr with discrete syncs
– 2× sampled raw VBI data in active video during a vertical blanking period
– Sliced VBI data during a horizontal blanking period
– Adaptive 3D/2D Y/C separation using 5-line adaptive comb filter for composite video inputs;
chroma-trap available
– Automatic video standard detection and switching (NTSC/PAL/SECAM/progressive)
– Luma-peaking with programmable gain
– Output data rates either 1× or 2× pixel rate
– Patented architecture for locking to weak, noisy, or unstable signals
– Single 14.31818-MHz reference crystal for all standards (ITU-R.BT601 sampling, interlaced or
progressive)
– Line-locked internal pixel sampling clock generation with horizontal and vertical lock signal outputs
– Certified Macrovision copy protection detection on composite and S-Video inputs (NTSC, PAL)
– Genlock output (RTC) for downstream video encoder synchronization
– Teletext (NABTS, WST)
– Closed caption (CC) and extended data service (XDS)
– Wide screen signaling (WSS)
– Copy generation management system (CGMS)
– Video program system (VPS/PDC)
– Vertical interval time code (VITC)
– EPG video guide 1×/2× (Gemstar)
– V-Chip decoding
– Custom mode
– Register readback of CC, CGMS, WSS, VPS, VITC, V-Chip, EPG 1× and 2× sliced data, CGMS-A
Macrovision detection on standard definition signals of types 1, 2, and 3, and to Revision 1.2 for
progressive signals
•Reduced power consumption: 1.8-V digital core, 3.3-V and 1.8-V analog core with power-save and
power-down modes
•128-TQFP PowerPAD™ package
1.4Related Products
•TVP5146M2
•TVP5147M1
•TVP5150AM1
•TVP5151
•TVP5154A
•TVP5158
1.5Trademarks
•TI and PowerPAD 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
www.ti.com
1.6Document Conventions
Throughout this data manual, several conventions are used to convey information. These conventions are
listed below:
1. To identify a binary number or field, a lower case b follows the numbers. For example: 000b is a 3-bit
binary field.
2. To identify a hexadecimal number or field, a lower case h follows the numbers. For example: 8AFh is a
12-bit hexadecimal field.
3. 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.
4. 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.
5. RSVD indicates that the referenced item is reserved.
The TVP5160 video decoder is packaged in a 128-terminal PNP PowerPAD package. Figure 1-1 is the
PNP-package terminal diagram. Table 1-1 gives a description of the terminals.
VI_13IVI_x: analog video inputs
VI_24Up to 12 composite, 6 S-Video, or 3 component video inputs (or combinations thereof) can
VI_35be
VI_47supported. Also, 4-channel SCART is supported.
VI_58The inputs must be ac-coupled. The recommended coupling capacitor is 0.1 µF.
VI_69The possible input configurations are listed in the input select register 00h.
VI_717Unused inputs must be connected to ground through 0.1-µF capacitors.
VI_818
VI_919
VI_1021
VI_1122
VI_1223
Analog_out127OUnbuffered analog video output
Clock Signals
XIN121IExternal clock reference input. It may connected to external oscillator with 1.8-V compatible
XOUT122OExternal clock reference output. Not connected if XTAL1 is driven by an external
SCLK84OLine-locked data output clock
Digital Video
Y[9:0]87–91,ODigital video output of Y/YCbCr, Y_9 is MSB and Y_0 is LSB. For 8-bit operation, the upper
94–988 bits must be connected.
C[9:0] / GPIO101–104,I/ODigital video output of CbCr, C_9 is MSB and C_0 is LSB. These terminals can be
107–110,programmable general purpose I/O, or as digital overlay controls. For 8-bit operation, the
113, 114upper 8 bits must be connected.
FSO101IFast-switch overlay between digital RGB and any video input
DB102IDigital BLUE input from overlay device
DG103IDigital GREEN input from overlay device
DR104IDigital RED input from overlay device
Miscellaneous Signals
RESETB36IReset input, active low
PWDN35IPower down input
GLCO /83I/O
GPIO / I2CA0
GPIO / I2CA182I/O
INTREQ32OInterrupt request output (open drain when programmed to be active low)
FSS119ISCART fast switch input
NC6, 10, 20, 24N/ANo internal connection. Connect to AGND through 0.1-µF capacitors for future compatibility.
Host Interface
SDA31I/OI2C data bus
SCL30I/OI2C clock input
I/ODESCRIPTION
clock signal or 14.31818-MHz crystal oscillator.
single-ended oscillator.
Unused GPIO pins must be either configured as outputs, or tied to either IOVDD or DGND
1 = Power down
0 = Normal mode
Genlock control output (GLCO). Supports the real-time control (RTC) format. This pin can
also be configured as a general-purpose I/O (GPIO).
During power on reset this pin is sampled along with pin 82 (I2CA1) as an input to determine
the I2C address the device will be configured to. A 10-kΩ resistor pulls this either high (to
IOVDD) or low to select between addresses.
Programmable general purpose I/O
During power on reset this pin is sampled along with pin 83 (I2CA0) as an input to determine
the I2C address the device will be configured to. A 10-kΩ resistor pulls this either high (to
IOVDD) or low to select between addresses.
A33GND1, 26, 27,PAnalog 3.3-V return. Connect to analog ground.
28, 126, 128
A33VDD2, 25, 125PAnalog power. Connect to analog 3.3-V supply.
A18GND12, 14, 15PAnalog 1.8-V return. Connect to analog ground.
A18VDD11, 13, 16PAnalog power. Connect to analog 1.8-V supply.
PLL18GND124PAnalog power return. Connect to analog ground.
PLL18VDD123PAnalog power. Connect to analog 1.8-V supply.
DGND29, 34, 48,66,PDigital return. Connect to digital ground.
86, 100,112,
120
DVDD33, 47, 65,85,PDigital core power. Connect to 1.8-V supply.
99, 111
IOGND38, 58, 75,93,PDigital power return. Connect to digital ground.
106
IOVDD37, 57, 74,92,PDigital I/O power. Connect to digital 3.3-V supply.
105
Sync Signals
HS / CS /117I/OHorizontal sync output or digital composite sync output
GPIOProgrammable general purpose I/O
VS / VBLK /118I/OVertical sync output. (for modes with dedicated VS) or vertical blanking output
GPIOProgrammable general purpose I/O
FID / GPIO116I/O
AVID / GPIO115I/OActive video indicator
SDRAM Interface
Address[11:0]61, 77,OSDRAM address bus
62–64,
67–69, 81–78
D[15:0]49–56, 46–39I/OSDRAM data bus
WE70OSDRAM write enable
CAS71OSDRAM CAS enable
RAS72OSDRAM RAS enable
DQM59OSDRAM input/output mask for data
BA[1:0]76, 73OSDRAM bank address
SDRAM_CLK60OSDRAM 108-MHz clock
I/ODESCRIPTION
Unused GPIO pins must be either configured as outputs, or tied to either IOVDD or DGND
Unused GPIO pins must be either configured as outputs, or tied to either IOVDD or DGND
Odd/even field indicator
Programmable general purpose I/O This pin must be pulled low through a 10-kΩ resistor for
correct device operation.
Programmable general purpose I/O
Unused GPIO pins must be either configured as outputs, or tied to either IOVDD or DGND
Figure 2-1 shows a functional diagram of the analog processors and A/D converters (ADCs). This block
provides the analog interface to all video inputs. It accepts up to 12 inputs and performs source selection,
video clamping, video amplification, A/D conversion, and gain and offset adjustments to center the
digitized video signal. The TVP5160 decoder supports one analog video output.
The TVP5160 decoder has two analog channels that accept up to 12 video inputs. The user can configure
the internal analog video switches via I2C. The 12 analog video inputs can be used for different input
configurations, some of which are:
•12 CVBS video inputs
•4 S-Video inputs and 2 CVBS inputs
•3 YPbPr video inputs and 3 CVBS input
•2 YPbPr video inputs, 2 S-Video inputs, and 2 CVBS inputs
The input selection is performed by the input select register at I2C subaddress 00h.
2.1.2480p and 576p Component YPbPr
The TVP5160 decoder supports progressive component video inputs. The YPbPr inputs of the TVP5160
decoder may accept 480p or 576p progressive inputs. The Y channel is fed into one ADC while PbPr are
sampled alternatively by the other ADC.
2.1.3Analog Input Clamping
An internal clamping circuit restores the ac-coupled video signal to a fixed dc level. The clamping circuit
provides line-by-line restoration of the video sync level to a fixed dc reference voltage. The selection
between bottom and mid clamp is performed automatically by the TVP5160 decoder.
www.ti.com
2.1.4Automatic Gain Control
The TVP5160 decoder utilizes two programmable gain amplifiers (PGAs); one per channel. The PGA can
scale a signal with a voltage input compliance of 0.5 VPPto 2.0 VPPto a full-scale, 11-bit, A/D output code
range. A 4-bit code sets the coarse gain with individual adjustment per channel. Minimum gain
corresponds to a code 0x0 (2.0-VPPfull-scale input, –6 dB gain) while maximum gain corresponds to code
0xF (0.5-VPPfull scale, +6 dB gain). The TVP5160 decoder also has 12-bit fine gain controls for each
channel and applies independently to coarse gain controls. For composite video, the input video signal
amplitude may vary significantly from the nominal level of 1 VPP. The TVP5160 decoder can adjust its
PGA setting automatically: an automatic gain control (AGC) can be enabled and can adjust the signal
amplitude such that the maximum input range of the ADC is reached without clipping. Some nonstandard
video signals contain peak white levels that saturate the ADC. In these cases, the AGC automatically cuts
back gain to avoid clipping. If the AGC is on, then the TVP5160 decoder can read the gain currently being
used.
The TVP5160 AGC comprises the front-end AGC before Y/C separation and the back-end AGC after Y/C
separation. The back-end AGC restores the optimum system gain whenever an amplitude reference, such
as the composite peak (which is only relevant before Y/C separation), forces the front-end AGC to set the
gain too low. The front-end and back-end AGC algorithms can utilize up to four amplitude references: sync
height, color burst amplitude, composite peak, and luma peak.
The specific amplitude references being used by the front-end and back-end AGC algorithms can be
independently controlled using the AGC white peak processing register located at subaddress 74h. The
TVP5160 gain increment speed and gain increment delay can be controlled using the AGC increment
speed register located at subaddress 78h and the AGC increment delay register located at subaddress
79h, respectively.
2.1.5Analog Video Output
Any one of the analog input signals is available at the analog video output pin. The signal at this pin must
be buffered by a source follower if it drives a 75-Ω resister. The nominal output voltage is 2 VPP, and the
signal can drive a 75-Ω line when buffered. The magnitude is maintained with a PGA in 16 steps
controlled by the TVP5160 decoder.
All ADCs have a resolution of 11 bits and can operate up to 60 MSPS. All A/D channels receive an
identical clock from the on-chip, phase-locked loop (PLL) at a frequency between 24 MHz and 60 MHz. All
ADC reference voltages are generated internally.
2.2Digital Video Processing
This block receives digitized video signals from the ADCs and performs composite processing for CVBS
and S-Video inputs, YCbCr signal enhancements for CVBS and S-Video inputs. It also generates
horizontal and vertical syncs, and other output control signals such as RTC for CVBS and S-Video inputs.
Additionally, it can provide field identification, horizontal and vertical lock, vertical blanking, and active
video window indication signals. The digital data output can be programmed to two formats: 20-bit 4:2:2
with external syncs or 10-bit 4:2:2 with embedded/discrete syncs. The circuit detects pseudo sync pulses,
AGC pulses and color striping in Macrovision-encoded copy protected material. Information present in the
VBI interval can be retrieved and either inserted in the ITU-R.BT656 output as ancillary data or stored in
an internal FIFO for retrieval via the I2C interface.
2.2.12x Decimation Filter
All input signals are typically oversampled by a factor of 4 (54 MHz). The A/D outputs first pass through
decimation filters that reduce the data rate to 1× pixel rate. The decimation filter is a half-band filter.
Oversampling and decimation filtering can effectively increase the overall signal-to-noise ratio by 3 dB.
SLES135C–FEBRUARY 2005–REVISED MAY 2010
2.2.2Composite Processor
The TVP5160 digital composite video processing circuit receives a digitized composite or S-Video signal
from the ADCs and performs 2D or 3D Y/C separation (bypassed for S-Video input), chroma demodulation
for PAL/NTSC and SECAM, and YUV signal enhancements.
2.2.3Color Low-Pass Filter
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.
Y/C separation may be done using 3D or 2D adaptive 5-line (5-H delay) comb filters or chroma trap filter
for both NTSC and PAL video standards as shown in Table 2-1. 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 notch
filters are used. TI's 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.
Table 2-1. Y/C Separation Support by Video Standard
Video Standard2D Y/C3D Y/C
NTSC-MYesYes
NTSC-JYesYes
PAL-B, D, G, H, IYesYes
PAL-NYesYes
PAL-MYesNo
PAL-NcYesNo
NTSC-4.43, PAL-60YesNo
SECAMNoNo
2.2.53D Frame Recursive Noise Reduction
www.ti.com
The TI proprietary frame recursive noise reduction or 3DNR reduces the level of noise in CVBS, S-Video,
or component inputs by comparing multiple frames of data and canceling out the resulting noise. The
3DNR utilizes the same frame buffer memory used by the 3DYC. The 3DNR may function concurrently
with 3DYC.
There are various modes of operation for the 3DNR and 3DYC:
The time base corrector monitors and corrects for horizontal PLL phase offsets up to ±80 pixels. This
improves video decoder output quality by removing artifacts due to jittery horizontal syncs from broadcast
stations. It also reduces line tearing during VCR trick modes such as fast forward and rewind. 3DYC,
frame recursive noise reduction (3DNR), and time base correction (TBC) can be used simultaneously or
independently. Since TBC does not require any external memory, it can be used in all configurations.
2.2.7IF Compensation
Attenuation of higher frequencies from the tuners input characteristics or due to channels that are not
correctly tuned can be corrected in the IF compensation block. This block can correct for uneven
sidebands resulting in incorrect and uneven UV demodulation.
The luma component is derived from the composite signal by subtracting the remodulated chroma
information. The luminance signal is then fed to the input of a peaking circuit. Figure 2-2 illustrates the
basic functions of the luminance data path. In the case of S-Video, the luminance signal bypasses the
comb filter or chroma trap filter and is fed to the circuit directly. A peaking filter (edge-enhancer) amplifies
high frequency components of the luminance signal. Figure 2-3 shows the characteristics of the peaking
filter at four different gain settings that are user-programmable by the I2C.
Figure 2-2. Luminance Edge-Enhancer Peaking Block
SLES135C–FEBRUARY 2005–REVISED MAY 2010
Figure 2-3. Peaking Filter Frequency Response NTSC/PAL ITU_R BT.601 Sampling
2.2.9Color Transient Improvement
Color transient improvement (CTI) enhances horizontal color transients. The color difference signal
transition points are maintained, but the edges are enhanced for signals which have bandwidth limited
color components.
An internal line-locked PLL generates the system and pixel clocks. A 14.31818-MHz clock is required to
drive the PLL. This may be input to the TVP5160 decoder at 1.8-V level on terminal 121 (XIN), or a crystal
of 14.31818-MHz fundamental resonant frequency may be connected across terminals 121 (XIN) and 122
(XOUT). If a parallel resonant circuit is used as shown in Figure 2-4, then the external capacitors must
have following relationship:
CL1= CL2= 2CL– C
where C
STRAY
specified by the crystal manufacturer. Figure 2-4 shows the reference clock configurations. The TVP5160
decoder generates the SCLK signal used for clocking data.
See crystal datasheet for correct loading specifications.
STRAY
is the pin capacitance with respect to ground, and CL is the crystal load capacitance
www.ti.com
NOTE
2.4Real-Time Control (RTC)
Note:The resistor (R) in parallel with the crystal is recommended to support a wide range of crystal types. A 100-kΩ resistor
may be used for most crystal types.
Figure 2-4. Reference Clock Configuration
Although the TVP5160 decoder is a line-locked system, the color burst information is used to accurately
determine the color subcarrier frequency and phase. This ensures proper operation with nonstandard
video signals that do not follow exactly the required frequency multiple between color subcarrier frequency
and video line frequency. The frequency control word of the internal color subcarrier PLL and the
subcarrier reset bit are transmitted via the terminal 83 (GLCO) for optional use in an end system (for
example, by a video encoder). The frequency control word is a 23-bit binary number. The instantaneous
frequency of the color subcarrier can be calculated from the following equation:
The TVP5160 input-to-output processing delay depends on the operating mode and the video standard.
When 3DYC is enabled, the processing delay is approximately 1 frame and 2-1/3 lines. When 3DYC is
disabled, the processing delay is approximately 2-1/3 lines.
www.ti.com
2.6Fast Switches for SCART and Digital Overlay
The TVP5160 decoder supports the SCART interface used mainly in European audio/video end
equipment to carry mono/stereo audio, composite video, S-Video, and RGB video on the same cable. In
the event that composite video and RGB video are present simultaneously on the video pins assigned to a
SCART interface, the TVP5160 decoder assumes they are pixel synchronous to each other. The timing for
both composite video and RGB video is obtained from the composite source and its derived clock is used
to sample RGB video as well. The fast-switch input pin allows switching between these two input video
sources on a pixel-by-pixel basis. This feature can be used to, for example, overlay RGB graphics for
on-screen display onto decoded CVBS video. The SCART overlay control signals (FSS) are oversampled
at 4× the pixel clock frequency. The phase of this signal is used to mix between the CVBS input and the
analog RGB inputs. This improves the analog overlay picture quality when the external FSS and analog
video signals are generated by an asynchronous source. The TVP5160 decoder has two programmable
delays for component video in order to compensate for composite comb filter delays and two
programmable delays for digital RGB to compensate AFE and decimation filter delays.
If the overlay output is digital supporting 8 colors of data, the TVP5160 decoder can take digital overlay
inputs using terminals C6, C7, and C8. For this mode, output must be the 10-bit ITU-R BT.656 mode.
Figure 2-6 shows the block diagram of two fast-switches.Table 2-4 shows the fast-switch 1 and 2 controls.
Figure 2-6. Fast-Switches for SCART and Digital Overlay
Table 2-4. Fast-Switch Modes
MODESDESCRIPTION
000CVBS ↔ SCART
001CVBS, S_VIDEO ↔ Digital overlay
010Component ↔ Digital overlay
011(CVBS ↔ SCART) ↔ Digital overlay
100(CVBS ↔ Digital overlay) ↔ SCART
101CVBS ↔ (SCART ↔ Digital overlay
110Composite
111No switching
Fast switching of digital RGB input: closed caption decoder output is digital RGB with blanking signal. The
TVP5160 decoder supports this digital RGB input and can do overlay with composite, S-Video, or
component video.
See TI application note SLEA016, TVP5146 SCART and OSD, for more information on SCART overlay
and digital overlay programming.
VS, HS, and VBLK are independently software programmable to a 1× pixel count. This allows any
possible alignment to the internal pixel count and line count. The default settings for a 525-line and
625-line video output are given as an example below. FID changes at the same transient time when the
trailing edge of vertical sync occurs. The polarity of FID is programmable by an I2C interface.
Figure 2-11. VS Position with Respect to HS for Interlaced Signals
Figure 2-12. VS Position with Respect to HS for Progressive Signals
(1)
MODE
NTSC 601 interlaced6485832429
PAL 601 interlaced6486432432
NTSC 601 progressive85832
PAL 601 progressive86432
(1) 601 = ITU-R BT.601 timing
2.8Embedded Syncs
Standard with embedded syncs insert SAV and EAV codes into the data stream on the rising and falling
edges of AVID. These codes contain the V and F bits which also define vertical timing. Table 2-6 gives the
format of the SAV and EAV codes.
H equals 1b always indicates EAV. H equals 0b always indicates SAV. The alignment of V and F to the
line and field counter varies depending on the standard.
Communication with the TVP5160 decoder is via an I2C host interface. The I2C standard consists of two
signals, the serial input/output data (SDA) line and input/output clock line (SCL), which carry information
between the devices connected to the bus. A 2-bit control signal (I2CA0/ I2CA1) selects the slave address.
Although an I2C system can be multi-mastered, the TVP5160 decoder can function as a slave device only.
Since SDA and SCL are kept open-drain at logic high output level or when the bus is not driven, the user
must connect SDA and SCL to IOVDD via a pullup resistor on the board. The slave address select,
terminals 83 and 82 (I2CA0 and I2CA1), enables the use of four TVP5160 devices tied to the same I2C bus
since it controls the two least significant bits of the I2C device address.
SCLI/OInput clock line
SDAI/OInput/output data line
2.9.1Reset and I2C Bus Address Selection
The TVP5160 decoder can respond to four possible chip addresses. The address selection is made at
reset by an externally supplied level on the I2CA0/ I2CA1 pins. The TVP5160 decoder samples the level of
terminals 83 and 82 at power up or at the trailing edge of RESETB and configures the I2C bus address bit
A0/A1. The I2CA0 and I2CA1 terminals have internal pulldown resistors to pull the terminals low to set a
0b.
Data transfers occur utilizing the following formats.
Read from I2C control registers
S10111000ACKsubaddressACKS10111001ACKNAKP
receive
data
Write to I2C control registers
S10111000ACKsubaddressACKsend dataACKP
S = I2C bus start condition
P = I2C bus stop condition
ACK = Acknowledge generated by the slave
NAK = Acknowledge generated by the master, for multiple byte read master will ACK each
byte except the last byte
Subaddress = Subaddress byte
Data = Data byte
I2C bus address = In the example shown, I2CA0/I2CA1 are in default mode. Write (B8h), Read (B9h)
2.9.3VBUS Access
The TVP5160 decoder has additional internal registers accessible through an indirect access to an
internal 24-bit address wide VBUS. Figure 2-13 shows the VBUS registers access.
ACK = Acknowledge generated by the slave
MACK = Acknowledge generated by the master
NAK = No Acknowledge generated by the master
www.ti.com
2.10 VBI Data Processor
The TVP5160 VBI data processor (VDP) slices various data services like teletext (WST, NABTS), closed
caption (CC), wide screen signaling (WSS), program delivery control (PDC), vertical interval time code
(VITC), video program system (VPS), copy generation management system (CGMS) data, and electronic
program guide (EPG or Gemstar) 1x/2x. Table 2-9 shows the supported VBI system.
These services are acquired by programming the VDP to enable the reception of one or more VBI data
standard(s) in the vertical blanking interval. The VDP can be programmed on a line-per-line basis to
enable simultaneous reception of different VBI formats, one per line. The results are stored in a FIFO
and/or registers. Because of its high data bandwidth, the teletext results are stored in the FIFO only. The
TVP5160 decoder provides fully decoded V-Chip data to the dedicated registers at subaddresses
800540h through 800543h.
2.10.1 VBI FIFO and Ancillary Data in Video Stream
Sliced VBI data can be output as ancillary data in the video stream in ITU-R BT.656 mode. VBI data is
output on the Y[9:2] terminals during the horizontal blanking period following the line from which the data
was retrieved. Table 2-10 shows the header format and sequence of the ancillary data inserted into the
video stream. This format also stores any VBI data into the FIFO. The size of the FIFO is 512 bytes.
Therefore, the FIFO can store up to 9 lines of teletext data according to the WSTB standard.
Table 2-10. Ancillary Data Format and Sequence
BYTE NO. Y7(MSB)Y6Y5Y4Y3Y2Y1Y0 (LSB)DESCRIPTION
000000000Ancillary data preamble
111111111
211111111
3NEPEP010DID2DID1DID0Data ID (DID)
4NEPEPF5F4F3F2F1F0Secondary data ID (SDID)
5NEPEPN5N4N3N2N1N0Number of 32 bit data (NN)
6Video line # [7:0]Internal Data ID0 (IDID0)
7000Data error Match #1Match #2Video line # [9:8]Internal Data ID1 (IDID1)
8Sample 1Data byte1st word
IDID1:Bit 0/1 – Transaction video line number [9:8]
Bit 2 – Match 2 flag
Bit 3 – Match 1 flag
Bit 4 – 1b if at least one error was detected in the EDC block. 0b if no error was detected.
CS:Sum of Y7–Y0 of byte 8 through byte 4N+5. For teletext modes, byte 8 is the sync pattern
byte. Byte 9 is Sample 1.
Fill byte:Fill byte makes a multiple of 4 bytes from byte zero to last fill byte
2.10.2 VBI Raw Data Out
The TVP5160 decoder can output raw A/D video data at twice the sampling rate for external VBI slicing.
This is transmitted as an ancillary data block, although a bit differently from the way the sliced VBI data is
transmitted in the FIFO format as described in Section 3.10.1. The samples are transmitted during the
active portion of the line. VBI raw data uses ITU-R BT 656 format having only luma data. The chroma
samples are replaced by luma samples. The TVP5160 decoder inserts a 4-byte preamble 000h 3FFh
3FFh 180h before data start. There is no checksum byte or fill bytes in this mode.
DATA NO. Y9 (MSB)Y8Y7Y6Y5Y4Y3Y2Y1Y0 (LSB)DESCRIPTION
00000000000VBI raw data preamble
11111111111
21111111111
30110000000
4Sample 12× pixel rate
5Sample 2
..
..
n–1Sample n–5
NSample n–4
Luma data
(i.e., NTSC 601: n =
1707)
2.11 Powerup, Reset, and Initialization
No specific power-up sequence is required, but all power supplies must be active and stable within 500
ms of each other. Reset may be low during power-up, but must remain low for at least 1 µs after the
power supplies become stable and the crystal begins to oscillate. Alternately, reset may be asserted any
time after power up and a stable crystal oscillation, and must remain asserted for at least 1 µs. Table 2-11
describes the status of the TVP5160 terminals during and immediately after reset.
200 µs must be allowed after reset before commencing I2C operations if the SCL pin is not monitored
during I2C operations
After reset has completed, the following sequence of operations must be completed:
1. Write 01h to VBus register 0xB00060
2. Write 01h to VBus register 0xB00063
3. Write 00h to VBus register 0xB00060
SLES135C–FEBRUARY 2005–REVISED MAY 2010
Figure 2-14. Reset Timing
2.12 Adjusting External Syncs
The TVP5160 decoder stores values for the positions of the external syncs for 2 different modes:
•525-line with ITU-R BT.601 sampling
•625-line with ITU-R BT.601 sampling
Once the values are stored, they are retained and restored when the signal switches back into one of
these two modes.
The proper sequence to change the external sync positions is:
•To set NTSC, PAL-M, NTSC 443, PAL 60 (525-line modes):
– Make sure the standard is one of the above 525-line mode formats by forcing the video standard
– Set HS, VS, VBLK, and AVID external syncs (register 16h through 24h)
•To set PAL, PAL-N, SECAM (625-line modes):
– Make sure the standard is one of the above 625-line mode formats by forcing the video standard
– Set HS, VS, VBLK, and AVID external syncs (register 16h through 24h)
Once programmed, the values for each mode are retained when the signal switches back into that or other
compatible video standards.
The TVP5160 decoder is initialized and controlled by a set of internal registers that define the operating
parameters of the entire device. Communication between the external controller and the TVP5160
decoder is through a standard I2C host port interface, as described earlier.
Table 3-1 shows the summary of these registers. Detailed programming information for each register is
described in the following sections. Additional registers are accessible through an indirect procedure
involving access to an internal 24-bit address wide VBUS. Table 3-2 shows the summary of VBUS
registers.
Table 3-1. I2C Registers Summary
REGISTER NAMEI2C SUBADDRESSDEFAULTR/W
Input/Output Select00h00hR/W
AFE Gain Control01h0FhR/W
Video Standard Select02h00hR/W
Operation Mode03h00hR/W
Autoswitch Mask04h23hR/W
Color Killer05h10hR/W
Luminance Processing Control 106h00hR/W
Luminance Processing Control 207h00hR/W
Luminance Processing Control 308h00hR/W
Luminance Brightness09h80hR/W
Luminance Contrast0Ah80hR/W
Chrominance Saturation0Bh80hR/W
Chroma Hue0Ch00hR/W
Chrominance Processing Control 10Dh00hR/W
Chrominance Processing Control 20Eh0ChR/W
Reserved
Pr Contrast10h80hR/W
Y Contrast11h80hR/W
Pb Contrast12h80hR/W
Reserved
G/Y Brightness14h80hR/W
Reserved
AVID Start Pixel16h–17h55h/5FhR/W
AVID Stop Pixel18h–19h325h/32FhR/W
HS Start Pixel1Ah–1Bh00h/07hR/W
HS Stop Pixel1Ch–1Dh40h/47hR/W
VS Start Line1Eh–1Fh004h/001hR/W
VS Stop Line20h–21h007h/004hR/W
VBLK Start Line22h–23h001h/26FhR/W
VBLK Stop Line24h–25h015h/018hR/W
Embedded Sync Offset Control 126h00hR/W
Embedded Sync Offset Control 227h00hR/W
Fast Switch Control28hC0hR/W
Fast Switch Overlay Delay29h17hR/W
Fast Switch SCART Delay2Ah1ChR/W
Overlay Delay2Bh12hR/W
(2)
(2)
(2)
0Fh
13h
15h
(1)
(1) R = Read only, W = Write only, R/W = Read and write
(2) Reserved I2C register addresses must not be written to.
SCART Delay2Ch56hR/W
Reserved
CTI Control2Eh00hR/W
Brightness and Contrast Range Extender2Fh00hR/W
Component Autoswitch Mask30h00hR/W
Reserved
Sync Control32h00hR/W
Output Formatter 133h40hR/W
Output Formatter 234h00hR/W
Output Formatter 335hFFhR/W
Output Formatter 436hFFhR/W
Output Formatter 537hFFhR/W
Output Formatter 638hFFhR/W
Clear Lost Lock Detect39h00hR/W
Status 13AhR
Status 23BhR
AGC Gain Status3Ch–3DhR
Reserved
Video Standard Status3FhR
GPIO Input 140hR
GPIO Input 241hR
Reserved
Back End AGC Status44hR
Reserved
AFE Coarse Gain for CH146h20hR/W
AFE Coarse Gain for CH247h20hR/W
AFE Coarse Gain for CH348h20hR/W
AFE Coarse Gain for CH449h20hR/W
AFE Fine Gain for Pb4Ah–4Bh900hR/W
AFE Fine Gain for Chroma4Ch–4Dh900hR/W
AFE Fine Gain for Pr4Eh–4Fh900hR/W
AFE Fine Gain for CVBS_Luma50h–51h900hR/W
Reserved
656 Version57h00hR/W
Reserved
SDRAM Control59h00hR/W
Y Noise Sensitivity5Ah80hR/W
UV Noise Sensitivity5Bh80hR/W
Y coring threshold5Ch80hR/W
UV coring threshold5Dh40hR/W
Low Noise Limit5Eh40hR/W
"Blue" Screen Y5Fh00hR/W
"Blue" Screen Cb60h80hR/W
"Blue" Screen Cr61h80hR/W
"Blue" Screen LSB62h00hR/W
3DNR Noise Measurement LSB64hR
3DNR Noise Measurement MSB65hR
Y Core0 (3DNR)66hR
UV Core0 (3DNR)67hR
Reserved
F and V Bit Decode Control69h00hR/W
Reserved
Back End AGC Control6Ch08hR/W
Reserved
AGC Decrement Speed6Fh04hR/W
ROM Version70hR
Reserved
AGC White Peak Processing74h00hR/W
F and V Bit Control75h16hR/W
Reserved
AGC Increment Speed78h06hR/W
AGC Increment Delay79h1EhR/W
Analog Output Control 17Fh00hR/W
CHIP ID MSB80h51hR
CHIP ID LSB81h60hR
Reserved
Color PLL Speed Control83h09hR/W
3DYC Luma Coring LSB84h20h/20hR/W
3DYC Chroma Coring LSB85h20h/2AhR/W
3DYC Chroma/Luma MSBs86h00h/00hR/W
3DYC Luma Gain87h08h/08hR/W
3DYC Chroma Gain88h08h/08hR/W
3DYC Signal Quality Gain89h02h/02hR/W
3DYC Signal Quality Coring8Ah–8Bh328h/380hR/W
IF Compensation Control8Dh00hR/W
IF Differential Gain Control8Eh22hR/W
IF Low Frequency Gain Control8Fh44hR/W
IF High Frequency Gain Control90h00hR/W
Reserved
Weak Signal High Threshold95h60hR/W
Weak Signal Low Threshold96h50hR/W
Status Request97h00hR/W
3DYC NTSC VCR Threshold98h10hR/W
3DYC PAL VCR Threshold99h20hR/W
Vertical Line Count9Ah–9Bh00hR
Reserved
AGC Decrement Delay9EhR/W
Reserved
VDP TTX Filter 1 Mask 1B1h00hR/W
VDP TTX Filter 1 Mask 2B2h00hR/W
VDP TTX Filter 1 Mask 3B3h00hR/W
VDP TTX Filter 1 Mask 4B4h00hR/W
VDP TTX Filter 1 Mask 5B5h00hR/W
VDP TTX Filter 2 Mask 1B6h00hR/W
B0 0062h – B0 0064h
Interrupt Mask 1B0 0065hR
Interrupt Raw Status 1B0 0069hR
Interrupt Status 1B0 006DhR
Interrupt Clear 1B0 0071hR
Reserved
(2)(3)
B0 0073h – FF FFFFh
(1) R = Read only, W = Write only, R/W = Read and write
(2) Register addresses not shown in the register map summary are reserved and must not be written to.
(3) Writing to or reading from any value labeled "Reserved" register may cause erroneous operation of the TVP5160 decoder. For registers
with reserved bits, a 0b must be written to reserved bit locations unless otherwise stated.
Twelve input terminals can be configured to support composite, S-Video, and component YPbPr. Only values in Table 3-4 are valid.
NOTE: The video output can be either CVBS, Y, or G.
Table 3-4. Analog Channel and Video Mode Selection
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.
Table 3-7. Operation Mode
Subaddress01h
Default00h
76543210
ReservedPower save
Power save
0Normal operation (default)
=
1Power save mode. Reduces the clock speed of the internal processor and switches off the ADCs. I2C interface is active and all
=current operating settings are preserved.
ReservedPedestalReservedVBI rawReservedLuminance signal delay [2:0]
Pedestal:
0 = 7.5 IRE pedestal is present on the analog video input signal (default)
1 = Pedestal is not present on the analog video input signal
VBI raw:
0 = Disable (default)
1 = Enable
During the duration of the vertical blanking as defined by VBLK start and stop registers 22h through 25h, the chroma samples are replaced
by luma samples. This feature may be used to support VBI processing performed by an external device during the vertical blanking interval.
In order to use this bit, the output format must be the 10-bit, ITU-R BT.656 mode.
Luminance signal delay [2:0]: Luminance signal delays respect to chroma signal in 1× pixel clock increments.
Trap filter select[1:0] 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 stopband bandwidth
controlled by the two control bits. Changing this register will trade luma resolution for dot crawl.
Trap filter stop band bandwidth (MHz):
Filter select [1:0]NTSC ITU-R 601PAL ITU-R 601
00 (default)1.21291.2129
010.87010.8701
100.71830.7383
110.50100.5010
Table 3-13. Luminance Brightness
Subaddress09h
Default80h
76543210
Brightness [7:0]
Brightness [7:0]: This register works for CVBS and S-Video luminance. See subaddress 2Fh.
0000 0000 = 0 (dark)
1000 0000 = 128 (default)
1111 1111 = 255 (bright)
For composite and S-Video outputs, the output black level relative to the nominal black level (64 out of 1024) as a function of the
Where MBis the brightness multiplier setting in the Brightness and Contrast Range Extender register at I2C subaddress 2Fh.
Table 3-14. Luminance Contrast
Subaddress0Ah
Default80h
76543210
Contrast [7:0]
Contrast [7:0]: This register works for CVBS and S-Video luminance. See subaddress 2Fh.
0000 0000 = 0 (minimum contrast)
1000 0000 = 128 (default)
1111 1111 = 255 (maximum contrast)
For composite and S-Video outputs, the total luminance gain relative to the nominal luminance gain as a function of the Contrast [7:0]
Saturation [7:0]: This register works for CVBS and S-Video chrominance.
0000 0000 = 0 (no color)
1000 0000 = 128 (default)
1111 1111 = 255 (maximum)
For composite and S-Video outputs, 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 3-16. Chroma Hue
Subaddress0Ch
Default00h
76543210
Hue [7:0]
Hue [7:0] (does not apply to a component or SECAM video):
Note: The SDRAM configuration register must be programmed before enabling features that require the SDRAM. Failure to do so will
result in incorrect operation of the memory controller
3DYC:
0 = Disable; the 2D adaptive 5-line comb filter is enabled (default)
1 = Enable
3DYC enhances 2D Y/C separation by utilizing temporal-based, or frame-based information. 3DYC requires the use of the frame buffer
memory and can be used simultaneously with 3DNR and TBC.
TBC:
00 = Disable (default)
01 = On
10 = Automatic selection
11 = Automatic selection
Line-based time correction corrects for horizontal phase errors encountered during video decoding up to ±80 pixels of error. TBC can
be used simultaneously with 3DYC and 3DNR. TBC does not require external memory.
Chrominance adaptive comb enable:
0 = Enable (default)
1 = Disable
This bit is effective on composite video only.
3DNR:
0 = Disable (default)
1 = Enable
Frame recursive noise reduction minimizes the amount of noise in interlaced CVBS, S-Video, or component inputs. 3DNR requires the
use of the frame buffer memory and can be used simultaneously with 3DYC and TBC.
Note: Noise reduction can not be used on progressive inputs.
Automatic color gain control (ACGC) [1:0]:
00 = ACGC enabled (default)
01 = Reserved
10 = ACGC disabled, ACGC set to the nominal value
11 = ACGC frozen to the previously set value
R/Pr saturation [7:0]: This register works only with YPbPr component video. For RGB video, use the AFE gain registers.
0000 0000 = minimum
1000 0000 = default
1111 1111 = maximum
For component video, the total R/Pr gain relative to the nominal R/Pr gain as a function of the R/Pr saturation[7:0] setting is as follows.
R/Pr Gain = (nominal_chrominance_gain) × (R/Pr saturation[7:0] / 128)
www.ti.com
Table 3-20. G/Y Saturation
Subaddress11h
Default80h
76543210
G/Y contrast [7:0]
G/Y contrast [7:0]: This register works only with YPbPr component video. For RGB video, use the AFE gain registers.
0000 0000 = minimum
1000 0000 = default
1111 1111 = maximum
For component video outputs, the total luminance gain relative to the nominal luminance gain as a function of the G/Y contrast[7:0] is
as follows.
G/Y Gain = (nominal_luminance_gain) × (G/Y contrast[7:0] / 128)
B/Pb saturation [7:0]: This register works only with YPbPr component video. For RGB video, use the AFE gain registers.
0000 0000 = minimum
1000 0000 = default
1111 1111 = maximum
For component video, the total Pb gain relative to the nominal Pb gain as a function of the B/Pb saturation[7:0] setting is as follows.
B/Pb Gain = (nominal_chrominance_gain) × (B/Pb saturation[7:0] / 128)
Table 3-22. G/Y Brightness
Subaddress14h
Default80h
76543210
G/Y brightness[7:0]
G/Y brightness [7:0]: This register works only with YPbPr component video. For RGB video, use the AFE gain registers.
0000 0000 = minimum
1000 0000 = default
1111 1111 = maximum
For component video, the output black level relative to the nominal black level (64 out of 1024) as a function of G/Y brightness[7:0] is
as follows.
Black Level = nominal_black_level + (G/Y brightness[7:0] - 128)
0 = AVID out active in VBLK (default)
1 = AVID out inactive in VBLK
AVID start [9:0]: AVID start pixel number, this is a absolute pixel location from HS start pixel 0.
The TVP5160 decoder updates the AVID start only when the AVID start MSB byte is written to. The AVID start pixel register also
controls the position of the SAV code. If these registers are modified, then the TVP5160 decoder retains the values for each video
standard until the device is reset. The values for a particular video standard must be set by forcing the decoder to the desired video
standard first using register 02h then setting this register. This must be repeated for each video standard where the default values need
to be changed.
AVID stop [9:0]: AVID stop pixel number. The number of pixels of active video must be an
even number. This is a absolute pixel location from HS start pixel 0.
The TVP5160 decoder updates the AVID stop only when the AVID stop MSB byte is written
to. The AVID stop pixel register also controls the position of the EAV code. If these registers
are modified, then the TVP5160 decoder retains the values for each video standard until the
device is reset. The values for a particular video standard must be set by forcing the decoder
to the desired video standard first using register 02h then setting this register. This must be
repeated for each video standard where the default values need to be changed.
Table 3-25. HS Start Pixel
Subaddress1Ah–1Bh
Default000h
Subaddress76543210
1AhHS start [7:0]
1BhReservedHS start [9:8]
HS start pixel [9:0]: This is an absolute pixel location from HS start pixel 0.
The TVP5160 decoder updates the HS start only when the HS start MSB byte is written to. If these registers are modified, then the
TVP5160 decoder retains the values for each video standard until the device is reset. The values for a particular video standard must be
set by forcing the decoder to the desired video standard first using register 02h then setting this register. This must be repeated for each
video standard where the default values need to be changed.
Table 3-26. HS Stop Pixel
Subaddress1Ch–1Dh
Default040h
Subaddress76543210
1ChHS stop [7:0]
1DhReservedHS stop [9:8]
HS stop [9:0]: This is a absolute pixel location from HS start pixel 0.
The TVP5160 decoder updates the HS stop only when the HS stop MSB byte is written to. If these registers are modified, then the
TVP5160 decoder retains the values for each video standard until the device is reset. The values for a particular video standard must be
set by forcing the decoder to the desired video standard first using register 02h then setting this register. This must be repeated for each
video standard where the default values need to be changed.
Table 3-27. VS Start Line
Subaddress1Eh–1Fh
Default004h/001h
Subaddress76543210
1EhVS start [7:0]
1FhReservedVS start [9:8]
VS start [9:0]: This is a absolute line number.
The TVP5160 decoder updates the VS start only when the VS start MSB byte is written to. If these registers are modified, then the
TVP5160 decoder retains the values for each video standard until the device is reset. The values for a particular video standard must be
set by forcing the decoder to the desired video standard first using register 02h then setting this register. This must be repeated for each
video standard where the default values need to be changed.
VS stop [9:0]: This is an absolute line number.
The TVP5160 decoder updates the VS stop only when the VS stop MSB byte is written to. If these registers are modified, then the
TVP5160 decoder retains the values for each video standard until the device is reset. The values for a particular video standard must be
set by forcing the decoder to the desired video standard first using register 02h then setting this register. This must be repeated for each
video standard where the default values need to be changed.
Table 3-29. VBLK Start Line
Subaddress22h–23h
Default001h/26Fh
Subaddress76543210
22hVBLK start [7:0]
23hReservedVBLK start [9:8]
VBLK start [9:0]: This is an absolute line number.
The TVP5160 decoder updates the VBLK start line only when the VBLK start MSB byte is written to. If these registers are modified, then
the TVP5160 decoder retains the values for each video standard until the device is reset. The values for a particular video standard must
be set by forcing the decoder to the desired video standard first using register 02h then setting this register. This must be repeated for each
video standard where the default values need to be changed.
Table 3-30. VBLK Stop Line
Subaddress24h–25h
Default001h/26Fh
Subaddress76543210
24hVBLK stop [7:0]
25hReservedVBLK stop [9:8]
VBLK stop [9:0]: This is an absolute line number.
The TVP5160 decoder updates the VBLK stop only when the VBLK stop MSB byte is written to. If these registers are modified, then the
TVP5160 decoder retains the values for each video standard until the device is reset. The values for a particular video standard must be
set by forcing the decoder to the desired video standard first using register 02h then setting this register. This must be repeated for each
video standard where the default values need to be changed.
Table 3-31. Embedded Sync Offset Control 1
Subaddress26h
Default00h
76543210
Offset [7:0]
This register allows the line position of the embedded F bit 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.
0111 1111 = 127 lines
...
0000 0001 = 1 line
0000 0000 = 0 line
1111 1111 = –1 line
...
1000 0000 = –128 lines
This register allows the line relationship between the embedded F bit 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.
0111 1111 = 127 lines
...
0000 0001 = 1 line
0000 0000 = 0 line
1111 1111 = –1 line
...
1000 0000 = –128 lines
Table 3-33. Fast-Switch Control
Subaddress28h
DefaultC0h
76543210
Mode [2:0]ReservedPolarity FSOPolarity FSS
Mode [2:0]:
000 = CVBS ↔ SCART
001 = CVBS, S_VIDEO ↔ Digital overlay
010 = Component ↔ Digital overlay
011 = (CVBS ↔ SCART) ↔ Digital overlay
100 = (CVBS ↔ Digital overlay) ↔ SCART
101 = CVBS ↔ (SCART ↔ Digital overlay)
110 = Composite (default)
111 = Component
Polarity FSO:
0 = If FSO = 0, then output = YPbPr
If FSO = 1, then output = Digital RGB (default)
1 = If FSO = 0, then output = Digital RGB
If FSO = 1, then output = YPbPr
Polarity FSS:
0 = If FSO = 0, then output = RGB
If FSO = 1, then output = CVBS (4A) (default)
1 = If FSO = 0, then output = CVBS (4A)
If FSO = 1, then output = RGB
See TI application note SLEA016, TVP5146 SCART and OSD, for more information on SCART overlay and digital overlay programming.
CTI coring [3:0]: 4-bit CTI coring limit control values, unsigned, linear control range from 0 to ±60, step size = 4
1111 = ±60
...
0001 = ±4
0000 = 0 (default)
CTI gain [3:0]: 4-bit CTI gain control values, unsigned, linear control range from 0 to 15/16, step size = 1/16
1111 = 15/16
...
0001 = 1/16
0000 = 0 (default)
Table 3-39. Brightness and Contrast Range Extender
Subaddress2Fh
Default00h
76543210
ReservedContrastBrightness multiplier [3:0]
Contrast multiplier [4]: (MC) Increases the contrast control range for composite and S-Video modes.
0 = 2x contrast control range (default), Gain = n/64 – 1 where n is the contrast control and 64 ≤ n ≤ 255
1 = Normal 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 for composite and S-Video modes from 1x to 16x.
0h = 1x(default)
1h = 2x
3h = 4x
7h = 8x
Fh = 16x
Note: In general, the brightness multiplier should be set to 0h for 10-bit outputs and 3h for 8-bit outputs
ReservedYCbCr code rangeCbCr codeReservedOutput format [2:0]
YCbCr output code range:
0 = ITU-R BT.601 coding range (Y ranges from 64 to 940, Cb and Cr range from 64 to 960)
1 = Extended coding range (Y, Cb, and Cr range from 4 to 1016) (default)
0 = Y[9:0] and C[9:0] high-impedance (default)
1 = Y [9:0] and C[9:0] active
"Blue" Screen Output [1:0]:
00 = Normal operation (default)
01 = "Blue" screen out when the TVP5160 decoder detects lost lock (with tuner input but not with VCR)
10 = Force "Blue" screen out
11 = Reserved
Fully programmable color of "blue screen" to support clean input/channel switching. When enabled, in case of lost lock, or when forced, the
decoder waits until the end of the current frame, then switches the output data to a programmable color. Once displaying the "blue screen",
the inputs and or RF channel 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, and the decoder then waits until the end of the current video frame before re-enabling the
video stream data to the output ports.
Clock polarity:
0 = Data clocked out on the falling edge of SCLK (default)
1 = Data clocked out on the rising edge of SCLK
SCLK enable:
0 = SCLK outputs are high-impedance (default)
1 = SCLK outputs are enabled
00 = GPIO is 0b output
01 = GPIO is 1b output
10 = Reserved
11 = GPIO in logic input (default)
AVID [1:0]: AVID pin function select
00 = AVID is 0b output
01 = AVID is 1b output
10 = AVID is active video indicator output
11 = AVID is logic input (default). In this mode the pin is used as GPIO.
GLCO [1:0]: GLCO pin function select
00 = GLCO is 0b output
01 = GLCO is 1b output
10 = GLCO is genlock output
11 = GLCO is logic input (default). In this mode the pin is used as GPIO.
FID [1:0]: FID pin function select
00 = FID is 0b output
01 = FID is 1b output
10 = FID is FID output
11 = FID is logic input (default). In this mode the pin is used as GPIO.
Table 3-45. Output Formatter Control 4
Subaddress36h
DefaultFFh
76543210
VS/VBLK [1:0]HS/CS [1:0]C_1 [1:0]C_0 [1:0]
VS/VBLK [1:0]: VS pin function select
00 = VS is 0b output
01 = VS is 1b output
10 = VS/VBLK is vertical sync or vertical blank output corresponding to bit 1 (VS/VBLK) in the sync control register at subaddress 32h
(see Section 4.1.37)
11 = VS is logic input (default). In this mode the pin is used as GPIO.
HS/CS [1:0]: HS pin function select
00 = HS is 0b output
01 = HS is 1b output
10 = HS/CS is horizontal sync or composite sync output corresponding to bit 0 (HS/CS) in the sync control register at subaddress 32h
(see Section 4.1.37)
11 = HS is logic input (default). In this mode the pin is used as GPIO.
C_1 [1:0]: C_1 pin function select
00 = C_1 is 0b output
01 = C_1 is 1b output
10 = Reserved
11 = C_1 is logic input (default)
C_0 [1:0]: C_0 pin function select
00 = C_0 is 0b output
01 = C_0 is 1b output
10 = Reserved
11 = C_0 is logic input (default)
00 = C_9 is 0b output
01 = C_9 is 1b output
10 = Reserved
11 = C_9 is logic input (default). In this mode the pin is used as GPIO.
Note: If overlay is enabled, then C[9] functions as FSO regardless of the setting of register 38h.
C_8 [1:0]: C_8 pin function select
00 = C_8 is 0b output
01 = C_8 is 1b output
10 = Reserved
11 = C_8 is logic input (default). In this mode the pin is used as GPIO.
C_7 [1:0]: C_7 pin function select
00 = C_7 is 0b output
01 = C_7 is 1b output
10 = Reserved
11 = C_7 is logic input (default). In this mode the pin is used as GPIO.
C_6 [1:0]: C_6 pin function select
00 = C_6 is 0b output
01 = C_6 is 1b output
10 = Reserved
11 = C_6 is logic input (default). In this mode the pin is used as GPIO.
Table 3-48. Clear Lost Lock Detect
Subaddress39h
Default00h
76543210
ReservedClear lost lock detect
Clear lost lock detect: Clear bit 4 (lost lock detect) in the status 1 register at subaddress 3Ah
3ChFine Gain [7:0]
3DhCoarse Gain [3:0]Fine Gain[11:8]
Fine gain [11:0]: This register provides the fine gain value of sync channel.
1111 1111 1111 = 1.9995
1000 0000 0000 = 1
0100 0000 0000 = 0.5
Coarse gain [3:0]: This register provides the coarse gain value of sync channel.
1111 = 2
0101 = 1
0000 = 0.5
These AGC gain status registers are updated automatically by the TVP5160 decoder with AGC on, in manual gain control mode these
register values are not updated by the TVP5160 decoder.
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 97h (status
request) must be set to 1b. Once the internal processor has updated this register, bit 0 of register 97h is 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 occurs until bit 0
of 97h is set to 1b again.
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.
Table 3-53. GPIO Input 1
Subaddress40h
Read only
76543210
C_7C_6C_5C_4C_3C_2C_1C_0
C_x input status:
0 = Input is a low
1 = Input is a high
These status bits are only valid when pins are used as input and are updated at every line.
These status bits are only valid when pins are used as input and its states updated at every line.
Table 3-55. Back End AGC Status 1
Subaddress44h
Read only
76543210
Gain [7:0]
Current back end AGC ratio = Gain/128
Table 3-56. AFE Coarse Gain for CH 1
Subaddress46h
Default20h
76543210
CGAIN 1 [3:0]Reserved
CGAIN 1 [3:0]: Coarse Gain = 0.5 + (CGAIN 1)/10 where 0 ≤ CGAIN 1 ≤ 15
This register only works in manual gain control mode. When AGC is active, writing to any value is ignored.
CGAIN 2 [3:0]: Coarse Gain = 0.5 + (CGAIN 2)/10 where 0 ≤ CGAIN 2 ≤ 15.
This register only works in manual gain control mode. When AGC is active, writing to any value is ignored.
CGAIN 3 [3:0]: Coarse Gain = 0.5 + (CGAIN 3)/10 where 0 ≤ CGAIN 3 ≤ 15.
This register only works in manual gain control mode. When AGC is active, writing to any value is ignored.
CGAIN 4 [3:0]: Coarse Gain = 0.5 + (CGAIN 4)/10 where 0 ≤ CGAIN 4 ≤ 15.
This register only works in manual gain control mode. When AGC is active, writing to any value is ignored.
FGAIN 1 [11:0]: This fine gain applies to component B/Pb.
Fine Gain = (1/2048) * FGAIN where 0 ≤ FGAIN 1 ≤ 4095
This register is only updated when the MSB (register 4Bh) is written to.
This register only works in manual gain control mode. When AGC is active, writing to any value is ignored.
FGAIN 2 [11:0]: This gain applies to component G/Y channel or S-Video chroma.
This register is only updated when the MSB (register 4Dh) is written to.
This register only works in manual gain control mode. When AGC is active, writing to any value is ignored.
FGAIN 3 [11:0]: This fine gain applies to component R/Pr.
This register is only updated when the MSB (register 4Fh) is written to.
This register only works in manual gain control mode. When AGC is active, writing to any value is ignored.
FGAIN 4 [11:0]: This fine gain applies to CVBS or S-Video luma (see AFE fine gain for Pb register)
This register is only updated when the MSB (register 51h) is written to.
This register only works in manual gain control mode. When AGC is active, writing to any value is ignored.
Memories with more rows, columns, and/or banks can be used as long as the minimum requirements are met. Additional rows, columns,
and/or banks are ignored and unused by the memory controller.
The memory controller must be configured before enabling 3DYC or 3DNR; otherwise, incorrect operation of the memory controller will
result.
Enable:
0 = SDRAM controller disabled (default)
1 = SDRAM controller enabled
SDRAM_CLK delay control[3:0]
This register changes the delay from the default position of SDRAM_CLK in increments of approximately 0.58 ns.
This register sets a threshold for low noise present.
Table 3-71. "Blue" Screen Y Control
Subaddress5Fh
Default00h
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 MSB, 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 3-72. "Blue" Screen Cb Control
Subaddress60h
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 MSB, 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.
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 MSB, 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 3-74. "Blue" Screen LSB Control
Subaddress62h
Default00h
76543210
ReservedY value LSB [1:0]Cb value LSB [1:0]Cr value LSB [1:0]
The two LSB for the "Blue" screen Y, Cb, and Cr values are represented in this register.
Table 3-75. Noise Measurement
Subaddress64h–65h
Read only
Subaddress76543210
64h3DNR Noise Measurement [7:0]
65h3DNR Noise Measurement [15:8]
3DNR Noise Measurement
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 97h (status
request) must be set to 1b. Once the internal processor has updated this register bit 0 of register 97h is 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 97h is set to 1b again.
VPLLAdaptiveReservedF-Mode[1:0]
This register only works in manual gain control mode. When AGC is active, writing to any value is ignored.
F-bit control mode
00 = Auto: If lines per frame is standard decode F and V bits as per 656 standard from line count else decode F bit from vsync input
and set V bit = 0b
01 = Decode F and V bits from input syncs
10 = Reserved
11 = Always decode F and V bits from line count (TVP5146 compatible)
This register is used in conjunction with register 75h as indicated below:
1111ReservedReservedReservedReservedReserved
656 = ITU-R BT.656 standard
Pulse = Pulses low for 1 line prior to field transition
Switch = V bit switches high before the F-bit transition and low after the F bit transition
Switch9 = V bit switches high 1 line prior to the F-bit transition, then low after 9 lines
Reserved = Not used
MODE
Even = 1
Odd = toggle
Adaptive
0 = Enable F- and V-bit adaptation to detected lines per frame
1 = Disable F- and V-bit adaptation to detected lines per frame
VPLL time constant control:
0 = VPLL adapts time constants to input signal
1 = VPLL time constants fixed
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 0x09 to this register disables the back-end AGC whenever the
front-end AGC uses the sync height to decrement the front-end gain.
Sync: Disables back end AGC when the front end AGC uses the sync height as an amplitude reference.
0 = Enabled (default)
1 = Disabled
Color: Disables back end AGC when the front end AGC uses the color burst as an amplitude reference.
0 = Enabled (default)
1 = Disabled
Peak: Disables back end AGC when the front end AGC uses the composite peak as an amplitude reference.
0 = Enabled (default)
1 = Disabled
Table 3-80. AGC Decrement Speed
Subaddress6Fh
Default04h
76543210
ReservedAGC decrement speed [2:0]
AGC decrement speed: Adjusts gain decrement speed. Only used for composite/luma peaks.
Luma peak A: Use of the luma peak as a video amplitude reference for the back-end feed-forward type AGC algorithm
0 = Enabled (default)
1 = Disabled
Color burst A: Use of the color burst amplitude as a video amplitude reference for the back-end
NOTE: Not available for SECAM, component and B/W video sources.
0 = Enabled (default)
1 = Disabled
Sync height A: Use of the sync height as a video amplitude reference for the back-end feed-forward type AGC algorithm
0 = Enabled (default)
1 = Disabled
Luma peak B: Use of the luma peak as a video amplitude reference for front-end feedback type AGC algorithm
0 = Enabled (default)
1 = Disabled
Composite peak: Use of the composite peak as a video amplitude reference for front-end feedback type AGC algorithm
NOTE: Required for CVBS video sources
0 = Enabled (default)
1 = Disabled
Color burst B: Use of the color burst amplitude as a video amplitude reference for front-end feedback type AGC algorithm
NOTE: Not available for SECAM, component and B/W video sources
0 = Enabled (default)
1 = Disabled
Sync height B: Use of the sync-height as a video amplitude reference for front-end feedback type AGC algorithm
0 = Enabled (default)
1 = Disabled
NOTE: If all 4 bits of the lower nibble are set to 1111b (that is, no amplitude reference selected), then the front-end analog and digital
gains are automatically set to nominal values.
If all 4 bits of the upper nibble are set to 1111b (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%.
peak
Table 3-83. F-Bit and V-Bit Control
Subaddress75h
Default16h
76543210
Reserved1F and V [1:0]1Reserved
F and V [1:0]
F AND V
(1) F and V control bits are only enabled for F-bit control modes 01 and 10 (see register 69h).
This register contains the lower 8 bits of the 10-bit 3DYC luma coring register. The upper 2
bits are accessed through I2C register 86h.
An inter-frame luma signal difference smaller than the programmed value is assumed to be
noise, resulting in the pixel being recognized as "no motion" hence favoring intra-frame (3D)
comb filtering. The minimum value of 000h favors the 2D comb filter output, whereas the
maximum value of 3FFh favors the 3D comb filter output.
Table 3-91. 3DYC Chroma Coring LSB
Subaddress85h
Default20h/2Ah
76543210
3DYC Chroma Coring [7:0]
This register contains the lower 8 bits of the 10-bit 3DYC chroma coring register. The upper
2 bits are accessed through I2C register 86h.
An inter-frame chroma signal difference smaller than the programmed value is assumed to
be noise, resulting in the pixel being recognized as "no motion" hence favoring intra-frame
(3D) comb filtering. The minimum value of 000h favors the 2D comb filter output whereas the
maximum value of 3FFh favors the 3D comb filter output.
Table 3-92. 3DYC Luma/Chroma Coring MSB
Subaddress86h
Default00h/00h
76543210
ReservedChroma Coring [9:8]Luma Coring [9:8]
This register contains the upper 2 bits of the 10-bit 3DYC luma coring and 3DYC chroma
coring registers. The lower 8 bits are accessed through I2C registers 84h and 85h.
An inter-frame luma signal difference smaller than the programmed value is assumed to be
noise, resulting in the pixel being recognized as "no motion" hence favoring intra-frame (3D)
comb filtering. The minimum value of 000h favors the 2D comb filter output, whereas the
maximum value of 3FFh favors the 3D comb filter output.
Table 3-93. 3DYC Luma Gain
Subaddress87h
Default08h/08h
76543210
3DYC luma gain [7:0]
This register contains a 5.3 format gain value used to calculate the luma difference value for luma coring. The gain can vary from 0 to
31.875 in steps of 0.125. The minimum value of 0 favors the 3D comb filter output, whereas the maximum value of 31.875 favors the 2D
comb filter output.
This register contains a 5.3 format gain value used to calculate the chroma difference value
for chroma coring. The gain can vary from 0 to 31.875 in steps of 0.125. The minimum value
of 0 favors the 3D comb filter output, whereas the maximum value of 31.875 favors the 2D
comb filter output.
Table 3-95. 3DYC Signal Quality Gain
Subaddress89h
Default02h/02h
76543210
3DYC Signal Quality gain [7:0]
When the input signal quality is not good, for example weak broadcast signals or poor VCR
signals, 3DCY comb filtering is automatically turned off. This register sets the gain, or
sensitivity, to distinguish poor signal quality. A smaller value in this register favors application
of 3DYC, whereas a larger value favors 2DYC.
Table 3-96. 3DYC Signal Quality Coring
Subaddress8Ah–8Bh
Default328h/380h
Subaddress76543210
8Ah3DYC Signal Quality Coring [7:0]
8Bh3DYC Signal Quality Coring [15:8]
When the input signal quality is not good, for example weak broadcast signals or poor VCR
signals, 3DCY comb filtering is automatically turned off. This register sets the coring value
used to distinguish poor signal quality. A larger value in this register favors application of
3DYC, whereas a smaller value favors 2DYC.
www.ti.com
Table 3-97. IF Compensation Control
Subaddress8Dh
Default00h
76543210
ReservedUVComp.IF Enable
Comp:
0 = Crosstalk compensation only. Use if SAW IF stage used.
1 = Crosstalk and low-frequency gain compensation. Use if non-SAW IF stage used.
U: Enable high frequency U gain
0 = Enabled
1 = Disabled
V: Enable high frequency V gain
0 = Enabled
1 = Disabled
IF enable:
0 = IF compensation disabled (default)
1 = IF compensation enabled
U low frequency gain[3:0]V low frequency gain[3:0]
Table 3-100. IF High Frequency Gain Control
Subaddress90h
Default00h
76543210
U high frequency gain[3:0]V high frequency gain[3:0]
Table 3-101. Weak Signal High Threshold
Subaddress95h
Default60h
76543210
Level [7:0]
This register controls the upper threshold of the noise measurement that determines whether
the input signal is considered a weak signal.
Table 3-102. Weak Signal High Threshold
Subaddress96h
Default50h
76543210
Level [7:0]
This register controls the lower threshold of the noise measurement that determines whether
the input signal is considered a weak signal.
Table 3-103. Status Request
Subaddress97h
Default00h
76543210
ReservedCapture
Capture:
Setting a 1b in this bit causes the internal processor to capture the current settings of the AGC status, 3DNR 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 0b, then the
AGC status, noise measurement, and vertical line counters (3Ch/3Dh, 64h/65h, and 9Ah/9Bh) will have been updated and can be
safely read in any order.
This register controls how 3DYC is enabled/disabled for VCR modes.
Table 3-105. 3DYC PAL VCR Threshold
Subaddress99h
Default20h
76543210
Thresh [7:0]
This register controls how 3DYC is enabled/disabled for VCR modes.
Table 3-106. Vertical Line Count
Subaddress9Ah–9Bh
Read only
Subaddress76543210
9AhVertical line [7:0]
9BhReservedVertical line [9:8]
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.
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 97h (status
request) must be set to a 1b. Once the internal processor has updated this register, bit 0 of
register 97h is 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 97h is set to 1b again.
www.ti.com
Table 3-107. AGC Decrement Delay
Subaddress9Eh
Default1Eh
76543210
AGC decrement delay [7:0]
AGC decrement delay: Number of frames to delay gain decrements
For an NABTS system, the packet prefix consists of five bytes. Each byte contains 4 data bits (D[3:0]) interlaced with 4 Hamming protection
bits (H[3:0]):
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
D[3]H[3]D[2]H[2]D[1]H[1]D[0]H[0]
Only the data portion D[3:0] from each byte is applied to a teletext filter function with corresponding pattern bits P[3:0] and mask bits M[3:0].
The filter ignores hamming protection bits.
For a WST system (PAL or NTSC), the packet prefix consists of two bytes. The two bytes contain three bits of magazine number (M[2:0])
and five bits of row address (R[4:0]), interlaced with eight Hamming protection bits H[7:0]:
The mask bits enable filtering using the corresponding bit in the pattern register. For example, a 1b in the LSB of mask 1 means that the
filter module should compare the LSB of nibble 1 in the pattern register to the first data bit on the transaction. If these match, then a true
result is returned. A 0b in a mask bit means that the filter module should ignore that data bit of the transaction. If all 0s are programmed in
the mask bits, the filter matches all patterns returning a true result (default 00h).
Threshold [7:0]: This register is programmed to trigger an interrupt when the number of
words in the FIFO exceeds this value.
Note: 1 word equals 2 bytes.
Table 3-112. VDP FIFO Reset
SubaddressBFh
Default00h
76543210
ReservedFIFO reset
FIFO reset: Writing any data to this register clears the FIFO and VDP data registers. After clearing, this register bit is automatically cleared.
Table 3-113. VDP FIFO Output Control
SubaddressC0h
Default00h
76543210
ReservedHost access
Host access enable: This register is programmed to allow the host port access to the FIFO or allowing all VDP data to go out the video
output.
0 = Output FIFO data to the video output Y[9:2] (default)
1 = Allow host port access to the FIFO data
enable
Table 3-114. VDP Line Number Interrupt
SubaddressC1h
Default00h
76543210
Field 1 enableField 2 enableLine number [5:0]
Field 1 interrupt enable:
0 = Disabled (default)
1 = Enabled
Field 2 interrupt enable:
0 = Disabled (default)
1 = Enabled
Line number [5:0]: Interrupt line number (default 00h)
This register is programmed to trigger an interrupt when the video line number exceeds this value in bits [5:0]. This interrupt must be
enabled at address F4h.
Note: The line number value of zero or one is invalid and will not generate an interrupt.
Pixel alignment [9:0]: These registers form a 10-bit horizontal pixel position from the falling
edge of horizontal sync, where the VDP controller will initiate the program from one line
standard to the next line standard. For example, the previous line of teletext to the next line
of closed caption. This value must be set so that the switch occurs after the previous
transaction has cleared the delay in the VDP, but early enough to allow the new values to be
programmed before the current settings are required.
The default value is 0x1E and has been tested with every standard supported here. A new
value will only be needed if a custom standard is in use.
Table 3-116. VDP Line Start
SubaddressD6h
Default06h
76543210
VDP line start [7:0]
VDP line start [7:0]: Sets the VDP line starting address for the global line mode register
This register has to be set properly before enabling the line mode registers. The global line
mode is only active in the region defined by the VDP line start and stop registers.
www.ti.com
Table 3-117. VDP Line Stop
SubaddressD7h
Default1Bh
76543210
VDP line stop [7:0]
VDP line stop address [7:0]: Sets the VDP stop line.
Table 3-118. VDP Global Line Mode
SubaddressD8h
DefaultFFh
76543210
Global line mode [7:0]
Global line mode [7:0]: VDP processing for multiple lines set by VDP start line register D6h
and stop line register D7h.
Global line mode register has the same bits definitions as the line mode register's (see
Table 3-141).
General line mode will have priority over the global line mode.
0 = Disabled full field mode(default)
1 = Enabled full field mode
This register enables the full field mode. In this mode, all lines outside the vertical blank area and all lines in the line mode register
programmed with FFh are sliced with the definition of full field mode register at subaddress DAh. Values other than FFh in the line mode
registers allow a different slice mode for that particular line.
Table 3-120. VDP Full Field Mode
SubaddressDAh
DefaultFFh
76543210
Full field mode [7:0]
Full field mode [7:0]: This register programs the specific VBI standard for full field mode. It
can be any VBI standard. Individual line settings take priority over the full field register. This
allows each VBI line to be programmed independently but have the remaining lines in full
field mode. The full field mode register has the same bits definition as line mode registers.
(default FFh)
Global line mode will have priority over the full field mode.
Table 3-121. Interlaced/Progressive Status
SubaddressDBh
Read only
76543210
Interlaced/progressive detection status:
0 = SD interlaced signal detected
1 = ED/HD signal detected
Table 3-122. 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 3-123. 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.
FIFO Read Data [7:0]: This register is provided to access VBI FIFO data through the I2C
interface. All forms of teletext data come directly from the FIFO, while all other forms of VBI
data can be programmed to come from registers or from the FIFO. If the host port reads data
from the FIFO, then bit 0 (host access enable) in the VDP FIFO output control register at
subaddress C0h must be set to 1b.
VBUS address [23:0]: VBUS is a 24-bit wide internal bus. The user must program the 24-bit
address of the internal register to be accessed via host port indirect access mode.
www.ti.com
Table 3-126. Interrupt Raw Status 0
SubaddressF0h
Read only
76543210
FIFO THRSTTXWSS/CGMSVPS/GemstarVITCCC F2CC F1Line
FIFO THRS: FIFO threshold passed, unmasked
0 = Not passed
1 = Passed
TTX: Teletext data available unmasked
0 = Not available
1 = Available
WSS/CGMS: WSS/CGMS data available unmasked
0 = Not available
1 = Available
VPS/Gemstar: VPS/Gemstar data available unmasked
0 = Not available
1 = Available
VITC: VITC data available unmasked
0 = Not available
1 = Available
CC F2: CC field 2 data available unmasked
0 = Not available
1 = Available
CC F1: CC field 1 data available unmasked
0 = Not available
1 = Available
Line: Line number interrupt unmasked
0 = Not available
1 = Available
The host interrupt raw status 0 and 1 registers represent the interrupt status without applying mask bits.
0 = FIFO not full
1 = FIFO was full during write to FIFO
The masked or unmasked status is set in the interrupt mask 1 register at subaddress F5h.
The FIFO full error flag is set when the current line of VBI data can not enter the FIFO. For example, if the FIFO has only 10 bytes left and
teletext is the current VBI line, the FIFO full error flag is set, but no data will be written because the entire teletext line will not fit. However, if
the next VBI line is closed caption requiring only 2 bytes of data plus the header, then this will go into the FIFO even if the full error flag is
set.
Table 3-128. Interrupt Status 0
SubaddressF2h
Read only
76543210
FIFO THRSTTXWSS/CGMSVPS/GemstarVITCCC F2CC F1Line
FIFO THRS: FIFO threshold passed, masked
0 = Not passed
1 = Passed
TTX: Teletext data available masked
0 = Not available
1 = Available
WSS/CGMS: WSS/CGMS data available masked
0 = Not available
1 = Available
VPS/Gemstar: VPS/Gemstar data available masked
0 = Not available
1 = Available
VITC: VITC data available masked
0 = Not available
1 = Available
CC F2: CC field 2 data available masked
0 = Not available
1 = Available
CC F1: CC field 1 data available masked
0 = Not available
1 = Available
Line: Line number interrupt masked
0 = Not available
1 = Available
The interrupt status 0 and 1 registers represent 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
nonmasked 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 0 and 1 registers.
The host interrupt mask 0 and 1 registers can be used by the external processor to mask unnecessary interrupt sources for interrupt status
0 and 1 register bits, and for the external interrupt pin. The external interrupt is generated from all nonmasked interrupt flags.
Table 3-131. Interrupt Mask 1
SubaddressF5h
Read only
76543210
ReservedFIFO full
FIFO full: FIFO full mask
0 = Disabled (default)
1 = Enabled FIFO full interrupt
0 = No effect (default)
1 = Clear FIFO_THRES bit in status register 0 bit 7
TTX: Teletext data available clear
0 = No effect (default)
1 = Clear TTX available bit in status register 0 bit 6
WSS/CGMS: WSS/CGMS data available clear
0 = No effect (default)
1 = Clear WSS/CGMS available bit in status register 0 bit 5
VPS/Gemstar: VPS/Gemstar data available clear
0 = No effect (default)
1 = Clear VPS/Gemstar available bit in status register 0 bit 4
VITC: VITC data available clear
0 = Disabled (default)
1 = Clear VITC available bit in status register 0 bit 3
CC F2: CC field 2 data available clear
0 = Disabled (default)
1 = Clear CC field 2 available bit in status register 0 bit 2
CC F1: CC field 1 data available clear
0 = Disabled (default)
1 = Clear CC field 1 available bit in status register 0 bit 1
LINE: Line number interrupt clear
0 = Disabled (default)
1 = Clear Line interrupt available bit in status register 0 bit 0
The host interrupt clear 0 and 1 registers are used by the external processor to clear the interrupt status bits in the host interrupt status 0
and 1 registers. When no nonmasked interrupts remain set in the registers, the external interrupt pin will also become inactive.
Table 3-133. Interrupt Clear 1
SubaddressF7h
Read only
76543210
ReservedFIFO full
FIFO full: Clear FIFO full flag
0 = No effect (default)
1 = Clear bit 0 (FIFO full flag) in the interrupt status 1 register at subaddress F3h and the interrupt raw status 1 register at subaddress
80 051ChClosed Caption Field 1 byte 1
80 051DhClosed Caption Field 1 byte 2
80 051EhClosed Caption Field 2 byte 1
80 051FhClosed Caption Field 2 byte 2
These registers contain the closed caption data arranged in bytes per field.
Table 3-135. VDP WSS/CGMS Data
Subaddress80 0520h – 80 0526h
Read only
WSS/CGMS NTSC
Subaddress76543210Byte
80 0520h––b5b4b3b2b1b0WSS/CGMS Field 1 Byte 1
80 0521hb13b12b11b10b9b8b7b6WSS/CGMS Field 1 Byte 2
80 0522h––b19b18b17b16b15b14WSS/CGMS Field 1 Byte 3
80 0523hReserved
80 0524h––b5b4b3b2b1b0WSS/CGMS Field 2 Byte 1
80 0525hb13b12b11b10b9b8b7b6WSS/CGMS Field 2 Byte 2
80 0526h––b19b18b17b16b15b14WSS/CGMS Field 2 Byte 3
These registers contain the wide screen signaling data for NTSC.
Bits 0 – 1 represent word 0, aspect ratio
Bits 2 – 5 represent word 1, header code for word 2
Bits 6 – 13 represent word 2, copy control
Bits 14 – 19 represent word 3, CRC
www.ti.com
WSS/CGMS PAL/SECAM
Subaddress76543210Byte
80 0520hb7b6b5b4b3b2b1b0WSS/CGMS Field 1 Byte 1
80 0521h––b13b12b11b10b9b8WSS/CGMS Field 1 Byte 2
80 0522hReserved
80 0523hReserved
80 0524hb7b6b5b4b3b2b1b0WSS/CGMS Field 2 Byte 1
80 0525h––b13b12b11b10b9b8WSS/CGMS Field 2 Byte 2
80 0526hReserved
These registers contain the wide screen signaling data for PAL/SECAM:
Bits 0 – 3 represent Group 1, Aspect Ratio
Bits 4 – 7 represent Group 2, Enhanced Services
Bits 8 – 10 represent Group 3, Subtitles
Bits 11 – 13 represent Group 4, Others
14-D: When incoming video program is TV-14-D rated, this bit is set high.
PG-D: When incoming video program is TV-PG-D rated, this bit is set high.
MA-L: When incoming video program is TV-MA-L rated, this bit is set high.
14-L: When incoming video program is TV-14-L rated, this bit is set high.
PG-L: When incoming video program is TV-PG-L rated, this bit is set high.
Table 3-138. VDP V-Chip TV Rating Block 2
Subaddress80 0541h
Read only
76543210
Reserved14-SPG-SReservedMA-V14-VPG-VY7-FV
TV Parental Guidelines Rating Block 2
MA-S: When incoming video program is TV-MA-S rated, this bit is set high.
14-S: When incoming video program is TV-14-S rated, this bit is set high.
PG-S: When incoming video program is TV-PG-S rated, this bit is set high.
MA-V: When incoming video program is TV-MA-V rated, this bit is set high.
14-V: When incoming video program is TV-14-V rated, this bit is set high.
PG-V: When incoming video program is TV-PG-S rated, this bit is set high.
Y7-FV: When incoming video program is TV-Y7-FV rated, this bit is set high.
None: No block intended
TV-MA: When incoming video program is "TV-MA" rated in TV Parental Guidelines Rating, this bit is set high.
TV-14: When incoming video program is "TV-14" rated in TV Parental Guidelines Rating, this bit is set high.
TV-PG: When incoming video program is "TV-PG" rated in TV Parental Guidelines Rating, this bit is set high.
TV-G: When incoming video program is "TV-G" rated in TV Parental Guidelines Rating, this bit is set high.
TV-Y7: When incoming video program is "TV-Y7" rated in TV Parental Guidelines Rating, this bit is set high.
TV-Y: When incoming video program is "TV-G" rated in TV Parental Guidelines Rating, this bit is set high.
Table 3-140. VDP V-Chip MPAA Rating Data
Subaddress80 0543h
Read only
76543210
Not RatedXNC-17RPG-13PGGNA
MPAA Rating Block (E5h)
Not Rated: When incoming video program is "Not Rated" rated in MPAA Rating, this bit is set high.
X: When incoming video program is "X" rated in MPAA Rating, this bit is set high.
NC-17: When incoming video program is "NC-17" rated in MPAA Rating, this bit is set high.
R: When incoming video program is "R" rated in MPAA Rating, this bit is set high.
PG-13: When incoming video program is "PG-13" rated in MPAA Rating, this bit is set high.
PG: When incoming video program is "PG" rated in MPAA Rating, this bit is set high.
G: When incoming video program is "G" rated in MPAA Rating, this bit is set high.
N/A: When incoming video program is "N/A" rated in MPAA Rating, this bit is set high.
ReservedH/V lockMacrovision status changedStandard changedReserved
H/V lock: H/V lock status changed masked
0 = H/V lock status unchanged
1 = H/V lock status changed
Macrovision status changed: Macrovision status changed masked
0 = Macrovision status not changed
1 = Macrovision status changed
Standard changed: Standard changed masked
0 = Video standard not changed
1 = Video standard changed
The masked or unmasked status is set in the interrupt mask1 register.
Table 3-147. Interrupt Mask 1
SubaddressB0 0065h
Default00h
76543210
ReservedH/V lockMacrovision status changedStandard changedReserved
H/V lock: H/V lock status changed mask
0 = H/V lock status unchanged (default)
1 = H/V lock status changed
Macrovision status changed: Macrovision status changed mask
0 = Macrovision status unchanged (default)
1 = Macrovision status changed
Standard changed: Standard changed mask
0 = Disabled (default)
1 = Enabled video standard changed
www.ti.com
Table 3-148. Interrupt Clear 1
SubaddressB0 0071h
Default00h
76543210
ReservedH/V lockMacrovision status changedStandard changedReserved
H/V lock: Clear H/V lock status changed flag
0 = H/V lock status unchanged
1 = H/V lock status changed
Macrovision status changed: Clear Macrovision status changed flag
0 = No effect (default)
1 = Clear bit 2 (Macrovision status changed) in the interrupt status 1 register at subaddress B0 006Dh and the interrupt raw status 1
register at subaddress B0 0069h
Standard changed: Clear standard changed flag
0 = No effect (default)
1 = Clear bit 1 (video standard changed) in the interrupt status 1 register at subaddress B0 006Dh and the interrupt raw status 1
over operating free-air temperature range (unless otherwise noted)
IOVDD to
IOGND
DVDD to DGND–0.22.0V
A33VDD
A33GND
A18VDD
A18GND
(2)
(3)
(4)
(5)
VIto DGNDDigital input voltage range–0.54.5V
VOto DGNDDigital output voltage range–0.54.5V
AINto AGNDAnalog input voltage range–0.22.0V
T
A
T
stg
(1) Stresses beyond those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. These are stress ratings
only and functional operation of the device at these or any other conditions beyond those indicated under "recommended operating
conditions" is not implied. Exposure to absolute-maximum-rated conditions for extended periods may affect device reliability.
(1) This number is the required specification for the external crystal/oscillator and is not tested.
6.4DC Electrical Characteristics
For minimum/maximum values: IOVDD = 3.0 V to 3.6 V, DVDD = 1.65 V to 1.95 V, AV
to 1.95 V, TA= 0°C to 70°C. For typical values: IOVDD = 3.3 V, DVDD = 1.8 V, AV
PARAMETERTEST CONDITIONSMINTYPMAXUNIT
CVBS, 3DYC, 3DNR2833
I
DD(IOD)
I
DD(D)
I
DD(33A)
I
DD(18A)
P
TOT
P
SAVE
P
DOWN
I
lkg
C
I
V
OH
V
OL
V
OH
V
OL
V
OH
V
OL
3.3-V IO digital supply current
1.8-V digital supply currentmA
3.3-V analog supply currentmA
1.8-V analog supply currentmA
Total power dissipation, normal
operation
Total power dissipation, power save180mW
Total power dissipation, power down3mW
Input leakage current
(1)
Input capacitanceby design (not tested)8pF
Output voltage high
(Y/SD data/SD address/SCLK)
Output voltage low
(Y/SD data/SD address/SCLK)
Output voltage high (SDRAM_CLK)IOH= –8 mA0.8 IOVDDV
Output voltage LOW (SDRAM_CLK)IOL= 8 mA0.2 IOVDDV
Output voltage HIGH (C)IOH= –4 mA0.8 IOVDDV
Output voltage LOW (C)IOL= 4 mA0.2 IOVDDV
(1)
(1) GLCO and GPIO are bidirectional pins with an internal pulldown resistor during reset. These pins may sink up to 30 µA during reset.
DNLAbsolute differential nonlinearityAFE only0.75LSB
INLAbsolute integral nonlinearityAFE only1LSB
FRFrequency responseMultiburst (60 IRE)–0.9dB
XTALKCrosstalk1 MHzdB
SNRSignal-to-noise ratio all channelsFIN= 1 MHz, 1.0 V
GMGain match
Input impedance, analog video inputsspecified by design (not tested)200kΩ
Input capacitance, analog video inputsspecified by design (not tested)pF
Input voltage rangeC
= 0.1 µF0.501.0V
coupling
Input gain ratio, N = 0 to 15–7.5%0.5 +N/10
Input offset control per step24LSB
(1)
Full scale, 1 MHz1.5%
PP
54dB
Luma ramp (100 kHz to full, tilt
null)
Analog output gain ratio, N = 0 to 15–8%1.3 + 0.26xN8%
6.6Data Clock, Video Data, Sync Timing
PARAMETERTEST CONDITIONSMINTYPMAXUNIT
Duty cycle SCLK455055%
t
1
t
1
t
1
t
2
t
2
t
2
t
3
t
4
t
5
t
6
High time, SCLK @ 13.5 MHz≥ 50%37ns
High time, SCLK @ 27 MHz≥ 50%18.5
High time, SCLK @ 54 MHz≥ 50%9.25
Low time, SCLK @ 13.5 MHz≤ 50%37ns
Low time, SCLK @ 27 MHz≤ 50%18.5
Low time, SCLK @ 54 MHz≤ 50%9.25
Fall time, SCLK90% to 10%5ns
Rise time, SCLK10% to 90%5ns
Data valid timeTo 90%/10%5ns
Data hold timeTo 90%/10%2.5ns
Bus free time between STOP and START1.3µs
Data hold time00.9µs
Data setup time100ns
Setup time for a (repeated) START condition0.6µs
Setup time for a STOP condition0.6µs
Hold time (repeated) START condition0.6µs
Rise time VC1(SDA) and VC0(SCL) signalspecified by design
Fall time VC1(SDA) and VC0(SCL) signalspecified by design
Capacitive load for each bus linespecified by design
I2C clock frequency400kHz