This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TVP5160 CGMS Data in 480p Video

Other Parts Discussed in Thread: TVP5160, TVP5146

I am attempting to use a TVP5160 to decode CGMS-A Type A packets on line 41 of a 480p video signal.

The TVP5160 is running on a TVP5160EVM evaluation board and controlled using TI WinVCC4 v4.56 software. 

After initializing the decoder for 480p input video, and verifying that the TVP5160 is locked to the incoming video (Status Register 1 = 06), I have configured the the following registers to capture line 41 data:

VDP Line Stop register (D7h) = 2Ah (42) - extend the VDP range to include line 41
VDP Line Address register (80 0600h) = 29h (41) - set the capture line
VDP Line Mode register (80 0601h) = 02h - line mode: WSS/CGMS, Field 1, disable error detection

Results:

Test 1 CGMS 1,0 APS 0,0
Line 41 video data as observed on an oscilloscope:
Byte 1 - 00h
Byte 2 - 01h

Line 41 video data as captured by TVP5160 decoder (80 0520h & 80 0521h):
Byte 1 - 20h
Byte 2 - 00h


Test 2 CGMS 1,1 APS 0,1
Line 41 video data as observed on an oscilloscope:
Byte 1 - 00h
Byte 2 - 0Bh

Line 41 video data as captured by TVP5160 decoder (80 0520h & 80 0521h):
Byte 1 - 20h
Byte 2 - 45h


Test 3 CGMS 1,1 APS 1,0
Line 41 video data as observed on an oscilloscope:
Byte 1 - 00h
Byte 2 - 07h

Line 41 video data as captured by TVP5160 decoder (80 0520h & 80 0521h):
Byte 1 - 20h
Byte 2 - 41h


Test 4 CGMS 1,1 APS 1,1
Line 41 video data as observed on an oscilloscope:
Byte 1 - 00h
Byte 2 - 0Fh

Line 41 video data as captured by TVP5160 decoder (80 0520h & 80 0521h):
Byte 1 - 20h
Byte 2 - 03h

The TVP5160 seems to be capturing some of the line 41 data with that data shifted one position toward the LSB. In Test 4 there are fewer 1's in the TVP data than in the video data.

Am I missing some configuration steps that are necessary to properly capture this data?

Any help would be appreciated.

Thanks,

Rich

  • Hi Rich,

    Can you please try the "User 1" line mode setup below?  This requires additional writes to the 0x90205xh registers to configure the CGMS-A slicing parameters and a change to the 0x800601h line mode register.

     

    DATASET_NAME,"TVP5160 480p CGMS-A Line 41 VDP/VBI SETUP"

    // Data can go to either WSS data registers or FIFO
    // WSS data raw staus bit in Reg F0h can be used to check for data
    // The WSS raw status bit must be cleared using Reg F6h after data is read.

    // Use Indirect Registers to setup Line numbers and line mode

    // USER1 configuration
    WR_IND,VID_DEC,0x01,0x902050h,0x38  //
    WR_IND,VID_DEC,0x01,0x902051h,0x00  //
    WR_IND,VID_DEC,0x01,0x902052h,0x3f  //
    WR_IND,VID_DEC,0x01,0x902053h,0x00  //
    WR_IND,VID_DEC,0x01,0x902054h,0x00  //
    WR_IND,VID_DEC,0x01,0x902055h,0x71  //
    WR_IND,VID_DEC,0x01,0x902056h,0x6e  //
    WR_IND,VID_DEC,0x01,0x902057h,0x43  //
    WR_IND,VID_DEC,0x01,0x902058h,0x63  //
    WR_IND,VID_DEC,0x01,0x902059h,0xd8  //
    WR_IND,VID_DEC,0x01,0x90205ah,0x09  //
    WR_IND,VID_DEC,0x01,0x90205bh,0x80  //
    WR_IND,VID_DEC,0x01,0x90205ch,0x00  //
    WR_IND,VID_DEC,0x01,0x90205dh,0x00  //
    WR_IND,VID_DEC,0x01,0x90205eh,0x39  //
    WR_IND,VID_DEC,0x01,0x90205fh,0x00  //

    WR_IND,VID_DEC,0x01,0x800600h,0x29  // CGMS-A is on Line 41
    WR_IND,VID_DEC,0x01,0x800601h,0x05  // USER 1 line mode 


    // Direct I2C Registers
    WR_REG,VID_DEC,0x01,0xd6,0x06 // VDP start line = 6
    WR_REG,VID_DEC,0x01,0xd7,0x2a // VDP stop line = 42  must include line 41

    WR_REG,VID_DEC,0x01,0xc0,0x01 // Host acess enable

  • Thanks, Larry. The configuration works as expected.

    Is there documentation available that describes the setup of of user line modes?

    Thanks again,

    Rich

  • Rich,

    Glad to hear you are making progress.  480p CGMS is a unique case.  The TVP5160 firmware automically configures the VBI slicer confiugration RAM for the other types of VBI data, so there is no need to load the 0x90205x address space.  So, selecting the line numbers and modes will automatically arm the VBI slicing in most cases. 

    You may want to check out the VBI Quick Start application note in the TVP5146 product folder.  TVP5160 operation will be similar except for 480p support.  I'll check to see if there is a document with more detail that we can send out.

    Regards,

    Larry