Texas Instruments TVP5146EVM quick start Example Command File

Page 22

SLEU063

8.5.1.3Example Command File

An example of one data set within a command file is shown below. Each command file may contain individual write to register (WR_REG) commands.

BEGIN_DATASET// Dataset 1

DATASET_NAME,"TVP5160 (SD) & ADV7311 - CVBS in, 10-bit ITU-656, 3DYC, 3DNR Enabled, CVBS, SV & YPbPr out"

WR_REG,VID_DEC,0x01,0xEE,0x01

// Holds processor in reset

WR_REG,VID_DEC,0x01,0xEA,0xB0

// Enables fast processor mode

WR_REG,VID_DEC,0x01,0xE9,0x00

 

WR_REG,VID_DEC,0x01,0xE8,0x63

 

WR_REG,VID_DEC,0x01,0xE0,0x01

 

WR_REG,VID_DEC,0x01,0xEE,0x00

// Releases processor reset

// TVP5160 I2C Registers - SD

WR_REG,VID_DEC,0x01,0x04,0x3F // Auto Switch Mask WR_REG,VID_DEC,0x01,0x06,0x40 // Pedestal off WR_REG,VID_DEC,0x01,0x34,0x11 // Outputs Enabled WR_REG,VID_DEC,0x01,0x35,0x2A // GPIO =0; GLCO, AVID and FID Enabled WR_REG,VID_DEC,0x01,0x36,0xAF // HS and VS Enabled WR_REG,VID_DEC,0x01,0x75,0x1A // F & V Bit Control WR_REG,VID_DEC,0x01,0x7F,0x01 // Analog Output Enabled WR_REG,VID_DEC,0x01,0x59,0x07 // Enabled SDRAM and set SDRAM size

WR_REG,VID_DEC,0x01,0x0D,0x84 // Chrominance Processing Ctrl 1 Reg – 3DYC, 3DNR Enabled // ADV7311 I2C Registers - NTSC, all DACs Output

WR_REG,0x54,0x01,0x01,0x08

// CLK Align Enabled, SD Oversampled

WR_REG,0x54,0x01,0x40,0x10

// Selects NTSC, SSAF Luma Filter

WR_REG,0x54,0x01,0x42,0x41

// Enables DAC Outputs, PrPb SSAF

WR_REG,0x54,0x01,0x44,0x06

// RTC Enabled

WR_REG,0x54,0x01,0x48,0x14

// Enables Double Buffering, SD 10-bit, DNR disabled

WR_REG,0x54,0x01,0x7C,0x02

// Global 10-bit enable

END_DATASET

 

1.The comment indicator is the double-slash //.

2.The command file is not case-sensitive and ignores all white-space characters.

3.All numbers can be entered as hexadecimal (beginning with 0x) or as decimal.

4.Every data set in a command file begins with BEGIN_DATASET and ends with END_DATASET. The maximum number of datasets is 250.

5.The dataset text description is entered between double quotes using the

DATASET_NAME command. The enclosed text can be up to 128 characters in length. This text appears in the System Initialization dialog when the command file is opened.

6.The INCLUDE command inserts the contents of an include file (with an .INC file extension) in-line in place of the INCLUDE command. Therefore, the include file should not contain the BEGIN_DATASET, END_DATASET, and DATASET_NAME commands.

NOTE: All included files must be located in the same directory as the command (CMD) file.

22

TVP5160EVM User’s Guide

Image 22
Contents TVP5160EVM User’s Guide Corrective Action Required 2C Error Tables Property Sheets 2C System Failure Dialog BoxFunctional Description Description OverviewBoard Level Description Analog InputsTuner Interface Anti-Aliasing FiltersAnalog Output Analog Inputs and Pin TerminalsTest Points and Jumpers VBI Decoder InterfaceVBI Decoder Interface Pinout Common Board Interface Video Encoder Analog OutputsTVP5160EVM System Level Block Diagram System Level DescriptionRequired Hardware and Equipment Hardware Setup Software Installation WinVCC4 I2C Configuration Screen WinVCC4 Quick StartWinVCC4 Real Time Polling Screen SLEU063 WinVCC4 in Depth Starting WinVCC4WinVCC4 Configuration Dialog Box WinVCC4 I2C Address ConfigurationI2C System Test Real-Time PollingReal-Time Polling Dialog Box Main Menu Main Menu SummarySystem Initialization Command Files Adding a Custom Data SetExample Command File SLEU063 Register Editing Control Definition Encoder Module Editor Generic I2C Register Editor Indirect Register Editor BASE+OFFSETProperty Sheets Reading the Register MapAuto-Update from Device Property SheetsUse of Property Sheet Controls Property Sheet Button ControlsTroubleshooting Troubleshooting GuideI2C Troubleshooting Corrective Action Dialogs I2C System Failure Dialog BoxSetting the PC Parallel Port Mode General I2C Error Report 10 TVP5160EVM Schematics Encoder EVM Block Diagram ADV7311 Module REVEncoder EVM I2C Optional 5V, 3.0A DC Input Main Supply from Connector Encoder EVM PowerEncoder EVM Testpoints Encoder EVM Connector UV0I2C Address Selection Encoder EVM ADV7311Cvbs TVP5160EVM I2C TVP5146EVM TV Tuner Interface TVP5160EVM VBI Decoder Interface Cvbs & S-VIDEO TVP5160 Power Supply Power on LED +5V TVP5160EVM PowerTVP5160EVM Sdram 50-PIN Tsop TVP5160EVM Sdram 86-PIN Tsop TVP5160EVM Sdram 54-PIN Tsop TVP5160EVM Connector TVP5160EVM Testpoints TVP5146EVM Main OUTImportant Notice