TVP5147M1 TI | Alldatasheet

Document overview

  • Manufacturer or author: Provided By alldatasheet.com(free datasheet download site)
  • PDF pages: 110

Technical content

Datasheet sections

  • 1 Introduction
  • 1.1 Features
  • 1.2 Description
  • 1.3 Applications
  • 1.4 RelatedProducts
  • 1.5 OrderingInformation
  • 1.6 FunctionalBlockDiagram
  • 1.7 TerminalAssignments
  • 1.8 TerminalFunctions
  • 2 FunctionalDescription
  • 2.1 AnalogProcessingand A/D Converters
  • 2.1.1 VideoInputSwitchControl
  • 2.1.2 AnalogInputClamping
  • 2.1.3 AutomaticGain Control
  • 2.1.4 AnalogVideoOutput
  • 2.1.5 A/D Converters
  • 2.2 DigitalVideoProcessing
  • 2.2.2 CompositeProcessor
  • 2.2.2.1 ColorLow-Pass Filter
  • 2.2.2.2 Y/C Separation
  • 2.2.3 Luminance Processing
  • 2.2.4 ColorTransientImprovement
  • 2.3 ClockCircuits
  • 2.4 Real-TimeControl(RTC)
  • 2.5 OutputFormatter
  • 2.5.1 SeparateSyncs
  • 2.5.2 Embedded Syncs
  • 2.6 I2C HostInterface
  • 2.6.1 Resetand I2C Bus AddressSelection
  • 2.6.2 I2C Operation
  • 2.6.3 VBUS Access
  • 2.7 VBI Data Processor
  • 2.7.1 VBI FIFO and AncillaryData inVideoStream
  • 2.7.2 VBI Raw Data Output
  • 2.8 Reset and Initialization
  • 2.9 AdjustingExternalSyncs
  • 2.10 InternalControlRegisters
  • 2.11 RegisterDefinitions
  • 2.12 VBUS RegisterDefinitions
  • 3 ElectricalSpecifications
  • 3.1 AbsoluteMaximum Ratings
  • 3.2 Recommended OperatingConditions
  • 3.3 CrystalSpecifications
  • 3.4 ElectricalCharacteristics
  • 3.5 DC ElectricalCharacteristics
  • 3.6 AnalogProcessingand A/D Converters
  • 3.7 Clocks,VideoData,Sync Timing
  • 3.8 I2C HostPortTiming
  • 3.9 ThermalSpecifications
  • 4 Example RegisterSettings
  • 2 Contents Copyright© 2005–2012,Texas InstrumentsIncorporated

NTSC/PAL/SECAM 2 11-BitDigitalVideo Decoder With Macrovision™ Detection,YPbPr Inputs,and 5-Line Comb Filter Data Manual PRODUCTION DATA informationiscurrentas of publicationdate. Products conform to specificationsper the terms of the Texas Instrumentsstandard warranty.Productionprocessingdoes not necessarilyincludetestingofallparameters. LiteratureNumber: SLES140G July2005–RevisedFebruary2012

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Copyright© 2005–2012,Texas InstrumentsIncorporated Contents 3

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com ListofFigures

4 ListofFigures Copyright© 2005–2012,Texas InstrumentsIncorporated

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 ListofTables Copyright© 2005–2012,Texas InstrumentsIncorporated ListofTables 5

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com

6 ListofTables Copyright© 2005–2012,Texas InstrumentsIncorporated

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Copyright© 2005–2012,Texas InstrumentsIncorporated ListofTables 7

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com NTSC/PAL/SECAM 2 11-BitDigitalVideo Decoder With Macrovision™ Detection,YPbPr Inputs,and 5-LineComb Filter Check forSamples: TVP5147M1

1 Introduction

1.1 Features

videoencoder synchronization• Two 30-MSPS 11-bitA/D channels with programmable gaincontrol

  • Supports NTSC (J,M, 4.43),PAL (B,D, G, H, I, M, N, Nc, 60),and SECAM (B,D, G, K, K1, L) CVBS, and S-video
  • Supports analog component YPbPr video formatwithembedded sync
  • Ten analog videoinputterminalsfor multisourceconnection
  • Supports analog videooutput
  • User-programmable videooutputformats – 10-bitITU-R BT.656 4:2:2YCbCr with embedded syncs – 10-bit4:2:2YCbCr withseparatesyncs – 20-bit4:2:2YCbCr withseparatesyncs – 2x sampled raw VBI datainactivevideo duringa verticalblankingperiod • CertifiedMacrovision™ copy protection detection– SlicedVBI dataduringa verticalblanking periodor activevideoperiod(fullfieldmode) • Availableincommercial (0°C to70°C) and industrial(−40°C to85°C) temperatureranges• HSYNC/VSYNC outputswithprogrammable position,polarity,width,and fieldID (FID) • QualifiedforAutomotive Applications(AEC- output Q100 Rev G − TVP5147M1IPFPQ1 or TVP5147M1IPFPRQ1)• Composite and S-videoprocessing
  • VBI dataprocessor– Adaptive2-D 5-lineadaptivecomb filterfor composite videoinputs;chroma-trap – Teletext(NABTS, WST) available – CC and extended dataservice(EDS) – Automatic videostandarddetection – Wide screen signaling(WSS) (NTSC/PAL/SECAM) and switching – Copy generationmanagement system – Luma-peaking withprogrammable gain (CGMS) – Patentedchroma transientimprovement – Video program system (VPS/PDC) (CTI) – Verticalintervaltimecode (VITC) – Patentedarchitectureforlockingtoweak, – Gemstar ™ 1×/2× modenoisy,or unstablesignals – V-Chip decoding– Single14.31818-MHz referencecrystalforall – Registerreadback ofCC, WSS (CGMS),standards VPS/PDC, VITC and Gemstar 1×/2× sliced– Line-lockedinternalpixelsampling clock datagenerationwithhorizontaland verticallock • I2C host portinterfacesignaloutputs
  • Reduced power consumption: 1.8-Vdigital– Genlock outputRTC formatfordownstream Pleasebe aware thatan importantnoticeconcerningavailability,standardwarranty,and use incriticalapplicationsof Texas Instrumentssemiconductorproductsand disclaimerstheretoappearsattheend ofthisdatasheet. 2PowerPAD, DLP aretrademarksofTexas Instruments. 3Gemstar isa trademarkofGemstar-TV Guide Intermational. 4Macrovisionisa trademarkofMacrovisionCorporation. 5Allothertrademarksarethepropertyoftheirrespectiveowners. PRODUCTION DATA informationiscurrentas ofpublicationdate.ProductsconformtoCopyright© 2005–2012,Texas InstrumentsIncorporated specificationsper the terms of the Texas Instrumentsstandardwarranty.Production processingdoes notnecessarilyincludetestingofallparameters.

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 core,3.3-VfordigitalI/O,and 1.8-V/3.3V analog • 80-terminalTQFP PowerPAD ™ package core withpower-save and power-down modes Copyright© 2005–2012,Texas InstrumentsIncorporated Introduction 9 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com

1.2 Description

The TVP5147M1 deviceisa high-quality,single-chipdigitalvideodecoderthatdigitizesand decodes all popularbaseband analogvideoformatsintodigitalcomponent video.The TVP5147M1 decodersupports the analog-to-digital(A/D)conversionof component YPbPr signals,as wellas the A/D conversionand decoding of NTSC, PAL, and SECAM compositeand S-videointocomponent YCbCr. This decoder includestwo 11-bit30-MSPS A/D converters(ADCs). Preceding each ADC in the device,the correspondinganalogchannelcontainsan analogcircuitthatclamps theinputtoa referencevoltageand appliesa programmable gain and offset.A totalof ten videoinputterminalscan be configuredto a combinationofYPbPr,CVBS, orS-videovideoinputs. CompositeorS-videosignalsaresampled at2× theITU-R BT.601 clockfrequency,line-lockedalignment, and arethendecimatedtothe1× pixelrate.CVBS decodinguses five-lineadaptivecomb filteringforboth the luma and chroma data pathsto reduce both cross-lumaand cross-chromaartifacts.A chroma trap filterisalsoavailable.On CVBS and S-videoinputs,the user can controlvideocharacteristicssuch as contrast,brightness,saturation,and hue via an I2C host portinterface.Furthermore,luma peaking (sharpness)withprogrammable gainisincluded,as wellas a patentedchroma transientimprovement (CTI)circuit. The followingoutputformatscan be selected:20-bit4:2:2YCbCr or10-bit4:2:2YCbCr. The TVP5147M1 decodergeneratessynchronization,blanking,field,activevideowindow,horizontaland verticalsyncs,clock,genlock(fordownstream videoencoder synchronization),hostCPU interruptand programmablelogicI/Osignals,inadditiontodigitalvideooutputs. The TVP5147M1 decoder includesmethods foradvanced verticalblankinginterval(VBI)data retrieval. The VBI data processor(VDP) slices,parses,and performserrorcheckingon teletext,closedcaption (CC),and otherVBI data.A built-inFIFO storesup to11 linesofteletextdata,and withproperhostport synchronization,full-screenteletextretrievalispossible.The TVP5147M1 decodercan pass throughthe outputformatter2× sampled raw luma dataforhost-basedVBI processing. The main blocksoftheTVP5147M1 decoderinclude:

  • Robustsyncdetectionforweak and noisysignalsas wellas VCR trickmodes
  • Y/C separationby 2-D 5-lineadaptivecomb orchroma trapfilter
  • Two 11-bit,30-MSPS A/D converterswithanalogpreprocessors[clampand automaticgaincontrol (AGC)]
  • Analogvideooutput
  • Luminance processor
  • Chrominanceprocessor
  • Clock/timingprocessorand power-down control
  • Software-controlledpower-savingstandbymode
  • Outputformatter
  • I2C hostportinterface
  • VBI dataprocessor
  • Macrovision™ copy protectiondetectioncircuit(Type1,2,3,and separatecolorstripedetection)
  • 3.3-VtolerantdigitalI/Oports

10 Introduction Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012

1.3 Applications

  • DLP ™ projectors
  • DigitalTV
  • LCD TV/monitors
  • DVD recorders
  • PVR
  • PC videocards
  • Videocapture/videoediting
  • Videoconferencing
  • Automotive
  • Industrial

1.4 RelatedProducts

TVP5146M2 NTSC/PAL/SECAM 2 11-Bit DigitalVideo Decoder With Macrovision™ Detection, YPbPr/RGB Inputs,and 5-LineComb Filter TVP5150AM1 UltralowPower NTSC/PAL/SECAM VideoDecoder WithRobustSync Detector

1.5 OrderingInformation

PACKAGED DEVICES (1)(2) TA 80-TERMINAL PLASTIC PACKAGE OPTION FLAT-PACK PowerPAD ™ PACKAGE TVP5147M1PFP Tray 0°C to70°C TVP5147M1PFPR Tape and reel TVP5147M1IPFP Tray TVP5147M1IPFPR Tape and reel -40°C to85°C TVP5147M1IPFPQ1 (3) Tray TVP5147M1IPFPRQ1 (3) Tape and reel (1) Forthemost currentpackage and orderinginformation,see thePackage OptionAddendum attheend ofthisdocument,orsee theTIweb siteatwww.ti.com. (2) Package drawings,standardpackingquantities,thermaldata,symbolization,and PCB design guidelinesareavailableatwww.ti.com/package. (3) AEC-Q100 Rev G Certified Copyright© 2005–2012,Texas InstrumentsIncorporated Introduction 11 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

Composite and S-V ideo Processor Y/C Separation 5-line Adaptive Comb Luma Processing Chroma Processing M U X CVBS/Y C/CbCr C Y Output Formatter Y[9:0] VBI Data Processor Copy Protection Detector C[9:0] Host Interface Timing Processor With Sync Detector VI_1_A VI_1_B VI_1_C VI_2_A VI_2_B VI_2_C VI_3_A VI_3_B VI_3_C VI_4_A CVBS/ Y CVBS/ C/Pb CVBS/ C/Pr CVBS/Y CVBS/Y Analog Front End Sampling Clock GPIO HS/CS VS/VBLK FID AVID XTAL1 XTAL2 DATACLK RESETB GLCO PWDN SCL SDA YCbCr Clamping AGC 2 × 11-Bit ADC TVP5147M1 SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com

1.6 FunctionalBlock Diagram

Figure1-1.FunctionalBlock Diagram

12 Introduction Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

C_6/GPIO C_7/GPIO C_8/GPIO C_9/GPIO DGND DVDD Y_0 Y_1 Y_2 Y_3 Y_4 IOGND IOVDD Y_5 Y_6 Y_7 Y_8 Y_9 DGND DVDD 1 1 VI_1_B VI_1_C CH1_A33GND CH1_A33VDD CH2_A33VDD CH2_A33GND VI_2_A VI_2_B VI_2_C CH2_A18GND CH2_A18VDD A18VDD_REF A18GND_REF NC NC VI_3_A VI_3_B VI_3_C NC NC 25 26 27 28 PFP P ACKAGE (TOP VIEW) 79 78 77 76 7580 74 72 71 7073 29 30 31 32 33 69 68 67 66 65 64 34 35 36 37 38 39 40 63 62 61 VI_1_A CH1_A18GND CH1_A18VDD PLL_A18GND PLL_A18VDD XT AL2 XT AL1 VS/VBLK/GPIO HS/CS/GPIO FID C_0/GPIO C_1 DGND DVDD C_2/GPIO C_3/GPIO C_4/GPIO C_5/GPIO IOGND IOVDD NC NC VI_4_A NC NC AGND DGND SCL SDA INTREQ DVDD DGND PWDN RESETB GPIO A VID/GPIO GLCO/I2CA IOVDD IOGND DA T ACLK TVP5147M1 www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012

1.7 TerminalAssignments

Figure1-2.TerminalAssignments Diagram Copyright© 2005–2012,Texas InstrumentsIncorporated Introduction 13 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com

1.8 TerminalFunctions

Table1-1.TerminalFunctions TERMINAL I/O DESCRIPTION NAME NO. Analog Video VI_1_A 80 I/O VI_1_B 1 I VI_1_A:AnalogvideoinputforCVBS/Pb/C oranalogvideooutput(seeTable2-79) VI_1_C 2 I VI_1_x:AnalogvideoinputforCVBS/Pb/C VI_2_x:AnalogvideoinputforCVBS/YVI_2_A 7 I VI_3_x:AnalogvideoinputforCVBS/Pr/C VI_2_B 8 I VI_4_A:AnalogvideoinputforCVBS/Y Up totencomposite,fourS-video,and two compositeorthreecomponent videoinputs(oraVI_2_C 9 I combinationthereof)can be supported.VI_3_A 16 I The inputsmust be ac-coupled.The recommended couplingcapacitoris0.1µF. The possibleinputconfigurationsarelistedintheinputselectregisteratI2C subaddress00hVI_3_B 17 I (seeTable2-12).VI_3_C 18 I VI_4_A 23 I Clock Signals DATACLK 40 O Line-lockeddataoutputclock Externalclockreferenceinput.Itcan be connectedtoan externaloscillatorwitha 1.8-VXTAL1 74 I compatibleclocksignalora 14.31818-MHz crystaloscillator. Externalclockreferenceoutput.Not connectedifXTAL1 isdrivenby an externalsingle-endedXTAL2 75 O oscillator. DigitalVideo 57,58,59, DigitalvideooutputofCbCr,C[9]isMSB and C[0]isLSB. C_0 and C_[9-2]can be used as 60,63,64, programmablegeneralpurposeI/O.C_1 (pin69)requiresan externalpulldownresistorandC_[9:0] I/O65,66,69, shouldnotbe used forgeneralpurposeI/0. 70 Forthe8-bitmode, thetwo LSBs areignored.Unused outputscan be leftunconnected. 43,44,45, 46,47,50, DigitalvideooutputofY/YCbCr,Y[9]isMSB and Y[0]isLSB.Y[9:0] O51,52,53, Forthe8-bitmode, thetwo LSBs areignored.Unused outputscan be leftunconnected. MiscellaneousSignals GPIO 35 I/O Programmable general-purposeI/O Genlockcontroloutput(GLCO) uses realtimecontrol(RTC) format.GLCO/I2CA 37 I/O Duringreset,thisterminalisan inputused toprogramtheI2C addressLSB. INTREQ 30 O Interruptrequest 14,15,19, Not connected.These terminalscan be connectedtopower orground(compatiblewithNC 20,21,22, TVP5146 terminals),internallyfloating.24,25 Power down input: PWDN 33 I 1 = Power down 0 = Normal mode RESETB 34 I Resetinput,activelow(seeSection2.8) Host Interface SCL 28 I I2C clockinput SDA 29 I/O I2C databus Power Supplies AGND 26 Analogground.Connecttoanalogground. A18GND_REF 13 Analog1.8-Vreturn A18VDD_REF 12 Analogpower forreference1.8V CH1_A18GND 79 Analog1.8-Vreturn CH2_A18GND 10 CH1_A18VDD 78 Analogpower.Connectto1.8V.

14 Introduction Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table1-1.TerminalFunctions(continued) TERMINAL I/O DESCRIPTION NAME NO. CH2_A18VDD 11 CH1_A33GND 3 Analog3.3-Vreturn CH2_A33GND 6 CH1_A33VDD 4 Analogpower.Connectto3.3V. CH2_A33VDD 5 27,32,42,DGND Digitalreturn56,68 31,41,55,DVDD Digitalpower.Connectto1.8V.67 IOGND 39,49,62 Digitalpower return IOVDD 38,48,61 Digitalpower.Connectto3.3V orlessforreducednoise. PLL_A18GND 77 Analogpower return PLL_A18VDD 76 Analogpower.Connectto1.8V. Sync Signals HorizontalsyncoutputordigitalcompositesyncoutputHS/CS/GPIO 72 I/O Programmable general-purposeI/O Verticalsyncoutput(formodes withdedicatedVSYNC) orVBLK outputVS/VBLK/GPIO 73 I/O Programmable general-purposeI/O FID 71 I/O Odd/even fieldindicatoroutput.Thisterminalneeds a pulldownresistor(seeFigure5-1). ActivevideoindicatoroutputAVID/GPIO 36 I/O Programmable general-purposeI/O Copyright© 2005–2012,Texas InstrumentsIncorporated Introduction 15 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

VI_4_A M U X VI_1_B VI_1_C M U X VI_2_A VI_2_B VI_2_C M U X VI_3_A VI_3_B VI_3_C 11-Bit ADC Clamp Clamp Clamp VI_1_A I/O PGA CVBS/ Pb/C CVBS/ Y CVBS/ Pr/C CVBS/ Y M U X PGA CH2 A/D 11-Bit ADC PGA Analog Front End TVP5147M1 SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com

2 FunctionalDescription

2.1 Analog Processingand A/D Converters

Figure2-1 shows a functionaldiagramoftheanalogprocessorsand A/D converters,which providethe analog interfaceto allvideoinputs.Itacceptsup to ten inputsand performssource selection,video clamping,videoamplification,A/D conversion,and gain and offsetadjustmentsto centerthe digitized videosignal.The TVP5147M1 supportsone analogvideooutputfortheselectedanaloginputvideo. Figure2-1.Analog Processors and A/D Converters

16 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012

2.1.1 Video InputSwitch Control

The TVP5147M1 decoder has two analog channelsthatacceptup to ten videoinputs.The user can configuretheinternalanalogvideoswitchesviatheI2C interface.The tenanalogvideoinputscan be used fordifferentinputconfigurations,some ofwhichare:

  • Up totenselectableindividualcompositevideoinputs
  • Up tofourselectableS-videoinputs
  • Up tothreeselectableanalogYPbPr videoinputsand one CVBS input
  • Up totwo selectableanalogYPbPr videoinputs,one S-videoinput,and two CVBS inputs The inputselectionisperformedby theinputselectregisteratI2C subaddress00h (seeTable2-12).

2.1.2 Analog InputClamping

An internalclampingcircuitrestorestheac-coupledvideosignaltoa fixeddc level.The clampingcircuit providesline-by-linerestorationof the videosync levelto a fixeddc referencevoltage.The selection between bottomand mid clamp isperformedautomaticallyby theTVP5147M1 decoder.

2.1.3 Automatic Gain Control

The TVP5147M1 decoderuses two programmablegainamplifiers(PGAs),one perchannel.The PGA can scalea signalwitha voltage-inputcomplianceof0.5-VPPto2.0-VPPtoa full-scale10-bitA/D outputcode range. A 4-bitcode sets the coarse gain with individualadjustmentper channel.Minimum gain correspondstoa code 0x0 (2.0-VPPfull-scaleinput,-6-dBgain)whilemaximum gaincorrespondstocode 0xF (0.5VPP fullscale,+6-dB gain).The TVP5147M1 decoderalsohas 12-bitfinegaincontrolsforeach channeland appliesindependentlyto coarsegaincontrols.For compositevideo,the inputvideosignal amplitudecan varysignificantlyfromthenominallevelof1 VPP. The TVP5147M1 decodercan adjustits PGA settingautomatically:an automaticgaincontrol(AGC) can be enabledand can adjustthe signal amplitudesuch thatthemaximum rangeoftheADC isreachedwithoutclipping.Some nonstandardvideo signalscontainpeak whitelevelsthatsaturatetheADC. Inthesecases,theAGC automaticallycutsback gaintoavoidclipping.IftheAGC ison,thentheTVP5147M1 decodercan read thegaincurrentlybeing used. The TVP5147M1 AGC comprisesthefront-endAGC beforeY/C separationand theback-endAGC after Y/C separation.The back-endAGC restorestheoptimum system gainwhenever an amplitudereference such as thecompositepeak (whichisonlyrelevantbeforeY/C separation)forcesthefront-endAGC toset thegaintoolow.The front-endand back-endAGC algorithmscan use up tofouramplitudereferences: syncheight,colorburstamplitude,compositepeak,and luma peak. The specificamplitudereferencesbeing used by the front-endand back-end AGC algorithmscan be independentlycontrolledusingtheAGC whitepeak processingregisterlocatedatsubaddress74h.The TVP5147M1 gainincrementspeed and gainincrementdelaycan be controlledusingtheAGC increment speed registerlocatedat subaddress78h and the AGC incrementdelayregisterlocatedat subaddress 79h.

2.1.4 Analog Video Output

One oftheanaloginputsignalsisavailableattheanalogvideooutputterminal,whichissharedwithinput selectedby I2C registers.The signalatthisterminalmust be bufferedby a sourcefollower.The nominal outputvoltageis2 V p-p,thusthesignalcan be used todrivea 75-Ω line.The magnitudeismaintained withan AGC in16 stepscontrolledby the TVP5147M1 decoder.To use thisfunction,terminalVI_1_A must be setas an outputterminal.The inputmode selectionregisteralsoselectsan activeanalogoutput signal. Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 17 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

Y[9:0] Timing Processor AVID FID GLCO XTAL1 XTAL2 RESETB CH1 A/D CH2 A/D HS/CS VS/VBLK DATACLK C[9:0] Host Interface SCL SDA Slice VBI Data Decimation PWDN Decimation TVP5147M1 SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com

2.1.5 A/D Converters

AllADCs have a resolutionof 11 bitsand can operateup to 30 MSPS. AllA/D channelsreceivean identicalclockfromtheon-chipphase-lockedloop(PLL)ata frequencybetween 24 MHz and 30 MHz. All ADC referencevoltagesaregeneratedinternally.

2.2 DigitalVideo Processing

Figure2-2 isa blockdiagram of the TVP5147M1 digitalvideodecoder processing.Thisblockreceives digitizedvideosignalsfrom theADCs and performscompositeprocessingforCVBS and S-videoinputs and YCbCr signalenhancements forCVBS and S-videoinputs.Italsogenerateshorizontaland vertical syncs and otheroutputcontrolsignalssuch as genlockforCVBS and S-videoinputs.Additionally,itcan providefieldidentification,horizontaland verticallock,verticalblanking,and activevideo window indicationsignals.The digitaldataoutputcan be programmed totwo formats:20-bit4:2:2withexternal syncsor10-bit4:2:2withembedded/separatesyncs.The circuitdetectspseudosyncpulses,AGC pulses, and colorstripinginMacrovision-encodedcopy-protectedmaterial.InformationpresentintheVBI interval can be retrievedand eitherinsertedintheITU-R BT.656 outputas ancillarydataorstoredininternalFIFO and/orregistersforretrievalviathehostportinterface. Figure2-2.DigitalVideo ProcessingBlock Diagram 2.2.1 2x DecimationFilter Allinputsignalsaretypicallyoversampledby a factorof2 (27MHz). The A/D outputsinitiallypass through decimationfiltersthatreducethedatarateto1× thepixelrate.The decimationfilterisa half-bandfilter. Oversamplingand decimationfilteringcan effectivelyincreasetheoverallsignal-to-noiseratioby 3 dB.

2.2.2 Composite Processor

Figure2-3 is a block diagram of the TVP5147M1 digitalcomposite video processingcircuit.This processingcircuitreceivesa digitizedcompositeor S-videosignalfrom the ADCs and performsY/C separation(bypassedforS-videoinput),chroma demodulationforPAL/NTSC and SECAM, and YUV signalenhancements.

18 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

Delay – Peaking NTSC/PAL Remodulation NTSC/PAL Demodulation Notch Filter Color LPF ↓ 2 5-Line Adaptive Comb Filter Notch Filter Notch Filter Notch Filter Contrast Brightness Saturation Adjust Cr Y Cb Y Burst Accumulator (U) U SECAM Color Demodulation V DelayCVBS/Y SECAM Luma CVBS CVBS/C Color LPF ↓ 2 Burst Accumulator (V) U V Delay Delay TVP5147M1 www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 The 10-bitcompositevideo is multipliedby the subcarriersignalsin the quadraturedemodulatorto generatecolordifferencesignalsU and V.The U and V signalsarethensenttolow-passfilterstoachieve thedesiredbandwidth.An adaptive5-linecomb filterseparatesUV fromY based on theuniqueproperty of colorphase shiftsfrom lineto line.The chroma isremodulatedthrougha quadraturemodulatorand subtractedfromline-delayedcompositevideotogenerateluma.ThisformofY/C separationiscompletely complementary,thusthereisno lossofinformation.However,insome applications,itisdesirabletolimit theU/V bandwidthtoavoidcrosstalk.Inthatcase,notchfilterscan be turnedon.To accommodate some viewingpreferences,a peakingfilterisalsoavailableintheluma path.Contrast,brightness,sharpness, hue,and saturationcontrolsareprogrammablethroughthehostport. Figure2-3.Composite and S-VideoProcessingBlock Diagram Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 19 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

f − Frequency − MHz −70 −60 −50 −40 −30 −20 −10 ITU-R BT.601 −3 dB at 1.42 MHz Amplitude − dB f − Frequency − MHz −70 −60 −50 −40 −30 −20 −10 Amplitude − dB Filter 3 −3 dB at 554 kHz Filter 2 −3 dB at 844 kHz Filter 1 −3 dB at 1.03 MHz Filter 0 −3 dB at 1.41 MHz TVP5147M1 SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com

2.2.2.1 ColorLow-Pass Filter

High filterbandwidthpreservessharpcolortransitionsand producescrispcolorboundaries.However,for nonstandardvideosourcesthathave asymmetricalU and V sidebands,itisdesirableto limitthe filter bandwidthtoavoidUV crosstalk.The colorlow-passfilterbandwidthisprogrammabletoenableone ofthe threenotchfilters.Figure2-4 and Figure2-5 representthe frequencyresponsesof the wideband color low-passfilters. Figure2-4.ColorLow-Pass FilterFrequency Figure2-5.ColorLow-Pass FilterWith Filter Response Characteristics,NTSC/PAL ITU-R BT.601 Sampling

20 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

f − Frequency − MHz −40 −35 −30 −25 −20 −15 −10 0 1 2 3 4 5 6 7 No Notch Filter Notch 3 Filter Notch 1 Filter Amplitude − dBNotch 2 Filter −40 −35 −30 −25 −20 −15 −10 0 1 2 3 4 5 6 7 f − Frequency − MHz Amplitude − dB No Notch Filter Notch 2 Filter Notch 1 Filter Notch 3 Filter TVP5147M1 www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012

2.2.2.2 Y/C Separation

Y/C separationcan be done usingadaptive5-line(5-H delay)comb filtersor a chroma trapfilter.The comb filtercan be selectivelybypassed intheluma or chroma path.Ifthecomb filterisbypassed inthe luma path,then chroma trapfiltersare used which are shown in Figure2-6 and Figure2-7. The TI patentedadaptivecomb filteralgorithmreduces artifactssuch as hanging dots at colorboundaries.It detectsand properlyhandlesfalsecolorsinhigh-frequencyluminanceimages such as a multiburstpattern orcirclepattern. Figure2-6.Chroma Trap FilterFrequency Response, Figure2-7.Chroma Trap FilterFrequency Response, NTSC ITU-R BT.601 Sampling PAL ITU-R BT.601 Sampling Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 21 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

Filter × Gain Peaking FilterIN + OUTDelay Peak Detector f − Frequency − MHz 0 1 2 3 4 5 6 7 Gain = 0 Gain = 2 Gain = 1 Gain = 0.5 Peak at f = 2.64 MHz Amplitude − dB TVP5147M1 SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com

2.2.3 Luminance Processing

The digitizedcompositevideosignalpasses througheithera luminancecomb filterora chroma trapfilter, eitherof which removes chrominanceinformationfrom the compositesignalto generatea luminance signal.The luminancesignalisthenfedintotheinputofa peakingcircuit.Figure2-8illustratesthebasic functionsoftheluminancedatapath.Inthecase ofS-video,theluminancesignalbypassesthecomb filter or chroma trapfilterand isfed directlyto the circuit.A peakingfilter(edge enhancer)amplifieshigh- frequencycomponents oftheluminancesignal.Figure2-9shows thecharacteristicsofthepeakingfilterat fourdifferentgainsettingsthatareuser-programmableviatheI2C interface. Figure2-8.Luminance Edge-Enhancer Peaking Block Diagram Figure2-9.Peaking FilterResponse, NTSC/PAL ITU-R BT.601 Sampling

2.2.4 ColorTransientImprovement

Color transientimprovement (CTI)enhances horizontalcolortransients.The colordifferencesignal transitionpointsaremaintained,buttheedges areenhanced forsignalsthathave bandwidth-limitedcolor components.

22 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

XTAL1 14.31818-MHz Crystal XTAL2 TVP5147M1 74 XTAL1 XTAL2 CL1 CL2 14.31818-MHz 1.8-V Clock NC R TVP5147M1 www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012

2.3 Clock Circuits

An internalline-lockedPLL generatesthe system and pixelclocks.A 14.318-MHz clockisrequiredto drivethePLL. Thiscan be inputtotheTVP5147M1 decoderatthe1.8-Vlevelon terminal74 (XTAL1),or a crystalof14.318-MHz fundamentalresonantfrequencycan be connectedacrossterminals74 and 75 (XTAL2).Ifa parallelresonantcircuitisused as shown inFigure2-10,thentheexternalcapacitorsmust have thefollowingrelationship: C L1 = C L2 = 2CL − C STRAY (1) Where, C STRAY istheterminalcapacitancewithrespecttoground C L isthecrystalloadcapacitancespecifiedby thecrystalmanufacturer Figure2-10shows thereferenceclockconfigurations.The TVP5147M1 decodergeneratestheDATACLK signalused forclockingdata. NOTE: The resistor(R)inparallelwiththecrystalisrecommended tosupporta widerangeofcrystaltypes.A 100-kΩ resistor may be used formost crystaltypes. Figure2-10.ReferenceClock Configurations

2.4 Real-TimeControl(RTC)

Althoughthe TVP5147M1 decoder is a line-lockedsystem, the colorburstinformationis used to determineaccuratelythe colorsubcarrierfrequencyand phase. This ensures properoperationwith nonstandardvideo signalsthatdo not followexactlythe requiredfrequencymultiplebetween color subcarrierfrequencyand videolinefrequency.The frequencycontrolword oftheinternalcolorsubcarrier PLL and thesubcarrierresetbitaretransmittedviaterminal37 (GLCO) foroptionaluse inan end system (forexample, by a video encoder).The frequencycontrolword is a 23-bitbinarynumber. The instantaneousfrequencyofthecolorsubcarriercan be calculatedusingthefollowingequation: FPLL = (Fctrl/223)× Fsclk (2) Where, FPLL isthefrequencyofthesubcarrierPLL Fctrlisthe23-bitPLL frequencycontrolword Fsclkistwo timesthepixelfrequency Thisinformationcan be generatedon theGLCO terminal.Figure2-11shows thedetailedtimingdiagram. Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 23 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

45 CLK18 CLK

L S B

3 CLK128 CLK

1 CLK

M S B Reserved TVP5147M1 SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com NOTE: RTC resetbit(R) isactive-low,Sequence bit(S)PAL: 1 = (R-Y)linenormal,0 = (R-Y)lineinverted,NTSC: 1 = no change Figure2-11.RTC Timing

2.5 Output Formatter

The outputformattersetshow thedataisformattedforoutputon theTVP5147M1 outputbuses.Table2-1 shows theavailableoutputmodes. Table2-1.Output Format TERMINAL NAME TERMINAL NUMBER 10-Bit4:2:2YCbCr 20-Bit4:2:2YCbCr Y_9 43 Cb9, Y9,Cr9 Y9 Y_8 44 Cb8, Y8,Cr8 Y8 Y_7 45 Cb7, Y7,Cr7 Y7 Y_6 46 Cb6, Y6,Cr6 Y6 Y_5 47 Cb5, Y5,Cr5 Y5 Y_4 50 Cb4, Y4,Cr4 Y4 Y_3 51 Cb3, Y3,Cr3 Y3 Y_2 52 Cb2, Y2,Cr2 Y2 Y_1 53 Cb1, Y1,Cr1 Y1 Y_0 54 Cb0, Y0,Cr0 Y0 C_9 57 Cb9, Cr9 C_8 58 Cb8, Cr8 C_7 59 Cb7, Cr7 C_6 60 Cb6, Cr6 C_5 63 Cb5, Cr5 C_4 64 Cb4, Cr4 C_3 65 Cb3, Cr3 C_2 66 Cb2, Cr2 C_1 69 Cb1, Cr1 C_0 70 Cb0, Cr0

24 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-2.Summary ofLineFrequencies,Data Rates,and Pixel/LineCounts COLORPIXEL HORIZONTALPIXELS PER ACTIVE PIXELS LINES PER SUBCARRIERSTANDARDS FREQUENCY LINE RATELINE PER LINE FRAME FREQUENCY(MHz) (kHz)(MHz)

601 Sampling

NTSC-J, M 858 720 525 13.5 3.579545 15.73426 NTSC-4.43 858 720 525 13.5 4.43361875 15.73426 PAL-M 858 720 525 13.5 3.57561149 15.73426 PAL-60 858 720 525 13.5 4.43361875 15.73426 PAL-B,D, G, H, I 864 720 625 13.5 4.43361875 15.625 PAL-N 864 720 625 13.5 4.43361875 15.625 PAL-Nc 864 720 625 13.5 3.58205625 15.625 Dr = 4.406250SECAM 864 720 625 13.5 15.625Db = 4.250000

2.5.1 SeparateSyncs

VS, HS, and VBLK are independentlysoftwareprogrammable to a 1× pixelcount.This allowsany possiblealignmenttotheinternalpixelcountand linecount.The defaultsettingsfor525-lineand 625-line videooutputsare givenas examples below.FID changes at the same transienttimewhen the trailing edge ofverticalsyncoccurs.The polarityofFID isprogrammableby an I2C interface. Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 25 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

1 2 3 4 5 6 7 8 9 10 11 21 22

525 Line

263 264 265 266 267 268 269 270 271 272 283 284 285 HS VS Start VS Stop CS VBLK Start VBLK Stop TVP5147M1 SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com NOTE: LinenumberingconformstoITU-R BT.470. Figure2-12.VerticalSynchronizationSignalsfor525-LineSystem

26 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

625 Line

311 312 313 314 315 316 317 318 319 320 321 336 337 HS VS Start VS Stop CS VBLK Start VBLK Stop 622 623 624 625 1 2 3 4 5 6 7 23 24 258 338 TVP5147M1 www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 NOTE: LinenumberingconformstoITU-R BT.470. Figure2-13.VerticalSynchronizationSignalsfor625-LineSystem Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 27 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

Y[9:0] NTSC 601 106 PAL 601 DATACLK = 2× Pixel Clock 112 128 128 Mode A B C 276 288 D Cb DATACLK EAV 1Y Cr Y EAV EAV EAV SAV SAV SAV SAV

4 Cb0 Y0 Cr0 Y1

B AVID D AVID Stop AVID Start TVP5147M1 SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com NOTE: ITU-R BT.656 10-bit4:2:2timingwith2× pixelclockreference Figure2-14.HorizontalSynchronizationSignalsfor10-Bit4:2:2Mode

28 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

CbCr[9:0] NTSC 601 53 PAL 601 DATACLK = 1× Pixel Clock Mode A B C 136 142 D Cb DATACLK Cr Cb Cr Cb0 Cr0 Cb1 Cr1 HS Start Horizontal Blanking HS HS Stop A C B AVID D NOTE: AVID rising edge occurs four clock cycles early . Y[9:0] Y Y Y Y Y0 Y1 Y2 Y3Horizontal Blanking AVID Stop AVID Start TVP5147M1 www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 NOTE: 20-bit4:2:2timingwith1× pixelclockreference Figure2-15.HorizontalSynchronizationSignalsfor20-Bit4:2:2Mode Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 29 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

10-Bit (PCLK = 2 × Pixel Clock) Mode B/2 First Field B/2 858 864 H/2 20-Bit (PCLK = 1 × Pixel Clock) B/2 429 432 H/2 HS VS Second Field HS VS B/2 TVP5147M1 SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Figure2-16.VSYNC PositionWith Respect toHSYNC

2.5.2 Embedded Syncs

Standardswithembedded syncs inserttheSAV and EAV codes intothedatastreamon therisingand fallingedges ofAVID. These codes containtheV and F bits,whichalsodefineverticaltiming.Table2-3 givestheformatoftheSAV and EAV codes. H equals1 alwaysindicatesEAV. H equals0 alwaysindicatesSAV. The alignmentofV and F totheline and fieldcountervariesdependingon thestandard. The P bitsareprotectionbits: P3 = V xorH; P2 = F xorH; P1 = F xorV;P0 = F xorV xorH Table2-3.EAV and SAV Sequence D9 (MSB) D8 D7 D6 D5 D4 D3 D2 D1 D0 Preamble 1 1 1 1 1 1 1 1 1 1 Preamble 0 0 0 0 0 0 0 0 0 0 Preamble 0 0 0 0 0 0 0 0 0 0 Statusword 1 F V H P3 P2 P1 P0 0 0

2.6 I2C Host Interface

CommunicationwiththeTVP5147M1 decoderisviaan I2C hostinterface.The I2C standardconsistsof two signals,the serialinput/outputdata (SDA) lineand the serialinputclockline(SCL),which carry informationbetween the devicesconnectedto the bus.A thirdsignal(I2CA)isused forslaveaddress selection.Althoughan I2C system can be multimastered,theTVP5147M1 decoderfunctionsas a slave deviceonly.

30 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Because SDA and SCL arekeptopen drainata logic-highoutputlevelorwhen thebus isnotdriven,the usermust connectSDA and SCL toa positivesupplyvoltageviaa pullupresistoron theboard.The slave addressesselectsignal,terminal37 (I2CA),enablestheuse oftwo TVP5147M1 devicestiedtothesame I2C bus,because itcontrolstheleast-significantbitoftheI2C deviceaddress. Table2-4.I2C Host InterfaceTerminalDescription SIGNAL TYPE DESCRIPTION I2CA I Slaveaddressselection SCL I Inputclockline SDA I/O Input/outputdataline

2.6.1 Reset and I2C Bus Address Selection

The TVP5147M1 decodercan respondtotwo possiblechipaddresses.The addressselectionismade at resetby an externallysuppliedlevelon theI2CA terminal.The TVP5147M1 decodersamples thelevelof terminal37 atpower up oratthetrailingedge ofRESETB and configurestheI2C bus addressbitA0. Table2-5.I2C Address Selection A6 A5 A4 A3 A2 A1 A0 (I2CA) R/W HEX 1 0 1 1 1 0 0 (default) 1/0 B9/B8 1 0 1 1 1 0 1(1) 1/0 BB/BA (1) Ifterminal37 isstrappedtoDVDD viaa 2.2-kΩ resistor,I2C deviceaddressA0 issetto1.

2.6.2 I2C Operation

Data transfersoccurusingthefollowingillustratedformats. S 10111000 ACK Subaddress ACK Send Data ACK P Read fromI2C controlregisters S 10111000 ACK Subaddress ACK S 10111001 ACK ReceiveData NAK P S = I2C bus startcondition P = I2C bus stopcondition ACK = Acknowledgegeneratedby theslave NAK = Acknowledgegeneratedby themaster,formultiple-bytereadmasterwithACK each byteexceptlastbyte Subaddress= Subaddressbyte Data = Data byte.Ifmore thanone byteofdataistransmitted(readand write),the subaddresspointerisautomaticallyincremented. I2C bus address= Example shown thatI2CA isindefaultmode. Write(B8h),read(B9h) Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 31 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

B8S ACK E8 ACK VA0 ACK VA1 ACK VA2 ACK P VBUS Write B8S ACK E0 ACK Send Data ACK P Multiple Bytes B8S ACK E8 ACK VA0 ACK VA1 ACK VA2 ACK P B8S ACK E1 ACK Send Data ACK ACK PSend Data• •□• Single Byte B8S ACK E8 ACK VA0 ACK VA1 ACK VA2 ACK P VBUS Read B8S ACK E0 ACK ACK Multiple Bytes B8S ACK E8 ACK VA0 ACK VA1 ACK VA2 ACK P B8S ACK E1 ACK ACK NAK PRead Data•□•□• Read Data NAK PS B9 S B9 ACK Read Data HOST Processor I2C VBUS Data I2C Registers 00h E0h E1h VBUS Address E8h EAh FFh VBUS[23:0] Line Mode VBUS Registers 00 0000h FIFO VPS VITC WSS CC 80 051Ch 80 0520h 80 052Ch 80 0600h 80 0700h 90 1904h FF FFFFh NOTE: Examples use default I 2C address ACK = Acknowledge generated by the slave NAK = No acknowledge generated by the master TVP5147M1 SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com

2.6.3 VBUS Access

The TVP5147M1 decoder has additionalinternalregistersaccessiblethroughan indirectaccess to an internal24-bitaddresswideVBUS. Figure2-17shows theVBUS registeraccess. Figure2-17.VBUS Access

32 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012

2.7 VBI Data Processor

The TVP5147M1 VBI data processor(VDP) slicesvariousdata servicesliketeletext(WST, NABTS), closedcaption(CC),wide screensignaling(WSS), program deliverycontrol(PDC),verticalintervaltime code (VITC),video program system (VPS), copy generationmanagement system (CGMS) data,and electronicprogramguide(Gemstar)1x/2x.Table2-6shows thesupportedVBI system. These servicesare acquiredby programming the VDP to enablethe receptionof one or more vertical blankinterval(VBI)datastandard(s)duringtheVBI.The VDP can be programmed on a line-per-linebasis toenablesimultaneousreceptionofdifferentVBI formats,one per line.The resultsare storedina FIFO and/orregisters.Because of the high data bandwidth,teletextresultsare storedin FIFO only.The TVP5147M1 decoderprovidesfullydecoded V-Chipdatatothededicatedregistersatsubaddresses80 0540h−80 0543h. Table2-6.Supported VBI System VBI SYSTEM STANDARD LINE NUMBER NUMBER OF BYTES TeletextWST A SECAM 6-23(Fields1 and 2) 38 TeletextWST B PAL 6-22(Fields1 and 2) 43 TeletextNABTS C NTSC 10-21(Fields1 and 2) 34 TeletextNABTS D NTSC-J 10-21(Fields1 and 2) 35 ClosedCaption PAL 22 (Fields1 and 2) 2 ClosedCaption NTSC 21 (Fields1 and 2) 2 WSS PAL 23 (Fields1 and 2) 14 bits WSS-CGMS NTSC 20 (Fields1 and 2) 20 bits VITC PAL 6-22 9 VITC NTSC 10-20 9 VPS (PDC) PAL 16 13 V-Chip(decoded) NTSC 21 (Fields1 and 2) 2 Gemstar 1x NTSC 2 Gemstar 2x NTSC 5 withframebyte User Any Programmable Programmable Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 33 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com

2.7.1 VBI FIFO and AncillaryData inVideo Stream

SlicedVBI datacan be outputas ancillarydatainthevideostreaminITU-R BT.656 mode. VBI datais outputon theY[9:2]terminalsduringthehorizontalblankingperiod.Table2-7 shows theheader format and sequence oftheancillarydatainsertedintothevideostream.Thisformatisalsoused tostoreany VBI dataintotheFIFO.The sizeoftheFIFO is512 bytes.Therefore,theFIFO can storeup to11 linesof teletextdatawiththeNTSC NABTS standard. Table2-7.AncillaryData Format and Sequence BYTE D7 D6 D5 D4 D3 D2 D1 D0 (LSB) DESCRIPTIONNO. (MSB) 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 Ancillarydatapreamble 2 1 1 1 1 1 1 1 1

3 NEP EP 0 1 0 DID2 DID1 DID0 Data ID (DID)

4 NEP EP F5 F4 F3 F2 F1 F0 SecondarydataID (SDID)

5 NEP EP N5 N4 N3 N2 N1 N0 Number of32 bitdata(NN)

6 Videoline# [7:0] InternaldataID0 (IDID0)

7 0 0 0 Data error Match #1 Match #2 Videoline# [9:8] InternaldataID1 (IDID1) 8 1.Data Data byte 1stword 9 2.Data Data byte 10 3.Data Data byte 11 4.Data Data byte ⋮ ⋮ ⋮ m. Data Data byte Nth word CS[7:0] Check sum 4N+7 0 0 0 0 0 0 0 0 Fillbyte EP: Even parityforD0 –D5 NEP: Negated even parity DID: 91h:SliceddataofVBI linesoffirstfield 53h:Sliceddataofline24 toend offirstfield 55h:SliceddataofVBI linesofsecond field 97h:Sliceddataofline24 toend ofsecond field SDID: Thisfieldholdsthedataformattakenfromthelinemode registerbits[2:0]ofthecorrespondingline. NN: Number ofDwords beginningwithbyte8 through4N+7. Thisvalueisthenumber ofDwords where each Dword is4 bytes. IDID0: Transactionvideolinenumber [7:0] IDID1: Bit0/1= Transactionvideolinenumber [9:8] Bit2 = Match 2 flag Bit3 = Match 1 flag Bit4 = 1 ifan errorwas detectedintheEDC block.0ifno errorwas detected. CS: Sum ofD0 –D7 ofDID throughlastdatabyte Fillbyte: Fillbytesmake a multipleoffourbytesfrombyte0 tolastfillbyte.Forteletextmodes, byte8 isthesyncpatternbyte.Byte9 is thefirstdatabyte.

34 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

200 ns (min) RESETB (Pin 34) 1 ms (min) Invalid I 2C Cycle Valid Normal Operation Reset 1 ms (min) SDA (Pin 29) POWER (3.3 V and 1.8 V) TVP5147M1 www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012

2.7.2 VBI Raw Data Output

The TVP5147M1 decoder can outputraw A/D videodata at twicethe samplingrateforexternalVBI slicing.Thisistransmittedas an ancillarydata block,althoughsomewhat differentlyfrom the way the slicedVBI data is transmittedin the FIFO formatas describedin Section2.7.1. The samples are transmittedduringtheactiveportionoftheline.VBI raw datauses ITU-R BT.656 formathavingonlyluma data.The chroma samples are replacedby luma samples.The TVP5147M1 decoderinsertsa four-byte preamble 000h 3FFh 3FFh 180h beforedata start.There are no checksum bytesand fillbytesinthis mode. Table2-8.VBI Raw Data Output Format BYTE D9 D0D8 D7 D6 D5 D4 D3 D2 D1 DESCRIPTIONNO. (MSB) (LSB) 0 0 0 0 0 0 0 0 0 0 0 VBI raw datapreamble 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 3 0 1 1 0 0 0 0 0 0 0 2× pixelrateluma data 4 1.Data (thatis,NTSC 601:n = 1707) 5 2.Data ⋮ ⋮ n-1 n-5.Data n n-4.Data

2.8 Reset and Initialization

Reset isinitiatedatpower up or any timeterminal34 (RESETB) isbroughtlow.Table2-9describesthe statusoftheTVP5147M1 terminalsduringand immediatelyafterreset. Table2-9.Reset Sequence SIGNAL NAME DURING RESET RESET COMPLETED Y[9:0],C[9:0] Input Highimpedance RESETB, PWDN, SDA, SCL, FSS, AVID,GLCO, HS, VS, FID Input Input INTREQ Input Output DATACLK Output Highimpedance Figure2-18.Reset Timing Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 35 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com The followingregisterwritesmust be made beforenormaloperationofthedevice. I2C I2CSTEP SUBADDRESS DATA 1 0x03 0x01 2 0x03 0x00 When usingany industrialtemperaturerange device(TVP5147M1IPFP and TVP5147M1IPFPQ1), the followingI2C registerwritesmust be executedfollowingdevicepower up and RESETB toproperlyinitialize VBUS register0xA00014. When patchcode isbeingused,theseI2C writesmust be executedafterthe patchcode has been loaded. NOTE The followingI2C writesare mandatory forindustrialtemperaturerange devicesbut are optionalforcommercialtemperaturerangedevices(TVP5147M1PFP). I2C I2CSTEP SUBADDRESS DATA 1 0xE8 0x14 2 0xE9 0x00 3 0xEA 0xA0 4 0xE0 0x14

2.9 AdjustingExternalSyncs

The propersequence toprogramthefollowingexternalsyncsis:

  • To setNTSC, PAL-M, NTSC 443,PAL60 (525-linemodes): – SetthevideostandardtoNTSC (register02h). – SetHSYNC, VSYNC, VBLK, and AVID externalsyncs(registers16h through24h).
  • To setPAL, PAL-N, SECAM (625-linemodes): – SetthevideostandardtoPAL (register02h). – SetHSYNC, VSYNC, VBLK, and AVID externalsyncs(registers16h through24h).
  • Forautoswitch,setthevideostandardtoautoswitch(register02h).

36 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012

2.10 InternalControlRegisters

The TVP5147M1 decoderisinitializedand controlledby a setofinternalregistersthatdefinetheoperating parametersoftheentiredevice.Communicationbetween theexternalcontrollerand theTVP5147M1 is througha standardI2C hostportinterface,as describedearlier.Table2-10shows thesummary ofthese registers.Detailedprogramming informationforeach registeris describedin the followingsections. Additionalregistersare accessiblethroughan indirectprocedureinvolvingaccess to an internal24-bit addresswideVBUS. Table2-11shows thesummary oftheVBUS registers. NOTE Do notwritetoreservedregisters.Reserved bitsinany definedregistermust be writtenwith 0s,unlessotherwisenoted. Table2-10.I2C RegisterSummary (1) I2CREGISTER NAME DEFAULT R/WSUBADDRESS Inputselect 00h 00h R/W AFE gaincontrol 01h 0Fh R/W Videostandard 02h 00h R/W Operationmode 03h 00h R/W Autoswitchmask 04h 23h R/W Colorkiller 05h 10h R/W Luminance processingcontrol1 06h 00h R/W Luminance processingcontrol2 07h 00h R/W Luminance processingcontrol3 08h 02h R/W Luminance brightness 09h 80h R/W Luminance contrast 0Ah 80h R/W Chrominancesaturation 0Bh 80h R/W Chroma hue 0Ch 00h R/W Chrominanceprocessingcontrol1 0Dh 00h R/W Chrominanceprocessingcontrol2 0Eh 0Eh R/W Reserved 0Fh-15h AVID startpixel 16h-17h 055h R/W AVID stoppixel 18h-19h 325h R/W HSYNC startpixel 1Ah-1Bh 000h R/W HSYNC stoppixel 1Ch-1Dh 040h R/W VSYNC startline 1Eh-1Fh 004h R/W VSYNC stopline 20h-21h 007h R/W VBLK startline 22h-23h 001h R/W VBLK stopline 24h-25h 015h R/W Embedded Sync OffsetControl1 26h 00h R/W Embedded Sync OffsetControl2 27h 00h R/W Reserved 28h-2Ah Overlaydelay 2Bh 00h R/W Reserved 2Ch CTI delay 2Dh 00h R/W CTI control 2Eh 00h R/W Reserved 2Fh-31h (1) R = Read only,W = Writeonly,R/W = Read and write Reservedregisteraddressesmust notbe writtento. Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 37 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-10.I2C RegisterSummary (1)(continued) I2CREGISTER NAME DEFAULT R/WSUBADDRESS Sync control 32h 00h R/W Outputformatter1 33h 40h R/W Outputformatter2 34h 00h R/W Outputformatter3 35h FFh R/W Outputformatter4 36h FFh R/W Outputformatter5 37h FFh R/W Outputformatter6 38h FFh R/W Clearlostlockdetect 39h 00h R/W Status1 3Ah R Status2 3Bh R AGC gainstatus 3Ch-3Dh R Reserved 3Eh Videostandardstatus 3Fh R GPIO input1 40h R GPIO input2 41h R Reserved 42h-45h AFE coarsegainforCH1 46h 20h R/W AFE coarsegainforCH2 47h 20h R/W AFE coarsegainforCH3 48h 20h R/W AFE coarsegainforCH4 49h 20h R/W AFE finegainforPb 4Ah-4Bh 900h R/W AFE finegainforchroma 4Ch-4Dh 900h R/W AFE finegainforPr 4Eh-4Fh 900h R/W AFE finegainforCVBS_Luma 50h-51h 900h R/W Reserved 52h-56h FieldID control 57h 00h R/W Reserved 58h-68h F-bitand V-bitcontrol1 69h 00h R/W Reserved 6Ah-6Bh Back-endAGC control 6Ch 08h R/W Reserved 6Dh-6Eh AGC decrementspeed control 6Fh 04h R/W ROM version 70h R RAM VersionMSB 71h R Reserved 72h-73h AGC whitepeak processing 74h 00h R/W F and V bitcontrol 75h 12h R/W VCR trickmode control 76h 8Ah R/W Horizontalshake increment 77h 64h R/W AGC incrementspeed 78h 05h R/W AGC incrementdelay 79h 1Eh R/W Reserved 7Ah-7Eh Analogoutputcontrol1 7Fh 00h R/W ChipID MSB 80h 51h R ChipID LSB 81h 47h R RAM VersionLSB 82h R CPLL speed control 83h 09h R/W

38 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-10.I2C RegisterSummary (1)(continued) I2CREGISTER NAME DEFAULT R/WSUBADDRESS Reserved 84h-96h Statusrequest 97h 00h R/W Reserved 98h-99h Verticallinecount 9Ah-9Bh R Reserved 9Ch-9Dh AGC decrementdelay 9Eh 00h R/W Reserved 9Fh-B0h VDP TTX filter1 mask 1 B1h 00h R/W VDP TTX filter1 mask 2 B2h 00h R/W VDP TTX filter1 mask 3 B3h 00h R/W VDP TTX filter1 mask 4 B4h 00h R/W VDP TTX filter1 mask 5 B5h 00h R/W VDP TTX filter2 mask 1 B6h 00h R/W VDP TTX filter2 mask 2 B7h 00h R/W VDP TTX filter2 mask 3 B8h 00h R/W VDP TTX filter2 mask 4 B9h 00h R/W VDP TTX filter2 mask 5 BAh 00h R/W VDP TTX filtercontrol BBh 00h R/W VDP FIFO word count BCh R VDP FIFO interruptthreshold BDh 80h R/W Reserved BEh VDP FIFO reset BFh 00h R/W VDP FIFO outputcontrol C0h 00h R/W VDP linenumber interrupt C1h 00h R/W VDP pixelalignment C2h-C3h 01Eh R/W Reserved C4h-D5h VDP linestart D6h 06h R/W VDP linestop D7h 1Bh R/W VDP globallinemode D8h FFh R/W VDP fullfieldenable D9h 00h R/W VDP fullfieldmode DAh FFh R/W Reserved DBh-DFh VBUS dataaccesswithno VBUS addressincrement E0h 00h R/W VBUS dataaccesswithVBUS addressincrement E1h 00h R/W FIFO readdata E2h R Reserved E3h-E7h VBUS addressaccess E8h-EAh 00 0000h R/W Reserved EBh-EFh Interruptraw status0 F0h R Interruptraw status1 F1h R Interruptstatus0 F2h R Interruptstatus1 F3h R Interruptmask 0 F4h 00h R/W Interruptmask 1 F5h 00h R/W Interruptclear0 F6h 00h R/W Interruptclear1 F7h 00h R/W Reserved F8h-FFh Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 39 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-11.VBUS RegisterSummary (1) REGISTER NAME I2C SUBADDRESS DEFAULT R/W Reserved 00 0000h-80051Bh VDP closedcaptiondata 80 051Ch-80 051Fh R VDP WSS/CGMS data 80 0520h-800526h R Reserved 80 0527h-80052Bh VDP VITC data 80 052Ch-80 0534h R Reserved 80 0535h-80053Fh VDP V-Chipdata 80 0540h-800543h R Reserved 80 0544h-8005FFh VDP generallinemode and lineaddress 80 0600h-800611h 00h,FFh R/W Reserved 80 0612h-8006FFh VDP VPS/Gemstar (PDC) data 80 0700h-80070Ch R Reserved 80 070Dh-90 1903h VDP FIFO read 90 1904h R Reserved 90 1905h-A0 005Dh Analogoutputcontrol2 A0 05Eh B2h R/W Reserved A0 005Fh-B0 005Fh Interruptconfiguration B0 0060h 00h R/W Reserved B0 0061h-FF FFFFh (1) Writingany valuetoa reservedregistermay cause erroneousoperationoftheTVP5147M1 decoder.Itisrecommended nottoaccess any datato/fromreservedregisters.

40 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012

2.11 RegisterDefinitions

Table2-12.InputSelectRegister Subaddress 00h Default 00h 7 6 5 4 3 2 1 0 Inputselect[7:0] Ten inputterminalscan be configuredtosupportcomposite,S-video,and component YPbPr as listedinTable2-13.User must followthis tableproperlyforS-videoand component applicationsbecause onlytheterminalconfigurationslistedinTable2-13aresupported. Table2-13.Analog Channel and Video Mode Selection INPUT SELECT [7:0] MODE INPUT(S) SELECTED OUTPUT (1) 7 6 5 4 3 2 1 0 HEX VI_1_A (default) 0 0 0 0 0 0 0 0 00 N/A VI_1_B 0 0 0 0 0 0 0 1 01 VI_1_B VI_1_C 0 0 0 0 0 0 1 0 02 VI_1_C VI_2_A 0 0 0 0 0 1 0 0 04 VI_2_A VI_2_B 0 0 0 0 0 1 0 1 05 VI_2_B CVBS VI_2_C 0 0 0 0 0 1 1 0 06 VI_2_C VI_3_A 0 0 0 0 1 0 0 0 08 VI_3_A VI_3_B 0 0 0 0 1 0 0 1 09 VI_3_B VI_3_C 0 0 0 0 1 0 1 0 0A VI_3_C VI_4_A 0 0 0 0 1 1 0 0 0C VI_4_A VI_2_A(Y),VI_1_A(C) 0 1 0 0 0 1 0 0 44 N/A VI_2_B(Y),VI_1_B(C) 0 1 0 0 0 1 0 1 45 VI_2_B(Y) VI_2_C(Y),VI_1_C(C) 0 1 0 0 0 1 1 0 46 VI_2_C(Y) VI_2_A(Y),VI_3_A(C) 0 1 0 1 0 1 0 0 54 VI_2_A(Y) VI_2_B(Y),VI_3_B(C) 0 1 0 1 0 1 0 1 55 VI_2_B(Y) VI_2_C(Y),VI_3_C(C) 0 1 0 1 0 1 1 0 56 VI_2_C(Y) S-video VI_4_A(Y),VI_1_A(C) 0 1 0 0 1 1 0 0 4C N/A VI_4_A(Y),VI_1_B(C) 0 1 0 0 1 1 0 1 4D VI_4_A(Y) VI_4_A(Y),VI_1_C(C) 0 1 0 0 1 1 1 0 4E VI_4_A(Y) VI_4_A(Y),VI_3_A(C) 0 1 0 1 1 1 0 0 5C VI_4_A(Y) VI_4_A(Y),VI_3_B(C) 0 1 0 1 1 1 0 1 5D VI_4_A(Y) VI_4_A(Y),VI_3_C(C) 0 1 0 1 1 1 1 0 5E VI_4_A(Y) VI_1_A(Pb),VI_2_A(Y),VI_3_A(Pr) 1 0 0 1 0 1 0 0 94 N/A YPbPr VI_1_B(Pb),VI_2_B(Y),VI_3_B(Pr) 1 0 0 1 0 1 0 1 95 VI_2_B(Y) VI_1_C(Pb),VI_2_C(Y),VI_3_C(Pr) 1 0 0 1 0 1 1 0 96 VI_2_C(Y) (1) When VI_1_A issettooutput,thetotalnumber ofinputsisnine.The videooutputcan be eitherCVBS orluma. Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 41 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-14.AFE Gain ControlRegister Subaddress 01h Default 0Fh 7 6 5 4 3 2 1 0 Reserved 1 1 AGC chroma AGC luma Bit3: 1b must be writtentothisbit Bit2: 1b must be writtentothisbit AGC chroma enable: Controlsautomaticgaininthechroma/PbPrchannel 0 = Manual (ifAGC luma issettomanual,AGC chroma isforcedtobe inmanual) 1 = Enabledautogain,applieda gainvalueacquiredfromthesyncchannelforS-videoand component mode. When AGC luma isset,thisstateisvalid.(default) AGC luma enable: Controlsautomaticgainintheembedded syncchannelofCVBS, S-video,component video 0 = Manual gain,AFE coarseand finegainfrozentothepreviousgainvaluesetby AGC when thisbitissetto0. 1 = Enabledautogainappliedtoonlytheembedded syncchannel(default) These settingsaffectonlytheanalogfront-end(AFE).The brightnessand contrastcontrolsarenotaffectedby thesesettings. Table2-15.Video Standard SelectRegister Subaddress 02h Default 00h 7 6 5 4 3 2 1 0 Reserved Videostandard[2:0] Videostandard[2:0]: CVBS and S-Video Component Video

000 Autoswitchmode (default) Autoswitchmode (default)

001 (M,J)NTSC Interlaced525 010 (B,D, G, H, I,N) PAL Interlaced625 011 (M)PAL Reserved 100 (Combination-N)PAL Reserved 101 NTSC 4.43 Reserved

110 SECAM Reserved

111 PAL 60 Reserved

Withtheautoswitchcode running,theusercan forcethedecodertooperateina particularvideostandardmode by writingtheappropriate valueintothisregister.Changingthesebitscausestheregistersettingstobe reinitialized.

42 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-16.OperationMode ControlRegister Subaddress 03h Default 00h 7 6 5 4 3 2 1 0 Reserved H-PLL responsetime Reserved Power save H-PLL responsetime 00 = Adaptivemode (default). 01 = Reservedmode. 10 = Fastmode. 11 = Normal mode. When intheNormal mode, thehorizontalPLL (H-PLL)responsetimeissettoitsslowestsetting.Thismode improvesnoiseimmunity and providesa more stableoutputlinefrequencyforstandardTV signalsources(forexample,TV tuners,DVD players,video surveillancecameras,etc.). When intheFastmode, theH-PLL responsetimeissettoitsfastestsetting.Thismode enablestheH-PLL torespondmore quicklyto largevariationsinthehorizontaltiming(forexample,VCR head switchingintervals).Thismode isrecommended forVCRs and also cameras lockedtotheAC power-linefrequency. When intheAdaptivemode, theH-PLL responsetimeisautomaticallyadjustedbased on themeasured horizontalphase error.Inthis mode, theH-PLL responsetimetypicallyapproachesitsslowestsettingformost standardTV signalsourcesand approachesitsfastest settingformost VCR signalsources. Power save 0 = Normal operation(default) 1 = Power save mode. Reduces theclockspeed oftheinternalprocessorand switchesofftheADCs. I2C interfaceisactive,and all currentoperatingsettingsarepreserved. Table2-17.AutoswitchMask Register Subaddress 04h Default 23h 7 6 5 4 3 2 1 0 Reserved PAL 60 SECAM NTSC 4.43 (Nc)PAL (M)PAL PAL (M,J)NTSC Thisregisterlimitsthevideoformatsbetween whichautoswitchispossible. PAL 60 0 = Autoswitchdoes notincludePAL 60 (default) 1 = AutoswitchincludesPAL 60 SECAM 0 = Autoswitchdoes notincludeSECAM 1 = AutoswitchincludesSECAM (default) NTSC 4.43 0 = Autoswitchdoes notincludeNTSC 4.43(default) 1 = AutoswitchincludesNTSC 4.43 (Nc)PAL 0 = Autoswitchdoes notinclude(Nc)PAL (default) 1 = Autoswitchincludes(Nc)PAL (M)PAL 0 = Autoswitchdoes notinclude(M)PAL (default) 1 = Autoswitchincludes(M)PAL PAL 0 = Reserved 1 = Autoswitchincludes(B,D, G, H, I,N) PAL (default) (M,J)NTSC 0 = Reserved 1 = Autoswitchincludes(M,J)NTSC (default) Note:Bits1 and 0 must alwaysbe 11b. Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 43 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-18.ColorKillerRegister Subaddress 05h Default 10h 7 6 5 4 3 2 1 0 Reserved Automaticcolorkiller Colorkillerthreshold[4:0] Automaticcolorkiller: 00 = Automaticmode (default) 01 = Reserved 10 = Colorkillerenabled,theUV terminalsareforcedtoa zerocolorstate 11 = Colorkillerdisabled Colorkillerthreshold[4:0]: 11111 = 31 (maximum) 10000 = 16 (default) 00000 = 0 (minimum) Table2-19.Luminance ProcessingControl1 Register Subaddress 06h Default 00h 7 6 5 4 3 2 1 0 Reserved Pedestalnot Reserved VBI raw Luminance signaldelay[3:0] present Pedestalnotpresent: 0 = 7.5IRE pedestalispresenton theanalogvideoinputsignal(default) 1 = Pedestalisnotpresenton theanalogvideoinputsignal VBI raw: 0 = Disable(default) 1 = Enable Duringthedurationoftheverticalblankingas definedby VBLK startand stopregisters22h through25h,thechroma samplesare replacedby luma samples.Thisfeaturemay be used tosupportVBI processingperformedby an externaldeviceduringthevertical blankinginterval.To use thisbit,theoutputformatmust be the10-bit,ITU-R BT.656 mode. Luminance signaldelay[3:0]:Luminance signaldelaysrespecttochroma signalin1× pixelclockincrements. 0111 = Reserved 0110 = 6 pixelclocksdelay 0001 = 1 pixelclockdelay 0000 = 0 pixelclockdelay(default) 1111 = –1 pixelclockdelay 1000 = –8 pixelclockdelay

44 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-20.Luminance ProcessingControl2 Register Subaddress 07h Default 00h 7 6 5 4 3 2 1 0 Luma filterselect[1:0] Reserved Peakinggain[1:0] Reserved Luma filterselected[1:0]: 00 = Luminance adaptivecomb enable(defaulton CVBS) 01 = Luminance adaptivecomb disable(trapfilterselected) 10 = Luma comb/trapfilterbypassed(defaulton S-Video,component mode, and SECAM) 11 = Reserved Peakinggain[1:0]: 00 = 0 (default) 01 = 0.5 10 = 1 11 = 2 Table2-21.Luminance ProcessingControl3 Register Subaddress 08h Default 02h 7 6 5 4 3 2 1 0 Reserved Trapfilterselect[1:0] Trapfilterselect[1:0]: Selectsone ofthefourtrapfilterstoproducetheluminancesignalby removingthechrominancesignalfromthecompositevideo signal.The stopband ofthechroma trapfilteriscenteredatthechroma subcarrierfrequencywiththestop-bandbandwidthcontrolled by thetwo controlbits. Trapfilterstopband bandwidth(MHz): Filterselect[1:0] NTSC ITU-R 601 PAL ITU-R 601 00 1.2129 1.2129 01 0.8701 0.8701 10 (default) 0.7183 0.7383 11 0.5010 0.5010 Table2-22.Luminance BrightnessRegister Subaddress 09h Default 80h 7 6 5 4 3 2 1 0 Brightness[7:0] Brightness[7:0]: ThisregisterworksforCVBS and S-Videoluminance. 0000 0000 = 0 (dark) 1000 0000 = 128 (default) 1111 1111 = 255 (bright) Forcompositeand S-Videooutputs,theoutputblacklevelrelativetothenominalblacklevel(64outof1024)as a functionofthe Brightness[7:0]settingisas follows. BlackLevel= nominal_black_level+ (MB + 1)× (Brightness[7:0]– 128) Where M B isthebrightnessmultipliersettingintheBrightnessand ContrastRange ExtenderregisteratI2C subaddress2Fh. Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 45 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-23.Luminance ContrastRegister Subaddress 0Ah Default 80h 7 6 5 4 3 2 1 0 Contrast[7:0] Contrast[7:0]: ThisregisterworksforCVBS and S-Videoluminance.See subaddress2Fh. 0000 0000 = 0 (minimum contrast) 1000 0000 = 128 (default) 1111 1111 = 255 (maximum contrast) Forcompositeand S-Videooutputs,thetotalluminancegainrelativetothenominalluminancegainas a functionoftheContrast[7:0] settingisas follows. Luminance Gain = (nominal_luminance_gain)× [Contrast[7:0]/64 /(2^MC )+ M C – 1] Where M C isthecontrastmultipliersettingintheBrightnessand ContrastRange ExtenderregisteratI2C subaddress2Fh. Table2-24.Chrominance SaturationRegister Subaddress 0Bh Default 80h 7 6 5 4 3 2 1 0 Saturation[7:0] Saturation[7:0]: ThisregisterworksforCVBS and S-Videochrominance. 0000 0000 = 0 (nocolor) 1000 0000 = 128 (default) 1111 1111 = 255 (maximum) Forcompositeand S-Videooutputs,thetotalchrominancegainrelativetothenominalchrominancegainas a functionoftheSaturation [7:0]settingisas follows. ChrominanceGain = (nominal_chrominance_gain)× (Saturation[7:0]/128) Table2-25.Chroma Hue Register Subaddress 0Ch Default 00h 7 6 5 4 3 2 1 0 Hue [7:0] Hue [7:0]: Does notapplytoa component orSECAM video 0111 1111 = +180 degrees 0000 0000 = 0 degrees(default) 1000 0000 = –180 degrees

46 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-26.Chrominance ProcessingControl1 Register Subaddress 0Dh Default 00h 7 6 5 4 3 2 1 0 Reserved ColorPLL Chroma adaptivecomb enable Reserved Automaticcolorgain reset control[1:0] ColorPLL reset: 0 = ColorsubcarrierPLL notreset(default) 1 = ColorsubcarrierPLL reset Chrominanceadaptivecomb enable: Thisbitiseffectiveon compositevideoonly. 0 = Enable(default) 1 = Disable Automaticcolorgaincontrol(ACGC) [1:0]: 00 = ACGC enabled(default) 01 = Reserved 10 = ACGC disabled,ACGC settothenominalvalue 11 = ACGC frozentothepreviouslysetvalue Table2-27.Chrominance ProcessingControl2 Register Subaddress 0Eh Default 0Eh 7 6 5 4 3 2 1 0 Reserved PAL WCF Chrominancefilterselect[1:0] compensation PAL compensation: 0 = Disabled 1 = Enabled(default) Wideband chroma LPF filter(WCF): 0 = Disabled 1 = Enabled(default) Chrominancefilterselect[1:0]: 00 = Disabled 01 = Notch1 10 = Notch2 (default) 11 = Notch3 See Figure2-6and Figure2-7forcharacteristics. Table2-28.R/PrGain (ColorSaturation)Register Subaddress 10h Default 80h 7 6 5 4 3 2 1 0 R/Prgain[7:0] R/Prcomponent gain(colorsaturation): 0000 0000 = minimum 1000 0000 = default 1111 1111 = maximum Forcomponent video,thetotalR/PrgainrelativetothenominalR/Prgainas a functionoftheR/Prgain[7:0]settingisas follows: R/PrGain = (nominal_chrominance_gain)× (R/Prgain[7:0]/128) Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 47 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-29.G/Y Gain (Contrast)Register Subaddress 11h Default 80h 7 6 5 4 3 2 1 0 G/Y gain[7:0] G/Y component gain(contrast): 0000 0000 = minimum 1000 0000 = default 1111 1111 = maximum Forcomponent videooutputs,thetotalluma gainrelativetothenominalluma gainas a functionoftheG/Y gain[7:0]isas follows: Luma gain= (nominal_luminance_gain)× (G/Ygain[7:0]/128) Table2-30.B/Pb Gain (ColorSaturation)Register Subaddress 12h Default 80h 7 6 5 4 3 2 1 0 B/Pb gain[7:0] B/Pb component gain(colorsaturation): 0000 0000 = minimum 1000 0000 = default 1111 1111 = maximum Forcomponent video,thetotalB/Pb gainrelativetothenominalB/Pb gainas a functionoftheB/Pb gain[7:0]settingisas follows: B/Pb Gain = (nominal_chrominance_gain)× (B/Pbgain[7:0]/128) Table2-31.G/Y OffsetRegister Subaddress 14h Default 80h 7 6 5 4 3 2 1 0 G/Y offset[7:0] G/Y component offset(brightness): 0000 0000 = minimum 1000 0000 = default 1111 1111 = maximum Forcomponent video,theoutputblacklevelrelativetothenominalblacklevel(64outof1024)as a functionofG/Y offset[7:0]isas follows: BlackLevel= nominal_black_level+ (G/Yoffset[7:0]– 128)

48 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-32.AVID StartPixelRegister Subaddress 16h–17h Default 55h Subaddress 7 6 5 4 3 2 1 0 16h AVID start[7:0] 17h Reserved AVID active Reserved AVID start[9:8] AVID active: 0 = AVID outactiveinVBLK (default) 1 = AVID outinactiveinVBLK AVID start[9:0]: AVID startpixelnumber,thisisan absolutepixellocationfromHSYNC startpixel0. NTSC 601 default:is85 (55h) PAL 601 default:is95 (5Fh) The TVP5147M1 decoderupdatestheAVID startonlywhen theAVID startMSB byteiswrittento.Iftheuserchanges theseregisters, thentheTVP5147M1 decoderretainsvaluesindifferentmodes untilthisdeviceresets.The AVID startpixelregisteralsocontrolsthe positionoftheSAV code. Table2-33.AVID Stop PixelRegister Subaddress 18h–19h Default 325h Subaddress 7 6 5 4 3 2 1 0 18h AVID stop[7:0] 19h Reserved AVID stop[9:8] AVID stop[9:0]: AVID stoppixelnumber.The number ofpixelsofactivevideomust be an even number.Thisisan absolutepixellocationfromHSYNC startpixel0. ForNTSC 601,defaultis805 (325h) ForPAL 601,defaultis815 (32Fh) The TVP5147M1 decoderupdatestheAVID stoponlywhen theAVID stopMSB byteiswrittento.Iftheuserchanges theseregisters,then theTVP5147M1 decoderretainsvaluesindifferentmodes untilthisdeviceresets.The AVID startpixelregisteralsocontrolsthepositionof theEAV code. Table2-34.HSYNC StartPixelRegister Subaddress 1Ah–1Bh Default 000h Subaddress 7 6 5 4 3 2 1 0 1Ah HSYNC start[7:0] 1Bh Reserved HSYNC start[9:8] HSYNC startpixel[9:0]: Thisisan absolutepixellocationfromHSYNC startpixel0. The TVP5147M1 decoderupdatestheHSYNC startonlywhen theHSYNC startMSB iswrittento.Iftheuserchanges theseregisters, thentheTVP5147M1 decoderretainsvaluesindifferentmodes untilthisdeviceresets. Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 49 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-35.HSYNC Stop PixelRegister Subaddress 1Ch –1Dh Default 040h Subaddress 7 6 5 4 3 2 1 0 1Ch HSYNC stop[7:0] 1Dh Reserved HSYNC stop[9:8] HSYNC stop[9:0]: Thisisan absolutepixellocationfromHSYNC startpixel0. The TVP5147M1 decoderupdatestheHSYNC stoponlywhen theHSYNC stopMSB iswrittento.Iftheuserchanges theseregisters, thentheTVP5147M1 decoderretainsvaluesindifferentmodes untilthisdeviceresets. Table2-36.VSYNC StartLineRegister Subaddress 1Eh–1Fh Default 004h Subaddress 7 6 5 4 3 2 1 0 1Eh VSYNC start[7:0] 1Fh Reserved VSYNC start[9:8] VSYNC start[9:0]: Thisisan absolutelinenumber. The TVP5147M1 decoderupdatestheVSYNC startonlywhen theVSYNC startMSB iswrittento.Iftheuserchanges theseregisters, thentheTVP5147M1 decoderretainsvaluesindifferentmodes untilthisdecoderresets. NTSC: default004h PAL: default001h Table2-37.VSYNC Stop LineRegister Subaddress 20h–21h Default 007h Subaddress 7 6 5 4 3 2 1 0 20h VSYNC stop[7:0] 21h Reserved VSYNC stop[9:8] VSYNC stop[9:0]: Thisisan absolutelinenumber. The TVP5147M1 decoderupdatestheVSYNC stoponlywhen theVSYNC stopMSB iswrittento.Iftheuserchanges theseregisters, theTVP5147M1 decoderretainsvaluesindifferentmodes untilthisdecoderresets. NTSC: default007h PAL: default004h Table2-38.VBLK StartLineRegister Subaddress 22h–23h Default 001h Subaddress 7 6 5 4 3 2 1 0 22h VBLK start[7:0] 23h Reserved VBLK start[9:8] VBLK start[9:0]: Thisisan absolutelinenumber. The TVP5147M1 decoderupdatestheVBLK startlineonlywhen theVBLK startMSB iswrittento.Iftheuserchanges theseregisters, theTVP5147M1 decoderretainsvaluesindifferentmodes untilthisresets(seeTable2-32) NTSC: default001h PAL: default623 (26Fh)

50 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-39.VBLK Stop LineRegister Subaddress 24h–25h Default 015h Subaddress 7 6 5 4 3 2 1 0 24h VBLK stop[7:0] 25h Reserved VBLK stop[9:8] VBLK stop[9:0]: Thisisan absolutelinenumber. The TVP5147M1 decoderupdatestheVBLK stoponlywhen theVBLK stopMSB iswrittento.Iftheuserchanges theseregisters,then theTVP5147M1 decoderretainsvaluesindifferentmodes untilthisdeviceresets(seeTable2-32). NTSC: default21 (015h) PAL: default23 (017h) Table2-40.Embedded Sync OffsetControl1 Register Subaddress 26h Default 00h 7 6 5 4 3 2 1 0 Offset[7:0] Thisregisterallowsthelinepositionoftheembedded F bitand V bitsignalstobe offsetfromthe656 standardpositions.Thisregisteris onlyapplicabletoinputvideosignalswithstandardnumber oflines. 0111 1111 = 127 lines 0000 0001 = 1 line 0000 0000 = 0 line 1111 1111 = –1 line 1000 0000 = –128 lines Table2-41.Embedded Sync OffsetControl2 Register Subaddress 27h Default 00h 7 6 5 4 3 2 1 0 Offset[7:0] Thisregisterallowsthelinerelationshipbetween theembedded F bitand V bitsignalstobe offsetfromthe656 standardpositions,and moves F relativetoV.Thisregisterisonlyapplicabletoinputvideosignalswithstandardnumber oflines. 0111 1111 = 127 lines 0000 0001 = 1 line 0000 0000 = 0 line 1111 1111 = –1 line 1000 0000 = –128 lines Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 51 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-42.CTI Delay Register Subaddress 2Dh Default 00h 7 6 5 4 3 2 1 0 Reserved CTI delay[2:0] CTI delay[2:0]: SetsthedelayoftheY channelwithrespecttoCb/CrintheCTI block 011 = 3-pixeldelay 001 = 1-pixeldelay 000 = 0 delay(default) 111 = −1-pixeldelay 100 = −4-pixeldelay Table2-43.CTI ControlRegister Subaddress 2Eh Default 00h 7 6 5 4 3 2 1 0 CTI coring[3:0] CTI gain[3:0] CTI coring[3:0]: 4-bitCTI coringlimitcontrolvalues,unsigned,linearcontrolrangefrom0 to±60,stepsize= 4 1111 = ±60 0001 = ±4 0000 = 0 (default) CTI gain[3:0]: 4-bitCTI gaincontrolvalues,unsigned,linearcontrolrangefrom0 to15/16,stepsize= 1/16 1111 = 15/16 0001 = 1/16 0000 = 0 (default) Table2-44.Brightnessand ContrastRange ExtenderRegister Subaddress 2Fh Default 00h 7 6 5 4 3 2 1 0 Reserved Contrast Brightnessmultiplier[3:0] multiplier Contrastmultiplier(MC ): Increasesthecontrastcontrolrangeforcompositeand S-Videomodes. 0 = 2x contrastcontrolrange(default),Gain = n/64– 1 where n isthecontrastcontroland 64 ≤ n ≤ 255 1 = Normal contrastcontrolrange,Gain = n/128where n isthecontrastcontroland 0 ≤ n ≤ 255 Brightnessmultiplier3:0: Increasesthebrightnesscontrolrangeforcompositeand S-Videomodes from1x to16x. 0h = 1x 1h = 2x 3h = 4x 7h = 8x Fh = 16x Note:Ingeneral,thebrightnessmultipliershouldbe setto0h for10-bitoutputsand 3h for8-bitoutputs

52 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-45.Sync ControlRegister Subaddress 32h Default 00h 7 6 5 4 3 2 1 0 Reserved PolarityFID PolarityVS PolarityHS VS/VBLK HS/CS PolarityFID: DeterminespolarityofFID terminal 0 = Firstfieldhigh,second fieldlow(default) 1 = Firstfieldlow,second fieldhigh PolarityVS: DeterminespolarityofVS terminal 0 = Activelow(default) 1 = Activehigh PolarityHS: DeterminespolarityofHS terminal 0 = Activelow(default) 1 = Activehigh VS/VBLK: 0 = VS terminaloutputsverticalsync(default) 1 = VS terminaloutputsverticalblank HS/CS: 0 = HS terminaloutputshorizontalsync(default) 1 = HS terminaloutputscompositesync Table2-46.Output FormatterControl1 Register Subaddress 33h Default 40h 7 6 5 4 3 2 1 0 Reserved YCbCr code range CbCr code Reserved Outputformat[2:0] YCbCr outputcode range: 0 = ITU-R BT.601 codingrange(Y rangesfrom64 to940.Cb and Cr rangefrom64 to960.) 1 = Extendedcodingrange(Y,Cb, and Cr rangefrom4 to1016)(default) CbCr code format: 0 = Offsetbinarycode (2scomplement + 512)(default) 1 = Straightbinarycode (2scomplement) Outputformat[2:0]: 000 = 10-bit4:2:2(pixelx 2 rate)withembedded syncs(ITU-RBT.656)(default) 001 = 20-bit4:2:2(pixelrate)withseparatesyncs 010 = Reserved 011 = 10-bit4:2:2withseparatesyncs 100–111 = Reserved Note:10-bitmode isalsoused fortheraw VBI outputmode when bit4 (VBIraw)intheluminanceprocessingcontrol1 registerat subaddress06h isset(seeTable2-19). Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 53 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-47.Output FormatterControl2 Register Subaddress 34h Default 00h 7 6 5 4 3 2 1 0 Reserved Data enable BlackScreen[1:0] CLK polarity Clockenable Data enable: Y[9:0]and C[9:0]outputenable 0 = Y[9:0]and C[9:0]high-impedance(default) 1 = Y [9:0]and C[9:0]active BlackScreen[1:0]: 00 = Normal operation(default) 01 = Blackscreenoutwhen TVP5147M1 detectslostlock(usingwithtunerinputbutnotwithVCR) 10 = Blackscreenout 11 = Blackscreenout CLK polarity: 0 = Data clockedouton thefallingedge ofDATACLK (default) 1 = Data clockedouton therisingedge ofDATACLK Clockenable: 0 = DATACLK outputsarehigh-impedance(default) 1 = DATACLK outputsareenabled Table2-48.Output FormatterControl3 Register Subaddress 35h Default FFh 7 6 5 4 3 2 1 0 GPIO [1:0] AVID [1:0] GLCO [1:0] FID [1:0] GPIO [1:0]: FSS terminalfunctionselect 00 = GPIO islogic0 output 01 = GPIO islogic1 output 10 = Reserved 11 = GPIO islogicinput(default) AVID [1:0]: AVID terminalfunctionselect 00 = AVID islogic0 output 01 = AVID islogic1 output 10 = AVID isactivevideoindicatoroutput 11 = AVID islogicinput(default) GLCO [1:0]: GLCO terminalfunctionselect 00 = GLCO islogic0 output 01 = GLCO islogic1 output 10 = GLCO isgenlockoutput 11 = GLCO islogicinput(default) FID [1:0]: FID terminalfunctionselect 00 = FID islogic0 output 01 = FID islogic1 output 10 = FID isFID output 11 = FID islogicinput(default)

54 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-49.Output FormatterControl4 Register Subaddress 36h Default FFh 7 6 5 4 3 2 1 0 VS/VBLK [1:0] HS/CS [1:0] C_1 [1:0] C_0 [1:0] VS/VBLK [1:0]: VS terminalfunctionselect 00 = VS islogic0 output 01 = VS islogic1 output 10 = VS/VBLK isverticalsyncorverticalblankoutputcorrespondingtobit1 (VS/VBLK)inthesynccontrolregisteratsubaddress32h (seeTable2-45) 11 = VS islogicinput(default) HS/CS [1:0]: HS terminalfunctionselect 00 = HS islogic0 output 01 = HS islogic1 output 10 = HS/CS ishorizontalsyncorcompositesyncoutputcorrespondingtobit0 (HS/CS)inthesynccontrolregisteratsubaddress32h (seeTable2-45) 11 = HS islogicinput(default) C_1 [1:0]: C_1 terminalfunctionselect 00 = C_1 islogic0 output 01 = C_1 islogic1 output 10 = Reserved 11 = C_1 islogicinput(default) C_0 [1:0]: C_0 terminalfunctionselect 00 = C_0 islogic0 output 01 = C_0 islogic1 output 10 = Reserved 11 = C_0 islogicinput(default) Note:C_x functionsareavailableonlyinthe10-bitoutputmode. Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 55 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-50.Output FormatterControl5 Register Subaddress 37h Default FFh 7 6 5 4 3 2 1 0 C_5 [1:0]: C_5 terminalfunctionselect 00 = C_5 islogic0 output 01 = C_5 islogic1 output 10 = Reserved 11 = C_5 islogicinput(default) C_4 [1:0]: C_4 terminalfunctionselect 00 = C_4 islogic0 output 01 = C_4 islogic1 output 10 = Reserved 11 = C_4 islogicinput(default) C_3 [1:0]: C_3 terminalfunctionselect 00 = C_3 islogic0 output 01 = C_3 islogic1 output 10 = Reserved 11 = C_3 islogicinput(default) C_2 [1:0]: C_2 terminalfunctionselect 00 = C_2 islogic0 output 01 = C_2 islogic1 output 10 = Reserved 11 = C_2 islogicinput(default) Note:C_x functionsareavailableonlyinthe10-bitoutputmode.

56 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-51.Output FormatterControl6 Register Subaddress 38h Default FFh 7 6 5 4 3 2 1 0 C_9 [1:0]: C_9 terminalfunctionselect 00 = C_9 islogic0 output 01 = C_9 islogic1 output 10 = Reserved 11 = C_9 islogicinput(default) C_8 [1:0]: C_8 terminalfunctionselect 00 = C_8 islogic0 output 01 = C_8 islogic1 output 10 = Reserved 11 = C_8 islogicinput(default) C_7 [1:0]: C_7 terminalfunctionselect 00 = C_7 islogic0 output 01 = C_7 islogic1 output 10 = Reserved 11 = C_7 islogicinput(default) C_6 [1:0]: C_6 terminalfunctionselect 00 = C_6 islogic0 output 01 = C_6 islogic1 output 10 = Reserved 11 = C_6 islogicinput(default) Table2-52.ClearLost Lock DetectRegister Subaddress 39h Default 00h 7 6 5 4 3 2 1 0 Reserved Clearlostlockdetect Clearlostlockdetect: Clearbit4 (lostlockdetect)inthestatus1 registeratsubaddress3Ah (seeTable2-53) 0 = No effect(default) 1 = Clearsbit4 inthestatus1 register Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 57 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-53.Status1 Register Subaddress 3Ah Read only 7 6 5 4 3 2 1 0 Peak white Line-alternating Fieldrate Lostlockdetect Color Verticalsync Horizontalsync TV/VCR status detectstatus status status subcarrierlock lockstatus lockstatus status Peak whitedetectstatus: 0 = Peak whiteisnotdetected 1 = Peak whiteisdetected Line-alternatingstatus: 0 = Non line-alternating 1 = Line-alternating Fieldratestatus: 0 = 60 Hz 1 = 50 Hz Lostlockdetect: 0 = No lostlocksincethisbitwas lastcleared 1 = Lostlocksincethisbitwas lastcleared Colorsubcarrierlockstatus: 0 = Colorsubcarrierisnotlocked 1 = Colorsubcarrierislocked Verticalsynclockstatus: 0 = Verticalsyncisnotlocked 1 = Verticalsyncislocked Horizontalsynclockstatus: 0 = Horizontalsyncisnotlocked 1 = Horizontalsyncislocked TV/VCR status: 0 = TV 1 = VCR

58 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-54.Status2 Register Subaddress 3Bh Read only 7 6 5 4 3 2 1 0 Signalpresent Weak signal PAL switch Fieldsequence Colorkilled Macrovisiondetection[2:0] detection polarity status Signalpresentdetection: 0 = Signalnotpresent 1 = Signalpresent Weak signaldetection: 0 = No weak signal 1 = Weak signalmode PAL switchpolarityoffirstlineofodd field: 0 = PAL switchis0b 1 = PAL switchis1b Fieldsequence status: 0 = Even field 1 = Odd field Colorkilled: 0 = Colorkillernotactive 1 = Colorkilleractivated Macrovisiondetection[2:0]: 000 = No copy protection 001 = AGC pulses/pseudosyncspresent(Type1) 010 = 2-linecolorstripeonlypresent 011 = AGC pulses/pseudosyncsand 2-linecolorstripepresent(Type2) 100 = Reserved 101 = Reserved 110 = 4-linecolorstripeonlypresent 111 = AGC pulses/pseudosyncsand 4-linecolorstripepresent(Type3) Table2-55.AGC Gain StatusRegister Subaddress 3Ch –3Dh Read only Subaddress 7 6 5 4 3 2 1 0 3Ch FineGain [7:0] 3Dh Coarse Gain [3:0] FineGain [11:8] Finegain[11:0]: Thisregisterprovidesthefinegainvalueofsyncchannel. 1111 1111 1111 = 1.9995 1000 0000 0000 = 1 0010 0000 0000 = 0.5 Coarse gain[3:0]: Thisregisterprovidesthecoarsegainvalueofsyncchannel. 1111 = 2 0101 = 1 0000 = 0.5 The AGC gainstatusregisterisupdatedautomaticallyby theTVP5147M1 decoderwhen AGC ison.Inmanual gaincontrolmode, these registervaluesarenotupdatedby theTVP5147M1 decoder. Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 59 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-56.Video Standard StatusRegister Subaddress 3Fh Read only 7 6 5 4 3 2 1 0 Autoswitch Reserved Videostandard[2:0] Autoswitchmode 0 = Singlestandardset 1 = Autoswitchmode enabled Videostandard[2:0]: CVBS and S-Video Component Video

000 Reserved Reserved

001 (M,J)NTSC Component 525 010 (B,D, G, H, I,N) PAL Component 625 011 (M)PAL Reserved 100 (Combination-N)PAL Reserved 101 NTSC 4.43 Reserved Thisregistercontainsinformationaboutthedetectedvideostandardthatthedeviceiscurrentlyoperating.When autoswitchcode is running,thisregistermust be testedtodeterminewhichvideostandardhas been detected. Table2-57.GPIO Input1 Register Subaddress 40h Read only 7 6 5 4 3 2 1 0 C_x inputstatus: 0 = Inputislow 1 = Inputishigh These statusbitsarevalidonlywhen terminalsareused as inputsand areupdatedateveryline.

60 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-58.GPIO Input2 Register Subaddress 41h Read only 7 6 5 4 3 2 1 0 GPIO AVID GLCO VS HS FID C_9 C_8 GPIO inputterminalstatus: 0 = Inputisa low 1 = Inputisa high AVID inputterminalstatus: 0 = Inputisa low 1 = Inputisa high GLCO inputterminalstatus: 0 = Inputisa low 1 = Inputisa high VS inputterminalstatus: 0 = Inputisa low 1 = Inputisa high HS inputstatus: 0 = Inputisa low 1 = Inputisa high FID inputstatus: 0 = Inputisa low 1 = Inputisa high C_x inputstatus: 0 = Inputisa low 1 = Inputisa high These statusbitsarevalidonlywhen terminalsareused as inputsand areupdatedateveryline. Table2-59.AFE Coarse Gain forCH 1 Register Subaddress 46h Default 20h 7 6 5 4 3 2 1 0 CGAIN 1 [3:0] Reserved CGAIN 1 [3:0]: Coarse Gain = 0.5+ (CGAIN 1)/10where 0 ≤ CGAIN 1 ≤ 15 Thisregisterworksonlyinmanual gaincontrolmode. When AGC isactive,writingtoany valueisignored. 1111 = 2 1110 = 1.9 1101 = 1.8 1100 = 1.7 1011 = 1.6 1010 = 1.5 1001 = 1.4 1000 = 1.3 0111 = 1.2 0110 = 1.1 0101 = 1 0100 = 0.9 0011 = 0.8 0010 = 0.7(default) 0001 = 0.6 0000 = 0.5 Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 61 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-60.AFE Coarse Gain forCH 2 Register Subaddress 47h Default 20h 7 6 5 4 3 2 1 0 CGAIN 2 [3:0] Reserved CGAIN 2 [3:0]: Coarse Gain = 0.5+ (CGAIN 2)/10where 0 ≤ CGAIN 2 ≤ 15. Thisregisterworksonlyinmanual gaincontrolmode. When AGC isactive,writingtoany valueisignored. 1111 = 2 1110 = 1.9 1101 = 1.8 1100 = 1.7 1011 = 1.6 1010 = 1.5 1001 = 1.4 1000 = 1.3 0111 = 1.2 0110 = 1.1 0101 = 1 0100 = 0.9 0011 = 0.8 0010 = 0.7(default) 0001 = 0.6 0000 = 0.5 Table2-61.AFE Coarse Gain forCH 3 Register Subaddress 48h Default 20h 7 6 5 4 3 2 1 0 CGAIN 3 [3:0] Reserved CGAIN 3 [3:0]: Coarse Gain = 0.5+ (CGAIN 3)/10where 0 ≤ CGAIN 3 ≤ 15. Thisregisterworksonlyinmanual gaincontrolmode. When AGC isactive,writingtoany valueisignored. 1111 = 2 1110 = 1.9 1101 = 1.8 1100 = 1.7 1011 = 1.6 1010 = 1.5 1001 = 1.4 1000 = 1.3 0111 = 1.2 0110 = 1.1 0101 = 1 0100 = 0.9 0011 = 0.8 0010 = 0.7(default) 0001 = 0.6 0000 = 0.5

62 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-62.AFE Coarse Gain forCH 4 Register Subaddress 49h Default 20h 7 6 5 4 3 2 1 0 CGAIN 4 [3:0] Reserved CGAIN 4 [3:0]: Coarse Gain = 0.5+ (CGAIN 4)/10where 0 ≤ CGAIN 4 ≤ 15. Thisregisterworksonlyinmanual gaincontrolmode. When AGC isactive,writingtoany valueisignored. 1111 = 2 1110 = 1.9 1101 = 1.8 1100 = 1.7 1011 = 1.6 1010 = 1.5 1001 = 1.4 1000 = 1.3 0111 = 1.2 0110 = 1.1 0101 = 1 0100 = 0.9 0011 = 0.8 0010 = 0.7(default) 0001 = 0.6 0000 = 0.5 Table2-63.AFE FineGain forPb Register Subaddress 4Ah–4Bh Default 900h Subaddress 7 6 5 4 3 2 1 0 4Ah FGAIN 1 [7:0] 4Bh Reserved FGAIN 1 [11:8] FGAIN 1 [11:0]: Thisfinegainappliestocomponent Pb. FineGain = (1/2048)× FGAIN 1,where 0 ≤ FGAIN 1 ≤ 4095 Thisregisterisonlyupdatedwhen theMSB (register4Bh) iswrittento. Thisregisterworksonlyinmanual gaincontrolmode. When AGC isactive,writingtoany valueisignored. 1111 1111 1111 = 1.9995 1100 0000 0000 = 1.5 1001 0000 0000 = 1.125(default) 1000 0000 0000 = 1 0100 0000 0000 = 0.5 0011 1111 1111 to0000 0000 0000 = Reserved Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 63 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-64.AFE FineGain forY_Chroma Register Subaddress 4Ch –4Dh Default 900h Subaddress 7 6 5 4 3 2 1 0 4Ch FGAIN 2 [7:0] 4Dh Reserved FGAIN 2 [11:8] FGAIN 2 [11:0]: Thisgainappliestocomponent Y channelorS-videochroma (seeAFE finegainforPb register,Table2-63). Thisregisterworksonlyinmanual gaincontrolmode. When AGC isactive,writingtoany valueisignored. 1111 1111 1111 = 1.9995 1100 0000 0000 = 1.5 1001 0000 0000 = 1.125(default) 1000 0000 0000 = 1 0100 0000 0000 = 0.5 0011 1111 1111 to0000 0000 0000 = Reserved Table2-65.AFE FineGain forPr Register Subaddress 4Eh–4Fh Default 900h Subaddress 7 6 5 4 3 2 1 0 4Eh FGAIN 3 [7:0] 4Fh Reserved FGAIN 3 [11:8] FGAIN 3 [11:0]: Thisfinegainappliestocomponent Pr (seeAFE finegainforPb register,Table2-63). Thisregisterworksonlyinmanual gaincontrolmode. When AGC isactive,writingtoany valueisignored. 1111 1111 1111 = 1.9995 1100 0000 0000 = 1.5 1001 0000 0000 = 1.125(default) 1000 0000 0000 = 1 0100 0000 0000 = 0.5 0011 1111 1111 to0000 0000 0000 = Reserved Table2-66.AFE FineGain forCVBS_Luma Register Subaddress 50h–51h Default 900h Subaddress 7 6 5 4 3 2 1 0 50h FGAIN 4 [7:0] 51h Reserved FGAIN 4 [11:8] FGAIN 4 [11:0]: ThisfinegainappliestoCVBS orS-videoluma (seeAFE finegainforPb register,Table2-63). Thisregisterworksonlyinmanual gaincontrolmode. When AGC isactive,writingtoany valueisignored. 1111 1111 1111 = 1.9995 1100 0000 0000 = 1.5 1001 0000 0000 = 1.125(default) 1000 0000 0000 = 1 0100 0000 0000 = 0.5 0011 1111 1111 to0000 0000 0000 = Reserved

64 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-67.FieldID ControlRegister Subaddress 57h Default 00h 7 6 5 4 3 2 1 0 Reserved 656 version FID control 656 version: 0 = ITU-R BT.656-4(default) 1 = ITU-R BT.656-3 FID control: 0 = 0→1 adaptstofield1,1→0 adaptstofield1 + field2 (default) 1 = 0→1 adaptstofield2,1→0 adaptstofield1 + field2 (forTVP5147M1 EVM) Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 65 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-68.F-Bitand V-BitDecode Control1 Register Subaddress 69h Default 00h 7 6 5 4 3 2 1 0 Reserved VPLL Adaptive Reserved F-bitMode [1:0] VPLL: VPLL timeconstantcontrol 0 = VPLL adaptsthetimeconstanttotheinputsignal(default) 1 = VPLL timeconstantsarefixed Adaptive: 0 = EnableF-bitand V-bitadaptationtodetectedlinesperframe(default) 1 = DisableF-bitand V-bitadaptationtodetectedlinesperframe F-bitmode: 00 = Automode. Iflinesperframeisstandarddecode F and V bitsas per656 standardfromlinecountelsedecode F bitfromvsync inputand setV bit= 0b (default) 01 = Decode F and V bitsfrominputsyncs 10 = Reserved 11 = Alwaysdecode F and V bitsfromlinecount Thisregisterisused inconjunctionwithregister75h as indicatedbelow: REGISTER 69H REGISTER 75H STANDARD LPF NONSTANDARD LPFMODEBIT 1 BIT 0 BIT 3 BIT 2 F V F V 0 0 0 0 Reserved Reserved Reserved Reserved Reserved 0 0 0 1 TVP5160 656 656 Toggle Switch9 0 0 1 0 TVP5160 656 656 Pulse 0 0 0 1 1 Reserved Reserved Reserved Reserved Reserved 0 1 0 0 Reserved Reserved Reserved Reserved Reserved 0 1 0 1 656 656 Toggle Switch9 0 1 1 0 656 656 Pulse 0 0 1 1 1 Reserved Reserved Reserved Reserved Reserved 1 0 0 0 Reserved Reserved Reserved Reserved Reserved 1 0 0 1 Reserved Reserved Reserved Reserved Reserved 1 0 1 0 Reserved Reserved Reserved Reserved Reserved 1 0 1 1 Reserved Reserved Reserved Reserved Reserved Even = 11 1 0 0 TVP5146 656 656 SwitchOdd = toggle 1 1 0 1 TVP5146 656 656 Toggle Switch 1 1 1 0 TVP5146 656 656 Pulse Switch 1 1 1 1 Reserved Reserved Reserved Reserved Reserved 656 = ITU-R BT.656 standard Toggle= Togglesfromfieldtofield Pulse= Pulseslowfor1 linepriortofieldtransition Switch= V bitswitcheshighbeforetheF-bittransitionand lowaftertheF-bittransition Switch9= V bitswitcheshigh1 linepriortotheF-bittransition,thenlowafterninelines Reserved= Not used

66 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-69.Back-End AGC ControlRegister Subaddress 6Ch Default 08h 7 6 5 4 3 2 1 0 Reserved 1 Peak Color Sync Thisregisterdisablestheback-endAGC when thefront-endAGC uses specificamplitudereferences(sync-height,colorburst,or compositepeak)todecrementthefront-endgain.Forexample,writing0x09 tothisregisterdisablestheback-endAGC whenever thefront- end AGC uses thesync-heighttodecrementthefront-endgain. Peak: Disablesback-endAGC when thefront-endAGC uses thecompositepeak as an amplitudereference. 0 = Disabled(default) 1 = Enabled Color: Disablesback-endAGC when thefront-endAGC uses thecolorburstas an amplitudereference. 0 = Disabled(default) 1 = Enabled Sync: Disablesback-endAGC when thefront-endAGC uses thesyncheightas an amplitudereference. 0 = Disabled(default) 1 = Enabled Table2-70.AGC Decrement Speed Register Subaddress 6Fh Default 04h 7 6 5 4 3 2 1 0 Reserved AGC decrementspeed [2:0] AGC decrementspeed: Adjustsgaindecrementspeed.Onlyused forcomposite/lumapeaks. 111 = 7 (slowest) 110 = 6 (default) 000 = 0 (fastest) Table2-71.ROM VersionRegister Subaddress 70h Read only 7 6 5 4 3 2 1 0 ROM version[7:0] ROM Version[7:0]: ROM revisionnumber Table2-72.RAM VersionMSB Register Subaddress 71h Read only 7 6 5 4 3 2 1 0 RAM versionMSB [7:0] RAM versionMSB [7:0]: ThisregisteridentifiestheMSB oftheRAM code revisionnumber. Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 67 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-73.AGC White Peak ProcessingRegister Subaddress 74h Default 00h 7 6 5 4 3 2 1 0 Luma peak A Reserved ColorburstA Sync heightA Luma peak B Composite ColorburstB Sync heightB peak Luma peak A: Use oftheluma peak as a videoamplitudereferencefortheback-endfeed-forwardtypeAGC algorithm 0 = Enabled(default) 1 = Disabled ColorburstA: Use ofthecolorburstamplitudeas a videoamplitudereferencefortheback-end Note:Not availableforSECAM, component,and B/W videosources. 0 = Enabled(default) 1 = Disabled Sync heightA: Use ofthesyncheightas a videoamplitudereferencefortheback-endfeed-forwardtypeAGC algorithm 0 = Enabled(default) 1 = Disabled Luma peak B: Use oftheluma peak as a videoamplitudereferenceforfront-endfeedbacktypeAGC algorithm 0 = Enabled(default) 1 = Disabled Compositepeak: Use ofthecompositepeak as a videoamplitudereferenceforfront-endfeedbacktypeAGC algorithm Note:RequiredforCVBS videosources 0 = Enabled(default) 1 = Disabled ColorburstB: Use ofthecolorburstamplitudeas a videoamplitudereferenceforfront-endfeedbacktypeAGC algorithm Note:Not availableforSECAM, component,and B/W videosources 0 = Enabled(default) 1 = Disabled Sync heightB: Use ofthesync-heightas a videoamplitudereferenceforfront-endfeedbacktypeAGC algorithm 0 = Enabled(default) 1 = Disabled Note:Ifall4 bitsofthelowernibblearesettologic1 (thatis,no amplitudereferenceselected),thenthefront-endanalogand digital gainsareautomaticallysettonominalvaluesof2 and 2304,respectively. Ifall4 bitsoftheuppernibblearesettologic1 (thatis,no amplitudereferenceselected),thentheback-endgainissetautomaticallyto unity. Iftheinputsyncheightisgreaterthan100% and theAGC-adjustedoutputvideoamplitudebecomes lessthan100%, thentheback-end scalefactorattemptstoincreasethecontrastintheback end torestorethevideoamplitudeto100%.

68 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-74.F-Bitand V-BitControl2 Register Subaddress 75h Default 12h 7 6 5 4 3 2 1 0 Rabbit Reserved Fastlock F and V [1:0] Phase detector HPLL Rabbit: Enablerabbitear 0 = Disabled(default) 1 = Enabled Fastlock: Enablefastlockwhere verticalPLL isresetand a 2-secondtimerisinitializedwhen verticallockislost;duringtime-outthedetected inputVSYNC isoutput. 0 = Disabled 1 = Enabled(default) F and V [1:0] F AND V LINES PER FRAME F BIT V BIT Standard ITU-R BT 656 ITU-R BT 656 00 = Nonstandardeven Forcedto1 Switchatfieldboundary(default) Nonstandardodd Toggles Switchatfieldboundary Standard ITU-R BT 656 ITU-R BT 65601 = Nonstandard Toggles Switchatfieldboundary Standard ITU-R BT 656 ITU-R BT 65610 = Nonstandard Pulsedmode Switchatfieldboundary 11 = Reserved Phase detector: Enableintegralwindow phase detector 0 = Disabled 1 = Enabled(default) HPLL: EnablehorizontalPLL tofreerun 0 = Disabled(default) 1 = Enabled Table2-75.VCR TrickMode ControlRegister Subaddress 76h Default 8Ah 7 6 5 4 3 2 1 0 Switchheader Horizontalshake threshold[6:0] Switchheader: When inVCR trickmode, theheadernoisyareaaroundthehead switchisskipped. 0 = Disabled 1 = Enabled(default) Horizontalshake threshold[6:0]: 000 0000 = Zerothreshold 000 1010 = 0Ah (default) 111 1111 = Largestthreshold Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 69 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-76.HorizontalShake IncrementRegister Subaddress 77h Default 64h 7 6 5 4 3 2 1 0 Horizontalshake increment[7:0] Horizontalshake increment[7:0]: 000 0000 =0 000 1010 = 64h (default) 111 1111 = FFh Table2-77.AGC IncrementSpeed Register Subaddress 78h Default 06h 7 6 5 4 3 2 1 0 Reserved AGC incrementspeed [2:0] AGC incrementspeed [2:0]: Adjustsgainincrementspeed. 111 = 7 (slowest) 110 = 6 (default) 000 = 0 (fastest) Table2-78.AGC IncrementDelay Register Subaddress 79h Default 1Eh 7 6 5 4 3 2 1 0 AGC incrementdelay[7:0] AGC incrementdelay: Number offramestodelaygainincrements 1111 1111 = 255 0001 1110 = 30 (default) 0000 0000 = 0 Table2-79.Analog Output Control1 Register Subaddress 7Fh Default 00h 7 6 5 4 3 2 1 0 Reserved AGC enable Inputselect Analogoutput enable AGC enable: 0 = Enabled(default) 1 = Disabled,manual gainmode (seeTable2-121) Inputselect: 00 = Inputselectedby TVP5147M1 decoder(seeTable2-12)(default) 01 = Inputselectedmanually(seeTable2-121) Analogoutputenable: 0 = VI_1_A isinput(default) 1 = VI_1_A isanalogvideooutput

70 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-80.Chip ID MSB Register Subaddress 80h Read only 7 6 5 4 3 2 1 0 CHIP ID MSB[7:0] CHIP ID MSB[7:0]: ThisregisteridentifiestheMSB ofthedeviceID.Value= 51h Table2-81.Chip ID LSB Register Subaddress 81h Read only 7 6 5 4 3 2 1 0 CHIP ID LSB [7:0] CHIP ID LSB [7:0]: ThisregisteridentifiestheLSB ofthedeviceID.Value= 47h Table2-82.RAM VersionLSB Register Subaddress 82h Read only 7 6 5 4 3 2 1 0 RAM versionLSB [7:0] RAM versionLSB [7:0]: ThisregisteridentifiestheLSB oftheRAM code revisionnumber. Example: PatchRelease= v07.02.00 ROM Version= 07h RAM VersionMSB = 02h RAM VersionLSB = 00h Table2-83.ColorPLL Speed ControlRegister Subaddress 83h Default 09h 7 6 5 4 3 2 1 0 Reserved Speed[3:0] Speed [3:0]: ColorPLL speed control 1001 = Faster(default) 1010 = 1011 = Slower Other= Reserved Table2-84.StatusRequest Register Subaddress 97h Default 00h 7 6 5 4 3 2 1 0 Reserved Capture Capture: Settinga 1b inthisregistercausestheinternalprocessortocapturethecurrentsettingsoftheAGC statusand theverticallinecount registers.Because thiscaptureisnotimmediate,itisnecessarytocheckforcompletionofthecaptureby readingthecapturebit repeatedlyaftersettingitand waitingforittobe clearedby theinternalprocessor.Once thecapturebitis0b,theAGC statusand verticallinecounters(3Ch/3Dhand 9Ah/9Bh)have been updatedand can be safelyreadinany order. Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 71 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-85.VerticalLineCount Register Subaddress 9Ah–9Bh Read only Subaddress 7 6 5 4 3 2 1 0 9Ah Verticalline[7:0] 9Bh Reserved Verticalline[9:8] Verticalline[9:0]: Representthedetecteda totalnumber oflinesfromthepreviousframe.Thiscan be used withnonstandardvideosignalssuch as a VCR intrickmode tosynchronizedownstream videocircuitry. Because thisregisterisa double-byteregister,itisnecessarytocapturethesettingintotheregistertoensurethatthevalueisnot updatedbetween readingthelowerand upperbytes.To cause thisregistertocapturethecurrentsettings,bit0 ofthestatusrequest register(subaddress97h)must be settoa 1b.Once theinternalprocessorhas updatedand can be read.Eitherbytemay be readfirst sinceno furtherupdateoccursuntilbit0 of97h issetto1b again. Table2-86.AGC Decrement Delay Register Subaddress 9Eh Default 1Eh 7 6 5 4 3 2 1 0 AGC decrementdelay[7:0] AGC decrementdelay: Number offramestodelaygaindecrements 1111 1111 = 255 0001 1110 = 30 (default) 0000 0000 = 0

72 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-87.VDP TTX Filterand Mask Register Subaddress B1h B2h B3h B4h B5h B6h B7h B8h B9h BAh Default 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h Subaddress 7 6 5 4 3 2 1 0 B1h Filter1 Mask 1 Filter1 Pattern1 B2h Filter1 Mask 2 Filter1 Pattern2 B3h Filter1 Mask 3 Filter1 Pattern3 B4h Filter1 Mask 4 Filter1 Pattern4 B5h Filter1 Mask 5 Filter1 Pattern5 B6h Filter2 Mask 1 Filter2 Pattern1 B7h Filter2 Mask 2 Filter2 Pattern2 B8h Filter2 Mask 3 Filter2 Pattern3 B9h Filter2 Mask 4 Filter2 Pattern4 BAh Filter2 Mask 5 Filter2 Pattern5 Foran NABTS system,thepacketprefixconsistsoffivebytes.Each bytecontains4 databits(D[3:0])interlacedwith4 Hamming protection bits(H[3:0]): Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 OnlythedataportionD[3:0]fromeach byteisappliedtoa teletextfilterfunctionwithcorrespondingpatternbitsP[3:0]and mask bitsM[3:0]. The filterignoreshamming protectionbits. Fora WST system(PAL orNTSC), thepacketprefixconsistsoftwo bytes.The two bytescontainthreebitsofmagazine number (M[2:0]) and fivebitsofrow address(R[4:0]),interlacedwitheightHamming protectionbitsH[7:0]: Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 The mask bitsenablefilteringusingthecorrespondingbitinthepatternregister.Forexample,a 1 intheLSB ofmask 1 means thatthefilter module must compare theLSB ofnibble1 inthepatternregistertothefirstdatabiton thetransaction.Ifthesematch,thena trueresultis returned.A 0 ina bitofmask means thatthefiltermodule must ignorethatdatabitofthetransaction.Ifall0s areprogrammed inthemask bits,thenthefiltermatches allpatternsreturninga trueresult(default00h). Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 73 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-88.VDP TTX FilterControlRegister Subaddress BBh Default 00h 7 6 5 4 3 2 1 0 Reserved Filterlogic[1:0] Mode TTX filter2 TTX filter1 enable enable Filterlogic[1:0]: Allowdifferentlogictobe appliedwhen combiningthedecisionofFilter1 and Filter2 as follows: 00 = NOR (default) 01 = NAND 10 = OR 11 = AND Mode: Indicateswhichteletextmode isinuse: 0 = Teletextfilterappliesto2 headerbytes(default) 1 = Teletextfilterappliesto5 headerbytes TTX filter2 enable: ProvidesforenablingtheteletextfilterfunctionwithintheVDP. 0 = Disable(default) 1 = Enable TTX filter1 enable: ProvidesforenablingtheteletextfilterfunctionwithintheVDP. 0 = Disable(default) 1 = Enable Ifthefiltermatches orifthefiltermask isallzeros,thena trueresultisreturned.

74 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

1P1[3] 1M1[0] 1M1[1] 1M1[2] 1M1[3] NIBBLE 1 FILTER 2 FILTER 1 PASS 1 Filter 1 Enable Filter Logic PASS 1P1[2] 1P1[1] 1P1[0] D1[3] D1[2] D1[1] D1[0] NIBBLE 2 D2[3:0] 1P2[3:0] 1M2[3:0] NIBBLE 3 NIBBLE 4 NIBBLE 5 D3[3:0] 1P3[3:0] 1M3[3:0] D4[3:0] 1P4[3:0] 1M4[3:0] D5[3:0] 1P5[3:0] 1M5[3:0] D1..D5 2P1..2P5 2M1..2M5 PASS 2 Filter 2 Enable TVP5147M1 www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Figure2-19.TeletextFilterFunction Table2-89.VDP FIFO Word Count Register Subaddress BCh Read only 7 6 5 4 3 2 1 0 FIFO word count[7:0] FIFO word count[7:0]: Thisregisterprovidesthenumber ofwords intheFIFO. Note:1 word equals2 bytes. Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 75 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-90.VDP FIFO InterruptThresholdRegister Subaddress BDh Default 80h 7 6 5 4 3 2 1 0 Threshold[7:0] Threshold[7:0]: Thisregisterisprogrammed totriggeran interruptwhen thenumber ofwords intheFIFO exceedsthisvalue. Note:1 word equals2 bytes. Table2-91.VDP FIFO Reset Register Subaddress BFh Default 00h 7 6 5 4 3 2 1 0 Reserved FIFO reset FIFO reset: Writingany datatothisregisterclearstheFIFO and VDP dataregister(CC,WSS, VITC and VPS).Afterclearing,thisregisteris automaticallycleared. Table2-92.VDP FIFO Output ControlRegister Subaddress C0h Default 00h 7 6 5 4 3 2 1 0 Reserved Hostaccess enable Hostaccessenable: Thisregisterisprogrammed toallowthehostportaccesstotheFIFO orallowingallVDP datatogo outthevideooutput. 0 = OutputFIFO datatothevideooutputY9:2 1 = AllowhostportaccesstotheFIFO data Table2-93.VDP LineNumber InterruptRegister Subaddress C1h Default 00h 7 6 5 4 3 2 1 0 Field1 enable Field2 enable Linenumber [5:0] Field1 interruptenable: 0 = Disabled(default) 1 = Enabled Field2 interruptenable: 0 = Disabled(default) 1 = Enabled Linenumber [5:0]: Interruptlinenumber (default00h) Thisregisterisprogrammed totriggeran interruptwhen thevideolinenumber exceedsthisvalueinbits[5:0].Thisinterruptmust be enabledataddressF4h. Note:The linenumber valueofzeroorone isinvalidand does notgeneratean interrupt.

76 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-94.VDP PixelAlignment Register Subaddress C2h –C3h Default 01Eh Subaddress 7 6 5 4 3 2 1 0 C2h Pixelalignment[7:0] C3h Reserved Pixelalignment[9:0] Pixelalignment[9:0]: These registersforma 10-bithorizontalpixelpositionfromthefallingedge ofhorizontalsync,where theVDP controllerinitiatesthe programfromone linestandardtothenextlinestandard;forexample,thepreviouslineofteletexttothenextlineofclosedcaption. Thisvaluemust be setso thattheswitchoccursaftertheprevioustransactionhas clearedthedelayintheVDP, butearlyenough to allowthenew valuestobe programmed beforethecurrentsettingsarerequired. The defaultvalueis0x1E and has been testedwitheverystandardsupportedhere.A new valueisneeded onlyifa custom standardis inuse. Table2-95.VDP LineStartRegister Subaddress D6h Default 06h 7 6 5 4 3 2 1 0 VDP linestart[7:0] VDP linestart[7:0]: SetstheVDP linestartingaddressforthegloballinemode register Thisregistermust be setproperlybeforeenablingthelinemode registers.The VDP processorworksonlytheVBI regionsetby this registerand theVDP linestopregister. Table2-96.VDP LineStop Register Subaddress D7h Default 1Bh 7 6 5 4 3 2 1 0 VDP linestop[7:0] VDP linestop[7:0]: SetstheVDP stopline. Table2-97.VDP GlobalLineMode Register Subaddress D8h Default FFh 7 6 5 4 3 2 1 0 Globallinemode [7:0] Globallinemode [7:0]: VDP processingformultiplelinessetby VDP startlineregisterD6h and stoplineregisterD7h. Globallinemode registerhas thesame bitdefinitionsas thelinemode registers(seeTable2-119). Generallinemode has priorityoverthegloballinemode. Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 77 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-98.VDP FullFieldEnable Register Subaddress D9h Default 00h 7 6 5 4 3 2 1 0 Reserved Fullfieldenable Fullfieldenable: 0 = Disabledfullfieldmode(default) 1 = Enabledfullfieldmode Thisregisterenablesthefullfieldmode. Inthismode, alllinesoutsidetheverticalblankareaand alllinesinthelinemode register programmed withFFh areslicedwiththedefinitionoftheVDP fullfieldmode registeratsubaddressDAh. ValuesotherthanFFh inthe linemode registersallowa differentslicemode forthatparticularline. Table2-99.VDP FullFieldMode Register Subaddress DAh Default FFh 7 6 5 4 3 2 1 0 Fullfieldmode [7:0] Fullfieldmode [7:0]: ThisregisterprogramsthespecificVBI standardforfullfieldmode. Itcan be any VBI standard.Individuallinesettingstakepriorityover thefullfieldregister.Thisallowseach VBI linetobe programmed independentlybuthave theremaininglinesinfullfieldmode. The full fieldmode registerhas thesame bitdefinitionas linemode registers(defaultFFh). Globallinemode has priorityoverthefullfieldmode. Table2-100.VBUS Data Access With No VBUS Address IncrementRegister Subaddress E0h Default 00h 7 6 5 4 3 2 1 0 VBUS data[7:0] VBUS data[7:0]: VBUS dataregisterforVBUS singlebyteread/writetransaction. Table2-101.VBUS Data Access With VBUS Address IncrementRegister Subaddress E1h Default 00h 7 6 5 4 3 2 1 0 VBUS data[7:0] VBUS data[7:0]: VBUS dataregisterforVBUS multi-byteread/writetransaction.VBUS addressisauto-incrementedaftereach databyteread/write. Table2-102.FIFO Read Data Register Subaddress E2h Read only 7 6 5 4 3 2 1 0 FIFO Read Data [7:0] FIFO Read Data [7:0]: ThisregisterisprovidedtoaccessVBI FIFO datathroughtheI2C interface.Allformsofteletextdatacome directlyfromtheFIFO,while allotherformsofVBI datacan be programmed tocome fromregistersorfromtheFIFO.Ifthehostportistobe used toreaddatafrom theFIFO,thenbit0 (hostaccessenable)intheVDP FIFO outputcontrolregisteratsubaddressC0h must be setto1 (seeTable2-92).

78 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-103.VBUS Address Register Subaddress E8h E9h EAh Default 00h 00h 00h Subaddress 7 6 5 4 3 2 1 0 E8h VBUS address[7:0] E9h VBUS address[15:8] EAh VBUS address[23:16] VBUS address[23:0]: VBUS isa 24-bitwideinternalbus.The userneeds toprogramintheseregistersthe24-bitaddressoftheinternalregistertobe accessedviahostportindirectaccessmode. Table2-104.InterruptRaw Status0 Register Subaddress F0h Read only 7 6 5 4 3 2 1 0 FIFO THRS TTX WSS/CGMS VPS/Gemstar VITC CC F2 CC F1 Line The hostInterruptRaw Status0 and InterruptRaw Status1 registersrepresenttheinterruptstatuswithoutapplyingmask bits. FIFO THRS: FIFO thresholdpassed,unmasked 0 = Not passed 1 = Passed TTX: Teletextdataavailableunmasked 0 = Not available 1 = Available WSS/CGMS: WSS/CGMS dataavailableunmasked 0 = Not available 1 = Available VPS/Gemstar: VPS/Gemstar dataavailableunmasked 0 = Not available 1 = Available VITC: VITC dataavailableunmasked 0 = Not available 1 = Available CC F2: CC field2 dataavailableunmasked 0 = Not available 1 = Available CC F1: CC field1 dataavailableunmasked 0 = Not available 1 = Available Line: Linenumber interruptunmasked 0 = Not available 1 = Available Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 79 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-105.InterruptRaw Status1 Register Subaddress F1h Read only 7 6 5 4 3 2 1 0 Reserved H/V lock Macrovision Standard FIFO full statuschanged changed H/V lock: unmasked 0 = H/V lockstatusunchanged 1 = H/V lockstatuschanged Macrovisionstatuschanged: unmasked 0 = Macrovisionstatusunchanged 1 = Macrovisionstatuschanged Standardchanged: unmasked 0 = Videostandardunchanged 1 = Videostandardchanged FIFO full: 0 = FIFO notfull 1 = FIFO was fullduringwritetoFIFO The FIFO fullerrorflagissetwhen thecurrentlineofVBI datacannotentertheFIFO.Forexample,iftheFIFO has only10 bytesleft and teletextisthecurrentVBI line,thentheFIFO fullerrorflagisset,butno dataiswrittenbecause theentireteletextlinedoes notfit. However,ifthenextVBI lineisclosedcaptionrequiringonly2 bytesofdataplustheheader,thenthisgoes intotheFIFO even ifthe fullerrorflagisset.

80 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-106.InterruptStatus0 Register Subaddress F2h Read only 7 6 5 4 3 2 1 0 FIFO THRS TTX WSS/CGMS VPS/Gemstar VITC CC F2 CC F1 Line InterruptStatus0 and InterruptStatus1 registersrepresenttheinterruptstatusafterapplyingmask bits.Therefore,thestatusbitsarethe resultofa logicalAND between theraw statusand mask bits.The externalinterruptterminalisderivedfromthisregisteras an OR function ofallnonmasked interruptsinthisregister. Readingdatafromthecorrespondingregisterdoes notclearthestatusflagsautomatically.These flagsareresetusingthecorresponding bitsintheInterruptClear0 and InterruptClear1 registers. FIFO THRS: FIFO thresholdpassed,masked 0 = Not passed 1 = Passed TTX: Teletextdataavailablemasked 0 = Not available 1 = Available WSS/CGMS: WSS/CGMS dataavailablemasked 0 = Not available 1 = Available VPS/Gemstar: VPS/Gemstar dataavailablemasked 0 = Not available 1 = Available VITC: VITC dataavailablemasked 0 = Not available 1 = Available CC F2: CC field2 dataavailablemasked 0 = Not available 1 = Available CC F1: CC field1 dataavailablemasked 0 = Not available 1 = Available Line: Linenumber interruptmasked 0 = Not available 1 = Available Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 81 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-107.InterruptStatus1 Register Subaddress F3h Read only 7 6 5 4 3 2 1 0 Reserved H/V lock Macrovision Standard FIFO full statuschanged changed H/V lock: H/V lockstatuschanged mask 0 = H/V lockstatusunchanged 1 = H/V lockstatuschanged Macrovisionstatuschanged: Macrovisionstatuschanged masked 0 = Macrovisionstatusnotchanged 1 = Macrovisionstatuschanged Standardchanged: Standardchanged masked 0 = Videostandardnotchanged 1 = Videostandardchanged FIFO full: Masked statusofFIFO 0 = FIFO notfull 1 = FIFO was fullduringwritetoFIFO,see theinterruptmask 1 registeratsubaddressF5h fordetails(seeTable2-109)

82 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-108.InterruptMask 0 Register Subaddress F4h Read only 7 6 5 4 3 2 1 0 FIFO THRS TTX WSS/CGMS VPS/Gemstar VITC CC F2 CC F1 Line The hostInterruptMask 0 and InterruptMask 1 registerscan be used by theexternalprocessortomask unnecessaryinterruptsourcesfor theInterruptStatus0 and InterruptStatus1 registerbits,and fortheexternalinterruptterminal.The externalinterruptisgeneratedfromall nonmasked interruptflags. FIFO THRS: FIFO thresholdpassed mask 0 = Disabled(default) 1 = EnabledFIFO_THRES interrupt TTX: Teletextdataavailablemask 0 = Disabled(default) 1 = EnabledTTX availableinterrupt WSS/CGMS: WSS/CGMS dataavailablemask 0 = Disabled(default) 1 = EnabledWSS/CGMS availableinterrupt VPS/Gemstar: VPS/Gemstar dataavailablemask 0 = Disabled(default) 1 = EnabledVPS/Gemstar availableinterrupt VITC: VITC dataavailablemask 0 = Disabled(default) 1 = EnabledVITC availableinterrupt CC F2: CC field2 dataavailablemask 0 = Disabled(default) 1 = EnabledCC field2 availableinterrupt CC F1: CC field1 dataavailablemask 0 = Disabled(default) 1 = EnabledCC field1 availableinterrupt LINE: Linenumber interruptmask 0 = Disabled(default) 1 = EnabledLine_INTinterrupt Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 83 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-109.InterruptMask 1 Register Subaddress F5h Read only 7 6 5 4 3 2 1 0 Reserved H/V lock Macrovision Standard FIFO full statuschanged changed H/V lock: H/V lockstatuschanged masked 0 = H/V lockstatusunchanged (default) 1 = H/V lockstatuschanged Macrovisionstatuschanged: Macrovisionstatuschanged mask 0 = Macrovisionstatusunchanged 1 = Macrovisionstatuschanged Standardchanged: Standardchanged mask 0 = Disabled(default) 1 = Enabledvideostandardchanged FIFO full: FIFO fullmask 0 = Disabled(default) 1 = EnabledFIFO fullinterrupt

84 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-110.InterruptClear0 Register Subaddress F6h Read only 7 6 5 4 3 2 1 0 FIFO THRS TTX WSS/CGMS VPS/Gemstar VITC CC F2 CC F1 Line The hostInterruptClear0 and InterruptClear1 registersareused by theexternalprocessortocleartheinterruptstatusbitsinthehost InterruptStatus0 and InterruptStatus1 registers.When no nonmasked interruptsremainsetintheregisters,theexternalinterruptterminal alsobecomes inactive. FIFO THRS: FIFO thresholdpassed clear 0 = No effect(default) 1 = ClearFIFO_THRES bitinstatusregister0 bit7 TTX: Teletextdataavailableclear 0 = No effect(default) 1 = ClearTTX availablebitinstatusregister0 bit6 WSS/CGMS: WSS/CGMS dataavailableclear 0 = No effect(default) 1 = ClearWSS/CGMS availablebitinstatusregister0 bit5 VPS/Gemstar: VPS/Gemstar dataavailableclear 0 = No effect(default) 1 = ClearVPS/Gemstar availablebitinstatusregister0 bit4 VITC: VITC dataavailableclear 0 = Disabled(default) 1 = ClearVITC availablebitinstatusregister0 bit3 CC F2: CC field2 dataavailableclear 0 = Disabled(default) 1 = ClearCC field2 availablebitinstatusregister0 bit2 CC F1: CC field1 dataavailableclear 0 = Disabled(default) 1 = ClearCC field1 availablebitinstatusregister0 bit1 LINE: Linenumber interruptclear 0 = Disabled(default) 1 = ClearLineinterruptavailablebitinstatusregister0 bit0 Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 85 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-111.InterruptClear1 Register Subaddress F7h Read only 7 6 5 4 3 2 1 0 Reserved H/V lock Macrovision Standard FIFO full statuschanged changed H/V lock: ClearH/V lockstatuschanged flag 0 = H/V lockstatusunchanged 1 = H/V lockstatuschanged Macrovisionstatuschanged: ClearMacrovisionstatuschanged flag 0 = No effect(default) 1 = Clearbit2 (Macrovisionstatuschanged)intheinterruptstatus1 registeratsubaddressF3h and theinterruptraw status1 register atsubaddressF1h Standardchanged: Clearstandardchanged flag 0 = No effect(default) 1 = Clearbit1 (videostandardchanged)intheinterruptstatus1 registeratsubaddressF3h and theinterruptraw status1 registerat subaddressF1h FIFO full: ClearFIFO fullflag 0 = No effect(default) 1 = Clearbit0 (FIFOfullflag)intheinterruptstatus1 registeratsubaddressF3h and theinterruptraw status1 registeratsubaddress F1h

2.12 VBUS RegisterDefinitions

Table2-112.VDP Closed CaptionData Register Subaddress 80 051Ch – 80 051Fh Read only Subaddress 7 6 5 4 3 2 1 0 80 051Ch ClosedCaptionField1 byte1 80 051Dh ClosedCaptionField1 byte2 80 051Eh ClosedCaptionField2 byte1 80 051Fh ClosedCaptionField2 byte2 These registerscontaintheclosedcaptiondataarrangedinbytesperfield.

86 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-113.VDP WSS Data Register Subaddress 80 0520h – 80 0526h Read only WSS NTSC (CGMS) Subaddress 7 6 5 4 3 2 1 0 Byte 80 0520h b5 b4 b3 b2 b1 b0 WSS Field1 Byte1 80 0521h b13 b12 b11 b10 b9 b8 b7 b6 WSS Field1 Byte2 80 0522h b19 b18 b17 b16 b15 b14 WSS Field1 Byte3 80 0523h Reserved 80 0524h b5 b4 b3 b2 b1 b0 WSS Field2 Byte1 80 0525h b13 b12 b11 b10 b9 b8 b7 b6 WSS Field2 Byte2 80 0526h b19 b18 b17 b16 b15 b14 WSS Field2 Byte3 These registerscontainthewidescreensignalingdataforNTSC. Bits0 – 1 representword 0,aspectratio Bits2 – 5 representword 1,headercode forword 2 Bits6 – 13 representword 2,copy control Bits14 – 19 representword 3,CRC PAL/SECAM Subaddress 7 6 5 4 3 2 1 0 Byte 80 0520h b7 b6 b5 b4 b3 b2 b1 b0 WSS Field1 Byte1 80 0521h b13 b12 b11 b10 b9 b8 WSS Field1 Byte2 80 0522h Reserved 80 0523h Reserved 80 0524h b7 b6 b5 b4 b3 b2 b1 b0 WSS Field2 Byte1 80 0525h b13 b12 b11 b10 b9 b8 WSS Field2 Byte2 80 0526h Reserved These registerscontainthewidescreensignalingdataforPAL/SECAM: Bits0 – 3 representGroup 1,AspectRatio Bits4 – 7 representGroup 2,Enhanced Services Bits8 – 10 representGroup 3,Subtitles Bits11 – 13 representGroup 4,Others Table2-114.VDP VITC Data Register Subaddress 80 052Ch – 80 0534h Read only Subaddress 7 6 5 4 3 2 1 0 80 052Ch VITC framebyte1 80 052Dh VITC framebyte2 80 052Eh VITC secondsbyte1 80 052Fh VITC secondsbyte2 80 0530h VITC minutesbyte1 80 0531h VITC minutesbyte2 80 0532h VITC hoursbyte1 80 0533h VITC hoursbyte2 80 0534h VITC CRC byte These registerscontaintheVITC data. Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 87 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-115.VDP V-Chip TV RatingBlock 1 Register Subaddress 80 0540h Read only 7 6 5 4 3 2 1 0 Reserved 14-D PG-D Reserved MA-L 14-L PG-L Reserved TV ParentalGuidelinesRatingBlock3 14-D:When incomingvideoprogramisTV-14-D rated,thisbitissethigh. PG-D: When incomingvideoprogramisTV-PG-D rated,thisbitissethigh. MA-L: When incomingvideoprogramisTV-MA-L rated,thisbitissethigh. 14-L:When incomingvideoprogramisTV-14-Lrated,thisbitissethigh. PG-L:When incomingvideoprogramisTV-PG-L rated,thisbitissethigh. Table2-116.VDP V-Chip TV RatingBlock 2 Register Subaddress 80 0541h Read only 7 6 5 4 3 2 1 0 MA-S 14-S PG-S Reserved MA-V 14-V PG-V Y7-FV TV ParentalGuidelinesRatingBlock2 MA-S: When incomingvideoprogramisTV-MA-S rated,thisbitissethigh. 14-S:When incomingvideoprogramisTV-14-Srated,thisbitissethigh. PG-S: When incomingvideoprogramisTV-PG-S rated,thisbitissethigh. MA-V: When incomingvideoprogramisTV-MA-V rated,thisbitissethigh. 14-V:When incomingvideoprogramisTV-14-Vrated,thisbitissethigh. PG-V: When incomingvideoprogramisTV-PG-S rated,thisbitissethigh. Y7-FV:When incomingvideoprogramisTV-Y7-FV rated,thisbitissethigh. Table2-117.VDP V-Chip TV RatingBlock 3 Register Subaddress 80 0542h Read only 7 6 5 4 3 2 1 0 None TV-MA TV-14 TV-PG TV-G TV-Y7 TV-Y None TV ParentalGuidelinesRatingBlock1 None: No blockintended TV-MA: When incomingvideoprogramisTV-MA ratedinTV ParentalGuidelinesRating,thisbitissethigh. TV-14:When incomingvideoprogramisTV-14 ratedinTV ParentalGuidelinesRating,thisbitissethigh. TV-PG: When incomingvideoprogramisTV-PG ratedinTV ParentalGuidelinesRating,thisbitissethigh. TV-G: When incomingvideoprogramisTV-G ratedinTV ParentalGuidelinesRating,thisbitissethigh. TV-Y7:When incomingvideoprogramisTV-Y7 ratedinTV ParentalGuidelinesRating,thisbitissethigh. TV-Y:When incomingvideoprogramisTV-G ratedinTV ParentalGuidelinesRating,thisbitissethigh.

88 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-118.VDP V-Chip MPAA RatingData Register Subaddress 80 0543h Read only 7 6 5 4 3 2 1 0 Not Rated X NC-17 R PG-13 PG G NA MPAA RatingBlock(E5h) Not Rated:When incomingvideoprogramisNot Rated ratedinMPAA Rating,thisbitissethigh. X:When incomingvideoprogramisX ratedinMPAA Rating,thisbitissethigh. NC-17:When incomingvideoprogramisNC-17 ratedinMPAA Rating,thisbitissethigh. R: When incomingvideoprogramisR ratedinMPAA Rating,thisbitissethigh. PG-13:When incomingvideoprogramisPG-13 ratedinMPAA Rating,thisbitissethigh. PG: When incomingvideoprogramisPG ratedinMPAA Rating,thisbitissethigh. G: When incomingvideoprogramisG ratedinMPAA Rating,thisbitissethigh. N/A:When incomingvideoprogramisN/A ratedinMPAA Rating,thisbitissethigh. Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 89 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-119.VDP GeneralLineMode and LineAddress Register Subaddress 80 0600h – 80 0611h (defaultlinemode = FFh,lineaddress= 00h) Subaddress 7 6 5 4 3 2 1 0 80 0600h Lineaddress1 80 0601h Linemode 1 80 0602h Lineaddress2 80 0603h Linemode 2 80 0604h Lineaddress3 80 0605h Linemode 3 80 0606h Lineaddress4 80 0607h Linemode 4 80 0608h Lineaddress5 80 0609h Linemode 5 80 060Ah Lineaddress6 80 060Bh Linemode 6 80 060Ch Lineaddress7 80 060Dh Linemode 7 80 060Eh Lineaddress8 80 060Fh Linemode 8 80 0610h Lineaddress9 80 0611h Linemode 9 Lineaddress[7:0]:Linenumber toprocessselectedlinemode registeron Linemode x [7:0] Bit7 0 = Disabledfilters 1 = Enabledfiltersforteletextand CC (nullbytefilter)(default) Bit6 0 = Send slicedVBI datatoregistersonly 1 = Send slicedVBI datatoFIFO and registers,teletextdataonlygoes toFIFO (default) Bit5 0 = AllowVBI datawitherrorsintheFIFO 1 = Do notallowVBI datawitherrorsintheFIFO (default) Bit4 0 = Disablederrordetectionand correction 1 = Enablederrordetectionand correction(teletextonly)(default) Bit3 0 = Field1 1 = Field2 (default) Bit[2:0] 000 = Teletext(WST625, ChineseTeletext,NABTS 525) 001 = CC (US,European,Japan,China) 010 = WSS (525,625) 011 = VITC 100 = VPS/PDC (PAL only),Gemstar (NTSC only) 101 = USER 1 110 = USER 2 111 = Reserved(activevideo)(default)

90 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 Table2-120.VDP VPS/Gemstar Data Register Subaddress 80 0700h – 80 070Ch Read only VPS Subaddress 7 6 5 4 3 2 1 0 80 0700h VPS byte1 80 0701h VPS byte2 80 0702h VPS byte3 80 0703h VPS byte4 80 0704h VPS byte5 80 0705h VPS byte6 80 0706h VPS byte7 80 0707h VPS byte8 80 0708h VPS byte9 80 0709h VPS byte10 80 070Ah VPS byte11 80 070Bh VPS byte12 80 070Ch VPS byte13 These registerscontaintheentireVPS datalineexcepttheclockrun-incode and theframecode. Gemstar Subaddress 7 6 5 4 3 2 1 0 80 0700h Gemstar Frame Code 80 0701h Gemstar byte1 80 0702h Gemstar byte2 80 0703h Gemstar byte3 80 0704h Gemstar byte4 80 0705h Reserved 80 0706h Reserved 80 0707h Reserved 80 0708h Reserved 80 0709h Reserved 80 070Ah Reserved 80 070Bh Reserved 80 070Ch Reserved Copyright© 2005–2012,Texas InstrumentsIncorporated FunctionalDescription 91 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com Table2-121.Analog Output Control2 Register Subaddress A0 005Eh Default B2h 7 6 5 4 3 2 1 0 Reserved InputSelect[1:0] Gain[3:0] Analoginputselect[1:0]: These bitsareeffectivewhen manual inputselectbitissetto1 atsubaddress7Fh,bit1. 00 = CH1 selected 01 = CH2 selected 10 = CH3 selected 11= CH4 selected(default) AnalogoutputPGA gain[3:0]: These bitsareeffectivewhen analogoutputAGC isdisabled. Gain[3:0] Mode 1 0000 1.30 0001 1.56 0010 1.82 (default) 0011 2.08 0100 2.34 0101 2.60 0110 2.86 0111 3.12 1000 3.38 1001 3.64 1010 3.90 1011 4.16 1100 4.42 1101 4.68 1110 4.94 1111 5.20 Table2-122.InterruptConfigurationRegister Subaddress B0 0060h Default 00h 7 6 5 4 3 2 1 0 Reserved Polarity Reserved Polarity: Interruptterminalpolarity 0 = Activehigh(default) 1 = Activelow

92 FunctionalDescription Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012

3 ElectricalSpecifications

3.1 AbsoluteMaximum Ratings

overoperatingfree-airtemperaturerange(unlessotherwisenoted)(1) MIN MAX UNIT IOVDD to 0.5 4 VIOGND DVDD to –0.2 2 VDGND Supplyvoltagerange A33VDD (2)to –0.3 3.6 VA33GND (3) A18VDD (4)to –0.2 2 VA18GND (5) VItoDGND Digitalinputvoltagerange –0.5 4.5 V VO toDGND Digitaloutputvoltagerange –0.5 4.5 V AIN toAGND Analoginputvoltagerange –0.2 2.0 V Commercial 0 70 TA Operatingfree-airtemperature °C Industrial −40 85 Tstg Storagetemperature –65 150 °C JEDEC (7) Allpins >1000 Human-body model Allpins >1500(HBM) AEC-Q100 (8) ExcludingNC pins >3000 VESD ESD stressvoltage(6) V JEDEC (9) Allpins >250 Charged-devicemodel Allpins >250(CDM) AEC-Q100 (10) ExcludingNC pins >750 (1) Stressesbeyond thoselistedunderAbsoluteMaximum Ratingsmay cause permanentdamage tothedevice.These arestressratings onlyand functionaloperationofthedeviceattheseorany otherconditionsbeyond thoseindicatedunderRecommended operating conditionsisnotimplied.Exposuretoabsolute-maximum-ratedconditionsforextendedperiodsmay affectdevicereliability. (2) CH1_A33VDD, CH2_A33VDD (3) CH1_A33GND, CH2_A33GND (4) CH1_A18VDD, CH2_A18VDD, A18VDD, A18VDD_REF, PLL_A18VDD (5) CH1_A18GND, CH2_A18GND, A18GND (6) Electrostaticdischarge(ESD) tomeasure devicesensitivity/immunitytodamage caused by electrostaticdischargesintothedevice. (7) LevellistedisthepassinglevelperANSI/ESDA/JEDEC JS-001-2010.JEDEC document JEP155 statesthat500-V HBM allowssafe manufacturingwitha standardESD controlprocess,and manufacturingwithlessthan500-V HBM ispossibleifnecessaryprecautions aretaken.Pinslistedas 1000 V may actuallyhave higherperformance. (8) TestedperAEC Q100-002 revD (9) LevellistedisthepassinglevelperEIA-JEDEC JESD22-C101E. JEDEC document JEP157 statesthat250-V CDM allowssafe manufacturingwitha standardESD controlprocess.Pinslistedas 250 V may actuallyhave higherperformance. (10)TestedperAEC Q100-011 revB Copyright© 2005–2012,Texas InstrumentsIncorporated ElectricalSpecifications 93 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com

3.2 Recommended OperatingConditions

IOVDD Supplyvoltage,digital 3 3.3 3.6 V Commercial 1.65 1.8 1.95 DV DD Supplyvoltage,digital V Industrial 1.7 1.8 1.9 AV DD33 Supplyvoltage,analog 3 3.3 3.6 V Commercial 1.65 1.8 1.95 AV DD18 Supplyvoltage,analog V Industrial 1.7 1.8 1.9 VI(P-P) Analoginputvoltage,analog(ac-couplingnecessary) 0.5 1 2 V VIH Inputvoltagehigh,digital(1) 0.7IOVDD V VIL Inputvoltagelow,digital(2) 0.3IOVDD V IOH High-leveloutputcurrent(3) VOUT = 2.4V –4 mA IOL Low-leveloutputcurrent VOUT = 2.4V 4 mA Commercial 0 70 TA Operatingfree-airtemperature °C Industrial –40 85 (1) Exception:0.7AV DD18 forXIN terminal (2) Exception:0.3AV DD18 forXIN terminal (3) Currentsoutofa terminalaregivenas a negativenumber

3.3 CrystalSpecifications

Frequency 14.31818 MHz Frequencytolerance(1) ±50 ppm (1) Thisnumber istherequiredspecificationfortheexternalcrystal/oscillatorand isnottested.

94 ElectricalSpecifications Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012

3.4 ElectricalCharacteristics

Forminimum/maximum values: IOVDD = 3 V to3.6V,AV DD33 = 3 V to3.6V, Commercial:AV DD18 = 1.65V to1.95V,DV DD = 1.65V to1.95V,TA = 0°C to70°C Industrial:AV DD18 = 1.7V to1.9V,DV DD = 1.7V to1.9V,TA = −40°C to85°C Fortypicalvalues: IOVDD = AV DD33 = 3.3V,AV DD18 = DV DD = 1.8V,TA = 25°C

3.5 DC ElectricalCharacteristics(1)

PARAMETER TEST CONDITIONS MIN TYP MAX UNIT CVBS 6 IDDIO(D) 3.3-VIO digitalsupplycurrent mA S-Video 6 CVBS 55 IDD(D) 1.8-Vdigitalsupplycurrent mA S-Video 55 CVBS 24 IDD(33A) 3.3-Vanalogsupplycurrent mA S-Video 39 CVBS 79 IDD(18A) 1.8-Vanalogsupplycurrent mA S-Video 135 PTOT Totalpower dissipation,normaloperation S-Video 490 mW PSAVE Totalpower dissipation,power save 100 mW PDOWN Totalpower dissipation,power down 10 mW Ilkg Inputleakagecurrent 10 µA C I Inputcapacitance(2) 8 pF VOH Outputvoltagehigh(2) 0.8IOVDD V VOL Outputvoltagelow(2) 0.2IOVDD V (1) Measured witha loadof10 kΩ inparallelto15 pF. (2) Specifiedby design

3.6 Analog Processingand A/D Converters

FS = 30 MSPS forCH1, CH2 PARAMETER TEST CONDITIONS MIN TYP MAX UNIT Zi Inputimpedance,analogvideoinputs(1) 200 kΩ C i Inputcapacitance,analogvideoinputs(1) 10 pF Vi(PP) Inputvoltagerange C coupling= 0.1µF 0.5 1 2 V ΔG Inputgaincontrolrange(1) –6 6 dB DNL Differentialnonlinearity AFE only –1 ±0.75 +1 LSB INL Integralnonlinearity AFE only –2.5 ±1 +2.5 LSB FR Frequencyresponse Multiburst(60IRE) –0.9 dB XTALK Crosstalk(2) 1 MHz –50 dB SNR Signal-to-noiseratio,allchannels 1 MHz, 1 VPP 54 dB GM Gain match(1)(3) Fullscale,1 MHz 1.5 % NS Noisespectrum Luma ramp (100kHz tofull,tiltnull) –58 dB DP Differentialphase Modulatedramp 0.5 ° DG Differentialgain Modulatedramp ±1.5 % (1) Specifiedby design (2) By characterizationonly (3) Component inputsonly Copyright© 2005–2012,Texas InstrumentsIncorporated ElectricalSpecifications 95 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

Y, C, AVID, VS, HS, FID VOH VOL Valid Data Valid Data VOH VOL Stop Start VC1 (SDA) VC0 (SCL) Data Stop Change Data TVP5147M1 SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com

3.7 Clocks,Video Data,Sync Timing

PARAMETER TEST CONDITIONS MIN TYP MAX UNIT Dutycycle,DATACLK 45 50 55 % t1 Hightime,DATACLK 18.5 ns t2 Low time,DATACLK 18.5 ns t3 Falltime,DATACLK 90% to10% 4 ns t4 Risetime,DATACLK 10% to90% 4 ns Commercial 10 t5 Outputdelaytime ns Industrial 12 Figure3-1.Clocks,Video Data,and Sync Timing

3.8 I2C Host PortTiming

PARAMETER TEST CONDITIONS MIN TYP MAX UNIT t1 Bus freetimebetween STOP and START 1.3 µs t2 Data holdtime 0 0.9 µs t3 Data setuptime 100 ns t4 Setuptimefora (repeated)START condition 0.6 µs t5 Setuptimefora STOP condition 0.6 ns t6 Holdtime(repeated)START condition 0.6 µs t7 RisetimeVC1(SDA) and VC0(SCL) signal 250 ns t8 FalltimeVC1(SDA) and VC0(SCL) signal 250 ns C b Capacitiveloadforeach bus line 400 pF fI2C I2C clockfrequency 400 kHz Figure3-2.I2C Host PortTiming

96 ElectricalSpecifications Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012

3.9 Thermal Specifications

PARAMETER TEST CONDITIONS (1) MIN TYP MAX UNIT Junction-to-ambientthermalresistance,θJA Thermalpad solderedto4-layerHigh-KPCB 19.04 °C/Wstillair Junction-to-casethermalresistance,θJC Thermalpad solderedto4-layerHigh-KPCB 0.17 °C/Wstillair TJ(MAX Maximum junctiontemperatureforreliable 105 °C ) operation (1) The exposed thermalpad must be solderedtoa High-KPCB withadequategroundplane. Copyright© 2005–2012,Texas InstrumentsIncorporated ElectricalSpecifications 97 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com

4 Example RegisterSettings

The followingexample registersettingsare providedonly as a reference.These settings(giventhe assumed inputconnector,videoformat,and outputformat)set the TVP5147M1 decoder and provide videooutput.Example registersettingsforotherfeaturesand the VBI data processorare not provided here.

4.1 Example 1

4.1.1 Assumptions

Inputconnector:Composite(VI_1_A)(default) Videoformat: NTSC (J,M),PAL (B,G, H, I,N) orSECAM (default) Note:NTSC-443, PAL-Nc, PAL-M, and PAL-60 aremasked fromtheautoswitchprocessby default.See theautoswitchmask registerataddress04h. Outputformat: 10-bitITU-R BT.656 withembedded syncs(default)

4.1.2 Recommended Settings

Recommended I2C writes:Forthegivenassumptions,onlyone writeisrequired.Allotherregistersareset up by default. I2C registeraddress08h = Luminance processingcontrol3 register I2C data00h = OptimizesthetrapfilterselectionforNTSC and PAL I2C registeraddress0Eh = Chrominanceprocessingcontrol2 register I2C data04h = OptimizesthechrominancefilterselectionforNTSC and PAL I2C registeraddress34h = Outputformatter2 register I2C data11h = EnablesYCbCr outputand theclockoutput Note:HS/CS, VS/VBLK, AVID,FID,and GLCO arelogicinputsby default.See outputformatter3 and 4 registersataddresses35h and 36h,respectively.

98 Example RegisterSettings Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012

4.2 Example 2

4.2.1 Assumptions

Inputconnector:S-video[VI_2_C(luma),VI_1_C (chroma)] Videoformat: NTSC (J,M, 443),PAL (B,D, G, H, I,N, Nc,60)orSECAM (default) Outputformat: 10-bitITU-R BT.656 withdiscretesyncoutputs

4.2.2 Recommended Settings

Recommended I2C writes:Thissetuprequiresadditionalwritesto outputthe discretesync 10-bit4:2:2 data,HS, and VS, and toautoswitchbetween allvideoformatsmentionedabove. I2C registeraddress00h = Inputselectregister I2C data46h = Setsluma toVI_2_C and chroma toVI_1_C I2C registeraddress04h = Autoswitchmask register I2C data3Fh = IncludesNTSC 443 and PAL (M,Nc,60)intheautoswitch I2C registeraddress08h = Luminance processingcontrol3 register I2C data00h = OptimizesthetrapfilterselectionforNTSC and PAL I2C registeraddress0Eh = Chrominanceprocessingcontrol2 register I2C data04h = OptimizesthechrominancefilterselectionforNTSC and PAL I2C registeraddress33h = Outputformatter1 register I2C data41h = Selectsthe10-bit4:2:2outputformat I2C registeraddress34h = Outputformatter2 register I2C data11h = EnablesYCbCr outputand theclockoutput I2C registeraddress36h = Outputformatter4 register I2C data11h = EnablesHS and VS syncoutputs Copyright© 2005–2012,Texas InstrumentsIncorporated Example RegisterSettings 99 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com

4.3 Example 3

4.3.1 Assumptions

Inputconnector:Component [VI_1_B(Pb),VI_2_B (Y),VI_3_B (Pr)] Videoformat: 480I,576I Outputformat: 20-bitITU-R BT.656 withdiscretesyncoutputs

4.3.2 Recommended Settings

Recommended I2C writes:Thissetuprequiresadditionalwritesto outputthe discretesync 20-bit4:2:2 data,HS, and VS, and toautoswitchbetween allvideoformatsmentionedabove. I2C registeraddress00h = Inputselectregister I2C data95h = SetsPb toVI_1_B,Y toVI_2_B,and Pr toVI_3_B I2C registeraddress04h = Autoswitchmask register I2C data3Fh = IncludesNTSC 443 and PAL (M,Nc,60)intheautoswitch I2C registeraddress08h = Luminance processingcontrol3 register I2C data00h = OptimizesthetrapfilterselectionforNTSC and PAL I2C registeraddress0Eh = Chrominanceprocessingcontrol2 register I2C data04h = OptimizesthechrominancefilterselectionforNTSC and PAL I2C registeraddress33h = Outputformatter1 register I2C data41h = Selectsthe20-bit4:2:2outputformat I2C registeraddress34h = Outputformatter2 register I2C data11h = EnablesYCbCr outputand theclockoutput I2C registeraddress36h = Outputformatter4 register I2C dataAFh = EnablesHS and VS syncoutputs

100 Example RegisterSettings Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

75 Ω (3) 0.1 µF (3) 75 Ω (3) 2.2 kΩ TVP5147M1 VI_1_A CH1_A18GND CH1_A18VDD PLL_A18GND PLL_A18VDD XTAL2 XTAL1 VS/VBLK HS/CS FID C_0 C_1 DGND DVDD C_2 C_3 C_4 C_5 IOGND IOVDD C_6 C_7 C_8 C_9 DGND DVDD Y_0 Y_1 Y_2 Y_3 Y_4 IOGND IOVDD Y_5 Y_6 Y_7 Y_8 Y_9 DGND DVDD VI_1_B VI_1_C CH1_A33GND CH1_A33VDD CH2_A33VDD CH2_A33GND VI_2_A VI_2_B VI_2_C CH2_A18GND CH2_A18VDD A18VDD_REF A18GND_REF NC NC VI_3_A VI_3_B VI_3_C NC NC NC NC VI_4A NC NC AGND DGND SCL SDA INTREQ DVDD DGND PWDN RESETB FSS AVID GLCO/I2CA IOVDD IOGND DATACLK40 A3.3VDD GND FID VS/VBLK DATACLK GLCO/I2CA VI_1B VI_1C VI_2A VI_2B VI_3A VI_3B VI_2C VI_3C VI_4A AVID FSS RESETB PWDN INTREQ SDA SCL Y_0 Y_1 Y_2 Y_3 Y_4 Y_5 Y_6 Y_7 Y_8 Y_9 VI_1A HS/CS XTAL1 XTAL2 2.2 kΩ (2)75 Ω 75 Ω (3) 0.1 µF 0.1 µF (2) 0.1 µF 0.1 µF (2) 0.1 µF 0.1 µF 0.1 µF (2) 0.1 µF 0.1 µF 0.1 µF (3) 0.1 µF (3) 0.1 µF (3) 0.1 µF 0.1 µF DVDD1.8 V IOVDD3.3 V A1.8VDD I2C Address selection 1−2 Base Addr. 0xBA 2−3 Base Addr. 0xB8 GLCO/I2CA IOVDD 10 kΩ 10 kΩ 22 µF 12 kΩ 22 kΩ 22 Ω 1 kΩ 75 Ω VOUT CL1 CL2

14.31818 MHz

2.2 kΩ 100 kΩ TVP5147M1 www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012

5 ApplicationInformation

5.1 ApplicationExample

A. IfXTAL1 isconnectedtoclocksource,inputvoltagehighmust be 1.8V. B. TVP5147 can be a drop-inreplacementforTVP5146. C. Terminals69 and 71 must be connectedtogroundthroughpulldownresistors. D. System levelESD protectionisnot includedinthisapplicationcircuit,but itishighlyrecommended on the analog videoinputs. Figure5-1.Example ApplicationCircuit Copyright© 2005–2012,Texas InstrumentsIncorporated ApplicationInformation 101 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

SLES140G –JULY 2005–REVISED FEBRUARY 2012 www.ti.com

5.2 DesigningWith PowerPAD ™ Devices

The TVP5147 device is housed in a high-performance,thermallyenhanced, 80-terminalPowerPAD package (TIpackage designator:80PFP). Use of the PowerPAD package does not requirespecial considerationsexceptto note thatthe thermalpad, which isan exposed diepad on the bottom of the device,isa metallicthermaland electricalconductor.Therefore,ifnotimplementingthePowerPAD PCB features,the use of soldermasks (or otherassembly techniques)can be requiredto preventany inadvertentshortingby the exposed thermalpad of connectionetchesor viasunder the package.The recommended option,however,isnottorunany etchesorsignalviasunderthedevice,buttohave onlya grounded thermallandas inthefollowingexplanation.Althoughtheactualsizeoftheexposed diepad may vary,theminimum sizerequiredforthekeep-outareaforthe80-terminalPFP PowerPAD package is 8 mm × 8 mm. Itisrecommended thattherebe a thermalland,which isan area of solder-tinned-copper,under the PowerPAD package.The thermallandvariesinsize,dependingon thePowerPAD package beingused, thePCB construction,and theamount ofheatthatneeds tobe removed.Inaddition,thethermallandmay ormay notcontainnumerous thermalvias,dependingon PCB construction. Other requirementsforusingthermallandsand thermalviasare detailedin the TI applicationreport PowerPAD ™ ThermallyEnhanced Package (SLMA002 ),availableviatheTIweb siteathttp://www.ti.com. For theTVP5147 device,thisthermallandmust be grounded tothelow-impedanceground planeofthe device.Thisimprovesnotonlythermalperformancebutalsotheelectricalgroundingofthedevice.Itis alsorecommended thatthedeviceground terminallandingpads be connecteddirectlytothegrounded thermalland.The landsizemust be as largeas possiblewithoutshortingdevicesignalterminals.The thermallandcan be solderedtotheexposed thermalpad usingstandardreflowsolderingtechniques. Whilethethermallandcan be electricallyfloatedand configuredtoremove heattoan externalheatsink,it isrecommended thatthethermallandbe connectedtothelow-impedanceground planeforthedevice. More informationcan be obtainedfromtheTIapplicationreportPHY Layout(SLLA020 ).

102 ApplicationInformation Copyright© 2005–2012,Texas InstrumentsIncorporated

SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com SLES140G –JULY 2005–REVISED FEBRUARY 2012 RevisionHistory NOTE: Page numbers forpreviousrevisionsmay differfrompage numbers inthecurrentversion. REVISION COMMENTS SLES140 Initialrelease SLES140A Updated Section2.8 SLES140B Added industrialtemperatureorderableand updatedrelevantspecificationsinChapter3 Updated Section1.2 SLES140C Updated Section2.11.16,Section2.11.17 Updated MAX supplyvoltagesforIndustrialtemperatureinRecommended OperatingConditions Added notesthroughoutElectricalCharacteristicstoindicateparametersspecifiedby designorspecifiedby characterizationonly Updated DNL Differentialnonlinearityspecificationand INL Integralnonlinearity(page80) Updated t5Outputdelaytime,Industrial(page81) SLES140D Updated Section2.8 SLES140E Added AEC –Q100 qualification Changed allinstancesof10–bitvideodecoderto11–bit Updated registerdescriptionsataddresses09h,0Ah,0Bh Added registersataddresses11h,12h,14h,26h,27h,2Fh Changes allinstancesofWSS toWSS/CGMS and VPS toVPS/Gemstar Changed A18GND (pin24)and A18VDD (pin25)toNC Added Section3.4ThermalSpecification Updated Figure5-1Example ApplicationCircuit SLES140F Section2.6.1,Removed statementaboutinternalpulldownon I2CA terminal Modifiedthermalspecification Added maximum ESD ratings ModifiedI2C address03h registerand description Table2-10,Added RAM versionMSB and LSB registers(subaddresses:71h,82h) Table2-72,Added RAM versionMSB register(subaddress:71h) Table2-82,Added RAM versionLSB register(subaddress:82h) Minoreditorialchanges SLES140G Figure2-10,Changed figureand added note. Figure2-12and Figure2-13,Changed figures. Section2.8,Changed descriptionconcerninginitializingVBUS register0xA00014. Figure5-1,Added noteconcerningESD protection. Copyright© 2005–2012,Texas InstrumentsIncorporated ApplicationInformation 103 SubmitDocumentationFeedback ProductFolderLink(s):TVP5147M1

www.ti.com 23-May-2025 PACKAGING INFORMATION Orderable part number Status (1) Material type (2) Package | Pins Package qty | Carrier RoHS (3) Lead finish/ Ball material (4) MSL rating/ Peak reflow (5) Op temp (°C) Part marking (6) TVP5147M1IPFP Active Production HTQFP (PFP) | 80 96 | JEDEC TRAY (10+1) Yes NIPDAU Level-3-260C-168 HR -40 to 85 TVP5147M1I TVP5147M1IPFP.A Active Production HTQFP (PFP) | 80 96 | JEDEC TRAY (10+1) Yes NIPDAU Level-3-260C-168 HR -40 to 85 TVP5147M1I TVP5147M1IPFPR Active Production HTQFP (PFP) | 80 1000 | LARGE T&R Yes NIPDAU Level-3-260C-168 HR -40 to 85 TVP5147M1I TVP5147M1IPFPR.A Active Production HTQFP (PFP) | 80 1000 | LARGE T&R Yes NIPDAU Level-3-260C-168 HR -40 to 85 TVP5147M1I TVP5147M1PFP Active Production HTQFP (PFP) | 80 96 | JEDEC TRAY (10+1) Yes NIPDAU Level-3-260C-168 HR 0 to 70 TVP5147M1 TVP5147M1PFP.A Active Production HTQFP (PFP) | 80 96 | JEDEC TRAY (10+1) Yes NIPDAU Level-3-260C-168 HR -40 to 85 TVP5147M1 TVP5147M1PFPG4.A Active Production HTQFP (PFP) | 80 96 | JEDEC TRAY (10+1) Yes NIPDAU Level-3-260C-168 HR -40 to 85 TVP5147M1 TVP5147M1PFPR Active Production HTQFP (PFP) | 80 1000 | LARGE T&R Yes NIPDAU Level-3-260C-168 HR 0 to 70 TVP5147M1 TVP5147M1PFPR.A Active Production HTQFP (PFP) | 80 1000 | LARGE T&R Yes NIPDAU Level-3-260C-168 HR -40 to 85 TVP5147M1 (1) Status: For more details on status, see our product life cycle. (2) Material type: When designated, preproduction parts are prototypes/experimental devices, and are not yet approved or released for full production. Testing and final process, including without limitation quality assurance, reliability performance testing, and/or process qualification, may not yet be complete, and this item is subject to further changes or possible discontinuation. If available for ordering, purchases will be subject to an additional waiver at checkout, and are intended for early internal evaluation purposes only. These items are sold without warranties of any kind. (3) RoHS values: Yes, No, RoHS Exempt. See the TI RoHS Statement for additional information and value definition. (4) Lead finish/Ball material: Parts may have multiple material finish options. Finish options are separated by a vertical ruled line. Lead finish/Ball material values may wrap to two lines if the finish value exceeds the maximum column width. (5) MSL rating/Peak reflow: The moisture sensitivity level ratings and peak solder (reflow) temperatures. In the event that a part has multiple moisture sensitivity ratings, only the lowest level per JEDEC standards is shown. Refer to the shipping label for the actual reflow temperature that will be used to mount the part to the printed circuit board. (6) Part marking: There may be an additional marking, which relates to the logo, the lot trace code information, or the environmental category of the part. Multiple part markings will be inside parentheses. Only one part marking contained in parentheses and separated by a "~" will appear on a part. If a line is indented then it is a continuation of the previous line and the two combined represent the entire part marking for that device. Addendum-Page 1

www.ti.com 23-May-2025 Important Information and Disclaimer:The information provided on this page represents TI's knowledge and belief as of the date that it is provided. TI bases its knowledge and belief on information provided by third parties, and makes no representation or warranty as to the accuracy of such information. Efforts are underway to better integrate information from third parties. TI has taken and continues to take reasonable steps to provide representative and accurate information but may not have conducted destructive testing or chemical analysis on incoming materials and chemicals. TI and TI suppliers consider certain information to be proprietary, and thus CAS numbers and other limited information may not be available for release. In no event shall TI's liability arising out of such information exceed the total purchase price of the TI part(s) at issue in this document sold by TI to Customer on an annual basis. Addendum-Page 2

PACKAGE MATERIALS INFORMATION www.ti.com 23-May-2025 TRAY L - Outer tray length without tabs KO - Outer tray height W - Outer tray width P1 - Tray unit pocket pitch CW - Measurement for tray edge (Y direction) to corner pocket center CL - Measurement for tray edge (X direction) to corner pocket center Text Chamfer on Tray corner indicates Pin 1 orientation of packed units. *All dimensions are nominal Device Package Name Package Type Pins SPQ Unit array matrix Max temperature (°C) L (mm) W (mm) (µm) (mm) CL (mm) CW (mm) TVP5147M1IPFP PFP HTQFP 80 96 6 x 16 150 315 135.9 7620 18.7 17.25 18.3 TVP5147M1PFP PFP HTQFP 80 96 6 x 16 150 315 135.9 7620 18.7 17.25 18.3 Pack Materials-Page 1

www.ti.com

IMPORTANT NOTICE AND DISCLAIMER TI PROVIDES TECHNICAL AND RELIABILITY DATA (INCLUDING DATA SHEETS), DESIGN RESOURCES (INCLUDING REFERENCE DESIGNS), APPLICATION OR OTHER DESIGN ADVICE, WEB TOOLS, SAFETY INFORMATION, AND OTHER RESOURCES “AS IS” AND WITH ALL FAULTS, AND DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY RIGHTS. These resources are intended for skilled developers designing with TI products. You are solely responsible for (1) selecting the appropriate TI products for your application, (2) designing, validating and testing your application, and (3) ensuring your application meets applicable standards, and any other safety, security, regulatory or other requirements. These resources are subject to change without notice. TI grants you permission to use these resources only for development of an application that uses the TI products described in the resource. Other reproduction and display of these resources is prohibited. No license is granted to any other TI intellectual property right or to any third party intellectual property right. TI disclaims responsibility for, and you will fully indemnify TI and its representatives against, any claims, damages, costs, losses, and liabilities arising out of your use of these resources. TI’s products are provided subject to TI’s Terms of Sale or other applicable terms available either on ti.com or provided in conjunction with such TI products. TI’s provision of these resources does not expand or otherwise alter TI’s applicable warranties or warranty disclaimers for TI products. TI objects to and rejects any additional or different terms you may have proposed. IMPORTANT NOTICE Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265 Copyright © 2025, Texas Instruments Incorporated