AD9398
Rev. 0 | Page 12 of 44
AUDIO PLL SETUP
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 (f
S
). 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 × f
S
or 256 × f
S
.
It is possible for this to be specified up to 1024 × f
S
.
05678-007
SINK DEVICESOURCE DEVICE
1
N AND CTS VALUES ARE TRANSMITTED USING THE
AUDIO CLOCK REGENERATION PACKET. VIDE
O
CLOCK IS TRANSMITTED ON TMDS CLOCK CHANNEL.
128 × f
S
N
VIDEO
CLOCK
128 × f
S
TMDS
CLOCK
N
1
CTS
1
DIVIDE
BY
N
CYCLE
TIME
COUNTER
REGISTER
N
DIVIDE
BY
CTS
MULTIPLY
BY
N
Figure 7. N and CTS for Audio Clock
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.
C
P
8
nF
C
Z
80nF
R
Z
1.5kΩ
FILT
PV
D
05678-010
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.
Table 9. AD9398 Audio Register Settings
Register Bits
Recommended
Setting
Function Comments
0x01 7:0 0x00 PLL Divisor (MSBs)
0x02 7:4 0x40 PLL Divisor (LSBs)
7:6 01 VCO Range
5:3 010 Charge Pump Current
The analog video PLL is also used for the audio clock circuit when in
HDMI mode. This is done automatically.
0x03
2 1 PLL Enable
In HDMI mode, this bit enables a lower frequency to be used for
audio MCLK generation.
0x34 4 0
Audio Frequency Mode
Override
Allows the chip to determine the low frequency mode of the audio
PLL.
7 1 PLL Enable This enables the analog PLL to be used for audio MCLK generation.
6:4 011 MCLK PLL Divisor
When the analog PLL is enabled for MCLK generation, another
frequency divider is provided. These bits set the divisor to 4.
3 0 N/CTS Disable The N and CTS values should always be enabled.
0x58
2:0 0** MCLK Sampling Frequency 000 = 128 × f
S
001 = 256 × f
S
010 = 384 × f
S
011 = 512 × f
S
AD9398
Rev. 0 | Page 13 of 44
AUDIO BOARD LEVEL MUTING
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
Speaker placement
N and CTS values (for reconstruction of the audio)
Muting
Source information
CD
SACD
DVD
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
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.
OUTPUT DATA FORMATS
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.
Table 10.
Port Red Green Blue
Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
4:4:4 Red/Cr [7:0] Green/Y [7:0] Blue/Cb [7:0]
4:2:2 CbCr [7:0] Y [7:0]
DDR 4:2:2
CbCr Y, Y
DDR
1
G [3:0] DDR B [7:4] DDR B [3:0] DDR 4:2:2 CbCr [11:0]
4:4:4 DDR
DDR
R [7:0] DDR G [7:4] DDR 4:2:2 Y,Y [11:0]
4:2:2 to 12 CbCr [11:0] Y [11:0]
1
Arrows in the table indicate clock edge. Rising edge of clock = , falling edge = .
AD9398
Rev. 0 | Page 14 of 44
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
Read/Write
or Read
Only
Bits
Default
Value
Register Name Description
0x00 Read [7:0] 00000000 Chip Revision Chip revision ID. Revision is read [7:4]. [3:0].
0x001 Read/Write [7:0] 01101001 PLL Divider MSB PLL feedback divider value MSB.
0x02 Read/Write [7:4] 1101**** PLL Divider PLL feedback divider value.
0x03 Read/Write [7:6] 01****** VCO Range VCO range.
[5:3] **001*** Charge Pump Charge pump current control for PLL.
[2] *****0** PLL Enable
This bit enables a lower frequency to be used for audio
MCLK generation.
0x11 Read/Write [7] 0******* HSYNC Source 0 = HSYNC.
1 = SOG.
[6] *0******
HSYNC Source
Override
0 = auto HSYNC source.
1 = manual HSYNC source.
[5] **0***** VSYNC Source 0 = VSYNC.
1 = VSYNC from SOG.
[4] ***0**** VSYNC Source Override 0 = auto HSYNC source.
1 = manual HSYNC source.
[3] ****0*** Channel Select 0 = Channel 0.
1 = Channel 1.
[2] *****0**
Channel Select
Override
0 = auto-channel select.
1 = manual channel select.
[1] ******0* Interface Select 0 = analog interface.
1 = digital interface.
[0] *******0 Interface Override 0 = auto-interface select.
1 = manual interface select.
0x12 Read/Write [7] 1******* Input HSYNC Polarity 0 = active low.
1 = active high.
[6] *0******
HSYNC Polarity
Override
0 = auto HSYNC polarity.
1 = manual HSYNC polarity.
[5] **1***** Input VSYNC Polarity 0 = active low.
1 = active high.
[4] ***0****
VSYNC Polarity
Override
0 = auto VSYNC polarity.
1 = manual VSYNC polarity.
0x17 Read [3:0] ****0000
HSYNCs per VSYNC
MSB
MSB of HSYNCs per VSYNC.
0x18 Read [7:0] 00000000 HSYNCs per VSYNC HSYNCs per VSYNC count.
0x22 Read/Write [7:0] 4 VSYNC Duration VSYNC duration.
0x23 Read/Write [7:0] 32 HSYNC Duration
HSYNC duration. Sets the duration of the output HSYNC
in pixel clocks.
0x24 Read/Write [7] 1******* HSYNC Output Polarity Output HSYNC polarity.
0 = active low out.
1 = active high out.
[6] *1****** VSYNC Output Polarity Output VSYNC polarity
0 = active low out.
1 = active high out.

AD9398/PCBZ

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
BOARD EVALUATION FOR AD9398
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet