Datasheet

Table Of Contents
ADV7188
Rev. A | Page 70 of 112
The format of the data packet depends on the following criteria:
Transmission is Gemstar 1× or Gemstar 2×.
Data is output in 8-bit or 4-bit format (see the GDECAD,
Gemstar Decode Ancillary Data Format, Address 0x4C [0]
section).
Data is closed captioning (CC) or Gemstar compatible.
Data packets are output if the corresponding enable bit is
set (see the
GDECEL [15:0], Gemstar Decoding Even Lines,
Address 0x48 [7:0], Address 0x49 [7:0]
and the GDECOL [15:0],
Gemstar Decoding Odd Lines, Address 0x4A [7:0], Address
0x4B [7:0]
sections) and the decoder detects the presence of
data. This means that for video lines where no data has been
decoded, no data packet is output, even if the corresponding line
enable bit is set.
Each data packet starts immediately after the EAV code of the
preceding line.
Figure 43 and Table 84 show the overall
structure of the data packet.
Entries within the packet are as follows:
A fixed preamble sequence of 0x00, 0xFF, and 0xFF.
The data identification word (DID) (10-bit value), the
value of which is 0x140 for a Gemstar or CC data packet.
The secondary data identification word (SDID), which
contains information about the video line from which data
was retrieved, whether the Gemstar transmission was of 1×
or 2× format, and whether it was retrieved from an even or
odd field.
The data count byte, which provides the number of user
data-words that follow.
User data section. This contains the user data, which can
be four or eight words of data.
Optional padding to ensure that the length of the user
data-word section of a packet is a multiple of four bytes
(requirement, as set in ITU-R BT.1364).
Checksum byte. This contains the checksum of the packet.
Table 84 lists the values within a generic data packet that are
output by the ADV7188 in 10-bit format.
05478-045
00 FF FF DID SDID
DATA
COUNT
USER DATA
OPTIONAL PADDING
BYTES
CHECKSUM
SECOND
A
R
Y
D
A
T
A
IDENTIFI
C
A
TION
PREAMBLE FOR ANCILLARY DATA
DAT
A
IDENTIFI
C
A
TION
USER DATA (FOUR OR EIGHT WORDS)
Figure 43. Gemstar and CC Embedded Data Packet (Generic)
Table 84. Generic Data Output Packet
Byte D [9] D [8] D [7] D [6] D [5] D [4] D [3] D [2] D [1] D [0] Description
0 0 0 0 0 0 0 0 0 0 0 Fixed preamble
1 1 1 1 1 1 1 1 1 1 1 Fixed preamble
2 1 1 1 1 1 1 1 1 1 1 Fixed preamble
3 0 1 0 1 0 0 0 0 0 0 DID
4
EP
EP EF 2X line [3:0] 0 0 SDID
5
EP
EP 0 0 0 0 DC [1] DC [0] 0 0 Data count (DC)
6
EP
EP 0 0 word1 [7:4] 0 0 User data-words
7
EP
EP 0 0 word1 [3:0] 0 0 User data-words
8
EP
EP 0 0 word2 [7:4] 0 0 User data-words
9
EP
EP 0 0 word2 [3:0] 0 0 User data-words
10
EP
EP 0 0 word3 [7:4] 0 0 User data-words
11
EP
EP 0 0 word3 [3:0] 0 0 User data-words
12
EP
EP 0 0 word4 [7:4] 0 0 User data-words
13
EP
EP 0 0 word4 [3:0] 0 0 User data-words
14
CS[8]
CS [8] CS [7] CS [6] CS [5] CS [4] CS [3] CS [2] 0 0 Checksum