High Quality 10-Bit Video DACs
SSAF (Super Sub-Alias Filter)
Advanced Power Management Features
CGMS (Copy Generation Management System)
WSS (Wide Screen Signalling)
Simultaneous Y, U, V, C Output Format
NTSC-M, PAL-M/N
3
, PAL-B/D/G/H/I, PAL-60
Single 27 MHz Clock Required (2 Oversampling)
80 dB Video SNR
32-Bit Direct Digital Synthesizer for Color Subcarrier
Multistandard Video Output Support:
CCIR-656 4:2:2 8-Bit Parallel Input Format
4:2:2 16-Bit Parallel Input Format
Programmable Simultaneous Composite
and S-Video or RGB (SCART)/YUV Video Outputs
Programmable Luma Filters (Low-Pass [PAL/NTSC])
Notch, Extended (SSAF, CIF, and QCIF)
FUNCTIONAL BLOCK DIAGRAM
V
RESET
COLOR
DATA
P7–P0
P15–P8
HSYNC
FIELD/VSYNC
BLANK
POWER
MANAGEMENT
AA
CONTROL
(SLEEP MODE)
4:2:2 TO
4:4:4
INTER-
POLATOR
VIDEO TIMING
GENERATOR
8
8
8
YCrCb
TO
YUV
MATRIX
8
Y
U
V
8
CGMS & WSS
INSERTION
BLOCK
ADD
SYNC
ADD
BURST
I2C MPU PORT
9
88
8
™
and Advanced Power Management
ADV7170/ADV7171
Programmable Chroma Filters (Low-Pass [0.65 MHz,
1.0 MHz, 1.2 MHz and 2.0 MHz], CIF and QCIF)
Programmable VBI (Vertical Blanking Interval)
Programmable Subcarrier Frequency and Phase
Programmable LUMA Delay
Individual ON/OFF Control of Each DAC
CCIR and Square Pixel Operation
Integrated Subcarrier Locking to External Video Source
Color Signal Control/Burst Signal Control
Interlaced/Noninterlaced Operation
Complete On-Chip Video Timing Generator
Programmable Multimode Master/Slave Operation
Macrovision AntiTaping Rev 7.1 (ADV7170 Only)
Closed Captioning Support
Teletext Insertion Port (PAL-WST)
On-Board Color Bar Generation
TTXREQ TTX
TELETEXT
INSERTION
BLOCK
INTER-
POLATOR
INTER-
POLATOR
PROGRAMMABLE
9
LUMINANCE
8
PROGRAMMABLE
CHROMINANCE
8
REAL-TIME
CONTROL
CIRCUIT
On-Board Voltage Reference
2-Wire Serial MPU Interface (I
Single Supply 5 V or 3.3 V Operation
Small 44-Lead MQFP/TQFP Packages
APPLICATIONS
High-Performance DVD Playback Systems, Portable
Video Equipment Including Digital Still Cameras and
Laptop PCs, Video Games, PC Video/Multimedia and
Digital Satellite/Cable Systems (Set-Top Boxes/IRD)
10
FILTER
FILTER
10
10
10
SIN/COS
DDS BLOCK
YUV TO
MATRIX
U
V
RBG
10
10
10
ADV7170/ADV7171
10
2C®
-Compatible and Fast I2C)
M
U
10
10-BIT
L
T
I
10
P
L
E
10
X
E
R
10
VOLTAGE
REFERENCE
CIRCUIT
DAC
10-BIT
DAC
10-BIT
DAC
10-BIT
DAC
DAC D (PIN 27)
DAC C (PIN 26)
DAC B (PIN 31)
DAC A (PIN 32)
V
R
COMP
REF
SET
1
4
CLOCK
NOTES
1
Protected by U.S. Patent Numbers 5,343,196 and 5,442,355 and other intellectual property rights.
2
ITU-R and CCIR are used interchangeably in this document (ITU-R has replaced CCIR recommendations).
3
Throughout the document N is referenced to PAL- Combination -N.
4
This device is protected by U.S. Patent Numbers 4,631,603, 4,577,216, 4,819,098 and other intellectual property rights. The Macrovision anticopy process is
SCLOCK SDATA ALSB
SCRESET/RTC
GND
licensed for noncommercial home use only, which is its sole intended use in the device. Please contact sales office for latest Macrovision version available.
SSAF is a trademark of Analog Devices, Inc.
I2C is a registered trademark of Philips Corporation.
REV. A
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. No license is granted by implication or otherwise
under any patent or patent rights of Analog Devices.
DAC-to-DAC Matching2.0%
Output Compliance, V
Output Impedance, R
Output Capacitance, C
POWER REQUIREMENTS
V
AA
Normal Power Mode
I
DAC
I
DAC
I
CCT
Low Power Mode
I
DAC
I
DAC
I
CCT
Sleep Mode
I
DAC
I
CCT
(max)
(min)
9
(max)
(min)
9
10
11
8
8
8
8
OC
OUT
OUT
3, 7
I
= 0 mA30pF
OUT
R
= 150 Ω, RL = 37.5 Ω150155mA
SET
R
= 1041 Ω, RL = 262.5 Ω20mA
SET
01.4V
3.03.33.6V
Power Supply Rejection RatioCOMP = 0.1 µF0.010.5%/%
NOTES
11
The max/min specifications are guaranteed over this range. The max/min values are typical over 3.0 V to 3.6 V.
12
Temperature range T
13
Guaranteed by characterization.
14
Full drive into 37.5 Ω load.
15
DACs can output 35 mA typically at 3.3 V (R
16
Minimum drive current (used with buffered/scaled output load).
17
Power measurements are taken with Clock Frequency = 27 MHz. Max TJ = 110°C.
18
I
is the total current (min corresponds to 5 mA output per DAC, max corresponds to 38 mA output per DAC) to drive all four DACs. Turning off individual
DAC
DACs reduces I
19
I
(Circuit Current) is the continuous current required to drive the device.
CCT
10
Total DAC current in Sleep Mode.
11
Total continuous current during Sleep Mode.
Specifications subject to change without notice.
to T
MIN
correspondingly.
DAC
: 0°C to 70°C.
MAX
= 150 Ω and RL = 37.5 Ω), optimum performance obtained at 18 mA DAC current (R
SET
2
to T
unless otherwise noted.)
MAX
0.8V
10pF
30kΩ
35mA
80mA
20mA
35mA
0.1µA
0.001µA
= 300 Ω and RL = 75 Ω).
SET
REV. A
–3–
ADV7170/ADV7171–SPECIFICATIONS
(VAA = 5 V 5%1, V
5 V DYNAMIC SPECIFICATIONS
ParameterConditions
3, 4
3, 4
3, 4
3, 4
3, 4
MIN
3, 4
3, 4
to T
3, 4
3, 4
3, 4
3, 4
3, 4
3, 4
: 0°C to 70°C.
MAX
3, 4
Differential Gain
Differential Phase
Differential Gain
Differential Phase
3, 4
(Pedestal)RMS80dB rms
SNR
3, 4
(Pedestal)Peak Periodic70dB p-p
SNR
3, 4
SNR
(Ramp)RMS60dB rms
3, 4
(Ramp)Peak Periodic58dB p-p
SNR
Hue Accuracy
Color Saturation Accuracy
Chroma Nonlinear Gain
Chroma Nonlinear Phase
Chroma/Luma Intermod
Chroma/Luma Gain Inequality
Chroma/Luma Delay Inequality
Luminance Nonlinearity
Chroma AM Noise
Chroma PM Noise
NOTES
1
The max/min specifications are guaranteed over this range. The max/min values are typical over 4.75 V to 5.25 V.
2
Temperature range T
3
Guaranteed by characterization.
4
The low pass filter only and guaranteed by design.
Specifications subject to change without notice.
otherwise noted.)
1
Normal Power Mode0.30.7%
Normal Power Mode0.40.7Degrees
Lower Power Mode1.02.0%
Lower Power Mode1.02.0Degrees
Referenced to 40 IRE0.6± %
= 1.235 V, R
REF
= 150 . All specifications T
SET
MinTypMaxUnit
8285dB
7981dB
2
to T
MAX
unless
MIN
0.71.2Degrees
0.91.4%
0.30.5± Degrees
0.20.4± %
1.01.4± %
0.52.0ns
0.81.4± %
(VAA = 3.0 V – 3.6 V1, V
3.3 V DYNAMIC SPECIFICATIONS
ParameterConditions
Differential Gain
Differential Phase
Differential Gain
Differential Phase
3
SNR
(Pedestal)RMS78dB rms
3
SNR
(Pedestal)Peak Periodic70dB p-p
3
(Ramp)RMS60dB rms
SNR
3
SNR
(Ramp)Peak Periodic58dB p-p
Hue Accuracy
Color Saturation Accuracy
Luminance Nonlinearity
Chroma AM Noise
Chroma PM Noise
Chroma Nonlinear Gain
Chroma Nonlinear Phase
Chroma/Luma Intermod
NOTES
1
The max/min specifications are guaranteed over this range. The max/min values are typical over 4.75 V to 5.25 V.
2
Temperature range T
3
Guaranteed by characterization.
4
These specifications are for the low-pass filter only and guaranteed by design. For other internal filters, see Figure 4.
Specifications subject to change without notice.
3
3
3
3
3
3
3, 4
3, 4
3, 4
3, 4
3, 4
3, 4
to T
MIN
: 0°C to 70°C.
MAX
otherwise noted.)
1
Normal Power Mode1.0%
Normal Power Mode0.5Degrees
Lower Power Mode0.6%
Lower Power Mode0.5Degrees
Referenced to 40 IRE0.6± %
= 1.235 V, R
REF
= 150 . All specifications T
SET
MinTypMaxUnit
1.0Degrees
1.0%
1.4±%
80dB
79dB
0.30.5± Degrees
0.20.4± %
MIN
to T
MAX
2
unless
–4–
REV. A
ADV7170/ADV7171
to T
MAX
2
unless
5 V TIMING SPECIFICATIONS
(VAA = 4.75 V – 5.25 V1, V
otherwise noted.)
= 1.235 V, R
REF
= 150 . All specifications T
SET
MIN
ParameterConditionsMinTypMaxUnit
MPU PORT
3, 4
SCLOCK Frequency0400kHz
SCLOCK High Pulsewidth, t
SCLOCK Low Pulsewidth, t
Hold Time (Start Condition), t
Setup Time (Start Condition), t
Data Setup Time, t
5
SDATA, SCLOCK Rise Time, t
SDATA, SCLOCK Fall Time, t
Setup Time (Stop Condition), t
ANALOG OUTPUTS
3, 5
1
2
After This Period the First Clock Is Generated0.6µs
3
Relevant for Repeated Start Condition0.6µs
4
6
7
8
0.6µs
1.3µs
100ns
300ns
300ns
0.6µs
Analog Output Delay7ns
DAC Analog Output Skew0ns
CLOCK CONTROL AND
PIXEL PORT
f
CLOCK
Clock High Time, t
Clock Low Time, t
Data Setup Time, t
Data Hold Time, t
Control Setup Time, t
Control Hold Time, t
Digital Output Access Time, t
Digital Output Hold Time, t
Pipeline Delay, t
TELETEXT
Digital Output Access Time, t
Data Setup Time, t
Data Hold Time, t
RESET CONTROL
5, 6
3, 4, 7
27MHz
9
10
11
12
11
12
13
4
4
15
17
18
3, 4
14
16
8ns
8ns
3.5ns
4ns
4ns
3ns
1116ns
8ns
48Clock Cycles
20ns
2ns
6ns
RESET Low Time6ns
NOTES
1
The max/min specifications are guaranteed over this range. The max/min values are typical over 4.75 V to 5.25 V range.
2
Temperature range T
3
TTL input values are 0 to 3 volts, with input rise/fall times ≤ 3 ns, measured between the 10% and 90% points. Timing reference points at 50% for inputs and
outputs. Analog output load ≤ 10 pF.
4
Guaranteed by characterization.
5
Output delay measured from the 50% point of the rising edge of CLOCK to the 50% point of full-scale transition.
SCLOCK Frequency0400kHz
SCLOCK High Pulsewidth, t
SCLOCK Low Pulsewidth, t
Hold Time (Start Condition), t
Setup Time (Start Condition), t
Data Setup Time, t
5
SDATA, SCLOCK Rise Time, t
SDATA, SCLOCK Fall Time, t
Setup Time (Stop Condition), t
ANALOG OUTPUTS
3, 5
1
2
After This Period the First Clock Is Generated0.6µs
3
Relevant for Repeated Start Condition0.6µs
4
6
7
8
0.6µs
1.3µs
100ns
300ns
300ns
0.6µs
Analog Output Delay7ns
DAC Analog Output Skew0ns
CLOCK CONTROL AND
PIXEL PORT
f
CLOCK
Clock High Time, t
Clock Low Time, t
Data Setup Time, t
Data Hold Time, t
Control Setup Time, t
Control Hold Time, t
Digital Output Access Time, t
Digital Output Hold Time, t
Pipeline Delay, t
TELETEXT
Digital Output Access Time, t
Data Setup Time, t
Data Hold Time, t
RESET CONTROL
4, 5, 6
3, 4, 7
27MHz
9
10
11
12
11
12
13
14
15
16
17
18
3, 4
8ns
8ns
3.5ns
4ns
4ns
3ns
12ns
8ns
48Clock Cycles
23ns
2ns
6ns
RESET Low Time6ns
NOTES
1
The max/min specifications are guaranteed over this range. The max/min values are typical over 3.0 V to 3.6 V range.
2
Temperature range T
3
TTL input values are 0 to 3 volts, with input rise/fall times ≤ 3 ns, measured between the 10% and 90% points. Timing reference points at 50% for inputs and
outputs. Analog output load ≤ 10 pF.
4
Guaranteed by characterization.
5
Output delay measured from the 50% point of the rising edge of CLOCK to the 50% point of full-scale transition.
6
Pixel Port consists of the following:
Pixel Inputs:P15–P0
Pixel Controls:HSYNC, FIELD/VSYNC, BLANK
Clock Input:CLOCK
7
Teletext Port consists of the following:
Teletext Output:TTXREQ
Teletext Input:TTX
Voltage on Any Digital Input Pin . GND – 0.5 V to V
Storage Temperature (T
Junction Temperature (T
Lead Temperature (Soldering, 10 sec) . . . . . . . . . . . . . 260°C
Analog Outputs to GND
NOTES
1
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 listed in the operational sections of this
specification is not implied. Exposure to absolute maximum rating conditions for
extended periods may affect device reliability.
2
Analog output short circuit to any power supply or common can be of an indefinite
The 44-MQFP package used for this device takes advantage of
an ADI patented thermal coastline lead frame construction. This
maximizes heat transfer into the leads and reduces the package
thermal resistance.
For the MQFP package the junction-to-ambient (θ
) thermal
JA
resistance in still air on a four-layer PCB is 35.5°C/W. The
junction-to-case thermal resistance (θ
TQFP package θ
is 11.1°C/W.
θ
JC
in still air on a four-layer PCB is 53.2°C/W.
JA
) is 13.75°C/W. For the
JC
ORDERING GUIDE
Table I. Allowable Operating Conditions for KS and KSU
Package Options
KSKSU
Conditions3 V5 V3 V5 V
4 DAC ON Double 75R
4 DAC ON Low Power
4 DAC ON Buffering
1
YesYesYesNo
2
3
YesYesYesNo
YesYesYesYes
3 DAC ON Double 75RYesYesYesNo
3 DAC ON Low PowerYesYesYesYes
3 DAC ON BufferingYesYesYesYes
2 DAC ON Double 75RYesYesYesYes
2 DAC ON Low PowerYesYesYesYes
4 DAC ON BufferingYesYesYesYes
NOTES
1
DAC ON Double 75R refers to a condition where the DACs are terminated in
a double 75R load and low power mode is disabled.
2
DAC ON Low Power refers to a condition where the DACs are terminated in a
double 75R load and low power mode is enabled.
3
DAC ON Buffering refers to a condition where the DAC current is reduced to
5 mA and external buffers are used to drive the video load.
TemperaturePackagePackage
ModelRangeDescriptionsOptions
ADV7170KS0°C to 70°CPlastic Quad FlatpackS-44
ADV7170KSU0°C to 70°CThin Plastic Quad FlatpackSU-44
ADV7171KS0°C to 70°CPlastic Quad FlatpackS-44
ADV7171KSU0°C to 70°CThin Plastic Quad FlatpackSU-44
PIN CONFIGURATIONS
SET
SCRESET/
TTX
GND
TTXREQ
35 3437
AA
V
RTC
GND
R
33
32
31
30
29
28
27
26
25
24
23
RESET
V
REF
DAC A
DAC B
V
AA
GND
V
AA
DAC D
DAC C
COMP
SDATA
SCLOCK
V
P10
P11
P12
GND
V
P3
GND
CLOCK
434436
1
AA
P5
P6
P7
P8
P9
AA
PIN 1
2
IDENTIFIER
3
4
5
6
7
8
9
10
11
121314 15 16 17 18 1 92021 2 2
P14
P13
P2
P4
42
40
39 3841
ADV7170/ADV7171
MQFP/TQFP
TOP VIEW
(Not to Scale)
P15
HSYNC
P1
P0
ALSB
BLANK
CAUTION
FIELD/VSYNC
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
the ADV7170/ADV7171 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.
–8–
WARNING!
ESD SENSITIVE DEVICE
REV. A
ADV7170/ADV7171
PIN FUNCTION DESCRIPTIONS
Input/
MnemonicOutputFunction
P15–P0I8-Bit 4:2:2 Multiplexed YCrCb Pixel Port (P7–P0) or 16-Bit YCrCb Pixel Port (P15–P0).
P0 represents the LSB.
CLOCKITTL Clock Input. Requires a stable 27 MHz reference Clock for standard operation. Alter-
natively, a 24.5454 MHz (NTSC) or 29.5 MHz (PAL) can be used for square pixel operation.
HSYNCI/OHSYNC (Modes 1 and 2) Control Signal. This pin may be configured to output (Master
Mode) or accept (Slave Mode) Sync signals.
FIELD/VSYNCI/ODual Function FIELD (Mode 1) and VSYNC (Mode 2) Control Signal. This pin may be
configured to output (Master Mode) or accept (Slave Mode) these control signals.
BLANKI/OVideo Blanking Control Signal. The pixel inputs are ignored when this is Logic Level “0.”
This signal is optional.
SCRESET/RTCIThis pin can be configured as an input by setting MR22 and MR21 of Mode Register 2. It
can be configured as a subcarrier reset pin, in which case a low-to-high transition on this pin
will reset the subcarrier to Field 0. Alternatively, it may be configured as a Real-Time
Control (RTC) input.
V
REF
R
SET
COMPOCompensation Pin. Connect a 0.1 µF Capacitor from COMP to V
DAC AOPAL/NTSC Composite Video Output. Full-Scale Output is 180 IRE (1286 mV) for NTSC
DAC CORED/S-Video C/V Analog Output
DAC DOGREEN/S-Video Y/Y Analog Output
DAC BOBLUE/Composite/U Analog Output
SCLOCKIMPU Port Serial Interface Clock Input
SDATAI/OMPU Port Serial Data Input/Output
ALSBITTL Address Input. This signal set up the LSB of the MPU address.
RESETIThe input resets the on chip timing generator and sets the ADV7170/ADV7171 into default
TTX/V
AA
TTXREQ/GNDOTeletext Data Request Signal/ Defaults to GND
V
AA
GNDGGround Pin
I/OVoltage Reference Input for DACs or Voltage Reference Output (1.235 V).
IA 150 Ω resistor connected from this pin to GND is used to control full-scale amplitudes of
the video signals.
. For Optimum Dynamic
AA
Performance in low power mode, the value of the COMP capacitor can be lowered to as low
as 2.2 nF.
and 1300 mV for PAL.
mode. This is NTSC operation, Timing Slave Mode 0, 8 Bit Operation, 2 × Composite and
S Video out and DAC B powered ON and DAC D powered OFF.
ITeletext Data/Defaults to V
when Teletext not Selected (enables backward compatibility to
AA
ADV7175/ADV7176).
when Teletext not Selected (enables back-
ward compatibility to ADV7175/ADV7176).
PPower Supply (3 V to 5 V)
REV. A
–9–
ADV7170/ADV7171
GENERAL DESCRIPTION
The ADV7170/ADV7171 is an integrated digital video encoder
that converts Digital CCIR-601 4:2:2 8 or 16-bit component
video data into a standard analog baseband television signal
compatible with worldwide standards.
The on-board SSAF (Super Sub-Alias Filter) with extended
luminance frequency response and sharp stopband attenuation,
enables studio quality video playback on modern TVs, giving
optimal horizontal line resolution.
An advanced power management circuit enables optimal control
of power consumption in both normal operating modes and
power-down or sleep modes.
The ADV7170/ADV7171 also supports both PAL and NTSC
square pixel operation. The parts also incorporate WSS and
CGMS-A data control generation.
The output video frames are synchronized with the incoming
data timing reference codes. Optionally, the encoder accepts
(and can generate) HSYNC, VSYNC, and FIELD timing signals. These timing signals can be adjusted to change pulsewidth
and position while the part is in the master mode. The encoder
requires a single two times pixel rate (27 MHz) clock for standard
operation. Alternatively, the encoder requires a 24.5454 MHz
clock for NTSC or 29.5 MHz clock for PAL square pixel
mode operation. All internal timing is generated on-chip.
A separate teletext port enables the user to directly input teletext data during the vertical blanking interval.
The ADV7170/ADV7171 modes are set up over a two-wire
serial bidirectional port (I
2
C-Compatible) with two slave addresses.
Functionally, the ADV7171 and ADV7170 are the same with
the exception that the ADV7170 can output the Macrovision
anticopy algorithm.
The ADV7170/ADV7171 is packaged in a 44-lead MQFP package and a 44-lead TQFP package.
DATA PATH DESCRIPTION
For PAL B, D, G, H, I, M, N, and NTSC M, N modes, YCrCb
4:2:2 data is input via the CCIR-656 Compatible Pixel Port at a
27 MHz data rate. The pixel data is demultiplexed to form
three data paths. Y typically has a range of 16 to 235, Cr and
Cb typically have a range of 128 ± 112; however, it is possible
to input data from 1 to 254 on both Y, Cb and Cr. The ADV7170/
ADV7171 supports PAL (B, D, G, H, I, M, N) and NTSC
(with and without pedestal) standards. The appropriate SYNC,
BLANK and Burst levels are added to the YCrCb data. Macrovision AntiTaping (ADV7170 only), closed-captioning and Teletext
levels are also added to Y and the resultant data is interpolated
to a rate of 27 MHz. The interpolated data is filtered and scaled by
three digital FIR filters.
The U and V signals are modulated by the appropriate subcarrier sine/cosine phases and added together to make up the
chrominance signal. The luma (Y) signal can be delayed 1–3
luma cycles (each cycle is 74 ns) with respect to the chroma signal.
The luma and chroma signals are then added together to make
up the composite video signal. All edges are slew rate limited.
The YCrCb data is also used to generate RGB data with
appropriate SYNC and BLANK levels. The RGB data is in
synchronization with the composite video output. Alternatively,
analog YUV data can be generated instead of RGB.
The four l0-bit DACs can be used to output:
1. Composite Video + RGB Video.
2. Composite Video + YUV Video.
3. Two Composite Video Signals + LUMA and CHROMA
(Y/C) Signals.
Alternatively, each DAC can be individually powered off if
not required.
Video output levels are illustrated in Appendix 6.
INTERNAL FILTER RESPONSE
The Y filter supports several different frequency responses,
including two low-pass responses, two notch responses, an
extended (SSAF) response, a CIF response and a QCIF response.
The UV filter supports several different frequency responses,
including four low-pass responses, a CIF response and a QCIF
response, these can be seen in the following Figures 4 to 18.
The ADV7170/ADV7171 can be configured to generate 100/
7.5/75/7.5 color bars for NTSC or 100/0/75/0 for PAL color
bars. These are enabled by setting MR17 of Mode Register 1
to Logic “1.”
SQUARE PIXEL MODE
The ADV7170/ADV7171 can be used to operate in square pixel
mode. For NTSC operation, an input clock of 24.5454 MHz is
required. Alternatively, for PAL operation, an input clock of
29.5 MHz is required. The internal timing logic adjusts accordingly for square pixel mode operation.
COLOR SIGNAL CONTROL
The color information can be switched on and off the video
output using Bit MR24 of Mode Register 2.
BURST SIGNAL CONTROL
The burst information can be switched on and off the video
output using Bit MR25 of Mode Register 2.
NTSC PEDESTAL CONTROL
The pedestal on both odd and even fields can be controlled on a
line-by-line basis using the NTSC Pedestal Control Registers.
This allows the pedestals to be controlled during the vertical
blanking interval.
PIXEL TIMING DESCRIPTION
The ADV7170/ADV7171 can operate in either 8-bit or 16-bit
YCrCb Mode.
8-Bit YCrCb Mode
This default mode accepts multiplexed YCrCb inputs through
the P7-P0 pixel inputs. The inputs follow the sequence Cb0, Y0
Cr0, Y1 Cb1, Y2, etc. The Y, Cb and Cr data are input on a
rising clock edge.
16-Bit YCrCb Mode
This mode accepts Y inputs through the P7–P0 pixel inputs and
multiplexed CrCb inputs through the P15–P8 pixel inputs. The
data is loaded on every second rising edge of CLOCK. The inputs
follow the sequence Cb0, Y0 Cr0, Y1 Cb1, Y2, etc.
SUBCARRIER RESET
Together with the SCRESET/RTC pin, and bits MR22 and
MR21 of Mode Register 2, the ADV7170/ADV7171 can be
used in subcarrier reset mode. The subcarrier will reset to Field
0 at the start of the following field when a low-to-high transition
occurs on this input pin.
REAL-TIME CONTROL
Together with the SCRESET/RTC pin, and Bits MR22 and
MR21 of Mode Register 2, the ADV7170/ADV7171 can be
used to lock to an external video source. The real-time control
mode allows the ADV7170/ADV7171 to automatically alter the
subcarrier frequency to compensate for line length variation.
When the part is connected to a device that outputs a digital
datastream in the RTC format (such as a ADV7185 video
decoder, see Figure 19), the part will automatically change to
the compensated subcarrier frequency on a line-by-line basis.
This digital datastream is 67 bits wide and the subcarrier is
contained in Bits 0 to 21. Each bit is 2 clock cycles long. 00Hex
should be written into all four subcarrier frequency registers
when using this mode.
VIDEO TIMING DESCRIPTION
The ADV7170/ADV7171 is intended to interface to offthe-shelf MPEG1 and MPEG2 Decoders. Consequently, the
ADV7170/ADV7171 accepts 4:2:2 YCrCb Pixel Data via a
CCIR-656 pixel port and has several video timing modes of
operation that allow it to be configured as either system master
video timing generator or a slave to the system video timing
generator. The ADV7170/ADV7171 generates all of the required
horizontal and vertical timing periods and levels for the analog
video outputs.
The ADV7170/ADV7171 calculates the width and placement of
analog sync pulses, blanking levels and color burst envelopes.
Color bursts are disabled on appropriate lines, and serration and
equalization pulses are inserted where required.
In addition, the ADV7170/ADV7171 supports a PAL or NTSC
square pixel operation in slave mode. The part requires an input
pixel clock of 24.5454 MHz for NTSC and an input pixel clock
of 29.5 MHz for PAL. The internal horizontal line counters
place the various video waveform sections in the correct location
for the new clock frequencies.
The ADV7170/ADV7171 has four distinct master and four distinct slave timing configurations. Timing Control is established
with the bidirectional SYNC, BLANK, and FIELD/VSYNC
pins. Timing Mode Register 1 can also be used to vary the timing
pulsewidths and where they occur in relation to each other.
REV. A
–13–
ADV7170/ADV7171
COMPOSITE
VIDEO
e.g., VCR
OR CABLE
VIDEO
DECODER
(e.g., ADV7185)
CLOCK
SCRESET/RTC
P7–P0
BLUE/COMPOSITE/U
HSYNC
FIELD/VSYNC
ADV7170/ADV7171
GREEN/LUMA/Y
RED/CHROMA/V
COMPOSITE
H/LTRANSITION
COUNT START
RTC
TIME SLOT: 01
NOTES:
1
FSC PLL INCREMENT IS 22 BITS LONG, VALUE LOADED INTO ADV7170/ADV7171 FSC DDS REGISTER IS
F
PLL INCREMENTS BITS 21:0 PLUS BITS 0:9 OF SUBCARRIER FREQUENCY REGISTERS. ALL ZEROS SHOULD
SC
BE WRITTEN TO THE SUBCARRIER FREQUENCY REGISTERS OF THE ADV7170/ADV7171.
2
SEQUENCE BIT
PAL: 0 = LINE NORMAL, 1 = LINE INVERTED
NTSC: 0 = NO CHANGE
3
RESET BIT
RESET ADV7170/ADV7171 DDS
128
LOW
RESERVED
13
ADV7170/ADV7171
14 BITS
NOT USED IN
0
14
4 BITS
RESERVED
21
19
PLL INCREMENT
F
SC
VALID
SAMPLE
INVALID
SAMPLE
SEQUENCE
2
5 BITS
RESERVED
1
8/LLC
BIT
0
67 68
RESET
BIT
RESERVED
3
Figure 19. RTC Timing and Connections
Vertical Blanking Data Insertion
It is possible to allow encoding of incoming YCbCr data on those lines of VBI that do not bear line sync or pre-/post-equalization
pulses (see Figures 21 to 32). This mode of operation is called “Partial Blanking” and is selected by setting MR32 to 1. It allows the
insertion of any VBI data (Opened VBI) into the encoded output waveform. This data is present in digitized incoming YCbCr data
stream (e.g., WSS data, CGMS, VPS, etc.). Alternatively, the entire VBI may be blanked (no VBI data inserted) on these lines by
setting MR32 to 0.
Mode 0 (CCIR-656): Slave Option
(Timing Register 0 TR0 = X X X X X 0 0 0)
The ADV7170/ADV7171 is controlled by the SAV (Start Active Video) and EAV (End Active Video) time codes in the pixel data.
All timing information is transmitted using a 4-byte synchronization pattern. A synchronization pattern is sent immediately before
and after each line during active picture and retrace. Mode 0 is illustrated in Figure 20. The HSYNC, FIELD/VSYNC, and BLANK
(if not used) pins should be tied high during this mode.
–14–
REV. A
ANALOG
VIDEO
ADV7170/ADV7171
INPUT PIXELS
NTSC/PAL M SYSTEM
(525 LlNES/60Hz)
PAL SYSTEM
(625 LINES/50Hz)
EAV CODE
C
FF0000X
Y
Y
r
4 CLOCK
4 CLOCK
END OF ACTIVE
VIDEO LINE
8
10801
0
Y
0
FF00FFABABA
ANCILLARY DATA
268 CLOCK
280 CLOCK
B
(HANC)
801
8
0
0
SAV CODE
10FF0
4 CLOCK
0
XYC
Y
0
0
b
4 CLOCK
START OF ACTIVE
VIDEO LINE
1440 CLOCK
1440 CLOCK
Y
r
Y
Y
b
r
b
C
C
C
C
Figure 20. Timing Mode 0 (Slave Mode)
Mode 0 (CCIR-656): Master Option
(Timing Register 0 TR0 = X X X X X 0 0 1)
The ADV7170/ADV7171 generates H, V, and F signals required for the SAV (Start Active Video) and EAV (End Active Video)
Time Codes in the CCIR656 standard. The H bit is output on the HSYNC pin, the V bit is output on the BLANK pin and the F bit
is output on the FIELD/VSYNC pin. Mode 0 is illustrated in Figure 21 (NTSC) and Figure 22 (PAL). The H, V, and F transitions
relative to the video waveform are illustrated in Figure 23.
DISPLAY
5225235245251234
H
VERTICAL BLANK
67
5
1011202122
9
8
DISPLAY
REV. A
V
F
DISPLAY
260261262263264265266267268269270271272273274
H
V
F
ODD FIELD
ODD FIELDEVEN FIELD
VERTICAL BLANK
EVEN FIELD
Figure 21. Timing Mode 0 (NTSC Master Mode)
–15–
283
284
DISPLAY
285
ADV7170/ADV7171
DISPLAY
6226236246251234
H
V
F
DISPLAY
309310311312314315316317
H
V
F
ODD FIELD
ODD FIELDEVEN FIELD
313
EVEN FIELD
VERTICAL BLANK
VERTICAL BLANK
Figure 22. Timing Mode 0 (PAL Master Mode)
5
67
318
319320334
DISPLAY
2223
21
DISPLAY
335336
ANALOG
VIDEO
H
F
V
Figure 23. Timing Mode 0 Data Transitions (Master Mode)
–16–
REV. A
ADV7170/ADV7171
Mode 1: Slave Option HSYNC, BLANK, FIELD
(Timing Register 0 TR0 = X X X X X 0 1 0)
In this mode the ADV7170/ADV7171 accepts horizontal SYNC and Odd/Even FIELD signals. A transition of the FIELD input
when HSYNC is low indicates a new frame, i.e., vertical retrace. The BLANK signal is optional. When the BLANK input is dis-
abled, the ADV7170/ADV7171 automatically blanks all normally blank lines as per CCIR-624. Mode 1 is illustrated in Figure
24 (NTSC) and Figure 25 (PAL).
HSYNC
BLANK
FIELD
HSYNC
BLANK
FIELD
DISPLAY
522523524525
DISPLAY
260261262263264265266267268269270271272273274
1234
EVEN FIELD
ODD FIELD EVEN FIELD
ODD FIELD
VERTICAL BLANK
678
5
VERTICAL BLANK
1011
9
Figure 24. Timing Mode 1 (NTSC)
DISPLAY
202122
DISPLAY
283
284
285
HSYNC
BLANK
HSYNC
BLANK
FIELD
DISPLAY
6226236246251234
FIELD
DISPLAY
309310311312313314315316
EVEN FIELD
ODD FIELD
ODD FIELD
EVEN FIELD
Figure 25. Timing Mode 1 (PAL)
VERTICAL BLANK
VERTICAL BLANK
317
5
318319
67
320
DISPLAY
212223
DISPLAY
334335336
REV. A
–17–
ADV7170/ADV7171
Mode 1: Master Option HSYNC, BLANK, FIELD
(Timing Register 0 TR0 = X X X X X 0 1 1)
In this mode the ADV7170/ADV7171 can generate horizontal SYNC and Odd/Even FIELD signals. A transition of the FIELD
input when HSYNC is low indicates a new frame, i.e., vertical retrace. The BLANK signal is optional. When the BLANK input is
disabled, the ADV7170/ADV7171 automatically blanks all normally blank lines as per CCIR-624. Pixel data is latched on the rising
clock edge following the timing signal transitions. Mode 1 is illustrated in Figure 24 (NTSC) and Figure 25 (PAL). Figure 26 illustrates the HSYNC, BLANK, and FIELD for an odd or even field transition relative to the pixel data.
HSYNC
FIELD
PAL = 12 * CLOCK/2
BLANK
NTSC = 16 * CLOCK/2
PIXEL
DATA
CbY
PAL = 132 * CLOCK/2
NTSC = 122 * CLOCK/2
CrY
Figure 26. Timing Mode 1 Odd/Even Field Transitions Master/Slave
Mode 2: Slave Option HSYNC, VSYNC, BLANK
(Timing Register 0 TR0 = X X X X X 1 0 0)
In this mode the ADV7170/ADV7171 accepts horizontal and vertical SYNC signals. A coincident low transition of both HSYNC and
VSYNC inputs indicates the start of an odd field. A VSYNC low transition when HSYNC is high indicates the start of an even field.
The BLANK signal is optional. When the BLANK input is disabled, the ADV7170/ADV7171 automatically blanks all normally
blank lines as per CCIR-624. Mode 2 is illustrated in Figure 27 (NTSC) and Figure 28 (PAL).
HSYNC
BLANK
VSYNC
DISPLAY
522523524525
DISPLAY
1234
EVEN FIELD
VERTICAL BLANK
678
5
ODD FIELD
VERTICAL BLANK
9
1011
DISPLAY
202122
DISPLAY
HSYNC
BLANK
VSYNC
260261262263264265266267268269270271272273274
ODD FIELD
EVEN FIELD
Figure 27. Timing Mode 2 (NTSC)
–18–
283
284
285
REV. A
ADV7170/ADV7171
HSYNC
BLANK
VSYNC
HSYNC
BLANK
VSYNC
DISPLAY
6226236246251234567
EVEN FIELD
DISPLAY
309310311312313314315316
ODD FIELDEVEN FIELD
VERTICAL BLANK
ODD FIELD
VERTICAL BLANK
317
318319
212223
320
334
DISPLAY
DISPLAY
335336
Figure 28. Timing Mode 2 (PAL)
Mode 2: Master Option HSYNC, VSYNC, BLANK
(Timing Register 0 TR0 = X X X X X 1 0 1)
In this mode the ADV7170/ADV7171 can generate horizontal and vertical SYNC signals. A coincident low transition of both
HSYNC and VSYNC inputs indicates the start of an Odd Field. A VSYNC low transition when HSYNC is high indicates the start of
an even field. The BLANK signal is optional. When the BLANK input is disabled, the ADV7170/ADV7171 automatically blanks all
normally blank lines as per CCIR-624. Mode 2 is illustrated in Figure 27 (NTSC) and Figure 28 (PAL). Figure 29 illustrates
the HSYNC, BLANK, and VSYNC for an even-to-odd field transition relative to the pixel data.
Figure 30 illustrates the HSYNC,
BLANK, and VSYNC for an odd-to-even field transition relative to the pixel data.
REV. A
HSYNC
VSYNC
BLANK
PIXEL
DATA
HSYNC
VSYNC
BLANK
PIXEL
DATA
PAL = 12 * CLOCK/2
NTSC = 16 * CLOCK/2
CbYCrY
PAL = 132 * CLOCK/2
NTSC = 122 * CLOCK/2
Figure 29. Timing Mode 2 Even-to-Odd Field Transition Master/Slave
PAL = 864 * CLOCK/2
PAL = 12 * CLOCK/2
NTSC = 16 * CLOCK/2
PAL = 132 * CLOCK/2
NTSC = 122 * CLOCK/2
NTSC = 858 * CLOCK/2
CbYCrYCb
Figure 30. Timing Mode 2 Odd-to-Even Field Transition Master/Slave
–19–
ADV7170/ADV7171
Mode 3: Master/Slave Option HSYNC, BLANK, FIELD
(Timing Register 0 TR0 = X X X X X 1 1 0 or X X X X X 1 1 1)
In this mode the ADV7170/ADV7171 accepts or generates Horizontal SYNC and Odd/Even FIELD signals. A transition of the
FIELD input when HSYNC is high indicates a new frame, i.e., vertical retrace. The BLANK signal is optional. When the BLANK
input is disabled, the ADV7170/ADV7171 automatically blanks all normally blank lines as per CCIR-624. Mode 3 is illustrated in
Figure 31 (NTSC) and Figure 32 (PAL).
HSYNC
BLANK
FIELD
HSYNC
BLANK
FIELD
DISPLAY
5225235245251234
ODD FIELDEVEN FIELD
DISPLAY
260261262263264265266267268269270271272273274
ODD FIELD
EVEN FIELD
VERTICAL BLANK
67
5
VERTICAL BLANK
1011202122
9
8
Figure 31. Timing Mode 3 (NTSC)
283
DISPLAY
284
DISPLAY
285
HSYNC
BLANK
FIELD
HSYNC
BLANK
FIELD
DISPLAYDISPLAY
6226236246251234
ODD FIELDEVEN FIELD
DISPLAY
30931031131
ODD FIELD EVEN FIELD
2
314315316317
313
VERTICAL BLANK
5
VERTICAL BLANK
67
318
319320334
2223
21
335336
Figure 32. Timing Mode 3 (PAL)
DISPLAY
–20–
REV. A
POWER-ON RESET
1X10101A1
ADDRESS
CONTROL
SET UP BY
ALSB
READ/ WRITE
CONTROL
0WRITE
1READ
0
X10101A1
ADDRESS
CONTROL
SET UP BY
ALSB
READ/ WRITE
CONTROL
0WRITE
1READ
After power-up, it is necessary to execute a reset operation. A
reset occurs on the falling edge of a high-to-low transition on
the RESET pin. This initializes the pixel port so that the
pixel inputs, P7–P0 are selected. After reset, the ADV7170/
ADV7171 is automatically set up to operate in NTSC mode.
Subcarrier frequency code 21F07C16HEX is loaded into the
subcarrier frequency registers. All other registers, with the exception of Mode Register 0, are set to 00H. All bits in Mode
Register 0 are set to Logic Level “0” except Bit MR44. Bit
MR44 of Mode Register 4 is set to Logic “1.” This enables the
7.5 IRE pedestal.
SCH PHASE MODE
The SCH phase is configured in default mode to reset every
four (NTSC) or eight (PAL) fields to avoid an accumulation of
SCH phase error over time. In an ideal system, zero SCH phase
error would be maintained forever, but in reality, this is impossible to achieve due to clock frequency variations. This effect is
reduced by the use of a 32-bit DDS, which generates this SCH.
Resetting the SCH phase every four or eight fields avoids the
accumulation of SCH phase error, and results in very minor
SCH phase jumps at the start of the four or eight field sequence.
Resetting the SCH phase should not be done if the video source
does not have stable timing or the ADV7170/ADV7171 is configured in RTC mode (MR21 = 1 and MR22 = 1). Under these
conditions (unstable video) the subcarrier phase reset should be
enabled (MR22 = 0 and MR21 = 1) but no reset applied. In
this configuration the SCH phase will never be reset, which
means that the output video will now track the unstable input
video. The subcarrier phase reset, when applied, will reset the
SCH phase to Field 0 at the start of the next field (e.g., subcarrier
phase reset applied in Field 5 [PAL] on the start of the next
field SCH phase will be reset to Field 0).
MPU PORT DESCRIPTION
The ADV7170 and ADV7171 support a two-wire serial (I2C
Compatible) microprocessor bus driving multiple peripherals.
Two inputs, serial data (SDATA) and serial clock (SCLOCK),
carry information between any device connected to the bus. Each
slave device is recognized by a unique address. The ADV7170
and ADV7171 each have four possible slave addresses for both
read and write operations. These are unique addresses for each
device and are illustrated in Figure 33 and Figure 34. The LSB
sets either a read or write operation. Logic Level “1” corresponds to a read operation, while Logic Level “0” corresponds
to a write operation. A “1” is set by setting the ALSB pin of the
ADV7170/ADV7171 to Logic Level “0” or Logic Level “1.”
ADV7170/ADV7171
Figure 33. ADV7170 Slave Address
Figure 34. ADV7171 Slave Address
To control the various devices on the bus, the following protocol must be followed: first, the master initiates a data transfer by
establishing a start condition, defined by a high-to-low transition
on SDATA while SCLOCK remains high. This indicates that
an address/data stream will follow. All peripherals respond to
the start condition and shift the next eight bits (7-bit address +
R/W bit). The bits transfer from MSB down to LSB. The peripheral that recognizes the transmitted address responds by pulling
the data line low during the ninth clock pulse. This is known as
an acknowledge bit. All other devices withdraw from the bus at
this point and maintain an idle condition. The idle condition is
where the device monitors the SDATA and SCLOCK lines waiting for the start condition and the correct transmitted address.
The R/W bit determines the direction of the data. A Logic “0”
on the LSB of the first byte means that the master will write information to the peripheral. A Logic “1” on the LSB of the first byte
means that the master will read information from the peripheral.
REV. A
–21–
ADV7170/ADV7171
The ADV7170/ADV7171 acts as a standard slave device on the
bus. The data on the SDATA pin is 8 bits long, supporting
the 7-bit addresses, plus the R/W bit. The ADV7170 has 48
subaddresses and the ADV7171 has 26 subaddresses to enable
access to the internal registers. It therefore interprets the first
byte as the device address and the second byte as the starting
subaddress. The subaddresses auto increment allows data to
be written to or read from the starting subaddress. A data
transfer is always terminated by a stop condition. The user can
also access any unique subaddress register on a one-by-one basis
without having to update all the registers. There is one exception. The subcarrier frequency registers should be updated in
sequence, starting with Subcarrier Frequency Register 0. The
auto increment function should then be used to increment and
access Subcarrier Frequency Registers 1, 2, and 3. The subcarrier
frequency registers should not be accessed independently.
Stop and start conditions can be detected at any stage during
the data transfer. If these conditions are asserted out of sequence
with normal read and write operations, they cause an immediate
jump to the idle condition. During a given SCLOCK high period,
the user should issue only one start condition, one stop condition or a single stop condition followed by a single start condition.
If an invalid subaddress is issued by the user, the ADV7170/
ADV7171 will not issue an acknowledge and will return to the
idle condition. If, in auto-increment mode the user exceeds the
highest subaddress, the following action will be taken:
1. In Read Mode, the highest subaddress register contents
will continue to be output until the master device issues
a no-acknowledge. This indicates the end of a read. A
no-acknowledge condition is where the SDATA line is not
pulled low on the ninth pulse.
2. In Write Mode, the data for the invalid byte will not be
loaded into any subaddress register, a no-acknowledge will
be issued by the ADV7170/ADV7171 and the part will
return to the idle condition.
SDATA
SCLOCK
1-7891-7891-789PS
START ADDR
ACK SUBADDRESS ACKDATAACK STOP
R/W
Figure 35. Bus Data Transfer
Figure 35 illustrates an example of data transfer for a read
sequence and the start and stop conditions.
Figure 36 shows bus write and read sequences.
REGISTER ACCESSES
The MPU can write to or read from all of the ADV7170/
ADV7171 registers except the subaddress register, which is a
write-only register. The subaddress register determines which
register the next read or write operation accesses. All communications with the part through the bus start with an access to the
subaddress register. A read/write operation is performed from/to
the target address, which then increments to the next address
until a stop command on the bus is performed.
REGISTER PROGRAMMING
The following section describes each register, including subaddress
register, mode registers, subcarrier frequency registers, subcarrier
phase register, timing registers, closed captioning extended data
registers, closed captioning data registers and NTSC pedestal
control registers, in terms of its configuration.
Subaddress Register (SR7–SR0)
The communications register is an 8-bit write-only register.
After the part has been accessed over the bus, and a read/write
operation is selected, the subaddress is set up. The subaddress
register determines to/from which register the operation takes place.
Figure 37 shows the various operations under the control of
the subaddress register. Zero should always be written to
SR7–SR6.
Register Select (SR5–SR0)
These bits are set up to point to the required starting address.
Figure 39 shows the various operations under the control of Mode
Register 1. This register can be read from as well as written to.
MR1 BIT DESCRIPTION
Interlace Control (MR10)
This bit is used to set up the output to interlaced or noninterlaced mode. This mode is only relevant when the part is in
composite video mode.
Closed Captioning Field Selection (MR12–MR11)
These bits control the fields on which closed captioning data is
displayed; closed captioning information can be displayed on an
odd field, even field or both fields.
DAC Control (MR16–MR13)
These bits can be used to power down the DACs. This can
be used to reduce the power consumption of the ADV7170/
ADV7171 if any of the DACs are not required in the application.
COLOR BAR
CONTROL
MR17
0DISABLE
1ENABLE
DAC A
CONTROL
MR16
0NORMAL
1POWER-DOWN
MR15
0NORMAL
1POWER-DOWN
DAC B
CONTROL
DAC D
CONTROL
MR14
0NORMAL
1POWER-DOWN
MR13
0NORMAL
1POWER-DOWN
Color Bar Control (MR17)
This bit can be used to generate and output an internal color
bar test pattern. The color bar configuration is 100/7.5/75/7.5
for NTSC and 100/0/75/0 for PAL. It is important to note that
when color bars are enabled the ADV7170/ADV7171 is configured in a master timing mode.
Figure 40 shows the various operations under the control of Mode
Register 2. This register can be read from as well as written to.
MR2 BIT DESCRIPTION
Square Pixel Control (MR20)
This bit is used to set up square pixel mode. This is available in
slave mode only. For NTSC, a 24.5454 MHz clock must be
supplied. For PAL, a 29.5 MHz clock must be supplied.
MR11MR10MR17MR12MR13MR15MR16MR14
CLOSED CAPTIONING
FIELD SELECTION
MR12
MR11
00NO DATA OUT
01ODD FIELD ONLY
10EVEN FIELD ONLY
DAC C
CONTROL
11DATA OUT
(BOTH FIELDS)
MR10
0INTERLACED
1NONINTERLACED
INTERLACE
CONTROL
MR27MR22MR23MR26MR25MR24MR20
MR27
RESERVED
MR37
INPUT DEFAULT
COLOR
MR37
0 DISABLE
1 ENABLE
LOW POWER MODE
MR26
0 DISABLE
1 ENABLE
TTXRQ BIT
MODE CONTROL
MR36
0NORMAL
1BIT REQUEST
Figure 39. Mode Register 1
MR24
0ENABLE COLOR
1DISABLE COLOR
BURST
CONTROL
MR25
0ENABLE BURST
1DISABLE BURST
Figure 40. Mode Register 2
CHROMA OUTPUT
MR34
0 DISABLE
1 ENABLE
TELETEXT
ENABLE
MR35
0 DISABLE
1 ENABLE
CHROMINANCE
CONTROL
MR23
SELECT
MR33DAC A
0COMPOSITE
1GREEN/LUMA/Y
GENLOCK CONTROL
MR22
MR21
x0DISABLE GENLOCK
01ENABLE SUBCARRIER
11 ENABLE RTC PIN
ACTIVE VIDEO LINE
DURATION
0720 PIXELS
1710 PIXELS/702 PIXELS
MR32MR34MR33MR35MR36
VBI_OPEN
MR32
0DISABLE
1ENABLE
RESET PIN
MR31
DAC OUTPUT
DAC B
BLUE/COMP/U
BLUE/COMP/U
MR21
SQUARE PIXEL
MR20
MR30
MR30
MR31
RESERVED
DAC C
RED/CHROMA/V
RED/CHROMA/V
CONTROL
0DISABLE
1ENABLE
DAC D
GREEN/LUMA/Y
COMPOSITE
Figure 41. Mode Register 3
–24–
REV. A
ADV7170/ADV7171
Genlock Control (MR22–MR21)
These bits control the genlock feature of the ADV7170/ADV7171.
Setting MR21 to a Logic “1” configures the SCRESET/RTC
pin as an input. Setting MR22 to Logic Level “0” configures the
SCRESET/RTC pin as a subcarrier reset input. Therefore, the
subcarrier will reset to Field 0 following a low-to-high transition
on the SCRESET/RTC pin. Setting MR22 to Logic Level “1”
configures the SCRESET/RTC pin as a real-time control input.
Active Video Line Duration (MR23)
This bit switches between two active video line durations. A
zero selects CCIR REC601. (720 pixels PAL/NTSC) and a
one selects ITU-R.BT470 standard for active video duration
(710 pixels NTSC 702 pixels PAL).
Chrominance Control (MR24)
This bit enables the color information to be switched on and off
the video output.
Burst Control (MR25)
This bit enables the burst information to be switched on and off
the video output.
Low Power Mode (MR26)
This bit enables the lower power mode of the ADV7170/ADV7171.
This will reduce the DAC current by 45%.
Mode Register 3 is an 8-bit-wide register.
Figure 41 shows the various operations under the control of
Mode Register 3.
MR3 BIT DESCRIPTION
Revision Code (MR30–MR31)
These bits are read only and indicates the revision of the device.
VBI Open (MR32)
This bit determines whether or not data in the vertical blanking
interval (VBI) is output to the analog outputs or blanked. VBI data
insertion is not available in Slave Mode 0. Also, when both,
BLANK input control and VBI-open are enabled, BLANK input
control has priority, i.e., VBI data insertion will not work.
DAC Output (MR33)
This bit is used to switch the DAC outputs from SCART to a
EUROSCART configuration. A complete table of all DAC
output configurations is shown below.
Chroma Output Select (MR34)
With this active high bit it is possible to output YUV data with a
composite output on the fourth DAC or a chroma output on the
fourth DAC (0 = CVBS; 1 = CHROMA).
Teletext Enable (MR35)
This bit must be set to “1” to enable teletext data insertion on
the TTX pin.
TTXREQ Bit Mode Control (MR36)
This bit enables switching of the teletext request signal from a
continuous high signal (“MR36 = 0”) to a bit wise request signal (“MR36 = 1”).
Input Default Color (MR37)
This bit determines the default output color from the DACs for
zero input pixel data (or disconnected). A Logical “0” means
that the color corresponding to 00000000 will be displayed. A
Logical “1” forces the output color to black for 00000000 pixel
input video data.
0000CVBSCVBSCY2 Composite and Y/C
0001Y CVBSCCVBS2 Composite and Y/C
0010CVBSCVBSCY2 Composite and Y/C
0011Y CVBSCCVBS2 Composite and Y/C
0100CVBSBRGRGB and Composite
0101GB R CVBSRGB and Composite
0110CVBSUVYYUV and Composite
0111Y U V CVBSYUV and Composite
1000CCVBSCY1 Composite, Y and 2C
1001Y CVBSCC1 Composite, Y and 2C
1010CCVBSCY1 Composite, Y and 2C
1011Y CVBSCC1 Composite, Y and 2C
1100CB R GRGB and C
1101GB R CRGB and C
1110CU V YYUV and C
1111Y U V CYUV and C
CVBS: Composite Video Baseband Signal
Y:Luminance Component Signal (For YUV or Y/C Mode)
C:Chrominance Signal (For Y/C Mode)
U:Chrominance Component Signal (For YUV Mode)
V:Chrominance Component Signal (For YUV Mode)
R:RED Component Video (For RGB Mode)
G:GREEN Component Video (For RGB Mode)
B:BLUE Component Video (For RGB Mode)
NOTE
Each DAC can be powered ON or OFF individually with the following control
bits (“0” = ON, “1” = OFF).
MR13-DAC C
MR14-DAC D
MR15-DAC B
MR16-DAC A
Mode Register 4 is a 8-bit-wide register.
Figure 42 shows the various operations under the control of
Mode Register 4.
MR4 BIT DESCRIPTION
Output Select (MR40)
This bit specifies if the part is in composite video or RGB/YUV
mode. Note that in RGB/YUV mode the composite signal is still
available.
RGB/YUV Control (MR41)
This bit enables the output from the RGB DACs to be set to
YUV output video standard.
RGB Sync (MR42)
This bit is used to set up the RGB outputs with the sync information encoded on all RGB outputs.
VSYNC_3H (MR43)
When this bit is enabled (“1”) in slave mode, it is possible to
drive the VSYNC active low input for 2.5 lines in PAL mode
and 3 lines in NTSC mode. When this bit is enabled in master
mode, the ADV7170/ADV7171 outputs an active low VSYNC
signal for 3 lines in NTSC mode and 2.5 lines in PAL mode.
MR42MR44MR43MR45MR46
RGB SYNC
MR42
0DISABLE
1ENABLE
MR41
MR40
0YC OUTPUT
1RGB/YUV OUTPUT
RGB/YUV
CONTROL
MR41
0RGB OUTPUT
1YUV OUTPUT
MR40
OUTPUT SELECT
Pedestal Control (MR44)
This bit specifies whether a pedestal is to be generated on
the NTSC composite video signal. This bit is invalid if the
ADV7170/ADV7171 is configured in PAL mode.
Active Video Filter Control (MR45)
This bit controls the filter mode applied outside the active video
portion of the line. This filter ensures that the Sync rise and fall
times are always on spec regardless of which Luma filter is
selected. A Logic “1” enables this mode.
Sleep Mode Control (MR46)
When this bit is set (“1”) Sleep Mode is enabled. With this
mode enabled, the ADV7170/ADV7171 power consumption is
reduced to typically 200 nA. The I
2
C registers can be written to
and read from when the ADV7170/ADV7171 is in Sleep Mode.
If MR46 is set to a (“0”) when the device is in Sleep Mode,
the ADV7170/ADV7171 will come out of Sleep Mode and
resume normal operation. Also, if the RESET signal is applied
during Sleep Mode the ADV7170/ADV7171 will come out of
Sleep Mode and resume normal operation.
This bit controls whether the ADV7170/ADV7171 is in master
or slave mode.
Timing Mode Selection (TR02–TR01)
These bits control the timing mode of the ADV7170/ADV7171.
These modes are described in more detail in the Timing and
Control section of the data sheet.
BLANK Control (TR03)
This bit controls whether the BLANK input is used when the
part is in slave mode.
Luma Delay (TR05–TR04)
These bits control the addition of a luminance delay. Each bit
represents a delay of 74 ns.
Pixel Port Control (TR06)
This bit is used to set the pixel port to accept 8-bit or 16-bit
data. If an 8-bit input is selected the data will be set up on
Pins P7–P0.
Timing Register Reset (TR07)
Toggling TR07 from low to high and low again resets the internal timing counters. This bit should be toggled after power-up,
reset or changing to a new timing mode.
Figure 44 shows the various operations under the control of
Timing Register 1. This register can be read from as well written
to. This register can be used to adjust the width and position of
the master mode timing signals.
TR1 BIT DESCRIPTION
HSYNC Width (TR11–TR10)
These bits adjust the HSYNC pulsewidth.
HSYNC to FIELD/VSYNC Delay (TR13–TR12)
These bits adjust the position of the HSYNC output relative to
the FIELD/VSYNC output.
HSYNC to FIELD Rising Edge Delay (TR15–TR14)
When the ADV7170/ADV7171 is in timing mode 1, these bits
adjust the position of the HSYNC output relative to the FIELD
output rising edge.
VSYNC Width (TR15–TR14)
When the ADV7170/ADV7171 is configured in Timing Mode 2,
these bits adjust the VSYNC pulsewidth.
HSYNC to Pixel Data Adjust (TR17–TR16)
This enables the HSYNC to be adjusted with respect to the pixel
data. This allows the Cr and Cb components to be swapped. This
adjustment is available in both master and slave timing modes.
HSYNC TO PIXEL
DATA ADJUST
TR17
TR16
000 T
011 T
102 T
113 T
TIMING MODE 1 (MASTER/PAL)
HSYNC
FIELD/VSYNC
PCLK
PCLK
PCLK
PCLK
T
A
T
B
HSYNC TO FIELD
RISING EDGE DELAY
(MODE 1 ONLY)
TR14
TR15
x0T
x1T
VSYNC WIDTH
(MODE 2 ONLY)
TR15
TR14
001 T
014 T
1016 T
11128 T
T
B
+ 32s
B
C
PCLK
PCLK
PCLK
PCLK
FIELD/VSYNC DELAY
TR13
000 T
014 T
108 T
1116 T
Figure 44. Timing Register 1
HSYNC TO
TR12
TR11TR10TR17TR12TR13TR15TR16TR14
HSYNC WIDTH
T
B
PCLK
PCLK
PCLK
T
C
TR11 TR10
001 T
014 T
1016 T
11128 T
PCLK
LINE 313LINE 314LINE 1
T
A
PCLK
PCLK
PCLK
PCLK
REV. A
–27–
ADV7170/ADV7171
SUBCARRIER FREQUENCY REGISTER 3–0
(FSC3–FSC0)
(Address [SR4–SR0] = 09H–0CH)
These 8-bit-wide registers are used to set up the subcarrier frequency. The value of these registers is calculated by using the
following equation:
32
21
×
Subcarrier Frequency Register =
F
CLK
F
SCF
i.e.: NTSC Mode,
F
= 27 MHz,
CLK
F
= 3.5795454 MHz
SCF
32
Subcarrier Frequency Value =
21
×
27 10
××.
3 579545 10
6
6
= 21F07C16HEX
Figure 45 shows how the frequency is set up by the four registers.
These 8-bit-wide registers are used to enable the NTSC pedestal/PAL Teletext on a line-by-line basis in the vertical blanking
interval for both odd and even fields. Figures 48 and 49 show
the four control registers. A Logic “1” in any of the bits of these
registers has the effect of turning the Pedestal OFF on the
equivalent line when used in NTSC. A Logic “1” in any of the
bits of these registers has the effect of turning Teletext ON on
the equivalent line when used in PAL.
LINE 17 LINE 16 LINE 15 LINE 14 LINE 13 LINE 12 LINE 11 LINE 10
FIELD 1/3
FIELD 1/3
FIELD 2/4
FIELD 2/4
PCO6PCO5PCO3PCO1PCO4PCO2PCO0PCO7
LINE 25 LINE 24 LINE 23 LINE 22 LINE 21 LINE 20 LINE 19 LINE 18
PCO14 PCO13PCO 11PCO9PCO12PCO10PCO8PCO15
LINE 17 LINE 16 LINE 15 LINE 14 LINE 13 LINE 12 LINE 11 LINE 10
PCE6PCE5PCE 3PCE 1PCE 4PCE2PCE0PCE7
LINE 25 LINE 24 LINE 23 LINE 22 LINE 21 LINE 20 LINE 19 LINE 18
PCE14 PCE13PCE11PCE 9PCE12PCE10PCE8PCE15
Figure 48. Pedestal Control Registers
LINE 14 LINE 13 LINE 12 LINE 11 LINE 10 LINE 9 LINE 8 LINE 7
FIELD 1/3
FIELD 1/3
LINE 14 LINE 13 LINE 12 LINE 11 LINE 10 LINE 9 LINE 8 LINE 7
FIELD 2/4
LINE 22 LINE 21 LINE 20 LINE 19 LINE 18 LINE 17 LINE 16 LINE 15
FIELD 2/4
TXO6TXO5TXO3TXO1TXO4TXO2TXO0TXO7
LINE 22 LINE 21 LINE 20 LINE 19 LINE 18 LINE 17 LINE 16 LINE 15
TXO14 TXO13TXO11TXO9TXO12TXO10TXO8TXO15
TXE6TXE5TXE 3TXE1TXE4TXE2TXE0TXE7
TXE14 TXE13TXE11TXE9TXE12TXE10TXE8TXE15
CLOSED CAPTIONING EVEN FIELD
DATA REGISTER 1–0 (CED15–CED0)
(Address [SR4–SR0] = 0E–0FH)
These 8-bit-wide registers are used to set up the closed captioning
extended data bytes on even fields. Figure 46 shows how the
high and low bytes are set up in the registers.
BYTE 1
BYTE 0
CED14 CED13CED11CED9CED12CED10CED8CED15
CED6CED5CED3CED1CED4CED2CED0CED7
Figure 46. Closed Captioning Extended Data Register
CLOSED CAPTIONING ODD FIELD
DATA REGISTER 1–0 (CCD15–CCD0)
(Subaddress [SR4–SR0] = 10–11H)
These 8-bit-wide registers are used to set up the closed
captioning data bytes on odd fields. Figure 47 shows how the
high and low bytes are set up in the registers.
BYTE 1
BYTE 0
CCD14 C CD13C CD11CCD9CCD12CCD 10CCD8CCD15
CCD6 CCD 5CCD3CCD1CCD4CCD2CCD0CCD7
Figure 47. Closed Captioning Data Register
Figure 49. Teletext Control Registers
TELETEXT REQUEST CONTROL REGISTER TC07
(TC07–TC00)
(Address [SR4–SR0] = 19H)
Teletext Control Register is an 8-bit-wide register. See Figure 50.
TTXREQ Rising Edge Control (TC07–TC04)
These bits control the position of the rising edge of TTXREQ.
It can be programmed from zero CLOCK cycles to a max of 15
CLOCK cycles. See Figure 59.
TTXREQ Falling Edge Control (TC03–TC00)
These bits control the position of the falling edge of TTXREQ.
It can be programmed from zero CLOCK cycles to a max of 15
CLOCK cycles. This controls the active window for Teletext
data. Increasing this value reduces the amount of Teletext bits
below the default of 360. If Bits TC03-TC00 are 00Hex when
bits TC07–TC04 are changed, the falling edge of TTXREQ will
track that of the rising edge (i.e., the time between the falling
and rising edge remains constant). See Figure 59.
These four data bits are the final four bits of CGMS data output
stream. Note it is CGMS data ONLY in these bit positions, i.e.,
WSS data does not share this location.
CGMS CRC Check Control (C/W04)
When this bit is enabled (“1”), the last six bits of the CGMS
data, i.e., the CRC check sequence, is calculated internally by
the ADV7170/ADV7171. If this bit is disabled (“0”) the CRC
values in the register are output to the CGMS data stream.
CGMS Odd Field Control (C/W05)
When this bit is set (“1”), CGMS is enabled for odd fields.
Note this is only valid in NTSC mode.
CGMS Even Field Control (C/W06)
When this bit is set (“1”), CGMS is enabled for even fields.
Note this is only valid in NTSC mode.
WSS Control (C/W07)
When this bit is set (“1”), wide screen signaling is enabled. Note
this is only valid in PAL mode.
CGMS_WSS register 2 is an 8-bit-wide register. Figure 53
shows the operations under the control of this register.
C/W2 BIT DESCRIPTION
CGMS/WSS Data Bits (C/W27–C/W20)
These bit locations are shared by CGMS data and WSS data. In
NTSC mode these bits are CGMS data. In PAL mode these
bits are WSS data.
REV. A
C/W17C/W16C/W15C/W14C/W13C/W12C/W11C/W10
C/W17 – C/W16
CGMS DATA BITS
C/W15 – C/W10
CGMS/WSS DATA BITS
Figure 52. CGMS_WSS Register 1
C/W27C/W26C/W25C/W24C/W23C/W22C/W21C/W20
C/W27 – C/W20
CGMS/WSS DATA BITS
Figure 53. CGMS_WSS Register 2
–29–
ADV7170/ADV7171
APPENDIX 1
BOARD DESIGN AND LAYOUT CONSIDERATIONS
The ADV7170/ADV7171 is a highly integrated circuit containing
both precision analog and high speed digital circuitry. It has
been designed to minimize interference effects on the integrity
of the analog circuitry by the high speed digital circuitry. It is
imperative that these same design and layout techniques be
applied to the system level design so that high speed, accurate
performance is achieved. Figure 54, Recommended Analog
Circuit Layout, shows the analog interface between the device
and monitor.
The layout should be optimized for lowest noise on the ADV7170/
ADV7171 power and ground lines by shielding the digital inputs
and providing good decoupling. The lead length between groups
and GND pins should by minimized to minimize induc-
of V
AA
tive ringing.
Ground Planes
The ground plane should encompass all ADV7170/ADV7171
ground pins, voltage reference circuitry, power supply bypass circuitry for the ADV7170/ADV7171, the analog output traces, and
all the digital signal traces leading up to the ADV7170/ADV7171.
The ground plane is the board’s common ground plane.
Power Planes
The ADV7170/ADV7171 and any associated analog circuitry
should have its own power plane, referred to as the analog
power plane (V
the regular PCB power plane (V
). This power plane should be connected to
AA
) at a single point through a
CC
ferrite bead. This bead should be located within three inches of
the ADV7170/ADV7171.
The metallization gap separating device power plane and board
power plane should be as narrow as possible to minimize the
obstruction to the flow of heat from the device into the general board.
The PCB power plane should provide power to all digital logic
on the PC board, and the analog power plane should provide
power to all ADV7170/ADV7171 power pins and voltage reference circuitry.
Plane-to-plane noise coupling can be reduced by ensuring that
portions of the regular PCB power and ground planes do not
overlay portions of the analog power plane unless they can be
arranged so that the plane-to-plane noise is common-mode.
Supply Decoupling
For optimum performance, bypass capacitors should be installed
using the shortest leads possible, consistent with reliable operation, to reduce the lead inductance.
with 0.1 µF ceramic capacitor decoupling. Each group of V
pins on the ADV7170/ADV7171 must have at least one 0.1 µF
decoupling capacitor to GND.
as close to the device as possible.
It is important to note that while the ADV7170/ADV7171 contains circuitry to reject power supply noise, this rejection decreases
with frequency. If a high frequency switching power supply is
used, the designer should pay close attention to reducing power
supply noise and consider using a three-terminal voltage regulator
for supplying power to the analog power plane.
Digital Signal Interconnect
The digital inputs to the ADV7170/ADV7171 should be isolated as much as possible from the analog outputs and other
analog circuitry. Also, these input signals should not overlay the
analog power plane.
Due to the high clock rates involved, long clock lines to the
ADV7170/ADV7171 should be avoided to reduce noise pickup.
Any active termination resistors for the digital inputs should be
connected to the regular PCB power plane (V
analog power plane.
Analog Signal Interconnect
The ADV7170/ADV7171 should be located as close to the
output connectors as possible to minimize noise pickup and
reflections due to impedance mismatch.
The video output signals should overlay the ground plane, not
the analog power plane, to maximize the high frequency power
supply rejection.
Digital inputs, especially pixel data inputs and clocking signals,
should never overlay any of the analog signal circuitry and
should be kept as far away as possible.
For best performance, the outputs should each have a 75 Ω load
resistor connected to GND. These resistors should be placed
as close as possible to the ADV7170/ADV7171 to minimize
reflections.
The ADV7170/ADV7171 should have no inputs left floating.
Any inputs that are not required should be tied to ground.
Best performance is obtained
AA
These capacitors should be placed
) and not the
CC
–30–
REV. A
+5V (VAA)
4k
RESET
TTX
TELETEXT PULLUP AND
PULL-DOWN RESISTORS
SHOULD ONLY BE USED
IF THESE PINS ARE NOT
CONNECTED
100nF
)
+5V (V
CC
100k
TTXREQ
100k
(SAME CLOCK AS USED BY
MPEG2 DECODER)
+5V (V
AA
0.1F
“UNUSED
INPUTS
SHOULD BE
GROUNDED”
27MHz CLOCK
ADV7170/ADV7171
POWER SUPPLY DECOUPLING
FOR EACH POWER SUPPLY GROUP
0.1F0.01F
+5V (V
)
)
+5V (V
)
38–42,
2–9, 12–14
+5V (V
10k
AA
0.1F
)
AA
COMP
25
33
V
REF
P15–P0
35
SCRESET/RTC
HSYNC
15
FIELD/VSYNC
16
17
BLANK
22
RESET
37
TTX
36
TTXREQ
44
CLOCK
ALSB
V
ADV7170/
ADV7171
18
1, 11, 20, 28, 30
AA
DAC D
DAC C
DAC B
DAC A
SCLOCK
SDATA
R
GND
10, 19, 21,
29, 43
SET
27
26
31
32
23
24
34
75
75
75
75
100
100
150
AA
10F
+5V (V
CC
5k
Figure 54. Recommended Analog Circuit Layout
L1
(FERRITE BEAD)
S VIDEO
)
+5V (VCC)
5k
33F
MPU BUS
+5V
(V
GND
)
CC
The circuit below can be used to generate a 13.5 MHz waveform using the 27 MHz clock and the HSYNC pulse. This waveform
is guaranteed to produce the 13.5 MHz clock in synchronization with the 27 MHz clock. This 13.5 MHz clock can be used if
13.5 MHz clock is required by the MPEG decoder. This will guarantee that the Cr and Cb pixel information is input to the
ADV7170/ADV7171 in the correct sequence.
D
CLOCK
HSYNC
CK
Q
D
Q
CK
13.5MHz
Figure 55. Circuit to Generate 13.5 MHz
REV. A
–31–
ADV7170/ADV7171
APPENDIX 2
CLOSED CAPTIONING
The ADV7170/ADV7171 supports closed captioning, conforming to the standard television synchronizing waveform for color
transmission. Closed captioning is transmitted during the
blanked active line time of Line 21 of the odd fields and Line
284 of even fields.
Closed captioning consists of a 7-cycle sinusoidal burst that is
frequency and phase locked to the caption data. After the clock
run-in signal, the blanking level is held for two data bits and is
followed by a Logic Level “1” start bit. 16 bits of data follow
the start bit. These consist of two 8-bit bytes, seven data bits
and one odd parity bit. The data for these bytes is stored in
closed captioning Data Registers 0 and 1.
The ADV7170/ADV7171 also supports the extended closed
captioning operation, which is active during even fields, and is
encoded on scan Line 284. The data for this operation is stored
in closed captioning extended Data Registers 0 and 1.
All clock run-in signals and timing to support closed captioning on Lines 21 and 284 are automatically generated by the
ADV7170/ADV7171. All pixels inputs are ignored during
Lines 21 and 284.
10.5 0.25s
12.91s
7 CYCLES
OF 0.5035 MHz
(CLOCK RUN-IN)
FCC Code of Federal Regulations (CFR) 47 Section 15.119
and EIA608 describe the closed captioning information for
Lines 21 and 284.
The ADV7170/ADV7171 uses a single buffering method. This
means that the closed captioning buffer is only one byte deep,
therefore there will be no frame delay in outputting the closed
captioning data unlike other 2-byte deep buffering systems. The
data must be loaded at least one line before (Line 20 or Line 283)
it is outputted on Line 21 and Line 284. A typical implementation of this method is to use VSYNC to interrupt a microprocessor,
which will in turn load the new data (two bytes) every field. If
no new data is required for transmission, you must insert zeros
in both the data registers; this is called NULLING. It is also
important to load “control codes,” all of which are double bytes,
on Line 21, or a TV will not recognize them. If you have a message like “Hello World,” which has an odd number of characters, it
is important to pad it out to an even number to get “end of
caption” 2-byte control code to land in the same field.
TWO 7-BIT + PARITY
ASCII CHARACTERS
(DATA)
50 IRE
40 IRE
REFERENCE COLOR BURST
(9 CYCLES)
FREQUENCY = F
AMPLITUDE = 40 IRE
10.003s
= 3.579545MHz
SC
27.382s
Figure 56. Closed Captioning Waveform (NTSC)
S
T
D0–D6
A
R
T
BYTE 0
P
A
R
I
T
Y
33.764s
D0–D6
BYTE 1
P
A
R
I
T
Y
–32–
REV. A
ADV7170/ADV7171
APPENDIX 3
COPY GENERATION MANAGEMENT SYSTEM (CGMS)
The ADV7170/ADV7171 supports Copy Generation Management System (CGMS) conforming to the standard. CGMS data is
transmitted on Line 20 of the odd fields and Line 283 of even fields. Bits C/W05 and C/W06 control whether or not CGMS data
is output on ODD and EVEN fields. CGMS data can only be transmitted when the ADV7170/ADV7171 is configured in NTSC
mode. The CGMS data is 20 bits long, the function of each of these bits is as shown below. The CGMS data is preceded by a reference pulse of the same amplitude and duration as a CGMS bit (see Figure 57). The bits are output from the configuration registers
in the following order; C/W00 = C16, C/W01 = C17, C/W02 = C18, C/W03 = C19, C/W10 = C8, C/W11 = C9, C/W12 = C10,
C/W13 = C11, C/W14 = C12, C/W15 = C13, C/W16 = C14, C/W17 = C15, C/W20 = C0, C/W21 = C1, C/W22 = C2, C/W23 = C3,
C/W24 = C4, C/W25 = C5, C/W26 = C6, C/W27 = C7. If the Bit C/W04 is set to a Logic “1,” the last six bits, C19–C14, which
comprise the 6-bit CRC check sequence, are calculated automatically on the ADV7170/ADV7171 based on the lower 14 bits
(C0–C13) of the data in the data registers and output with the remaining 14 bits to form the complete 20 bits of the CGMS data.
The calculation of the CRC sequence is based on the polynomial X
Logic “0,” all 20 bits (C0–C19) are directly output from the CGMS registers (no CRC calculated, must be calculated by the user).
Function of CGMS Bits
Word 0 – 6 Bits
Word 1 – 4 Bits
Word 2 – 6 Bits
CRC– 6 BitsCRC Polynomial = X
6
+ X + 1 (Preset to 111111)
Word 010
B1Aspect Ratio16:94:3
B2Display FormatLetterboxNormal
B3Undefined
Word 0
B4, B5, B6Identification information about video and other signals (e.g., audio)
Word 1
B7, B8, B9, B10Identification signal incidental to Word 0
Word 2
B11, B12, B13, B14 Identification signal and information incidental to Word 0
6
+ X + 1 with a preset value of 111111. If C/W04 is set to a
100 IRE
70 IRE
0 IRE
–40 IRE
11.2s
REF
C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 C10 C11 C12
49.1s 0.5s
2.235s 20ns
Figure 57. CGMS Waveform Diagram
CRC SEQUENCE
C13 C14 C15 C16
C17 C18 C19
REV. A
–33–
ADV7170/ADV7171
APPENDIX 4
WIDE SCREEN SIGNALING
The ADV7170/ADV7171 supports Wide Screen Signalling (WSS) conforming to the standard. WSS data is transmitted on Line 23.
WSS data can only be transmitted when the ADV7170/ADV7171 is configured in PAL mode. The WSS data is 14 bits long, the
function of each of these bits is as shown below. The WSS data is preceded by a run-in sequence and a Start Code (see Figure 58).
The bits are output from the configuration registers in the following order; C/W20 = W0, C/W21 = W1, C/W22 = W2, C/W23 = W3,
C/W24 = W4, C/W25 = W5, C/W26 = W6, C/W27 = W7, C/W10 = W8, C/W11 = W9, C/W12 = W10, C/W13 = W11, C/W14 = W12,
C/W15 = W13. If the bit C/W07 is set to a Logic “1” it enables the WSS data to transmitted on Line 23. The latter portion of Line
23 (42.5 µs from the falling edge of HSYNC) is available for the insertion of video.
B9B10
00No Open Subtitles
10Subtitles In Active Image Area
01Subtitles Out of Active Image Area
11Reserved
B11
0No Surround Sound Information
1Surround Sound Mode
B12RESERVED
B13RESERVED
W0 W1 W2 W3 W4 W5 W6 W7 W8 W9 W10 W11 W12 W13
CODE
38.4s
42.5s
Figure 58. WSS Waveform Diagram
ACTIVE
VIDEO
–34–
REV. A
ADV7170/ADV7171
APPENDIX 5
TELETEXT INSERTION
tPD is the time needed by the ADV7170/ADV7171 to interpolate input data on TTX and insert it onto the CVBS or Y outputs, such
that it appears t
SYNTTXOUT
source that is gated by the TTXREQ signal in order to deliver TTX data.
With the programmability offered with TTXREQ signal on the Rising/Falling edges, the TTX data is always inserted at the correct
position of 10.2 µs after the leading edge of Horizontal Sync pulse, thus enabling a source interface with variable pipeline delays.
The width of the TTXREQ signal must always be maintained to allow the insertion of 360 (to comply with the Teletext Standard
“PAL-WST”) teletext bits at a text data rate of 6.9375 Mbits/s, this is achieved by setting TC03–TC00 to zero. The insertion window is not open if the Teletext Enable bit (MR35) is set to zero.
Teletext Protocol
The relationship between the TTX bit clock (6.9375 MHz) and the system CLOCK (27 MHz) for 50 Hz is given as follows:
(27 MHz/4) = 6.75 MHz
(6.9375 × 10
6
Thus 37 TTX bits correspond to 144 clocks (27 MHz) and each bit has a width of almost four clock cycles. The ADV7170/ADV7171
uses an internal sequencer and variable phase interpolation filter to minimize the phase jitter and thus generate a bandlimited signal
that can be outputted on the CVBS and Y outputs.
At the TTX input the bit duration scheme repeats after every 37 TTX bits or 144 clock cycles. The protocol requires that TTX Bits
10, 19, 28, and 37 are carried by three clock cycles, all other bits by four clock cycles. After 37 TTX bits, the next bits with three
clock cycles are 47, 56, 65, and 74. This scheme holds for all following cycles of 37 TTX bits, until all 360 TTX bits are completed.
All teletext lines are implemented in the say way. Individual control of teletext lines is controlled by Teletext Setup Registers.
= 10.2 µs after the leading edge of the horizontal signal. Time TTX
/6.75 × 106) = 1.027777
is the pipeline delay time by the
DEL
CVBS/Y
HSYNC
TTX
DATA
TTXREQ
45 BYTES (360 BITS) – PAL
TELETEXT VBI LINE
RUN-IN CLOCK
ADDRESS & DATA
Figure 59. Teletext VBI Line
t
SYNTTXOUT
t
PD
t
PD
10.2s
TTX
DEL
TTX
t
SYNTTXOUT
t
= PIPELINE DELAY THROUGH ADV7170/ADV7171
PD
TTX
= TTXREQ TO TTX (PROGRAMMABLE RANGE = 4 BITS [0–15 CLOCK CYCLES])
DEL
ST
= 10.2s
PROGRAMMABLE PULSE EDGES
Figure 60. Teletext Functionality Diagram
REV. A
–35–
ADV7170/ADV7171
APPENDIX 6
NTSC WAVEFORMS (WITH PEDESTAL)
130.8 IRE
100 IRE
7.5 IRE
0 IRE
–40 IRE
100 IRE
7.5 IRE
0 IRE
–40 IRE
714.2mV
Figure 61. NTSC Composite Video Levels
714.2mV
Figure 62. NTSC Luma Video Levels
PEAK COMPOSITE
REF WHITE
BLACK LEVEL
BLANK LEVEL
SYNC LEVEL
REF WHITE
BLACK LEVEL
BLANK LEVEL
SYNC LEVEL
1268.1mV
1048.4mV
387.6mV
334.2mV
48.3mV
1048.4mV
387.6mV
334.2mV
48.3mV
963.8mV
650mV
335.2mV
0mV
100 IRE
7.5 IRE
0 IRE
–40 IRE
286mV (p-p)
629.7mV (p-p)
Figure 63. NTSC Chroma Video Levels
720.8mV
Figure 64. NTSC RGB Video Levels
PEAK CHROMA
BLANK/BLACK LEVEL
PEAK CHROMA
REF WHITE
BLACK LEVEL
BLANK LEVEL
SYNC LEVEL
1052.2mV
387.5mV
331.4mV
45.9mV
–36–
REV. A
NTSC WAVEFORMS (WITHOUT PEDESTAL)
ADV7170/ADV7171
130.8 IRE
100 IRE
0 IRE
–40 IRE
100 IRE
0 IRE
–40 IRE
714.2mV
BLANK/BLACK LEVEL
Figure 65. NTSC Composite Video Levels
714.2mV
BLANK/BLACK LEVEL
Figure 66. NTSC Luma Video Levels
PEAK COMPOSITE
REF WHITE
SYNC LEVEL
REF WHITE
SYNC LEVEL
1289.8mV
1052.2mV
338mV
52.1mV
1052.2mV
338mV
52.1mV
978mV
650mV
299.3mV
0mV
100 IRE
0 IRE
–40 IRE
286mV (p-p)
694.9mV (p-p)
Figure 67. NTSC Chroma Video Levels
715.7mV
Figure 68. NTSC RGB Video Levels
PEAK CHROMA
BLANK/BLACK LEVEL
PEAK CHROMA
REF WHITE
BLANK/BLACK LEVEL
SYNC LEVEL
1052.2mV
336.5mV
51mV
REV. A
–37–
ADV7170/ADV7171
PAL WAVEFORMS
1284.2mV
1047.1mV
350.7mV
50.8mV
1047mV
350.7mV
50.8mV
PEAK COMPOSITE
REF WHITE
696.4mV
BLANK/BLACK LEVEL
SYNC LEVEL
Figure 69. PAL Composite Video Levels
REF WHITE
696.4mV
BLANK/BLACK LEVEL
SYNC LEVEL
Figure 70. PAL Luma Video Levels
989.7mV
650mV
317.7mV
0mV
1050.2mV
351.8mV
51mV
300mV (p-p)
PEAK CHROMA
672mV (p-p)
BLANK/BLACK LEVEL
PEAK CHROMA
Figure 71. PAL Chroma Video Levels
REF WHITE
698.4mV
BLANK/BLACK LEVEL
SYNC LEVEL
Figure 72. PAL RGB Video Levels
–38–
REV. A
BETACAM LEVEL
BETACAM LEVEL
0mV
82mV
423mV
505mV
0mV
–82mV
–505mV
–423mV
WHITE
YELLOW
CYAN
GREEN
MAGENTA
RED
BLUE
BLACK
BETACAM LEVEL
0mV
76mV
391mV
467mV
0mV
–76mV
–467mV
–391mV
WHITE
YELLOW
CYAN
GREEN
MAGENTA
RED
BLUE
BLACK
SMPTE LEVEL
0mV
57mV
293mV
350mV
0mV
–57mV
–350mV
–293mV
WHITE
YELLOW
CYAN
GREEN
MAGENTA
RED
BLUE
BLACK
WHITE
YELLOW
171mV
CYAN
GREEN
334mV
MAGENTA
RED
505mV
BLUE
ADV7170/ADV7171
UV WAVEFORMS
BLACK
0mV
171mV
334mV
505mV
0mV
Figure 73. NTSC 100% Color Bars, No Pedestal U Levels
WHITE
YELLOW
CYAN
GREEN
MAGENTA
RED
BLUE
BLACK
467mV
309mV
158mV
BETACAM LEVEL
0mV
–158mV
–309mV
0mV
Figure 76. NTSC 100% Color Bars, No Pedestal V Levels
–467mV
Figure 74. NTSC 100% Color Bars with Pedestal U Levels
WHITE
YELLOW
CYAN
GREEN
MAGENTA
RED
BLUE
BLACK
0mV
SMPTE LEVEL
0mV
–350mV
118mV
–232mV
232mV
350mV
–118mV
Figure 75. PAL 100% Color Bars, U Levels
REV. A
Figure 77. NTSC 100% Color Bars with Pedestal V Levels
Figure 78. PAL 100% Color Bars, V Levels
–39–
ADV7170/ADV7171
APPENDIX 7
OPTIONAL OUTPUT FILTER
If an output filter is required for the CVBS, Y, UV, Chroma
and RGB outputs of the ADV7170/ADV7171, the filter shown
in Figure 79 can be used. Plots of the filter characteristics are
shown in Figure 80. An Output Filter is not required if the
22pF
1.8H
FILTER I/PFILTER O/P
75R
270pF
330pF
Figure 79. Output Filter
outputs of the ADV7170/ADV7171 are connected to most
analog monitors or analog TVs, however if the output signals
are applied to a system where sampling is used (e.g., Digital
TVs), then a filter is required to prevent aliasing.
0
10
20
30
40
50
MAGNITUDE – dB
60
70
80
100k
1M
FREQUENCY – Hz
10M100M
Figure 80. Output Filter Plot
–40–
REV. A
APPENDIX 8
OPTIONAL DAC BUFFERING
ADV7170/ADV7171
When external buffering is needed of the ADV7170/ADV7171
DAC outputs, the configuration in Figure 81 is recommended.
This configuration shows the DAC outputs running at half
(18 mA) their full current (36 mA) capability. This will allow
the ADV7170/ADV7171 to dissipate less power; the analog current is reduced by 50% with a R
SET
of 300 Ω and a R
LOAD
of 75 Ω.
This mode is recommended for 3.3 V operation as optimum
performance is obtained from the DAC outputs at 18 mA with a
of 3.3 V. This buffer also adds extra isolation on the video
V
AA
outputs (see buffer circuit in Figure 82).
V
AA
ADV7170/ADV7171
V
300
PIXEL
PORT
R
SET
REF
DIGITAL
CORE
DAC A
DAC B
DAC C
DAC D
When calculating absolute output full-scale current and voltage,
use the following equations:
V
= I
OUT
I
=
OUT
K = 4.2146 constant ,V
OUTPUT
BUFFER
OUTPUT
BUFFER
OUTPUT
BUFFER
OUTPUT
BUFFER
× R
OUT
V
()
REF
R
CVBS
CVBS
LUMA
LOAD
× K
SET
CHROMA
REF
= 1.235 V
Figure 81. Output DAC Buffering Configuration
VCC+
4
5
INPUT/
OPTIONAL
FILTER O/P
3
AD8051
2
V
CC
1
–
OUTPUT TO
TV MONITOR
Figure 82. Recommended Output DAC Buffer
REV. A
–41–
ADV7170/ADV7171
APPENDIX 9
RECOMMENDED REGISTER VALUES
The ADV7170/ADV7171 registers can be set depending on the
user standard required.
The following examples give the various register formats for
several video standards.
In each case the output is set to composite o/p with all DACs
powered up and with the BLANK input control disabled. Additionally, the burst and color information are enabled on the
output and the internal color bar generator is switched off. In
the examples shown, the timing mode is set to Mode 0 in slave
format. TR02–TR00 of the Timing Register 0 control the timing modes. For a detailed explanation of each bit in the
command registers, please turn to the Register Programming
section of the data sheet. TR07 should be toggled after setting
up a new timing mode. Timing Register 1 provides additional
control over the position and duration of the timing signals. In
the examples, this register is programmed in default mode.
PAL B, D, G, H, I (FSC = 4.43361875 MHz)
AddressData