www.ti.com
8.5.1.2CommandFiles
8.5.1.3ExampleCommandFile
WinVCCinDepth
Thecommandfileisatextfilethatcanbegeneratedusinganycommoneditor;however,itmustbesaved
asplaintext.Commandfilesareespeciallyusefulforquicklyswitchingbetweenthevarioussystem
configurations.These.CMDfilesareunrelatedtothetypicalWindows.CMDfiles.
AdefaultcommandfileisprovidedontheCD.Thiscommandfilecontainsmanyexamplesofthedesired
setups.Thiscommandfileislocatedat:
c:\ProgramFiles\TexasInstruments\TVP5154EVM\Initialization\
Acommandfilecancontainupto250datasets.Adatasetisasetofregistersettingstoinitializethe
TVP5154decoder,7311encoder,and/orDM642foraparticularvideomode.Eachdatasetincludesa
descriptionthatisdisplayedinonerowofthedatasetdescriptionslist.Theregistersettingsmaybe
locatedinthecommandfileitselfand/ormaybestoredinseparateincludefile(s)(withan.INCfile
extension)andbeincludedintothecommandfileusingtheINCLUDEstatement.
Anexampleofonedatasetwithinacommandfileisshownbelow.
BEGIN_DATASET
DATASET_NAME,”TVP5154,Auto–switch,StableSync,Fast-lock,656Out”
//Initializevideoencoderusinganincludefile
INCLUDE,EncoderNTSC656_RTC.INC
//ProgramTVP5154registers
WR_REG,VID_DEC,1,0x7F,0x00//Reset5154microprocessor
WR_REG,VID_DEC,1,0x03,0x0D//EnableYCbCroutputsandsyncs
WR_REG,VID_DEC,1,0x15,0x81//EnableStableSyncmode
WR_REG,VID_DEC,1,0x02,0x80//EnableFast-lockmode
END_DATASET
Eachcommandfilemaycontainindividualwrite-to-register(WR_REG)commands.
•Thecommentindicatoristhedouble-slash//.
•Thecommandfileisnotcasesensitiveandignoresallwhite-spacecharacters.
•Allnumberscanbeenteredashexadecimal(beginningwith0x)orasdecimal.
•EverydatasetinacommandfilebeginswithBEGIN_DATASETandendswithEND_DATASET.The
maximumnumberofdatasetsis250.
•ThedatasettextdescriptionisenteredbetweendoublequotesusingtheDATASET_NAMEcommand.
Theenclosedtextcanbeupto128charactersinlength.ThistextappearsintheSystemInitialization
dialogboxwhenthecommandfileisopened.
•TheINCLUDEcommandinsertsthecontentsofanincludefile(withan.INCfileextension)in-linein
placeoftheINCLUDEcommand.Therefore,theincludefilemustnotcontaintheBEGIN_DATASET,
END_DATASET,andDATASET_NAMEcommands.
Note:Allincludedfilesmustbelocatedinthesamedirectoryasthecommand(CMD)file.
•Thewrite-to-registercommandiswrittenas:
WR_REG,<DeviceFamily>,<Numberofdatabytes(N)>,<subaddress>,<Data1>,…,<DataN>
or
WR_REG,<Literalslaveaddress>,<Numberofdatabytes(N)>,<subaddress>,<Data1>,…,<DataN>
Thevaliddevicefamilymnemonicsare:
VID_DECforthevideodecoders
VID_ENCforthevideoencoders
THS8200fortheTHS8200device
WinVCCtranslatesthedevicefamilymnemonictotheslaveaddressthatwasselectedintheWinVCC
Configurationdialogboxuponprogramstartup.Thiseliminateshavingtoeditcommandfilesifthe
alternateslaveaddressmustbeused.
SLEU069A–February2006–RevisedJuly2006TVP5154EVMUser'sGuide19
SubmitDocumentationFeedback