Texas Instruments TVP5146EVM User Manual

TVP5160EVM User’s Guide
SLEU063 – March 2005
TVP5160EVM User’s Guide
Digital Video Department
Contents
1 Functional Description......................................................................................................................3
2 Board Level Description...................................................................................................................4
3 System Level Description.................................................................................................................8
4 Required Hardware and Equipment................................................................................................9
5 Hardware Setup ................................................................................................................................10
6 Software Installation........................................................................................................................11
7 WinVCC4 Quick Start .......................................................................................................................12
8 WinVCC4 in Depth...........................................................................................................................15
8.3 I2C System Test.........................................................................................................................17
8.5.1 System Initialization.......................................................................................................20
8.5.2 Register Editing..............................................................................................................24
8.5.3 Property Sheets .............................................................................................................29
9 Troubleshooting...............................................................................................................................32
9.2.1 Setting the PC Parallel Port Mode.................................................................................35
9.2.2 General I2C Error Report...............................................................................................36
10 TVP5160EVM Schematics...............................................................................................................37
1
SLEU063
Figures
Figure 1. TVP5160EVM Block Diagram.............................................................................................. 4
Figure 2. TVP5160EVM System Level Block Diagram ..................................................................... 8
Figure 3. WinVCC4 – I2C Configuration Screen.............................................................................. 12
Figure 4. WinVCC4 – Real Time Polling Screen............................................................................. 13
Figure 5. WinVCC4 – Main Screen.................................................................................................... 13
Figure 6. WinVCC4 – System Initialization...................................................................................... 13
Figure 7. WinVCC4 Multiple Occurrences Error Message............................................................. 15
Figure 8. WinVCC4 I2C Address Configuration............................................................................... 16
Figure 9. I2C System Failure.............................................................................................................. 17
Figure 10. Real Time Polling Dialog Box........................................................................................... 18
Figure 11. WinVCC4 – Main Screen.................................................................................................... 19
Figure 12. System Initialization...........................................................................................................20
Figure 13. Register Map Editor........................................................................................................... 24
Figure 14. Encoder Module Editor...................................................................................................... 26
Figure 15. Generic I2C Register Editor............................................................................................... 27
Figure 16. Indirect Register Editor..................................................................................................... 28
Figure 17. Property Sheets..................................................................................................................30
Figure 18. I2C System Failure Dialog Box ..........................................................................................34
Figure 19. Corrective Action Dialog Box........................................................................................... 34
Figure 20. Corrective Action Required.............................................................................................. 35
Figure 21. Corrective Action Required.............................................................................................. 35
Figure 22. I2C Error............................................................................................................................... 36
Tables
Table 1. Analog Inputs and Pin Terminals....................................................................................... 5
Table 2. Tuner Interface Pinout (H2)................................................................................................. 5
Table 3. VBI Decoder Interface Pinout............................................................................................. 6
Table 4. Main Menu Summary......................................................................................................... 19
Table 5. Register Map Editor Controls........................................................................................... 25
Table 6. Indirect Register Controls................................................................................................. 28
Table 7. Use of Property Sheet Controls ....................................................................................... 31
Table 8. Property Sheet Button Controls....................................................................................... 31
Table 9. TVP5160EVM Troubleshooting .........................................................................................32
Table 10. I2C Troubleshooting........................................................................................................... 33
2 TVP5160EVM User’s Guide
1 Functional Description
The TVP5160EVM refers to both the TVP5160 board and the ADV7311 board when they are connected together. Both boards share a common interface via a 120-pin connector. This interface provides all data, clocks, I2C communication, and 5-V power to each board.
The ADV7311 is a professional grade, 12-bit, 216-MHz, video encoder. This device minimize s potential artifacts caused by the re-encode process. When evaluating the TVP5160 decoder, it is highly recommended that the YPbPr component video outputs of the ADV7311 be used. This will ensure the video decoder within the display monitor will not be used.
1.1 Description Overview
The TVP5160EVM is powered by a single, 5-V, universal supply. I2C communication is emulated using a PC parallel port configured for ECP (extended capability port) or bidirectional mode. The parallel port mode can be changed using the PC BIOS setup, available during the reboot process.
The TVP5160 video decoder converts the analog video input signal into digital component data. This digital data and the associated clocks from the video decoder are sent to the ADV7311 video encoder. The video encoder converts the digital data back into analog video. The analog video outputs provided by the ADV7311 encoder include CVBS, S-Video (SV), and YPbPr. These are all output simultaneously.
SLEU063
Control of the TVP5160EVM is provided by WinVCC4, a Windows-based application developed by Texas Instruments and provided free of charge. This application uses the parallel port to provide I2C communication to the TVP5160EVM. WinVCC4 provides a graphics user interface (GUI) and a register level interface to program and vary the controls available within the TVP5160 decoder and the ADV7311 encoder.
TVP5160EVM User’s Guide 3
SLEU063
2 Board Level Description
Figure 1 illustrates the various features available on the TVP5160EVM .
DB25 (I2C)
DB25 (I2C)
DB25 (I2C)
Analog Output
Analog Output
Analog Output
Tuner Interface
Tuner Interface
Tuner Interface
Composite
Composite
Composite
S-Video
S-Video
S-Video
YPbPr
YPbPr
YPbPr
(SD/ED)
(SD/ED)
(SD/ED)
Power
Power
Power
Down
Down
Down
Reset
Reset
Reset
VBI
VBI
VBI
Decoder
Decoder
Decoder Interface
Interface
Interface
TVP5160
TVP5160
TVP5160
SDRAM
SDRAM
SDRAM
Power
Power
Power
Good
Good
Good
LED
LED
LED
Testpoints
Testpoints
Testpoints
5V
5V
5V
Power
Power
Power
Power
Power
Good
Good
LED
LED
120-pin Header Connector
120-pin Header Connector
120-pin Header Connector
120-pin Header Connector
120-pin Header Connector
ADV7311
ADV7311
Testpoints
Testpoints
I2C
I2C
Address
Address
Select
Select
Reset
Reset
Composite
Composite
S-Video
S-Video
YPbPr
YPbPr
(SD/ED)
(SD/ED)
SCART
SCART
SCART
2.1 Analog Inputs
The TVP5160EVM makes use of all the available inputs on the TVP5160 decoder. The following inputs are available for use:
? Composite (CVBS) ? S-Video ? YPbPr (SD/ED) ? SCART (CVBS and component RGB) ? Tuner interface (CVBS) ? VBI decoder interface (analog/digital RGB)
NOTE: The S-Video (Y/C) input is shared with the SCART (CVBS and R) inputs and must not be connected simultaneously.
FSS
I2C
FSS
I2C
FSS
Select
Select
Select
I2C
Address
Address
Address
Select
Select
Select
Figure 1. TVP5160EVM Block Diagram
Table 1 shows the pins used for the inputs described above.
4 TVP5160EVM User’s Guide
Table 1. Analog Inputs and Pin Terminals
Input Type TVP5160 Pin(s)
CVBS VI_1 S-Video VI_3(Y), VI_9(C) YPbPr VI_5(Y), VI_11(Pb), VI_8(Pr) SCART VI_3(CVBS), VI_9(R), VI_6(G), VI_12(B) Tuner interface (CVBS) VI_2 VBI decoder interface (analog RGB) VI_7(R), VI_4(G), VI_10(B)
2.2 Anti-Aliasing Filters
Each analog input has an anti-alias filter installed by default to ensure the input to the TVP5160 decoder is of the best quality and does not alias. The filters are elliptical in design in order to minimize the cost and still provide the best roll-off. Details on the anti-aliasing filters, including frequency response and the group delay , are provided in a separate application note.
The filter on any analog input may be bypassed by removing the 0-? resistors currently installed (JP1-6, 9, 10) and shorting one of them across 1-2. Since the S-Video input is shared with the SCART (CVBS and R), these inputs share the same anti-aliasing filters.
SLEU063
2.3 Analog Output
The analog output from the TVP5160 decoder is ma de available on the TVP5160EVM. The output is buffered using a simple emitter follower and the output signal is automatically determined by the TVP5160 decoder. If a CVBS is selected as the input, then the analog output is the same looped-through CVBS output. If S-Video or YPbPr is the selected input, then only Y is output since it contains the sync information. Typically , the analog output is used for VCR record funct ions in some CE applications.
2.4 Tuner Interface
The tuner interface provides a method of connecting an analog TV tuner to the TVP5160EVM. The expected output from the tuner module to the TVP5160EVM is baseband composite video. Termination for the 75 -? input source is already provided on the TVP5160EVM tuner input. The pinout of the tuner interface is provided in Table 2.
Table 2. Tuner Interface Pinout (H2)
Description Pin Number
CVBS output (from tuner) 10 SDA (I2C data) 29 SCL (I2C address) 31 GND 1-9, 11-28, 30, 32-36 D5V 37-40
To supply the tuner module, D5V supply and GND pins are provided. The I2C pins, SDA and SCL, are connected to the I2C communications bus on the TVP5160EVM. Control of the tuner module is available within the TVP5160EVM software as discussed later.
TVP5160EVM User’s Guide 5
SLEU063
2.5 VBI Decoder Interface
This interface provides a method of connecting an external VBI decoder module to the TVP5160EVM via the H3 and H4 headers. The VBI decoder may be a closed-caption decoder, teletext decoder, or any other VBI decoder currently available on the market that provides the same signals. The pinout of the VBI decoder interface is provided below.
Table 3. VBI Decoder Interface Pinout
Description H3 Pin Number H4 Pin Number
Tuner CVBS input (from tuner I/F) 1 ­CVBS input (from TVP5160EVM) 3 ­Analog RGB 11, 9, 7 (R, G, B) ­HSYNC 4 ­VSYNC 6 ­FSS (for analog overlay) 10 ­Digital RGB - 7, 9, 11 (DR, DG, DB) SDA (I2C data) - 8 SCL (I2C address) - 10 FSO (for digital overlay) - 12 GND 2, 5, 8, 12 5, 6 D5V - 1-4
With this interface , there are two methods of overlaying the RGB character data output from the VBI decoder onto the input signal to the TVP5160 decoder:
? Analog RGB overlay ? Digital RGB overlay
Separate sets of the RGB inputs are provided depending on which overlay method is preferred. The analog RGB inputs are connected to the TVP5160 analog inputs as discussed in Section
2.1. The digital RGB inputs and FSO are connected to the digital R, G, and B inputs and FSO which are shared with the C bus, C6-9, respect ively.
2.6 Test Points and Jumpers
Various test points are available on the TVP5160EVM for the user. This includes the various power supplies as well as a few GND test points. The primary test-point header is H6 and provides access to the video data, video clocks, I2C, 5 V, and GND.
There are three jumpers available on the TVP5160 board that configure the power down mode, I2C address select, and the FSS select. Each jumper is set by default in its preferred state for the TVP5160EVM. Next to each jumper on the TVP5160 board is the silkscreen that describes the two states of the jumper configuration.
If the I2C address is changed on either the TVP5160 board or the ADV7311 board while the TVP5160EVM is powered up, then that device will not recognize the new I2C address. The reset button on the TVP5160EVM must be pressed and WinVCC4 must be reco nfigured for the new I2C address.
6 TVP5160EVM User’s Guide
2.7 SDRAM
On the TVP5160EVM , there are three SDRAM footprints: 50-pin, 54-pin, and 86-pin. These are provided to accommodate the user’s choice of SDRAM that will be used in their final product. By default, the TVP5160EVM is provided with 64-Mbit SDRAM (54TSOPII).
If the SDRAM is changed, then the SDRAM configuration register (0x59) will also need to be updated with the correct memo ry size. This must be programmed before 3DYC or 3DNR is enabled.
2.8 Common Board Interface
The TVP5160EVM uses a 120-pin connector to connect the TVP5160 board to the ADV7311 board. This interface shares all common signals including the I2C and the 5-V supply. The purpose is to modularize the TVP5160 board and allow users to interface it to a variety of other Texas Instruments products including triple video DACs, DVI transmitters, or to any other platform that shares the same interface.
This connector sh ares all digital video data (Y[9:0], C[9:0]), all video clocks (SCLK, VS, HS, GLCO, AVID, and FID), reset, I2C, and 5-V as mentioned above.
2.9 Video Encoder Analog Outputs
SLEU063
The analog outputs of the ADV7311 board include CVBS, S-Video, and YPbPr. All of the outputs are available simultaneously. For evaluation purposes, it is recommended that the YPbPr component video outputs be used in order to bypass the video decoder internal to the display monitor.
TVP5160EVM User’ s Guide 7
SLEU063
3 System Level Description
The system block diagram illustrated in Figure 2 provides an example of how the TVP5160EVM may be used for evaluation. Typically , the analog input is a CVBS signal provided by a video source such as a pattern generator or a DVD player running a test DVD.
The TVP5160EVM itself is configured with the provided 5-V supply and the parallel port cable. The analog output is typically YPbPr to reduce the number of artifacts caused by backend processing or re-encoding. These outputs are then fed into a high-end or studio-quality display monitor such as a Sony Trinitron.
At the same time, the CVBS output from the encoder may also be fed into a video test measurement system such as the Tektronix VM700. This allows various tests to be run and also allows the user to analyze the video waveform or vectorscope.
PC
PC
5V
5V
Supply
Supply
Tektronix
Tektronix
Tektronix
TG2000
TG2000
Video
Video
Source
Source
CVBS
CVBS
TVP5160EVM
TVP5160EVM
Pb
Pb
Pr
Pr
Y
Y
NTSC/PAL
NTSC/PAL
Monitor
Monitor
CVBS
CVBS
Tektronix
VM700
VM700
Video
Video
Measurement
Measurement
Figure 2. TVP5160EVM System Level Block Diagram
8 TVP5160EVM User’s Guide
4 Required Hardware and Equipment
The following lists the required hardware and equipment necessary to use the TVP5160EVM:
- TVP5160EVM (provided)
- Universal 5-V power supply (provided)
- Parallel cable (provided)
- Windows-based PC
- 1 composite RCA video cable
- 1 YPbPr component RCA video cable
- Video source (pattern generator, DVD player, etc)
- TV or display monitor that supports YPbPr component video inputs
SLEU063
TVP5160EVM User’s Guide 9
SLEU063
5 Hardware Setup
The following describes how to set up the hardware for the TVP5160EVM.
1. Connect the TVP5160EVM boards together using the 120-pin board connector on each board.
2. Connect a CVBS input to the TVP5160 board and a component cable to the YPbPr outputs of the ADV7311 board.
NOTE: For evaluation it is recommended that the YPbPr component video outputs be used in order to bypass the internal video decoder of the TV or video display.
3. Connect the parallel port cable from the TVP5160EVM to the PC. NOTE: There are footprints for a dc jack and a DB25 connector on the ADV7311 board,
but the default power and I2C is provided by the TVP5160 board via the 120-pin connector, P2.
4. Connect the 5-V power supply to the dc jack on the TVP5160 board. A green LED on each board should now be lit.
10 TVP5160EVM User’s Guide
6 Software Install ation
WinVCC4 is a Windows application that uses the PC parallel port to emulate I2C, providing access to each device on the I2C bus. WinVCC4 makes use of CMD files, a text editable file that allows preset video setups to be programmed easily.
This feature allows the user to easily set multiple I2C registers with the press of a button. WinVCC4 also has “Property Sheets” for the TVP5160 which allows the user to control the I2C registers with a GUI.
All necessary software for the TVP5160EVM is provided on the enclosed CD. The following provides the steps required to install WinVCC4:
1. Insert the provided TVP5160EVM CD.
2. Install Port95NT.exe. This is the parallel port driver used by WinVCC4. This driver must be installed and the PC must be rebooted before WinVCC4 will operate correctly.
3. Install Setup.exe. Click Next at all prompts and click Finish to complete the installation process. This will install WinVCC4 onto the PC. No reboot is required.
4. Run WinVCC4.exe
SLEU063
NOTE: A shortcut to WinVCC4 should now be available on the desktop. WinVCC4 and additional TVP5160 related documentation can also be found at Start->Programs->
TVP5160EVM Software.
TVP5160EVM User’s Guide 11
SLEU063
7 WinVCC4 Quick Start
The following describes the steps to take within WinVCC4 in order to get video out of the TVP5160EVM.
1. Once WinVCC4 is executed, the WinVCC4 Configuration screen appears. This dialog box is used to configure the I2C bus. Next to VID_DEC, select the TVP5160 and ensure the I2C address is set to 0xB8. This should match the I2C ADDR jumper on the TVP5160 board.
NOTE: If WinVCC4 is running and the TVP5160 board I2C address is changed, power must be cycled on the EVM.
Figure 3. WinVCC4 – I2C Configuration Screen
2. Next to VID_ENC, select the ADV7311 and ensure the I2C address is set to 0x54. This should match the I2C ADDR jumper on the ADV7311 board.
3. Ensure that all other boxes are selected as Not Used and that all “Program Options” buttons are set to Enabled. Click OK.
4. If there are no I2C communication issues, then the Real-Time Polling window will display next. If there are I2C issues, an I2C Test Report box will display. Completely exit out of WinVCC4, double check the parallel port cable connections, cycle power on the TVP5160EVM and re-run WinVCC4.
12 TVP5160EVM User’s Guide
SLEU063
5. At the Real -Time Polling window, ensure that VIDEO-STANDARD AUTO_SWITCH POLLING is enabled and click OK.
Figure 4. WinVCC4 – Real Time Polling Screen
6. Load the provided TVP5160EVM.CMD file into WinVCC4 by clicking on Tools -> System Initialization -> Browse . The CMD should be available by default as seen
below.
Figure 5. WinVCC4 – Main Screen
7. Click the “TVP5160 (SD) + ADV7311” dataset in the window and then click the Program Dataset button to initialize the TVP5160EVM.
Figure 6. WinVCC4 – System Initialization
TVP5160EVM User’s Guide 13
SLEU063
8. With a video source provided at the composite video input, video should be viewable on the TV/display monitor. All ADV7311 outputs are enabled simultaneously.
NOTE: To ensure the TVP5160 is working properly, go to Video Status by clicking on Edit -> Property Sheets -> TVP5160PNP -> Video Decoder Status and check the H/V/C lock status and the video standard. This is only a check on the TVP5160 board and not the ADV7311 board or the TV/display monitor.
14 TVP5160EVM User’s Guide
8 WinVCC4 in Depth
The following describes how to use WinVCC4 in depth. It discusses various features and screens which the user may encounter while evaluating the TVP5160EVM.
8.1 Starting WinVCC4
The Port95NT parallel port driver must be installed before using WinVCC4. WinVCC4 may be started by clicking on Start->All Programs->TVP5160EVM Software->WinVCC4.
If the dialog shown in the figure below is displayed, it means one of two things:
1. WinVCC4 did not run to completion the last time it ran. In this case, click OK to exit the program and restart WinVCC4.
2. There is more than one instance of WinVCC4 running at the same time. In this ca se, click OK to exit the program. Then, press CTRL -ALT-DELETE to bring up the Task Manager. Select and click End Task on all occurrences of WinVCC4 or WinVCC4 CONFIGURATION. Then restart WinVCC4.
SLEU063
Figure 7. WinVCC4 Multiple Occurrences Error Message
TVP5160EVM User’s Guide 15
SLEU063
8.2 WinVCC4 Configuration Dialog Box
The WinVCC4 Configuration dialog box, as seen in Figure 8, should now be visible. This dialog configures the I2C bus on the TVP5160EVM. All settings from this dialog box are stored in the Windows registry and are restored the next time the program is started. After initial installation, VID_DECTM will be set to TVP5160 and VID_ENC will be set to ADV7311.
The I2C slave address for each device must match the I2C slave address selected by jumpers on the TVP5160EVM. These jumpers are set by the factory to use 0xB8 for the video decoder and 0x54 for the video encoder.
It is also important to select the correct specific devices. The TVP5160 and ADV7311 must be selected for the TVP5160 EVM.
All Program Options must be enabled. Disabling these options is only required if you are debugging a problem with the I2C bus itself.
Clicking OK begins I2C communication with the selected devices.
Figure 8. WinVCC4 I2C Address Configuration
16 TVP5160EVM User’s Guide
8.3 I2C System Test
The I2C system test of selected registers runs immediately after closing the WinVCC4 Configuration dialog box with OK (unless the I2C system test program options button was
disabled). If the I2C system test passes, then only a PASS message will appear. If the test failed, then a
dialog box like Figure 9 wi ll appear. See Section 9, Troubleshooting, for details on how to resolve this issue.
The I2C system test can be run at anytime by clicking Run System I2C Test in the Tools menu.
SLEU063
8.4 Real-Time Polling
Real-time polling provides polling functions that execute in the background continuously, when enabled via the Real-Time Polling dialog. There are two polling functions. The function that applies to the TVP5160 decoder is VIDEO–STANDARD AUTO–SWITCH POLLING.
When the TVP5160 decoder detects a change in the input video standard, it automatically switches to operation in the detected standard (which includes all necessary I2C register initialization) for proper decoding of the input video. The ADV7311 encoder does not have this feature. For this reason WinVCC4 must update the video encoder.
Figure 9. I2C System Failure
TVP5160EVM User’s Guide 17
Loading...
+ 39 hidden pages