HDMI™ Display Interface
AD9398
FEATURES
Advanced TVs
HDTVs
Projectors
LCD monitors
SDA
SERIAL REGISTER
AND
POWER MANAGEMENT
YCbCr (4:2:2
OR 4:4:4)
R/G/B 8 × 3
OR YCbCr
Rx0+
Rx0–
2
DATACK
Rx1+
HSYNC
Rx1–
Rx2+
HDMI
RECEIVER
Rx2–
VSYNC
DE
2
DATACK
HSOUT
VSOUT
DE
RxC+
S/PDIF OUT
RxC–
8-CHANNEL
I2S
RTERM
MCLK
LRCLK
MCL
MDA
HDCP
DDCSCL
DDCSDA
AD9398
05678-001
APPLICATIONS
R/G/B 8 × 3
SCL
RGB ↔YCbCr
COLORSPACE CONVERTER
HDMI interface
Supports high bandwidth digital content protection
RGB to YCbCr 2-way color conversion
1.8 V/3.3 V power supply
100-lead, Pb-free LQFP
RGB and YCbCr output formats
Digital video interface
HDMI 1.1, DVI 1.0
150 MHz HDMI receiver
Supports high bandwidth digital content protection
(HDCP 1.1)
Digital audio interface
HDMI 1.1-compatible audio interface
SPDIF (IEC90658-compatible) digital audio output
Multichannel I2S audio output (up to 8 channels)
FUNCTIONAL BLOCK DIAGRAM
Figure 1.
GENERAL DESCRIPTION
The AD9398 offers a high definition multimedia interface
(HDMI) receiver integrated on a single chip. Also included is
support for high bandwidth digital content protection (HDCP).
The AD9398 contains a HDMI 1.0-compatible receiver and
supports all HDTV formats (up to 1080p) and display resolutions up to SXGA (1280 × 1024 @ 75 Hz). The receiver features
an intrapair skew tolerance of up to one full clock cycle. With
the inclusion of HDCP, displays can now receive encrypted
video content. The AD9398 allows for authentication of a video
receiver, decryption of encoded data at the receiver, and
renewability of that authentication during transmission as
specified by the HDCP 1.1 protocol.
Fabricated in an advanced CMOS process, the AD9398 is
provided in a space-saving 100-lead, surface-mount, Pb-free,
plastic LQFP and is specified over the 0°C to 70°C temperature
range.
Rev. 0
Information furnished by Analog Devices is believed to be accurate and reliable. However, no
responsibility is assumed by Analog Devices for its use, nor for any infringements of patents or other
rights of third parties that may result from its use. Specifications subject to change without notice. No
license is granted by implication or otherwise under any patent or patent rights of Analog Devices.
Trademarks and registered trademarks are the property of their respective owners.
One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A.
Tel: 781.329.4700
www.analog.com
Fax: 781.461.3113
© 2005 Analog Devices, Inc. All rights reserved.
AD9398
TABLE OF CONTENTS
Features .............................................................................................. 1
4:4:4 to 4:2:2 Filter ...................................................................... 11
Applications....................................................................................... 1
Audio PLL Setup......................................................................... 12
Functional Block Diagram .............................................................. 1
Audio Board Level Muting........................................................ 13
General Description ......................................................................... 1
Output Data Formats................................................................. 13
Specifications..................................................................................... 3
2-Wire Serial Register Map ........................................................... 14
Electrical Characteristics............................................................. 3
2-Wire Serial Control Register Details ........................................ 25
Digital Interface Electrical Characteristics ............................... 3
Chip Identification ..................................................................... 25
Absolute Maximum Ratings............................................................ 5
BT656 Generation ...................................................................... 27
Explanation of Test Levels ........................................................... 5
Macrovision................................................................................. 28
ESD Caution.................................................................................. 5
Color Space Conversion ............................................................ 29
Pin Configuration and Function Descriptions............................. 6
2-Wire Serial Control Port ............................................................ 36
Design Guide..................................................................................... 9
Data Transfer via Serial Interface............................................. 36
General Description..................................................................... 9
Serial Interface Read/Write Examples ..................................... 37
Digital Inputs ................................................................................ 9
PCB Layout Recommendations.................................................... 38
Serial Control Port ....................................................................... 9
Power Supply Bypassing ............................................................ 38
Output Signal Handling............................................................... 9
Outputs (Both Data and Clocks).............................................. 38
Power Management...................................................................... 9
Digital Inputs .............................................................................. 38
Timing.......................................................................................... 10
Color Space Converter (CSC) Common Settings...................... 39
VSYNC Filter and Odd/Even Fields ........................................ 10
Outline Dimensions ....................................................................... 41
HDMI Receiver........................................................................... 10
Ordering Guide .......................................................................... 41
DE Generator .............................................................................. 10
REVISION HISTORY
10/05—Revision 0: Initial Version
Rev. 0 | Page 2 of 44
AD9398
SPECIFICATIONS
ELECTRICAL CHARACTERISTICS
VDD, VD = 3.3 V, DVDD = PVDD = 1.8 V, ADC clock = maximum.
Table 1.
Parameter
DIGITAL INPUTS (5 V TOLERANT)
Input Voltage, High (VIH)
Input Voltage, Low (VIL)
Input Current, High (IIH)
Input Current, Low (IIL)
Input Capacitance
DIGITAL OUTPUTS
Output Voltage, High (VOH)
Output Voltage, Low (VOL)
Duty Cycle, DATACK
Output Coding
THERMAL CHARACTERISTICS
θJA Junction-to-Ambient
AD9398KSTZ-100
Typ
Max
Temp
Test Level
Min
Full
Full
Full
Full
25°C
VI
VI
V
V
V
2.6
Full
Full
Full
VI
VI
V
VDD − 0.1
Min
AD9398KSTZ-150
Typ
Max
2.6
0.8
0.8
−82
82
3
45
V
−82
82
3
VDD − 0.1
50
Binary
0.4
55
45
50
Binary
35
0.4
55
35
Unit
V
V
μA
μA
pF
V
V
%
°C/W
DIGITAL INTERFACE ELECTRICAL CHARACTERISTICS
VDD = VD =3.3 V, DVDD = PVDD = 1.8 V, ADC clock = maximum.
Table 2.
Parameter
RESOLUTION
DC DIGITAL I/O SPECIFICATIONS
High-Level Input Voltage (VIH)
Low-Level Input Voltage (VIL)
High-Level Output Voltage (VOH)
Low-Level Output Voltage (VOL)
DC SPECIFICATIONS
Output High Level
(IOHD) (VOUT = VOH)
Output Low Level
IOLD, (VOUT = VOL)
DATACK High Level
VOHC, (VOUT = VOH)
DATACK Low Level
VOLC, (VOUT = VOL)
Differential Input Voltage, SingleEnded Amplitude
Test Level
Conditions
VI
VI
VI
VI
IV
IV
IV
IV
IV
IV
IV
IV
IV
AD9398KSTZ-100
Min
Typ Max
8
AD9398KSTZ-150
Min Typ Max
8
2.5
2.5
VDD − 0.1
VDD − 0.1
Output drive = high
Output drive = low
Output drive = high
Output drive = low
Output drive = high
Output drive = low
Output drive = high
Output drive = low
Rev. 0 | Page 3 of 44
0.8
0.8
0.1
0.1
V
V
V
V
700
mA
mA
mA
mA
mA
mA
mA
mA
mV
36
24
12
8
40
20
30
15
75
Unit
Bit
36
24
12
8
40
20
30
15
700
75
AD9398
Parameter
POWER SUPPLY
VD Supply Voltage
VDD Supply Voltage
DVDD Supply Voltage
PVDD Supply Voltage
IVD Supply Current (Typical Pattern) 1
IVDD Supply Current (Typical Pattern) 2
IDVDD Supply Current (Typical Pattern)1,
Test Level
Conditions
IV
IV
IV
IV
V
V
V
AD9398KSTZ-100
Min
Typ Max
AD9398KSTZ-150
Min Typ Max
3.15
1.7
1.7
1.7
3.15
1.7
1.7
1.7
3.3
3.3
1.8
1.8
80
40
88
3.47
347
1.9
1.9
100
100 3
110
26
130
35
Unit
3.3
3.3
1.8
1.8
80
55
110
3.47
347
1.9
1.9
110
1751
145
V
V
V
V
mA
mA
mA
30
130
40
mA
mA
IV
360
ps
IV
6
900
Clock
period
ps
1300
ps
650
ps
1200
ps
850
ps
1250
ps
800
ps
1200
ps
2.0
55
150
ns
%
MHz
4
IPVDD Supply Current (Typical Pattern)
Power-Down Supply Current (IPD)
AC SPECIFICATIONS
Intrapair (+ to −) Differential Input
Skew (TDPS)
Channel to Channel Differential Input
Skew (TCCS)
Low-to-High Transition Time for Data
and Controls (DLHT)
V
VI
IV
IV
Low-to-High Transition Time for
DATACK (DLHT)
IV
IV
High-to-Low Transition Time for Data
and Controls (DHLT)
IV
IV
High-to-Low Transition Time for
DATACK (DHLT)
IV
IV
Clock-to-Data Skew 5 (TSKEW)
Duty Cycle, DATACK
DATACK Frequency (FCIP)
Output drive = high;
CL = 10 pF
Output drive = low;
CL = 5 pF
Output drive = high;
CL = 10 pF
Output drive = low;
CL = 5 pF
Output drive = high;
CL = 10 pF
Output drive = low;
CL = 5 pF
Output drive = high;
CL = 10 pF
Output drive = low;
CL = 5 pF
IV
IV
VI
−0.5
45
20
1
2.0
50
The typical pattern contains a gray scale area, output drive = high. Worst-case pattern is alternating black and white pixels.
The typical pattern contains a gray scale area, output drive = high.
3
Specified current and power values with a worst-case pattern (on/off).
4
DATACK load = 10 pF, data load = 5 pF.
5
Drive strength = high.
2
Rev. 0 | Page 4 of 44
−0.5
AD9398
ABSOLUTE MAXIMUM RATINGS
Table 3.
Parameter
VD
VDD
DVDD
PVDD
Analog Inputs
Digital Inputs
Digital Output Current
Operating Temperature Range
Storage Temperature Range
Maximum Junction Temperature
Maximum Case Temperature
Rating
3.6 V
3.6 V
1.98 V
1.98 V
VD to 0.0 V
5 V to 0.0 V
20 mA
−25°C to +85°C
−65°C to +150°C
150°C
150°C
Stresses above those listed under Absolute Maximum Ratings
may cause permanent damage to the device. This is a stress
rating only; functional operation of the device at these or any
other conditions above those indicated in the operational
section of this specification is not implied. Exposure to absolute
maximum rating conditions for extended periods may affect
device reliability.
EXPLANATION OF TEST LEVELS
Table 4.
Level
I
II
III
IV
V
VI
Test
100% production tested.
100% production tested at 25°C and sample tested at
specified temperatures.
Sample tested only.
Parameter is guaranteed by design and characterization
testing.
Parameter is a typical value only.
100% production tested at 25°C; guaranteed by design
and characterization testing.
ESD CAUTION
ESD (electrostatic discharge) sensitive device. Electrostatic charges as high as 4000 V readily accumulate on
the human body and test equipment and can discharge without detection. Although this product features
proprietary ESD protection circuitry, permanent damage may occur on devices subjected to high energy
electrostatic discharges. Therefore, proper ESD precautions are recommended to avoid performance
degradation or loss of functionality.
Rev. 0 | Page 5 of 44
AD9398
VDD
RED 0
RED 1
RED 2
RED 3
RED 4
RED 5
RED 6
RED 7
GND
VDD
DATACK
DE
HSOUT
NC
VSOUT
O/E FIELD
SDA
SCL
PWRDN
VD
NC
GND
NC
VD
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
PIN CONFIGURATION AND FUNCTION DESCRIPTIONS
GND
74
NC
3
73
NC
GREEN 5
4
72
VD
GREEN 4
5
71
NC
GREEN 3
6
70
NC
GREEN 2
7
69
GND
GREEN 1
8
68
NC
GREEN 0
9
67
VD
VDD
10
AD9398
66
NC
GND
11
65
GND
BLUE 7
12
TOP VIEW
(Not to Scale)
64
GND
BLUE 6
13
63
GND
BLUE 5
14
62
GND
BLUE 4
15
61
GND
BLUE 3
16
60
GND
BLUE 2
17
59
PVDD
BLUE 1
18
58
GND
BLUE 0
19
57
FILT
MCLKIN
20
56
PVDD
MCLKOUT
21
55
GND
SCLK
22
54
PVDD
LRCLK
23
53
GND
I2S3
24
52
MDA
I2S2
25
51
MCL
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
GND
Rx1–
Rx1+
GND
Rx2–
Rx2+
GND
RxC+
RxC–
VD
RTERM
GND
DVDD
DDCSCL
DDCSDA
32
DVDD
Rx0+
31
GND
34
30
DVDD
Rx0–
29
GND
33
28
S/PDIF
VD
27
NC = NO CONNECT
26
GREEN 6
PIN 1
I2S0
2
I2S1
1
05678-002
75
GND
GREEN 7
Figure 2. Pin Configuration
Table 5. Complete Pinout List
Pin Type
INPUTS
DIGITAL VIDEO DATA INPUTS
DIGITAL VIDEO CLOCK INPUTS
OUTPUTS
REFERENCES
Pin No.
81
35
34
38
37
41
40
43
44
92 to 99
2 to 9
12 to 19
89
87
85
84
57
Mnemonic
PWRDN
Rx0+
Rx0−
Rx1+
Rx1−
Rx2+
Rx2−
RxC+
RxC−
RED [7:0]
GREEN [7:0]
BLUE [7:0]
DATACK
HSOUT
VSOUT
FIELD
FILT
Function
Power-Down Control
Digital Input Channel 0 True
Digital Input Channel 0 Complement
Digital Input Channel 1 True
Digital Input Channel 1 Complement
Digital Input Channel 2 True
Digital Input Channel 2 Complement
Digital Data Clock True
Digital Data Clock Complement
Outputs of Red Converter, Bit 7 is MSB
Outputs of Green Converter, Bit 7 is MSB
Outputs of Blue Converter, Bit 7 is MSB
Data Output Clock
HSYNC Output Clock (Phase-Aligned with DATACK)
VSYNC Output Clock (Phase-Aligned with DATACK)
Odd/Even Field Output
Connection for External Filter Components For audio
PLL
Rev. 0 | Page 6 of 44
Value
3.3 V CMOS
TMDS
TMDS
TMDS
TMDS
TMDS
TMDS
TMDS
TMDS
VDD
VDD
VDD
VDD
VDD
VDD
VDD
PVDD
AD9398
Pin Type
POWER SUPPLY
Pin No.
80, 76, 72, 67, 45, 33
100, 90, 10
59, 56, 54
48, 32, 30
CONTROL
83
82
49
50
51
52
28
27
26
25
24
20
21
22
23
88
46
HDCP
AUDIO DATA OUTPUTS
DATA ENABLE
RTERM
Mnemonic
VD
VDD
PVDD
DVDD
GND
SDA
SCL
DDCSCL
DDCSDA
MCL
MDA
S/PDIF
I2S0
I2S1
I2S2
I2S3
MCLKIN
MCLKOUT
SCLK
LRCLK
DE
RTERM
Function
Analog Power Supply and DVI Terminators
Output Power Supply
PLL Power Supply
Digital Logic Power Supply
Ground
Serial Port Data I/O
Serial Port Data Clock
HDCP Slave Serial Port Data Clock
HDCP Slave Serial Port Data I/O
HDCP Master Serial Port Data Clock
HDCP Master Serial Port Data I/O
S/PDIF Digital Audio Output
I2S Audio (Channel 1, Channel 2)
I2S Audio (Channel 3, Channel 4)
I2S Audio (Channel 5, Channel 6)
I2S Audio (Channel 7, Channel 8)
External Reference Audio Clock In
Audio Master Clock Output
Audio Serial Clock Output
Data Output Clock for Left and Right Audio Channels
Data Enable
Sets Internal Termination Resistance
Value
3.3 V
1.8 V to 3.3 V
1.8 V
1.8 V
0V
3.3 V CMOS
3.3 V CMOS
3.3 V CMOS
3.3 V CMOS
3.3 V CMOS
3.3 V CMOS
VDD
VDD
VDD
VDD
VDD
VDD
VDD
VDD
VDD
3.3 V CMOS
500 Ω
Table 6. Pin Function Descriptions
Mnemonic
INPUTS
Rx0+
Rx0−
Rx1+
Rx1−
Rx2+
Rx2−
RxC+
RxC−
FILT
PWRDN
OUTPUTS
HSOUT
VSOUT
O/E FIELD
DE
Description
Digital Input Channel 0 True.
Digital Input Channel 0 Complement.
Digital Input Channel 1 True.
Digital Input Channel 1 Complement.
Digital Input Channel 2 True.
Digital input Channel 2 Complement.
These six pins receive three pairs of transition minimized differential signaling (TMDS) pixel data (at 10× the pixel
rate) from a digital graphics transmitter.
Digital Data Clock True.
Digital Data Clock Complement.
This clock pair receives a TMDS clock at 1× pixel data rate.
External Filter Connection.
For proper operation, the audio-clock generator PLL requires an external filter. Connect the filter shown in Figure 8
to this pin. For optimal performance, minimize noise and parasitics on this node. For more information see the
PCB Layout Recommendations section .
Power-Down Control/Three-State Control.
The function of this pin is programmable via Register 0x26 [2:1].
Horizontal Sync Output.
A reconstructed and phase-aligned version of the HSYNC input. Both the polarity and duration of this output can
be programmed via serial bus registers. By maintaining alignment with DATACK and DATA, data timing with
respect to horizontal sync can always be determined.
Vertical Sync Output.
The separated VSYNC from a composite signal or a direct pass through of the VSYNC signal. The polarity of this
output can be controlled via the serial bus bit (Register 0x24 [6]).
Odd/Even Field Bit for Interlaced Video. This output identifies whether the current field (in an interlaced signal) is
odd or even. The polarity of this signal is programmable via Register 0x24[4].
Data Enable that defines valid video. Can be received in the signal or generated by the AD9398.
Rev. 0 | Page 7 of 44
AD9398
Mnemonic
RTERM
AUDIO DATA OUTPUT
S/PDIF
I2S0 to I2S3
MCLKIN
MCLKOUT
SCLK
LRCLK
SERIAL PORT
SDA
SCL
DDCSDA
DDCSCL
MDA
MCL
DATA OUTPUTS
RED [7:0]
GREEN [7:0]
BLUE [7:0]
DATA CLOCK OUTPUT
DATACK
POWER SUPPLY 1
VD (3.3 V)
VDD (1.8 V to 3.3 V)
PVDD (1.8 V)
DVDD (1.8 V)
GND
1
Description
RTERM is the termination resistor used to drive the AD9398 internally to a precise 50 Ω termination for TMDS lines.
This should be a 500 Ω 1% tolerance resistor.
Sony/Philips Digital Interface. Supports digital audio from 32 kbps to 192 kbps.
Inter-IC Sound Channel 0 through Channel 3. Each line supports two channels of digital audio.
Master Audio Clock External. Used if internal MCLK is not generated.
Master Audio Clock Output to Drive Audio DACs.
Serial Clock Out to support Digital Audio.
Data Output Clock for Left and Right Audio Channels.
Serial Port Data I/O for Programming AD9398 Registers—I2C Address is 0x98.
Serial Port Data Clock for Programming AD9398 Registers.
Serial Port Data I/O for HDCP Communications to Transmitter—I2C Address is 0x74 or 0x76.
Serial Port Data Clock for HDCP Communications to Transmitter.
Serial Port Data I/O to EEPROM with HDCP Keys—I2C Address is 0xA0.
Serial Port Data Clock to EEPROM with HDCP Keys.
Data Output, Red Channel.
Data Output, Green Channel.
Data Output, Blue Channel.
The main data outputs. Bit 7 is the MSB. The delay from pixel sampling time to output is fixed, but is different if the
color space converter is used. When the sampling time is changed by adjusting the phase register, the output
timing is shifted as well. The DATACK and HSOUT outputs are also moved, so the timing relationship among the
signals is maintained.
Data Clock Output.
This is the main clock output signal used to strobe the output data and HSOUT into external logic. Four possible
output clocks can be selected with Register 0x25 [7:6]. These are related to the pixel clock (1/2× pixel clock,
1× pixel clock, 2× frequency pixel clock, and a 90° phase shifted pixel clock). They are produced either by the
internal PLL clock generator or EXTCLK and are synchronous with the pixel sampling clock. The polarity of DATACK
can also be inverted via Register 0x24 [0]. The sampling time of the internal pixel clock can be changed by
adjusting the phase register. When this is changed, the pixel-related DATACK timing is shifted as well. The DATA,
DATACK, and HSOUT outputs are all moved, so the timing relationship among the signals is maintained.
Analog Power Supply.
These pins supply power to the ADCs and terminators. They should be as quiet and filtered as possible.
Digital Output Power Supply.
A large number of output pins (up to 27) switching at high speed (up to 150 MHz) generates many power supply
transients (noise). These supply pins are identified separately from the VD pins, so output noise transferred into the
sensitive analog circuitry can be minimized. If the AD9398 is interfacing with lower voltage logic, VDD may be
connected to a lower supply voltage (as low as 1.8 V) for compatibility.
Clock Generator Power Supply.
The most sensitive portion of the AD9398 is the clock generation circuitry. These pins provide power to the clock
PLL and help the user design for optimal performance. The designer should provide quiet, noise-free power to
these pins.
Digital Input Power Supply.
This supplies power to the digital logic.
Ground.
The ground return for all circuitry on chip. It is recommended that the AD9398 be assembled on a single solid
ground plane, with careful attention to ground current paths.
The supplies should be sequenced such that VD and VDD are never less than 300 mV below DVDD. At no time should DVDD be more than 300 mV greater than VD or VDD.
Rev. 0 | Page 8 of 44
AD9398
DESIGN GUIDE
GENERAL DESCRIPTION
SERIAL CONTROL PORT
The AD9398 is a fully integrated solution for receiving
DVI/HDMI signals and is capable of decoding HDCPencrypted signals through connections to an external
EEPROM. The circuit is ideal for providing an interface for
HDTV monitors or as the front end to high performance video
scan converters.
The serial control port is designed for 3.3 V logic. However, it is
tolerant of 5 V logic signals.
Implemented in a high performance CMOS process, the
interface can capture signals with pixel rates of up to 150 MHz.
The AD9398 uses the activity detect circuits, the active interface
bits in the serial bus, the active interface override bits, the
power-down bit, and the power-down pin to determine the
correct power state. There are four power states: full power, seek
mode, auto power-down, and power-down. Table 7 summarizes
how the AD9398 determines the power mode to use and which
circuitry is powered on/off in each of these modes. The powerdown command has priority and then the automatic circuitry.
The power-down pin (Pin 81—polarity set by Register 0x26[3])
can drive the chip into four power-down options. Bit 2 and Bit 1
of Register 0x26 control these four options. Bit 0 controls
whether the chip is powered down or the outputs are placed in
high impedance mode (with the exception of SOG). Bit 7 to
Bit 4 of Register 0x26 control whether the outputs, SOG, Sony
Philips digital interface (SPDIF ) or Inter-IC sound bus (I2S or
IIS) outputs are in high impedance mode. See the 2-Wire Serial
Control Register Detail section for the details.
The AD9398 includes all necessary circuitry for decoding
TMDS signaling including those encrypted with HDCP.
Included in the output formatting is a color space converter
(CSC), which accommodates any input color space and can
output any color space. All controls are programmable via a 2wire serial interface. Full integration of these sensitive mixed
signal functions makes system design straight-forward and less
sensitive to the physical and electrical environments.
DIGITAL INPUTS
The digital control inputs (I2C) on the AD9398 operate to 3.3 V
CMOS levels. In addition, all digital inputs, except the TMDS
(HDMI/DVI) inputs, are 5 V tolerant (applying 5 V to them
does not cause damage.) The TMDS input pairs (Rx0+/Rx0−,
Rx1+/Rx1−, Rx2+/Rx2−, and RxC+/RxC−) must maintain a
100 Ω differential impedance (through proper PCB layout)
from the connector to the input where they are internally
terminated (50 Ω to 3.3 V). If additional ESD protection is
desired, use of a California Micro Devices (CMD) CM1213
(among others) series low capacitance ESD protection offers 8
kV of protection to the HDMI TMDS lines.
OUTPUT SIGNAL HANDLING
The digital outputs operate from 1.8 V to 3.3 V (VDD).
POWER MANAGEMENT
Table 7. Power-Down Mode Descriptions
Mode
Full Power
Seek Mode
Seek Mode
Power-Down
Power-Down 1
1
1
1
0
Inputs
Sync Detect 2
1
0
0
X
Auto PD Enable 3
X
0
1
1
Power-down is controlled via Bit 0 in Serial Bus Register 0x26.
Sync detect is determined by OR’ing Bit 7 to Bit 2 in Serial Bus Register 0x15.
3
Auto power-down is controlled via Bit 7 in Serial Bus Register 0x27.
2
Rev. 0 | Page 9 of 44
Power-On or Comments
Everything
Everything
Serial bus, sync activity detect, SOG, band gap reference
Serial bus, sync activity detect, SOG, band gap reference
AD9398
SYNC SEPARATOR THRESHOLD
TIMING
The output data clock signal is created so that its rising edge
always occurs between data transitions and can be used to latch
the output data externally.
FIELD 1
QUADRANT
2
FIELD 0
3
4
1
FIELD 1
2
FIELD 0
4
1
HSIN
VSIN
Figure 3 shows the timing operation of the AD9398.
O/E FIELD
tDCYCLE
ODD FIELD
DATACK
05678-005
VSOUT
tPER
Figure 5. VSYNC Filter—Odd
HDMI RECEIVER
tSKEW
05678-003
DATA
HSOUT
Figure 3. Output Timing
VSYNC FILTER AND ODD/EVEN FIELDS
The VSYNC filter is used to eliminate spurious VSYNCs, maintain
a consistent timing relationship between the VSYNC and
HSYNC output signals, and generate the odd/even field output.
The filter works by examining the placement of VSYNC
with respect to HSYNC and, if necessary, slightly shifting
it in time at the VSOUT output. The goal is to keep the
VSYNC and HSYNC leading edges from switching at the
same time, eliminating confusion as to when the first line
of a frame occurs. Enabling the VSYNC filter is done with
Register 0x21[5]. Use of the VSYNC filter is recommended for
all cases, including interlaced video, and is required when using
the HSYNC per VSYNC counter. Figure 4 and Figure 5
illustrate even/odd field determination in two situations.
SYNC SEPARATOR THRESHOLD
FIELD 1
QUADRANT
3
2
FIELD 0
3
4
1
FIELD 1
2
3
1
HSIN
VSIN
EVEN FIELD
Figure 4. VSYNC Filter—Even
05678-004
VSOUT
O/E FIELD
The earlier digital visual interface (DVI) format was restricted
to an RGB 24-bit color space only. Embedded in this data
stream were HSYNCs, VSYNCs, and display enable (DE)
signals, but no audio information. The HDMI specification
allows transmission of all the DVI capabilities, but adds several
YCrCb formats that make the inclusion of a programmable
color space converter (CSC) a very desirable feature. With this,
the scaler following the AD9398 can specify that it always
wishes to receive a particular format—for instance, 4:2:2 YCrCb—
regardless of the transmitted mode. If RGB is sent, the CSC can
easily convert that to 4:2:2 YCrCb while relieving the scaler of
this task.
In addition, the HDMI specification supports the transmission
of up to eight channels of S/PDIF or I2S audio. The audio
information is packetized and transmitted during the video
blanking periods along with specific information about the
clock frequency. Part of this audio information (audio
infoframe) tells the user how many channels of audio are being
transmitted, where they should be placed, information
regarding the source (make, model), and other data.
FIELD 0
4
The HDMI receiver section of the AD9398 allows the reception
of a digital video stream, which is backward compatible with
DVI and able to accommodate not only video of various formats (RGB, YCrCb 4:4:4, 4:2:2), but also up to eight channels of
audio. Infoframes are transmitted carrying information about
the video format, audio clocks, and many other items necessary
for a monitor to use fully the information stream available.
DE GENERATOR
The AD9398 has an on-board generator for DE, for start of
active video (SAV), and for end of active video (EAV), all of
which are necessary for describing the complete data stream for
a BT656-compatible output. In addition to this particular
output, it is possible to generate the DE for cases in which a
scaler is not used. This signal alerts the following circuitry as to
which are displayable video pixels.
Rev. 0 | Page 10 of 44
AD9398
4:4:4 TO 4:2:2 FILTER
The AD9398 contains a filter that allows it to convert a signal
from YCrCb 4:4:4 to YCrCb 4:2:2 while maintaining the
maximum accuracy and fidelity of the original signal.
Input Color Space to Output Color Space
The AD9398 can accept a wide variety of input formats and
either retain that format or convert to another. Input formats
supported are:
•
4:4:4 YCrCb 8-bit
•
4:2:2 YCrCb 8-, 10-, and 12-bit
•
RGB 8-bit
One of the three channels is represented in Figure 6. In each
processing channel, the three inputs are multiplied by three
separate coefficients marked a1, a2, and a3. These coefficients
are divided by 4096 to obtain nominal values ranging from
−0.9998 to +0.9998. The variable labeled a4 is used as an offset
control. The CSC_Mode setting is the same for all three
processing channels. This multiplies all coefficients and offsets
by a factor of 2CSC_Mode.
The functional diagram for a single channel of the CSC, as
shown in Figure 6, is repeated for the remaining G and B
channels. The coefficients for these channels are b1, b2, b3, b4,
c1, c2, c3, and c4.
Output modes supported are:
CSC_Mode[1:0]
•
4:4:4 YCrCb 8-bit
•
4:2:2 YCrCb 8-, 10-, and 12-bit
RIN [11:0]
Dual 4:2:2 YCrCb 8-bit
×
1
4096
+
+
×4
2
×2
1
+
ROUT [11:0]
a2[12:0]
0
Color Space Conversion (CSC) Matrix
GIN [11:0]
The CSC matrix in the AD9398 consists of three identical
processing channels. In each channel, three input values are
multiplied by three separate coefficients. Also included are an
offset value for each row of the matrix and a scaling multiple for
all values. Each value has a 13-bit, twos complement resolution
to ensure the signal integrity is maintained. The CSC is
designed to run at speeds up to 150 MHz, supporting
resolutions up to 1080p at 60 Hz. With any-to-any color space
support, formats such as RGB, YUV, YCbCr, and others are
supported by the CSC.
The main inputs, RIN, GIN, and BIN come from the 8- to 12-bit
inputs from each channel. These inputs are based on the input
format detailed in Table 10. The mapping of these inputs to the
CSC inputs is shown in Table 8.
×
×
1
4096
×
1
4096
a3[12:0]
BIN [11:0]
×
Figure 6. Single CSC Channel
A programming example and register settings for several
common conversions are listed in the Color Space Converter
(CSC) Common Settings section.
For a detailed functional description and more programming
examples, refer to Application Note AN-795, AD9880 Color
Space Converter User's Guide.
Table 8. CSC Port Mapping
Input Channel
R/CR
Gr/Y
B/CB
×
CSC Input Channel
RIN
GIN
BIN
B
Rev. 0 | Page 11 of 44
05678-006
•
a4[12:0]
a1[12:0]
AD9398
Data contained in the audio infoframes, among other registers,
define for the AD9398 HDMI receiver not only the type of
audio, but the sampling frequency (fS). The audio infoframe also
contains information about the N and CTS values used to
recreate the clock. With this information, it is possible to
regenerate the audio sampling frequency. The audio clock is
regenerated by dividing the 20-bit CTS value into the TMDS
clock, then multiplying by the 20-bit N value. This yields a
multiple of the sampling frequency of either 128 × fS or 256 × fS.
It is possible for this to be specified up to 1024 × fS.
SOURCE DEVICE
128 × fS
DIVIDE
BY
N
CYCLE
TIME
COUNTER
TMDS
VIDEO
CLOCK
N
SINK DEVICE
CTS1
REGISTER
N
CLOCK
N1
DIVIDE
BY
CTS
MULTIPLY 128 × fS
BY
N
CP
8nF
CZ
80nF
PVD
RZ
1.5kΩ
FILT
Figure 8. PLL Loop Filter Detail
To fully support all audio modes for all video resolutions up
to 1080p, it is necessary to adjust certain audio-related
registers from their power-on default values. Table 9
describes these registers and gives the recommended
settings.
05678-007
1N
In order to provide the most flexibility in configuring the audio
sampling clock, an additional PLL is employed. The PLL
characteristics are determined by the loop filter design, the PLL
charge pump current, and the VCO range setting. The loop
filter design is shown in Figure 8.
05678-010
AUDIO PLL SETUP
AND CTS VALUES ARE TRANSMITTED USING THE
AUDIO CLOCK REGENERATION PACKET. VIDEO
CLOCK IS TRANSMITTED ON TMDS CLOCK CHANNEL.
Figure 7. N and CTS for Audio Clock
Table 9. AD9398 Audio Register Settings
Bits
7:0
7:4
7:6
5:3
2
Recommended
Setting
0x00
0x40
01
010
1
0x34
4
0
0x58
7
6:4
1
011
Audio Frequency Mode
Override
PLL Enable
MCLK PLL Divisor
3
2:0
0
0**
N/CTS Disable
MCLK Sampling Frequency
Register
0x01
0x02
0x03
Function
PLL Divisor (MSBs)
PLL Divisor (LSBs)
VCO Range
Charge Pump Current
PLL Enable
Comments
The analog video PLL is also used for the audio clock circuit when in
HDMI mode. This is done automatically.
In HDMI mode, this bit enables a lower frequency to be used for
audio MCLK generation.
Allows the chip to determine the low frequency mode of the audio
PLL.
This enables the analog PLL to be used for audio MCLK generation.
When the analog PLL is enabled for MCLK generation, another
frequency divider is provided. These bits set the divisor to 4.
The N and CTS values should always be enabled.
000 = 128 × fS
001 = 256 × fS
010 = 384 × fS
011 = 512 × fS
Rev. 0 | Page 12 of 44
AD9398
AUDIO BOARD LEVEL MUTING
This information is the fundamental difference between DVI
and HDMI transmissions and is located in read-only registers
R0x5A to R0xEE. In addition to this information, registers are
provided to indicate that new information has been received.
Registers with addresses ending in 0xX7 or 0xXF beginning at
R0x87 contain the new data flag (NDF) information. These
registers contain the same information and all are reset once
any of them are read. Although there is no external interrupt
signal, it is very easy for the user to read any of these registers to
see if there is new information to be processed.
The audio can be muted through the infoframes or locally
via the serial bus registers. This can be controlled with
Register R0x57, Bits [7:4].
AVI Infoframes
The HDMI TMDS transmission contains infoframes with
specific information for the monitor such as:
•
Audio information
•
2 channels to 8 channels of audio identified
•
Audio coding
•
Audio sampling frequency
OUTPUT DATA FORMATS
•
Speaker placement
•
N and CTS values (for reconstruction of the audio)
•
Muting
•
Source information
•
•
•
CD
•
SACD
•
DVD
The AD9398 supports 4:4:4, 4:2:2, double data rate (DDR), and
BT656 output formats. Register 0x25[3:0] controls the output
mode. These modes and the pin mapping are listed in Table 10.
Video information
•
Video ID code (per CEA861B)
•
Color space
•
Aspect ratio
•
Horizontal and vertical bar information
•
MPEG frame information (I, B, or P frame)
Vendor (transmitter source) name and product model
Table 10.
Port
Bit
4:4:4
4:2:2
4:4:4 DDR
4:2:2 to 12
1
Red
7
6
5
4
Red/Cr [7:0]
CbCr [7:0]
DDR ↑ 1 G [3:0]
DDR ↓ R [7:0]
CbCr [11:0]
3
2
1
DDR ↑ B [7:4]
0
Green
7
6
5
4
Green/Y [7:0]
Y [7:0]
DDR ↑ B [3:0]
DDR ↓ G [7:4]
Arrows in the table indicate clock edge. Rising edge of clock = ↑, falling edge = ↓.
Rev. 0 | Page 13 of 44
Blue
7
6
5
4
3
Blue/Cb [7:0]
DDR 4:2:2 ↑ CbCr ↓ Y, Y
DDR 4:2:2 ↑ CbCr [11:0]
DDR 4:2:2 ↓ Y,Y [11:0]
Y [11:0]
3
2
1
0
2
1
0
AD9398
2-WIRE SERIAL REGISTER MAP
The AD9398 is initialized and controlled by a set of registers that determines the operating modes. An external controller is employed to
write and read the control registers through the 2-wire serial interface port.
Table 11. Control Register Map
Hex Address
0x00
0x001
0x02
0x03
Read/Write
or Read
Only
Read
Read/Write
Read/Write
Read/Write
0x11
Read/Write
0x12
Read/Write
Bits
[7:0]
[7:0]
[7:4]
[7:6]
[5:3]
[2]
Default
Value
00000000
01101001
1101****
01******
**001***
*****0**
Register Name
Chip Revision
PLL Divider MSB
PLL Divider
VCO Range
Charge Pump
PLL Enable
[7]
0*******
HSYNC Source
[6]
*0******
HSYNC Source
Override
[5]
**0*****
VSYNC Source
[4]
***0****
VSYNC Source Override
[3]
****0***
Channel Select
[2]
*****0**
Channel Select
Override
[1]
******0*
Interface Select
[0]
*******0
Interface Override
[7]
1*******
Input HSYNC Polarity
[6]
*0******
HSYNC Polarity
Override
[5]
**1*****
Input VSYNC Polarity
[4]
***0****
VSYNC Polarity
Override
0x17
Read
[3:0]
****0000
0x18
0x22
0x23
Read
Read/Write
Read/Write
[7:0]
[7:0]
[7:0]
00000000
4
32
HSYNCs per VSYNC
MSB
HSYNCs per VSYNC
VSYNC Duration
HSYNC Duration
0x24
Read/Write
[7]
1*******
HSYNC Output Polarity
[6]
*1******
VSYNC Output Polarity
Rev. 0 | Page 14 of 44
Description
Chip revision ID. Revision is read [7:4]. [3:0].
PLL feedback divider value MSB.
PLL feedback divider value.
VCO range.
Charge pump current control for PLL.
This bit enables a lower frequency to be used for audio
MCLK generation.
0 = HSYNC.
1 = SOG.
0 = auto HSYNC source.
1 = manual HSYNC source.
0 = VSYNC.
1 = VSYNC from SOG.
0 = auto HSYNC source.
1 = manual HSYNC source.
0 = Channel 0.
1 = Channel 1.
0 = auto-channel select.
1 = manual channel select.
0 = analog interface.
1 = digital interface.
0 = auto-interface select.
1 = manual interface select.
0 = active low.
1 = active high.
0 = auto HSYNC polarity.
1 = manual HSYNC polarity.
0 = active low.
1 = active high.
0 = auto VSYNC polarity.
1 = manual VSYNC polarity.
MSB of HSYNCs per VSYNC.
HSYNCs per VSYNC count.
VSYNC duration.
HSYNC duration. Sets the duration of the output HSYNC
in pixel clocks.
Output HSYNC polarity.
0 = active low out.
1 = active high out.
Output VSYNC polarity
0 = active low out.
1 = active high out.
AD9398
Hex Address
0x25
0x26
Read/Write
or Read
Only
Read/Write
Read/Write
Bits
[5]
Default
Value
**1*****
Register Name
DE Output Polarity
[4]
***1****
Field Output Polarity
[0]
*******0
Output CLK Invert
[7:6]
01******
Output CLK Select
[5:4]
**11****
Output Drive Strength
[3:2]
****00**
Output Mode
[1]
[0]
******1*
*******0
[7]
[5]
[4]
[3]
0*******
**0*****
***0****
****1***
Primary Output Enable
Secondary Output
Enable
Output Three-State
SPDIF Three-State
I2S Three-State
Power-Down Pin
Polarity
[2:1]
0x27
Read/Write
*****00*
Power-Down Pin
Function
[0]
*******0
Power-Down
[7]
1*******
Auto Power-Down
Enable
[6]
*0******
HDCP A0
[5]
**0*****
MCLK External Enable
Rev. 0 | Page 15 of 44
Description
Output DE polarity.
0 = active low out.
1 = active high out.
Output field polarity.
0 = active low out.
1 = active high out.
0 = don’t invert clock out.
1 = invert clock out.
Select which clock to use on output pin. 1× CLK is
divided down from TMDS clock input when pixel
repetition is in use.
00 = ½× CLK.
01 = 1× CLK.
10 = 2× CLK.
11 = 90° phase 1× CLK.
Set the drive strength of the outputs.
00 = lowest, 11 = highest.
Selects the data output mapping.
00 = 4:4:4 mode (normal).
01 = 4:2:2 + DDR 4:2:2 on blue.
10 = DDR 4:4:4 + DDR 4:2:2 on blue.
11 = 12-bit 4:2:2 (HDMI option only)
Enables primary output.
Enables secondary output (DDR 4:2:2 in Output Mode 1
and Mode 2).
Three-state the outputs.
Three-state the SPDIF output.
Three-state the I2S output and the MCLK out.
Sets polarity of power-down pin.
0 = active low.
1 = active high.
Selects the function of the power-down pin.
00 = power-down.
01 = power-down and three-state SOG.
10 = three-state outputs only.
11 = three-state outputs and SOG.
0 = normal.
1 = power-down.
0 = disable auto low power state.
1 = enable auto low power state.
Sets the LSB of the address of the HDCP I2C. Set to 1 only
for a second receiver in a dual-link configuration.
0 = use internally generated MCLK.
1 = use external MCLK input.
If an external MCLK is used, it must be locked to the
video clock according to the CTS and N available in the
I2C. Any mismatch between the internal MCLK and the
input MCLK results in dropped or repeated audio
samples.
AD9398
Hex Address
Read/Write
or Read
Only
Bits
[4]
Default
Value
***0****
Register Name
BT656 EN
[3]
[2:0]
****0***
*****000
Force DE Generation
Interlace Offset
0x28
Read/Write
[7:2]
011000**
VS Delay
0x29
Read/Write
[1:0]
[7:0]
******01
00000100
HS Delay MSB
HS Delay
0x2A
0x2B
0x2C
0x2D
0x2E
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
[3:0]
[7:0]
[3:0]
[7:0]
[7]
****0101
00000000
****0010
11010000
0*******
Line Width MSB
Line Width
Screen Height MSB
Screen Height
Ctrl EN
[6:5]
*00*****
I2S Out Mode
[4:0]
[6]
[5]
[4]
***11000
*0******
**0*****
***0****
I2S Bit Width
TMDS Sync Detect
TMDS Active
AV Mute
[3]
[2:0]
[6]
****0***
*****000
*0******
HDCP Keys Read
HDMI Quality
HDMI Content
Encrypted
[5]
[4]
[3:0]
**0*****
***0****
****0000
DVI HSYNC Polarity
DVI VSYNC Polarity
HDMI Pixel Repetition
[7:4]
1001****
MV Pulse Max
[3:0]
****0110
MV Pulse Min
[7]
0*******
MV Oversample En
[6]
*0******
MV Pal En
[5:0]
[7]
**001101
1*******
MV Line Count Start
MV Detect Mode
[6]
*0******
MV Settings Override
[5:0]
[7:6]
**010101
10******
MV Line Count End
MV Pulse Limit Set
0x2F
0x30
0x31
0x32
0x33
0x34
Read
Read
Read/Write
Read/Write
Read/Write
Read/Write
Rev. 0 | Page 16 of 44
Description
Enables EAV/SAV codes to be inserted into the video
output data.
Allows use of the internal DE generator in DVI mode.
Sets the difference (in HSYNCs) in field length between
Field 0 and Field 1.
Sets the delay (in lines) from the VSYNC leading edge to
the start of active video.
MSB, Register 0x29.
Sets the delay (in pixels) from the HSYNC leading edge
to the start of active video.
MSB, Register 0x2B.
Sets the width of the active video line in pixels.
MSB, Register 0x2D.
Sets the height of the active screen in lines.
Allows Ctrl [3:0] to be output on the I2S data pins.
00 = I2S mode.
01 = right-justified.
10 = left-justified.
11 = raw IEC60958 mode.
Sets the desired bit width for right-justified mode.
Detects a TMDS DE.
Detects a TMDS clock.
Gives the status of AV mute based on general control
packets.
Returns 1 when read of EEPROM keys is successful.
Returns quality number based on DE edges.
This bit is high when HDCP decryption is in use (content
is protected). The signal goes low when HDCP is not
being used. Use this bit to allow copying of the content.
The bit should be sampled at regular intervals because it
can change on a frame-by-frame basis.
Returns DVI HSYNC polarity.
Returns DVI VSYNC polarity.
Returns current HDMI pixel repetition amount. 0 = 1×,
1 = 2×, ... The clock and data outputs automatically
de-repeat by this value.
Sets the maximum pseudo sync pulse width for
Macrovision detection.
Sets the minimum pseudo sync pulse width for
Macrovision detection.
Tells the Macrovision detection engine whether
oversampling occurs.
Tells the Macrovision detection engine to enter PAL
mode.
Sets the start line for Macrovision detection.
0 = standard definition.
1 = progressive scan mode.
0 = use hard-coded settings for line counts and pulse
widths.
1 = use I2C values for these settings.
Sets the end line for Macrovision detection.
Sets the number of pulses required in the last 3 lines
(SD mode only).
AD9398
Hex Address
Read/Write
or Read
Only
Bits
[5]
Default
Value
**0*****
Register Name
Low Freq Mode
[4]
***0****
Low Freq Override
[3]
****0***
Up Conversion Mode
[2]
[1]
*****0**
******0*
CrCb Filter Enable
CSC_Enable
0x35
Read/Write
[6:5]
*01* ****
CSC_Mode
0x36
Read/Write
[4:0]
[7:0]
***01100
01010010
CSC_Coeff_A1 MSB
CSC_Coeff_A1 LSB
0x37
0x38
Read/Write
Read/Write
[4:0]
[7:0]
***01000
00000000
CSC_Coeff_A2 MSB
CSC_Coeff_A2 LSB
0x39
0x3A
Read/Write
Read/Write
[4:0]
[7:0]
***00000
00000000
CSC_Coeff_A3 MSB
CSC_Coeff_A3 LSB
0x3B
0x3C
Read/Write
Read/Write
[4:0]
[7:0]
***11001
11010111
CSC_Coeff_A4 MSB
CSC_Coeff_A4
0x3D
0x3E
Read/Write
Read/Write
[4:0]
[7:0]
***11100
01010100
CSC_Coeff_B1 MSB
CSC_Coeff_B1 LSB
0x3F
0x40
Read/Write
Read/Write
[4:0]
[7:0]
***01000
00000000
CSC_Coeff_B2 MSB
CSC_Coeff_B2 LSB
0x41
0x42
Read/Write
Read/Write
[4:0]
[7:0]
***11110
10001001
CSC_Coeff_B3 MSB
CSC_Coeff_B3 LSB
0x43
Read/Write
[4:0]
***00010
CSC_Coeff_B4 MSB
Description
Sets audio PLL to low frequency mode. Low frequency
mode should only be set for pixel clocks