Post Go back to editing

Teletext Decoding on ADV7280A

Category: Hardware
Product Number: ADV7280A

I want to decode teletext inserted on an ADV7280A analog output and insert onto parallel video ancillary data. The decoder shows teletext in status registers, but does not insert it into ancillary data. I am using this eval board: EVAL-ADV7280A Evaluation Board | Analog Devices Does the ADV7280A require implementing the network layer for teletext ancillary data insertion? The expected output is an ancillary data flag (ADF) and a counting pattern with my current implementation.

I am inserting teletext as shown below with an ADV7393 driving the link. Following ITU-R BT.653, I transmit 360 bits total with the first 2 bytes of clock run in as x"AA", x"AA" followed by a frame sync byte of x"E4".

Attached below is the register settings for the ADV7280A. I have written to it enabling teletext decoding, ancillary data insertion, and using PAL video with Teletext WST Type B.

delay 10 ; Wait 10ms After Hardware Reset To Start I2C
42 0F 80 ; Reset ADV7280A
56 17 02 ; Reset Encoder
delay 10 ; Wait 10ms 
42 0F 00 ; Exit Power Down Mode [ADV7280A writes begin]
42 52 CD ; AFE IBIAS
42 00 00 ; CVBS in on AIN1
42 0E 80 ; ADI Required Write 
42 9C 00 ; Reset Current Clamp Circuitry [step1] 
42 9C FF ; Reset Current Clamp Circuitry [step2] 
42 0E 00 ; Enter User Sub Map
42 80 51 ; ADI Required Write
42 81 51 ; ADI Required Write
42 82 68 ; ADI Required Write
42 17 41 ; Enable SH1
42 03 0C ; Enable Pixel & Sync output drivers
42 04 07 ; Power-up INTRQ, HS & VS pads
42 13 00 ; Enable ADV7280A for 28_63636MHz crystal
42 1D 40 ; Enable LLC output driver [ADV7280A writes finished]
56 00 1C ; Power up DACs and PLL [Encoder writes begin]
56 01 00 ; Set Encoder to SD mode
56 80 10 ; SSAF Luma filter enabled, NTSC mode
56 82 C9 ; Step control on, pixel data valid, ped on, PbPr SSAF on, YPbPr out
56 87 20 ; PAL/NTSC autodetect mode enabled
56 88 00 ; 8 bit input enabled [Encoder Writes finished]
42 0E 01 ; Access interrupt/VDP subreg space
delay 10 ;
42 60 05 ; PAL Teletext (WST) B, enable user programming of teletext type
42 62 B5 ; Enable ancillary insertion, byte mode no restrictions, ADF_DID[4:0]=10101
42 63 2A ; disable duplication, SDID=[5:0] 
End

Any tips on debugging this?

  • Hi,

      Apologies for the delayed response, In the above shared configuration '0x62' teletext register has not been configured. Please crosscheck once and refer below snap for reference,

    ADV728x:

    ADV739x:

    Thanks,

    Poornima S

  • Thanks Poornima

    I've updated the configuration script, but still see the same issue. The input CVBS video to the encoder is a stable colorbar test pattern with teletext insertion on the VBI (attached below). Is there anything else you would try or any other way to get teletext out of decoder?

    delay 10 ; Wait 10ms After Hardware Reset To Start I2C
    42 0F 80 ; Reset ADV7280A
    56 17 02 ; Reset Encoder
    delay 10 ; Wait 10ms 
    42 0F 00 ; Exit Power Down Mode [ADV7280A writes begin]
    42 52 CD ; AFE IBIAS
    42 00 00 ; CVBS in on AIN1
    42 0E 80 ; ADI Required Write 
    42 9C 00 ; Reset Current Clamp Circuitry [step1] 
    42 9C FF ; Reset Current Clamp Circuitry [step2] 
    42 0E 00 ; Enter User Sub Map
    42 80 51 ; ADI Required Write
    42 81 51 ; ADI Required Write
    42 82 68 ; ADI Required Write
    42 17 41 ; Enable SH1
    42 03 0C ; Enable Pixel & Sync output drivers
    42 04 07 ; Power-up INTRQ, HS & VS pads
    42 13 00 ; Enable ADV7280A for 28_63636MHz crystal
    42 1D 40 ; Enable LLC output driver [ADV7280A writes finished]
    56 00 1C ; Power up DACs and PLL [Encoder writes begin]
    56 01 00 ; Set Encoder to SD mode
    56 80 10 ; SSAF Luma filter enabled, NTSC mode
    56 82 C9 ; Step control on, pixel data valid, ped on, PbPr SSAF on, YPbPr out
    56 87 20 ; PAL/NTSC autodetect mode enabled
    56 88 00 ; 8 bit input enabled [Encoder Writes finished]
    42 0E 01 ; Access interrupt/VDP subreg space
    delay 10 ;
    42 60 05 ; PAL Teletext (WST) B, enable user programming of teletext type
    42 62 B5 ; Enable ancillary insertion, byte mode no restrictions, ADF_DID[4:0]=10101
    42 63 2A ; disable duplication, SDID=[5:0] 

  • Hi,

       Could you please evaluate the same in our evaluation board ?

    Thanks,

    Poornima S

  • Hi Poornima,

    I should be more specific. The test setup for this is the ADV7393 evaluation board driving the ADV7280A evaluation board's ADC input. Signals in the screenshot above are from the ADV7393 encoder output/teletext signals and the ADV7280A decoded signals (the ITU stream). The only custom part of this setup is a FPGA devboard we had on hand driving a test pattern to the encoder input.

    Thanks,

    Eamon

  • Hi,

    Please refer to the thread below. The customer faced the same issue and eventually got it working after our expert's suggestion.

    In this thread, the expert provided a suggestion regarding setting and clearing of ‘TTXT_AVL’ (Interrupt map, register 0x78, bit [7]).

     ADV7280 teletext detected not working 

    Thanks,

    Poornima S

  • Hi Poornima,

    Apologies for the late response (been traveling lately). I did get the ancillary data flag showing up on decoder output. The solution was to unmask the TTXT_AVL interrupt and clear it periodically. Thanks for supporting this.

    Thanks,

    Eamon

  • Hi,

     Good to hear! Thanks for letting us know.

    Regards,

    Poornima S

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.