Multiformat video decoder supports NTSC-(M, J, 4.43),
PAL-(B/D/G/H/I/M/N), SECAM
Integrates three 54 MHz, 9-bit ADCs
Clocked from a single 27 MHz crystal
Line-locked clock-compatible (LLC)
Adaptive Digital Line Length Tracking (ADLLT™), signal
processing, and enhanced FIFO management give mini
TBC functionality
5-line adaptive comb filters
Proprietary architecture for locking to weak, noisy, and
unstable video sources such as VCRs and tuners
Subcarrier frequency lock and status information output
Integrated AGC with adaptive peak white mode
Macrovision® copy protection detection
CTI (chroma transient improvement)
DNR (digital noise reduction)
Multiple programmable analog input formats:
CVBS (composite video)
S-Video (Y/C)
YPrPb component (VESA, MII, SMPTE, and BetaCam)
6 analog video input channels
Automatic NTSC/PAL/SECAM identification
Digital output formats (8-bit or16-bit):
ITU-R BT.656 YCrCb 4:2:2 output + HS, VS, and FIELD
0.5 V to 1.6 V analog signal input range
Differential gain: 0.6% typ
GENERAL DESCRIPTION
The ADV7181B integrated video decoder automatically detects
and converts a standard analog baseband television signalcompatible with worldwide standards NTSC, PAL, and SECAM
into 4:2:2 component video data-compatible with 16-/8-bit
CCIR601/CCIR656.
The advanced and highly flexible digital output interface
enables performance video decoding and conversion in linelocked clock-based systems. This makes the device ideally
suited for a broad range of applications with diverse analog
video characteristics, including tape based sources, broadcast
sources, security/surveillance cameras, and professional
systems.
The 6 analog input channels accept standard Composite,
S-Video, YPrPb video signals in an extensive number of
combinations. AGC and clamp restore circuitry allow an input
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.
ADV7181B
Differential phase: 0.6° typ
Programmable video controls:
Peak white/hue/brightness/saturation/contrast
Integrated on-chip video timing generator
Free-run mode (generates stable video ouput with no I/P)
VBI decode support for close captioning, WSS, CGMS, EDTV,
Gemstar® 1×/2×
Power-down mode
2-wire serial MPU interface (I
3.3 V analog, 1.8 V digital core; 3.3 V IO supply
Temperature grade:–40°C to +85°C
80-lead LQFP Pb-free package
APPLICATIONS
DVD recorders
PC Video
HDD-based PVRs/DVDRs
LCD TVs
Set-top boxes
Security systems
Digital televisions
Portable video devices
Automotive entertainment
AVR receiver
video signal peak-to-peak range of 0.5 V to 1.6 V. Alternatively,
these can be bypassed for manual settings.
The fixed 54 MHz clocking of the ADCs and datapath for all
modes allows very precise, accurate sampling and digital
filtering. The line-locked clock output allows the output data
rate, timing signals, and output clock signals to be synchronous,
asynchronous, or line locked even with ±5% line length
variation. The output control signals allow glueless interface
connections in almost any application. The ADV7181B modes
are set up over a 2-wire, serial, bidirectional port (I
compatible).
The ADV7181B is fabricated in a 3.3 V CMOS process. Its
monolithic CMOS construction ensures greater functionality
with lower power dissipation.
The ADV7181B is packaged in a small 80-lead LQFP Pb-free
package.
The ADV7181B is a high quality, single chip, multiformat video
decoder that automatically detects and converts PAL, NTSC,
and SECAM standards in the form of composite, S-Video, and
component video into a digital ITU-R BT.656 format.
The advanced and highly flexible digital output interface enables
performance video decoding and conversion in line-locked
clock based systems. This makes the device ideally suited for a
broad range of applications with diverse analog video characteristics, including tape based sources, broadcast sources,
security/surveillance cameras, and professional systems.
ANALOG FRONT END
The ADV7181B analog front end comprises three 9-bit ADCs
that digitize the analog video signal before applying it to the
standard definition processor. The analog front end employs
differential channels to each ADC to ensure high performance
in mixed-signal applications.
The front end also includes a 6-channel input mux that enables
multiple video signals to be applied to the ADV7181B. Current
and voltage clamps are positioned in front of each ADC to
ensure that the video signal remains within the range of the
converter. Fine clamping of the video signals is performed
downstream by digital fine clamping within the ADV7181B.
The ADCs are configured to run in 4× oversampling mode.
STANDARD DEFINITION PROCESSOR
The ADV7181B is capable of decoding a large selection of
baseband video signals in composite, S-Video, and component
formats. The video standards supported by the ADV7181B
include PAL B/D/I/G/H, PAL60, PAL M, PAL N, PAL Nc, NTSC
M/J, NTSC 4.43, and SECAM B/D/G/K/L. The ADV7181B can
automatically detect the video standard and process it
accordingly.
The ADV7181B has a 5-line, superadaptive, 2D comb filter that
gives superior chrominance and luminance separation when
decoding a composite video signal. This highly adaptive filter
automatically adjusts its processing mode according to video
standard and signal quality with no user intervention required.
Video user controls such as brightness, contrast, saturation, and
hue are also available within the ADV7181B.
The ADV7181B implements a patented adaptive digital linelength tracking (ADLLT) algorithm to track varying video line
lengths from sources such as a VCR. ADLLT enables the
ADV7181B to track and decode poor quality video sources such
as VCRs, noisy sources from tuner outputs, VCD players, and
camcorders. The ADV7181B contains a chroma transient
improvement (CTI) processor that sharpens the edge rate of
chroma transitions, resulting in sharper vertical transitions.
The ADV7181B can process a variety of VBI data services such
as closed captioning (CC), wide screen signaling (WSS), copy
generation management system (CGMS), EDTV, Gemstar
1×/2×, and extended data service (XDS). The ADV7181B is
fully Macrovision certified; detection circuitry enables Type I,
II, and III protection levels to be identified and reported to the
user. The decoder is also fully robust to all Macrovision signal
inputs.
Rev. 0 | Page 3 of 96
ADV7181B
FUNCTIONAL BLOCK DIAGRAM
PIXEL
DATA
8
8
OUTPUT FORMATTER
16
LUMA
(4H MAX)
2D COMB
LUMA
RESAMPLE
GAIN
CONTROL
LUMA
FILTER
STANDARD DEFINITION PROCESSOR
FINE
LUMA
CLAMP
DIGITAL
L-DNR
AV
LINE
HS
CODE
INSERTION
CONTROL
RESAMPLE
LENGTH
PREDICTOR
SYNC
EXTRACT
VS
FIELD
CTI
SC
F
C-DNR
RECOVERY
LLC
CHROMA
SFL
(4H MAX)
2D COMB
CHROMA
RESAMPLE
GAIN
CONTROL
FILTER
CHROMA
DEMOD
CHROMA
INTRQ
FREE RUN
SYNTHESIZED
LLC CONTROL
STANDARD
MACROVISION
VBI DATA RECOVERYGLOBAL CONTROL
OUTPUT CONTROL
AUTODETECTION
DETECTION
DATA
9
6
9
PREPROCESSOR
A/DCLAMP
AIN1–AIN6
9
FILTERS
DOWNSAMPLING
DECIMATION AND
9
A/DCLAMP9A/DCLAMP
MUX
INPUT
CVBS
YPrPb
S-VIDEO
SYNC AND
CLK CONTROL
CLOCK GENERATION
SYNC PROCESSING AND
Figure 1.
FINE
DIGITAL
CHROMA
ADV7181B
CLAMP
CONTROL
AND DATA
SERIAL INTERFACE
CONTROL AND VBI DATA
SDA
ALSB
SCLK
04984-0-001
Rev. 0 | Page 4 of 96
ADV7181B
SPECIFICATIONS
Temperature range: T
ELECTRICAL CHARACTERISTICS
At A
otherwise noted).
Table 1.
Parameter Symbol Test Conditions Min Typ Max Unit
STATIC PERFORMANCE
DIGITAL INPUTS
DIGITAL OUTPUTS
POWER REQUIREMENTS1
1
2
3
= 3.15 V to 3.45 V, D
VDD
Resolution (Each ADC) N 9 Bits
Integral Nonlinearity INL BSL at 54 MHz –0.475/+0.6
Differential Nonlinearity DNL BSL at 54 MHz –0.25/+0.5 –0.7/+2 LSB
Input High Voltage VIH 2 V
Input Low Voltage VIL 0.8 V
Input Current IIN Pin 29 –50 +50 µA
All other pins –10 +10 µA
Input Capacitance CIN 10 pF
Output High Voltage VOH I
Output Low Voltage VOL I
High Impedance Leakage Current I
Output Capacitance C
Digital Core Power Supply D
Digital I/O Power Supply D
PLL Power Supply P
Analog Power Supply A
Digital Core Supply Current I
Digital I/O Supply Current I
PLL Supply Current I
Analog Supply Current I
YPrPb input3 180 mA
Power-Down Current I
Power-Up Time t
Guaranteed by characterization.
ADC1 and ADC2 powered down.
All three ADCs powered on.
MIN
to T
, –40°C to +85°C. The min/max specifications are guaranteed over this range.
MAX
= 1.65 V to 2.0 V, D
VDD
LEAK
OUT
VDD
VDDIO
VDD
VDD
DVDD
DVDDIO
PVDD
AVDD
PWRDN
PWRUP
= 3.0 V to 3.6 V, P
VDDIO
SOURCE
SINK
= 0.4 mA 2.4 V
= 3.2 mA 0.4 V
= 1.65 V to 2.0 V (operating temperature range, unless
VDD
10 µA
20 pF
1.65 1.8 2 V
3.0 3.3 3.6 V
1.65 1.8 2.0 V
3.15 3.3 3.45 V
80 mA
2 mA
10.5 mA
CVBS input2 85 mA
1.5 mA
20 ms
−1.5/+2
LSB
Rev. 0 | Page 5 of 96
ADV7181B
VIDEO SPECIFICATIONS
Guaranteed by characterization. At A
(operating temperature range, unless otherwise noted).
SNR Unweighted Luma ramp 54 dB
Luma flat field 58 dB
Analog Front End Crosstalk 60 dB
LOCK TIME SPECIFICATIONS
Horizontal Lock Range –5 +5 %
Vertical Lock Range 40 70 Hz
Fsc Subcarrier Lock Range ±1.3 kHz
Color Lock In Time 60 Lines
Sync Depth Range 20 200 %
Color Burst Range 5 200 %
Vertical Lock Time 2 Fields
Autodetection Switch Speed 100 Lines
Luma Brightness Accuracy CVBS, 1 V I/P 1 %
Luma Contrast Accuracy CVBS, 1 V I/P 1 %
= 3.15 V to 3.45 V, D
VDD
= 1.65 V to 2.0 V, D
VDD
= 3.0 V to 3.6 V, P
VDDIO
= 1.65 V to 2.0 V
VDD
Rev. 0 | Page 6 of 96
ADV7181B
TIMING SPECIFICATIONS
Guaranteed by characterization. At A
(operating temperature range, unless otherwise noted).
Table 3.
Parameter Symbol Test Conditions Min Typ Max Unit
SYSTEM CLOCK AND CRYSTAL
Nominal Frequency 27.00 MHz
Frequency Stability ±50 ppm
I2C PORT
SCLK Frequency 400 kHz
SCLK Min Pulse Width High t1 0.6 µs
SCLK Min Pulse Width Low t2 1.3 µs
Hold Time (Start Condition) t3 0.6 µs
Setup Time (Start Condition) t4 0.6 µs
SDA Setup Time t5 100 ns
SCLK and SDA Rise Time t6 300 ns
SCLK and SDA Fall Time t7 300 ns
Setup Time for Stop Condition t8 0.6 µs
RESET FEATURE
Reset Pulse Width 5 ms
CLOCK OUTPUTS
LLC1 Mark Space Ratio t9:t10 45:55 55:45 % Duty Cycle
DATA AND CONTROL OUTPUTS
Data Output Transitional Time t11
Data Output Transitional Time t12
ANALOG SPECIFICATIONS
Guaranteed by characterization. At A
(operating temperature range, unless otherwise noted).
Table 4.
Parameter Symbol Test Conditions Min Typ Max Unit
CLAMP CIRCUITRY
External Clamp Capacitor 0.1 µF
Input Impedance Clamps switched off 10 MΩ
Large Clamp Source Current 0.75 mA
Large Clamp Sink Current 0.75 mA
Fine Clamp Source Current 60 µA
Fine Clamp Sink Current 60 µA
4-layer PCB with solid ground plane, 64-lead LFCSP 45.5 °C/W
JA
JC
θ
JA
3
t
2
4-layer PCB with solid ground plane, 64-lead LFCSP 9.2 °C/W
4-layer PCB with solid ground plane, 64-lead LQFP 47 °C/W
t
5
t
t
6
1
t
7
Figure 2. I
2
C Timing
t
3
t
4
t
8
04984-0-003
OUTPUT LLC
OUTPUTS P0–P15, VS,
HS, FIELD,
SFL
t
9
t
12
t
10
t
11
04984-0-004
Figure 3. Pixel Port and Control Output Timing
Rev. 0 | Page 8 of 96
ADV7181B
ABSOLUTE MAXIMUM RATINGS
Table 6.
Parameter Rating
A
to GND 4 V
VDD
A
to AGND 4 V
VDD
D
to DGND 2.2 V
VDD
P
to AGND 2.2 V
VDD
D
to DGND 4 V
VDDIO
D
to AVDD –0.3 V to +0.3 V
VDDIO
P
to D
VDD
D
VDDIO
D
VDDIO
A
VDD
A
VDD
Digital Inputs Voltage to DGND –0.3V to D
Digital Output Voltage to DGND –0.3V to D
Analog Inputs to AGND AGND – 0.3 V to A
Maximum Junction Temperature
(T
–0.3 V to +0.3 V
VDD
– P
–0.3V to +2 V
VDD
– D
–0.3V to +2 V
VDD
– P
–0.3V to +2 V
VDD
– D
–0.3V to +2 V
VDD
max)
J
150°C
VDDIO
VDDIO
+ 0.3 V
+ 0.3 V
VDD
+ 0.3 V
Storage Temperature Range –65°C to +150°C
Infrared Reflow Soldering (20 s) 260°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
sections of this specification is not implied. Exposure to
absolute maximum rating conditions for extended periods may
affect device reliability.
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.
3, 10, 24, 34, 57 DGND G Digital Ground.
32, 37, 43, 45 AGND G Analog Ground.
4, 11 DVDDIO P Digital I/O Supply Voltage (3.3 V).
23, 58 DVDD P Digital Core Supply Voltage (1.8 V).
40 AVDD P Analog Supply Voltage (3.3 V).
31 PVDD P PLL Supply Voltage (1.8 V).
35, 36, 46–49 AIN1–AIN6 I Analog Video Input Channels.
12, 13, 27, 28, 33,
NC No Connect Pins.
50, 55, 56
26, 25, 19, 18, 17,
P0–P15 O Video Pixel Output Port.
16, 15, 14, 8, 7, 6, 5,
62, 61, 60, 59
2 HS O Horizontal Synchronization Output Signal.
64 VS O Vertical Synchronization Output Signal.
63 FIELD O Field Synchronization Output Signal.
1
INTRQ
O
Interrupt Request Output. Interrupt occurs when certain signals are detected on the input
video. See the interrupt register map in Table 82.
53 SDA I/O I2C Port Serial Data Input/Output Pin.
54 SCLK I I2C Port Serial Clock Input (Maximum Clock Rate of 400 kHz).
52 ALSB I
This pin selects the I
2
C address for the ADV7181B. ALSB set to a Logic 0 sets the address for
a write as 0x40; for ALSB set to a logic high, the address selected is 0x42.
51
RESET
I
System Reset Input, Active Low. A minimum low reset pulse width of 5 ms is required to
reset the ADV7181B circuitry.
20 LLC O
This is a line-locked output clock for the pixel data output by the ADV7181B. Nominally
27 MHz, but varies up or down according to video line length.
22 XTAL I
This is the input pin for the 27 MHz crystal, or can be overdriven by an external 3.3 V,
27 MHz clock oscillator source. In crystal mode, the crystal must be a fundamental crystal.
Rev. 0 | Page 10 of 96
ADV7181B
Pin No. Mnemonic Type Function
21 XTAL1 O
29
30 ELPF I
9 SFL O
41 REFOUT O
42 CML O
38, 39 CAPY1, CAPY2 I
44 CAPC2 I
PWRDN
I
This pin should be connected to the 27 MHz crystal or left as a no connect if an external
3.3 V, 27 MHz clock oscillator source is used to clock the ADV7181B. In crystal mode, the
crystal must be a fundamental crystal.
A logic low on this pin places the ADV7181B in a power-down mode. Refer to the I
Register Maps section for more options on power-down modes for the ADV7181B.
The recommended external loop filter must be connected to this ELPF pin, as shown in
Figure 44.
Subcarrier Frequency Lock. This pin contains a serial output stream that can be used to lock
the subcarrier frequency when this decoder is connected to any Analog Devices digital
video encoder.
Internal Voltage Reference Output. Refer to Figure 44 for a recommended capacitor
network for this pin.
The CML pin is a common-mode level for the internal ADCs. Refer to Figure 44 for a
recommended capacitor network for this pin.
ADC’s Capacitor Network. Refer to Figure 44 for a recommended capacitor network for
this pin.
ADC’s Capacitor Network. Refer to Figure 44 for a recommended capacitor network for
this pin.
2
C
Rev. 0 | Page 11 of 96
ADV7181B
ANALOG FRONT END
AIN2
AIN1
AIN4
AIN3
AIN6
AIN5
ADC_SW_MAN_EN
AIN2
AIN1
AIN4
AIN3
AIN6
AIN5
AIN4
AIN3
AIN6
AIN5
AIN6
AIN5
ADC0_SW[3:0]
ADC0
ADC1_SW[3:0]
ADC1
ADC0_SW[3:0]
Figure 5. Internal Pin Connections
There are two key steps to configure the ADV7181B to correctly
decode the input video.
1. The analog input muxing section must be configured to
correctly route the video from the analog input pins to the
correct set of ADCs.
2. The standard definition processor block, which decodes
the digital data, should be configured to process either
CVBS, YC , or YPrPb.
ANALOG INPUT MUXING
The ADV7181B has an integrated analog muxing section that
allows more than one source of video signal to be connected to
the decoder. Figure 5 outlines the overall structure of the input
muxing provided in the ADV7181B.
A maximum of 6 CVBS inputs can be connected and decoded
by the ADV7181B. As can be seen from the Pin Configuration
and Function Description section, these analog input pins lie in
close proximity to one another. This calls for a careful design of
the PCB layout, for example, ground shielding between all
signals routed through tracks that are physically close together.
It is strongly recommended to connect any unused analog input
pins to AGND to act as a shield.
To configure the ADV7181B analog muxing section, the user
must select the analog input (AIN1–AIN6) that is to be
processed by each ADC. SETADC_sw_man_en must be set to 1
to enable the muxing blocks to be configured. The three mux
sections are controlled by the signal buses ADC0/1/2_sw[3:0].
Table 8 explains the control words used.
The input signal that contains the timing information (H/V
syncs) must be processed by ADC0. For example, in YC input
configuration, ADC0 should be connected to the Y channel and
ADC1 to the C channel. When one or more ADCs are not used
to process video, for example, CVBS input, the idle ADCs should
be powered down, (see the ADC Power-Down Control section).
Restrictions on the channel routing are imposed by the analog
signal routing inside the IC; every input pin cannot be routed to
each ADC. Refer to Table 8 for an overview on the routing
capabilities inside the chip.
Rev. 0 | Page 12 of 96
ADV7181B
Table 8. Manual Mux Settings for All ADCs (SETADC_sw_man_en = 1)
ADC0_sw[3:0] ADC0 Connected To: ADC1_sw[3:0] ADC1 Connected To: ADC2_sw[3:0] ADC2 Connected To:
0000 No Connection 0000 No Connection 0000 No Connection
0001 AIN2 0001 No Connection 0001 No Connection
0010 No Connection 0010 No Connection 0010 No Connection
0011 No Connection 0011 No Connection 0011 No Connection
0100 AIN4 0100 AIN4 0100 No Connection
0101 AIN6 0101 AIN6 0101 AIN6
0110 No Connection 0110 No Connection 0110 No Connection
0111 No Connection 0111 No Connection 0111 No Connection
1000 No Connection 1000 No Connection 1000 No Connection
1001 AIN1 1001 No Connection 1001 No Connection
1010 No Connection 1010 No Connection 1010 No Connection
1011 No Connection 1011 No Connection 1011 No Connection
1100 AIN3 1100 AIN3 1100 No Connection
1101 AIN5 1101 AIN5 1101 AIN5
1110 No Connection 1110 No Connection 1110 No Connection
1111 No Connection 1111 No Connection 1111 No Connection
CONNECTING
ANALOG SIGNALS
TO ADV7181B
INSEL[3:0] Input Selection, Address 0x00 [3:0]
The INSEL bits allow the user to select the input format. It
SET INSEL[3:0] TO
CONFIGURE ADV7181B TO
DECODE VIDEO FORMAT:
CVBS: 0000
YC: 0110
YPrPb: 1001
CONFIGURE ADC INPUTS USING
MUXING CONTROL BITS
(ADC_sw_man_en,
ADC0_sw,adc1_sw, ADC2_sw)
Figure 6. Input Muxing Overview
04984-0-007
configures the standard definition processor core to process
CVBS (Comp), S-Video (Y/C), or Component (YPbPr) format.
Table 9. Standard Definition Processor Format Selection,
INSEL[3:0]
INSEL[3:0] Video Format
0000 Composite
0110 YC
1001 YPrPb
Rev. 0 | Page 13 of 96
ADV7181B
GLOBAL CONTROL REGISTERS
Register control bits listed in this section affect the whole chip.
POWER-SAVE MODES
Power-Down
PDBP, Address 0x0F [2]
The digital core of the ADV7181B can be shut down by using a
pin (
PWRDN
controls which of the two has the higher priority. The default is
to give the pin (
the ADV7181B powered down by default.
When PDBD is 0 (default), the digital core power is controlled
by the
When PDBD is 1, the bit has priority (the pin is disregarded).
PWRDN, Address 0x0F [5]
Setting the PWRDN bit switches the ADV7181B into a chipwide power-down mode. The power-down stops the clock from
entering the digital section of the chip, thereby freezing its
operation. No I
PWRDN bit also affects the analog blocks and switches them
into low current modes. The I
and remains operational in power-down mode.
The ADV7181B leaves the power-down state if the PWRDN bit
is set to 0 (via I
RESET
PDBP must be set to 1 for the PWRDN bit to power down the
ADV7181B.
When PWRDN is 0 (default), the chip is operational.
When PWRDN is 1, the ADV7181B is in chip-wide power-down.
ADC Power-Down Control
The ADV7181B contains three 9-bit ADCs (ADC 0, ADC 1, and
ADC 2). If required, it is possible to power down each ADC
individually.
When should the ADCs be powered down?
•CVBS mode. ADC 1 and ADC 2 should be powered down
to save on power consumption.
•S-Video mode. ADC 2 should be powered down to save on
power consumption.
) and a bit (PWRDN see below). The PDBP
) priority. This allows the user to have
2
C interface itself is unaffected,
PWRDN
PWRDN
pin (the bit is disregarded).
2
C bits are lost during power-down. The
2
C), or if the overall part is reset using the
pin.
PWRDN_ADC_0, Address 0x3A [3]
When PWRDN_ADC_0 is 0 (default), the ADC is in normal
operation.
When PWRDN_ADC_0 is 1, ADC 0 is powered down.
PWRDN_ADC_1, Address 0x3A [2]
When PWRDN_ADC_1 is 0 (default), the ADC is in normal
operation.
When PWRDN_ADC_1 is 1, ADC 1 is powered down.
PWRDN_ADC_2, Address 0x3A [1]
When PWRDN_ADC_2 is 0 (default), the ADC is in normal
operation (default).
When PWRDN_ADC_2 is 1, ADC 2 is powered down.
RESET CONTROL
Chip Reset (RES), Address 0x0F [7]
RESET
Setting this bit, equivalent to controlling the
2
ADV7181B, issues a full chip reset. All I
C registers are reset to
their default values. Note that some register bits do not have a
reset value specified. They keep their last written value. Those
bits are marked as having a reset value of x in the register table.
After the reset sequence, the part immediately starts to acquire
the incoming video signal.
After setting the RES bit (or initiating a reset via the pin), the
part returns to the default mode of operation with respect to its
2
primary mode of operation. All I
C bits are loaded with their
default values, making this bit self-clearing.
Executing a software reset takes approximately 2 ms. However, it
is recommended to wait 5 ms before any further I
performed.
2
C master controller receives a no acknowledge condition
The I
on the ninth clock cycle when chip reset is implemented. See the
MPU Port Description section.
When RES is 0 (default), operation is normal.
When RES is 1, the reset sequence starts.
pin on the
2
C writes are
Rev. 0 | Page 14 of 96
ADV7181B
GLOBAL PIN CONTROL
Three-State Output Drivers
TOD, Address 0x03 [6]
This bit allows the user to three-state the output drivers of the
ADV7181B.
Upon setting the TOD bit, t he P15–P0, HS, VS, FIELD, and SFL
pins are three-stated.
The timing pins (HS/VS/FIELD) can be forced active via the
TIM_OE bit. For more information on three-state control, refer
to the Three-State LLC Driver and the Timing Signals Output
Enable sections.
Individual drive strength controls are provided via the
DR_STR_XX bits.
When TOD is 0 (default), the output drivers are enabled.
When TOD is 1, the output drivers are three-stated.
Three-State LLC Driver
TRI_LLC, Address 0x1D [7]
This bit allows the output drivers for the LLC pin of the
ADV7181B to be three-stated. For more information on threestate control, refer to the Three-State Output Drivers and the
Timing Signals Output Enable sections.
Individual drive strength controls are provided via the
DR_STR_XX bits.
When TRI_LLC is 0 (default), the LLC pin drivers work
according to the DR_STR_C[1:0] setting (pin enabled).
When TRI_LLC is 1, the LLC pin drivers are three-stated.
Timing Signals Output Enable
TIM_OE, Address 0x04 [3]
The TIM_OE bit should be regarded as an addition to the TOD
bit. Setting it high forces the output drivers for HS, VS, and
FIELD into the active (i.e., driving) state even if the TOD bit is
set. If set to low, the HS, VS, and FIELD pins are three-stated
dependent on the TOD bit. This functionality is useful if the
decoder is to be used as a timing generator only. This may be
the case if only the timing signals are to be extracted from an
incoming signal, or if the part is in free-run mode where a
separate chip can output, for instance, a company logo.
For more information on three-state control, refer to the ThreeState Output Drivers and the Three-State LLC Driver sections.
Individual drive strength controls are provided via the
DR_STR_XX bits.
When TIM_OE is 0 (default), HS, VS, and FIELD are threestated according to the TOD bit.
When TIM_OE is 1, HS, VS, and FIELD are forced active all the
time.
Drive Strength Selection (Data)
DR_STR[1:0] Address 0xF4 [5:4]
For EMC and crosstalk reasons, it may be desirable to
strengthen or weaken the drive strength of the output drivers.
The DR_STR[1:0] bits affect the P[15:0] output drivers.
For more information on three-state control, refer to the Drive
Strength Selection (Clock) and the Drive Strength Selection
(Sync) sections.
Table 10. DR_STR Function
DR_STR[1:0] Description
00 Low drive strength (1×).
01 (default) Medium low drive strength (2×).
10 Medium high drive strength (3×).
11 High drive strength (4×).
Drive Strength Selection (Clock)
DR_STR_C[1:0] Address 0xF4 [3:2]
The DR_STR_C[1:0] bits can be used to select the strength of
the clock signal output driver (LLC pin). For more information,
refer to the Drive Strength Selection (Sync) and the Drive
Strength Selection (Data) sections.
Table 11. DR_STR Function
DR_STR[1:0] Description
00 Low drive strength (1×).
01 (default) Medium low drive strength (2×).
10 Medium high drive strength (3×).
11 High drive strength (4×).
Drive Strength Selection (Sync)
DR_STR_S[1:0] Address 0xF4 [1:0]
The DR_STR_S[1:0] bits allow the user to select the strength of
the synchronization signals with which HS, VS, and F are driven.
For more information, refer to the Drive Strength Selection
(Data) section.
Table 12. DR_STR Function
DR_STR[1:0] Description
00 Low drive strength (1×).
01 (default) Medium low drive strength (2×).
10 Medium high drive strength (3×).
11 High drive strength (4×).
Rev. 0 | Page 15 of 96
ADV7181B
Enable Subcarrier Frequency Lock Pin
Polarity LLC Pin
EN_SFL_PIN Address 0x04 [1]
The EN_SFL_PIN bit enables the output of subcarrier lock
information (also known as GenLock) from the ADV7181B
core to an encoder in a decoder-encoder back-to-back
arrangement.
When EN_SFL_PIN is 0 (default), the subcarrier frequency lock
output is disabled.
When EN_SFL_PIN is 1, the subcarrier frequency lock
information is presented on the SFL pin.
PCLK Address 0x37 [0]
The polarity of the clock that leaves the ADV7181B via the LLC
pin can be inverted using the PCLK bit.
Changing the polarity of the LLC clock output may be
necessary to meet the setup-and-hold time expectations of
follow-on chips.
When PCLK is 0, the LLC output polarity is inverted.
When PCLK is 1 (default), the LLC output polarity is normal
(as per the timing diagrams).
Rev. 0 | Page 16 of 96
ADV7181B
GLOBAL STATUS REGISTERS
Four registers provide summary information about the video
decoder. The IDENT register allows the user to identify the
revision code of the ADV7181B. The other three registers
contain status bits from the ADV7181B.
Depending on the setting of the FSCLE bit, the Status 0 and
Status 1 are based solely on horizontal timing info or on the
horizontal timing and lock status of the color subcarrier. See the
FSCLE Fsc Lock Enable, Address 0x51 [7] section.
IDENTIFICATION
IDENT[7:0] Address 0x11 [7:0]
The register identification of the revision of the ADV7181B.
An identification value of 0x11 indicates the ADV7181, released
silicon.
An identification value of 0x13 indicates the ADV7181B.
STATUS 1
STATUS_1[7:0] Address 0x10 [7:0]
This read-only register provides information about the internal
status of the ADV7181B.
See CIL[2:0] Count Into Lock, Address 0x51 [2:0] and COL[2:0
Count Out of Lock, Address 0x51 [5:3] for information on the
timing.
Table 14. STATUS 1 Function
STATUS 1 [7:0] Bit Name Description
0 IN_LOCK In lock (right now).
1 LOST_LOCK Lost lock (since last read of this register).
2 FSC_LOCK Fsc locked (right now).
3 FOLLOW_PW AGC follows peak white algorithm.
4 AD_RESULT.0 Result of autodetection.
5 AD_RESULT.1 Result of autodetection.
6 AD_RESULT.2 Result of autodetection.
7 COL_KILL Color kill active.
AUTODETECTION RESULT
AD_RESULT[2:0] Address 0x10 [6:4]
The AD_RESULT[2:0] bits report back on the findings from the
ADV7181B autodetection block. Consult the General Setup
section for more information on enabling the autodetection
block, and the Autodetection of SD Modes section to find out
how to configure it.
0 MVCS DET Detected Macrovision color striping.
1 MVCS T3 Macrovision color striping protection. Conforms to Type 3 (if high), and Type 2 (if low).
2 MV_PS DET Detected Macrovision pseudo Sync pulses.
3 MV_AGC DET Detected Macrovision AGC pulses.
4 LL_NSTD Line length is nonstandard.
5 FSC_NSTD Fsc frequency is nonstandard.
6 Reserved
7 Reserved
Rev. 0 | Page 17 of 96
ADV7181B
STATUS 3
STATUS_3[7:0], Address 0x13 [7:0]
Table 16. STATUS 3 Function
STATUS 3 [7:0] Bit Name Description
0 INST_HLOCK Horizontal lock indicator (instantaneous).
1 GEMD Gemstar Detect.
2 SD_OP_50HZ Flags whether 50 Hz or 60 Hz is present at output.
3 Reserved for future use.
4 FREE_RUN_ACT
5 STD_FLD_LEN Field length is correct for currently selected video standard.
6 INTERLACED Interlaced video detected (field sequence found).
7 PAL_SW_LOCK Reliable sequence of swinging bursts detected.
ADV7181B outputs a blue screen (see the DEF_VAL_EN Default Value Enable,
Address 0x0C [0] section).
Rev. 0 | Page 18 of 96
ADV7181B
STANDARD DEFINITION PROCESSOR (SDP)
STANDARD DEFINITION PROCESSOR
DIGITIZED CVBS
DIGITIZED Y (YC)
DIGITIZED CVBS
DIGITIZED C (YC)
MACROVISION
DETECTION
LUMA
DIGITAL
FINE
CLAMP
CHROMA
DIGITAL
FINE
CLAMP
RECOVERY
CHROMA
DEMOD
F
SC
RECOVERY
VBI DATA
FILTER
EXTRACT
CHROMA
FILTER
AUTODETECTION
LUMA
SYNC
STANDARD
PREDICTOR
Figure 7. Block Diagram of the Standard Definition Processor
A block diagram of the ADV7181B’s standard definition
processor (SDP) is shown in Figure 7.
The ADV7181B can handle standard definition video in CVBS,
YC, and YPrPb formats. It can be divided into a luminance and
chrominance path. If the input video is of a composite type
(CVBS), both processing paths are fed with the CVBS input.
SD LUMA PATH
The input signal is processed by the following blocks:
•Digital Fine Clamp. This block uses a high precision
algorithm to clamp the video signal.
•Luma Filter Block. This block contains a luma decimation
filter (YAA) with a fixed response, and some shaping filters
(YSH) that have selectable responses.
•Luma Gain Control. The automatic gain control (AGC) can
operate on a variety of different modes, including gain
based on the depth of the horizontal sync pulse, peak white
mode, and fixed manual gain.
•Luma Resample. To correct for line-length errors as well as
dynamic line-length changes, the data is digitally
resampled.
•Luma 2D Comb. The two-dimensional comb filter provides
YC separation.
•AV Code Insertion. At this point, the decoded luma (Y)
signal is merged with the retrieved chroma values. AV
codes (as per ITU-R. BT-656) can be inserted.
GAIN
CONTROL
LINE
LENGTH
GAIN
CONTROL
SLLC
CONTROL
LUMA
RESAMPLE
RESAMPLE
CONTROL
CHROMA
RESAMPLE
LUMA
2D COMB
CHROMA
2D COMB
AV
CODE
INSERTION
VIDEO DATA
OUTPUT
MEASUREMENT
BLOCK (= >1
VIDEO DATA
PROCESSING
BLOCK
2
C)
04984-0-008
SD CHROMA PATH
The input signal is processed by the following blocks:
•Digital Fine Clamp. This block uses a high precision
algorithm to clamp the video signal.
•Chroma Demodulation. This block employs a color
subcarrier (Fsc) recovery unit to regenerate the color
subcarrier for any modulated chroma scheme. The
demodulation block then performs an AM demodulation
for PAL and NTSC, and an FM demodulation for SECAM.
•Chroma Filter Block. This block contains a chroma
decimation filter (CAA) with a fixed response, and some
shaping filters (CSH) that have selectable responses.
•Gain Control. Automatic gain control (AGC) can operate
on several different modes, including gain based on the
color subcarrier’s amplitude, gain based on the depth of the
horizontal sync pulse on the luma channel, or fixed manual
gain.
•Chroma Resample. The chroma data is digitally resampled
to keep it perfectly aligned with the luma data. The
resampling is done to correct for static and dynamic linelength errors of the incoming video signal.
•Chroma 2D Comb. The two-dimensional, 5-line,
superadaptive comb filter provides high quality YC
separation in case the input signal is CVBS.
•AV Code Insertion. At this point, the demodulated chroma
(Cr and Cb) signal is merged with the retrieved luma
values. AV codes (as per ITU-R. BT-656) can be inserted.
Rev. 0 | Page 19 of 96
ADV7181B
SYNC PROCESSING
The ADV7181B extracts syncs embedded in the video data
stream. There is currently no support for external HS/VS inputs.
The sync extraction has been optimized to support imperfect
video sources such as videocassette recorders with head
switches. The actual algorithm used employs a coarse detection
based on a threshold crossing followed by a more detailed
detection using an adaptive interpolation algorithm. The raw
sync information is sent to a line-length measurement and
prediction block. The output of this is then used to drive the
digital resampling section to ensure that the ADV7181B outputs
720 active pixels per line.
The sync processing on the ADV7181B also includes the
following specialized postprocessing blocks that filter and
condition the raw sync information retrieved from the digitized
analog video.
•VSYNC Processor. This block provides extra filtering of the
detected VSYNCs to give improved vertical lock.
•HSYNC Processor. The HSYNC processor is designed to
filter incoming HSYNCs that have been corrupted by
noise, providing much improved performance for video
signals with stable time base but poor SNR.
VBI DATA RECOVERY
The ADV7181B can retrieve the following information from the
input video:
• Wide-screen signaling (WSS)
• Copy generation management system (CGMS)
• Closed caption (CC)
• Macrovision protection presence
• EDTV data
• Gemstar-compatible data slicing
The ADV7181B is also capable of automatically detecting the
incoming video standard with respect to
• Color subcarrier frequency
• Field rate
• Line rate
The ADV7181B can configure itself to support PAL-BGHID,
PAL-M/N, PAL-combination N, NTSC-M, NTSC-J, SECAM
50 Hz/60 Hz, NTSC4.43, and PAL60.
GENERAL SETUP
Video Standard Selection
The VID_SEL[3:0] register allows the user to force the digital
core into a specific video standard. Under normal circumstances,
this should not be necessary. The VID_SEL[3:0] bits default to
an autodetection mode that supports PAL, NTSC, SECAM, and
variants thereof. The following section provides more information on the autodetection system.
Autodetection of SD Modes
In order to guide the autodetect system of the ADV7181B,
individual enable bits are provided for each of the supported
video standards. Setting the relevant bit to 0 inhibits the
standard from being detected automatically. Instead, the system
picks the closest of the remaining enabled standards. The results
of the autodetection block can be read back via the status
registers. See the Global Status Registers section for more
information.
VID_SEL[3:0]Address 0x00 [7:4]
Table 17. VID_SEL Function
VID_SEL[3:0] Description
0000 (default)
0001
0010
0011
0100 NTSC J (1).
0101 NTSC M (1).
0110 PAL 60.
0111 NTSC 4.43 (1).
1000 PAL BGHID.
1001 PAL N (= PAL BGHID (with pedestal)).
1010 PAL M (without pedestal).
1011 PAL M.
1100 PAL combination N.
1101 PAL combination N (with pedestal).
1110 SECAM.
1111 SECAM (with pedestal).
AD_SEC525_EN Enable Autodetection of SECAM 525
Line Video, Address 0x07 [7]
Setting AD_SEC525_EN to 0 (default) disables the
autodetection of a 525-line system with a SECAM style, FMmodulated color component.
Setting AD_SEC525_EN to 1 enables the detection.
Autodetect (PAL BGHID) <–> NTSC J (no
pedestal), SECAM.
Autodetect (PAL BGHID) <–> NTSC M
(pedestal), SECAM.
Autodetect (PAL N) (pedestal) <–> NTSC J (no
pedestal), SECAM.
Autodetect (PAL N) (pedestal)<–> NTSC M
(pedestal), SECAM.
Rev. 0 | Page 20 of 96
ADV7181B
AD_SECAM_EN Enable Autodetection of SECAM,
Address 0x07 [6]
Setting AD_SECAM_EN to 0 (default) disables the
autodetection of SECAM.
Setting AD_SECAM_EN to 1 enables the detection.
AD_N443_EN Enable Autodetection of NTSC 443,
Address 0x07 [5]
Setting AD_N443_EN to 0 disables the autodetection of NTSC
style systems with a 4.43 MHz color subcarrier.
Setting AD_N443_EN to 1 (default) enables the detection.
AD_P60_EN Enable Autodetection of PAL60,
Address 0x07 [4]
Setting AD_P60_EN to 0 disables the autodetection of PAL
systems with a 60 Hz field rate.
Setting AD_P60_EN to 1 (default) enables the detection.
AD_PALN_EN Enable Autodetection of PAL N,
Address 0x07 [3]
Setting AD_PALN_EN to 0 (default) disables the detection of
the PAL N standard.
Setting AD_PALN_EN to 1 enables the detection.
AD_PALM_EN Enable Autodetection of PAL M,
Address 0x07 [2]
Setting AD_PALM_EN to 0 (default) disables the autodetection
of PAL M.
Setting AD_PALM_EN to 1 enables the detection.
AD_NTSC_EN Enable Autodetection of NTSC,
Address 0x07 [1]
Setting AD_NTSC_EN to 0 (default) disables the detection of
standard NTSC.
Setting AD_NTSC_EN to 1 enables the detection.
AD_PAL_EN Enable Autodetection of PAL,
Address 0x07 [0]
Setting AD_PAL_EN to 0 (default) disables the detection of
standard PAL.
Setting AD_PAL_EN to 1 enables the detection.
SFL_INV Subcarrier Frequency Lock Inversion
This bit controls the behavior of the PAL switch bit in the SFL
(GenLock Telegram) data stream. It was implemented to solve
some compatibility issues with video encoders. It solves two
problems.
First, the PAL switch bit is only meaningful in PAL. Some
encoders (including Analog Devices encoders) also look at the
state of this bit in NTSC.
Second, there was a design change in Analog Devices encoders
from ADV717x to ADV719x. The older versions used the SFL
(GenLock Telegram) bit directly, while the later ones invert the
bit prior to using it. The reason for this is that the inversion
compensated for the 1-line delay of an SFL (GenLock Telegram)
transmission.
As a result, ADV717x encoders need the PAL switch bit in the
SFL (GenLock Telegram) to be 1 for NTSC to work. Also,
ADV7190/ADV7191/ADV7194 encoders need the PAL switch
bit in the SFL to be 0 to work in NTSC. If the state of the PAL
switch bit is wrong, a 180° phase shift occurs.
In a decoder/encoder back-to-back system in which SFL is used,
this bit must be set up properly for the specific encoder used.
SFL_INV Function Address 0x41 [6]
Setting SFL_INV to 0 makes the part SFL-compatible with
ADV7190/ADV7191/ADV7194 encoders.
Setting SFL_INV to 1 (default) makes the part SFL-compatible
with ADV717x/ADV7173x encoders.
Lock Related Controls
Lock information is presented to the user through Bits [1:0] of
the Status 1 register. See the STATUS_1[7:0] Address 0x10 [7:0]
section. Figure 8 outlines the signal flow and the controls
available to influence the way the lock status information is
generated.
SELECT THE RAW LOCK SIGNAL
SRLS
TIME_WIN
FREE_RUN
LOCK
F
SC
TAKE F
1
0
LOCK INTO ACCOUNT
SC
0
COUNTER INTO LOCK
COUNTER OUT OF LOCK
1
FSCLE
Figure 8. Lock Related Signal Path
Rev. 0 | Page 21 of 96
FILTER THE RAW LOCK SIGNAL
CIL[2:0], COL[2:0]
MEMORY
STATUS 1 [0]
STATUS 1 [1]
04984-0-009
ADV7181B
SRLS Select Raw Lock Signal, Address 0x51 [6]
COL[2:0] Count Out of Lock, Address 0x51 [5:3]
Using the SRLS bit, the user can choose between two sources for
determining the lock status (per Bits [1:0] in the Status 1 register).
•The time_win signal is based on a line-to-line evaluation of
the horizontal synchronization pulse of the incoming
video. It reacts quite quickly.
•The free_run signal evaluates the properties of the
incoming video over several fields, and takes vertical
synchronization information into account.
Setting SRLS to 0 (default) selects the free_run signal.
Setting SRLS to 1 selects the time_win signal.
FSCLE Fsc Lock Enable, Address 0x51 [7]
The FSCLE bit allows the user to choose whether the status of
the color subcarrier loop is taken into account when the overall
lock status is determined and presented via Bits [1:0] in Status
Register 1. This bit must be set to 0 when operating the
ADV7181B in YPrPb component mode in order to generate a
reliable HLOCK status bit.
When FSCLE is set to 0 (default), the overall lock status only is
dependent on horizontal sync lock.
COL[2:0] determines the number of consecutive lines for which
the out of lock condition must be true before the system
switches into unlocked state, and reports this via Status 0 [1:0].
It counts the value in lines of video.
These registers allow the user to control picture appearance,
including control of the active data in the event of video being
lost. These controls are independent of any other controls. For
instance, brightness control is independent from picture
clamping, although both controls affect the signal’s dc level.
CON[7:0] Contrast Adjust, Address 0x08 [7:0]
When FSCLE is set to 1, the overall lock status is dependent on
horizontal sync lock and Fsc Lock.
CIL[2:0] Count Into Lock, Address 0x51 [2:0]
CIL[2:0] determines the number of consecutive lines for which
the into lock condition must be true before the system switches
into the locked state, and reports this via Status 0 [1:0]. It counts
the value in lines of video.
This register allows the user to select an offset for the Cb
channel only and adjust the hue of the picture. There is a
functional overlap with the Hue [7:0] register.
Table 23. SD_OFF_Cb Function
SD_OFF_Cb[7:0] Description
0x80 (default) 0 offset applied to the Cb channel.
0x00 −312 mV offset applied to the Cb channel.
0xFF +312 mV offset applied to the Cb channel.
This register allows the user to select an offset for the Cr channel
only and adjust the hue of the picture. There is a functional
overlap with the Hue [7:0] register.
Table 24. SD_OFF_Cr Function
SD_OFF_Cr[7:0] Description
0x80 (default) 0 offset applied to the Cr channel
0x00 −312 mV offset applied to the Cr channel
0xFF +312 mV offset applied to the Cr channel
BRI[7:0] Brightness Adjust, Address 0x0A [7:0]
This register controls the brightness of the video signal. It allows
the user to adjust the brightness of the picture.
Table 25. BRI Function
BRI[7:0] Description
0x00 (default) Offset of the luma channel = 0IRE.
0x7F Offset of the luma channel = 100IRE.
0x80 Offset of the luma channel = –100IRE.
This register contains the value for the color hue adjustment. It
allows the user to adjust the hue of the picture.
HUE[7:0] has a range of ±90°, with 0x00 equivalent to an
adjustment of 0°. The resolution of HUE[7:0] is 1 bit = 0.7°.
The hue adjustment value is fed into the AM color demodulation block. Therefore, it only applies to video signals that contain
chroma information in the form of an AM-modulated carrier
(CVBS or Y/C in PAL or NTSC). It does not affect SECAM and
does not work on component video inputs (YPrPb).
Table 26. HUE Function
HUE[7:0] Description(Adjust Hue of the Picture)
0x00 (default) Phase of the chroma signal = 0°.
0x7F Phase of the chroma signal = –90°.
0x80 Phase of the chroma signal = +90°.
DEF_Y[5:0] Default Value Y, Address 0x0C [7:2]
When the ADV7181B loses lock on the incoming video signal
or when there is no input signal, the DEF_Y[5:0] register allows
the user to specify a default luma value to be output. This value
is used under the following conditions:
•If DEF_VAL_AUTO_EN bit is set to high and the
ADV7181B lost lock to the input video signal. This is the
intended mode of operation (automatic mode).
•The DEF_VAL_EN bit is set, regardless of the lock status of
the video decoder. This is a forced mode that may be useful
during configuration.
The DEF_Y[5:0] values define the 6 MSBs of the output video.
The remaining LSBs are padded with 0s. For example, in 8-bit
mode, the output is Y[7:0] = {DEF_Y[5:0], 0, 0}.
DEF_Y[5:0] is 0x0D (Blue) is the default value for Y.
Register 0x0C has a default value of 0x36.
DEF_C[7:0] Default Value C, Address 0x0D [7:0]
The DEF_C[7:0] register complements the DEF_Y[5:0] value. It
defines the 4 MSBs of Cr and Cb values to be output if
•The DEF_VAL_AUTO_EN bit is set to high and the
ADV7181B can’t lock to the input video (automatic mode).
•DEF_VAL_EN bit is set to high (forced output).
The data that is finally output from the ADV7181B for the
chroma side is Cr[7:0] = {DEF_C[7:4], 0, 0, 0, 0}, Cb[7:0] =
{DEF_C[3:0], 0, 0, 0, 0}.
DEF_C[7:0] is 0x7C (blue) is the default value for Cr and Cb.
Rev. 0 | Page 23 of 96
ADV7181B
A
G
DEF_VAL_EN Default Value Enable, Address 0x0C [0]
The clamping can be divided into two sections:
This bit forces the use of the default values for Y, Cr, and Cb.
Refer to the descriptions for DEF_Y and DEF_C for additional
information. In this mode, the decoder also outputs a stable
27 MHz clock, HS, and VS.
Setting DEF_VAL_EN to 0 (default) outputs a colored screen
determined by user programmable Y, Cr, and Cb values when
the decoder free-runs. Free-run mode is turned on and off by
the DEF_VAL_AUTO_EN bit.
Setting DEF_VAL_EN to 1 forces a colored screen output
determined by user programmable Y, Cr, and Cb values. This
overrides picture data even if the decoder is locked.
DEF_VAL_AUTO_EN Default Value Automatic Enable,
Address 0x0C [1]
This bit enables the automatic use of the default values for Y, Cr,
and Cb when the ADV7181B cannot lock to the video signal.
Setting DEF_VAL_AUTO_EN to 0 disables free-run mode. If
the decoder is unlocked, it outputs noise.
Setting DEF_VAL_EN to 1 (default) enables free-run mode, and
a colored screen set by user programmable Y, Cr and Cb values
is displayed when the decoder loses lock.
CLAMP OPERATION
The input video is ac-coupled into the ADV7181B. Therefore,
its dc value needs to be restored. This process is referred to as
clamping the video. This section explains the general process of
clamping on the ADV7181B, and shows the different ways in
which a user can configure its behavior.
The ADV7181B uses a combination of current sources and a
digital processing block for clamping, as shown in Figure 9. The
analog processing channel shown is replicated three times
inside the IC. While only one single channel (and only one
ADC) would be needed for a CVBS signal, two independent
channels are needed for YC (S-VHS) type signals, and three
independent channels are needed to allow component signals
(YPrPb) to be processed.
•Clamping before the ADC (analog domain): current
sources.
•Clamping after the ADC (digital domain): digital
processing block.
The ADCs can digitize an input signal only if it resides within
the ADC’s 1.6 V input voltage range. An input signal with a dc
level that is too large or too small is clipped at the top or bottom
of the ADC range.
The primary task of the analog clamping circuits is to ensure
that the video signal stays within the valid ADC input window
so that the analog-to-digital conversion can take place. It is not
necessary to clamp the input signal with a very high accuracy in
the analog domain as long as the video signal fits the ADC range.
After digitization, the digital fine clamp block corrects for any
remaining variations in dc level. Since the dc level of an input
video signal refers directly to the brightness of the picture
transmitted, it is important to perform a fine clamp with high
accuracy; otherwise, brightness variations may occur. Furthermore, dynamic changes in the dc level almost certainly lead to
visually objectionable artifacts, and must therefore be prohibited.
The clamping scheme has to complete two tasks. It must be able
to acquire a newly connected video signal with a completely
unknown dc level, and it must maintain the dc level during
normal operation.
For quickly acquiring an unknown video signal, the large current
clamps may be activated. Note that it is assumed that the amplitude of the video signal at this point is of a nominal value.
Control of the coarse and fine current clamp parameters is
performed automatically by the decoder.
Standard definition video signals may have excessive noise on
them. In particular, CVBS signals transmitted by terrestrial
broadcast and demodulated using a tuner usually show very
large levels of noise (>100 mV). A voltage clamp would be
unsuitable for this type of video signal. Instead, the ADV7181B
employs a set of four current sources that can cause coarse
(>0.5 mA) and fine (<0.1 mA) currents to flow into and away
from the high impedance node that carries the video signal (see
Figure 9).
FINE
CURRENT
SOURCES
NALO
VIDEO
INPUT
COARSE
CURRENT
SOURCES
ADC
Figure 9. Clamping Overview
Rev. 0 | Page 24 of 96
PROCESSOR
CLAMP CONTROL
DATA
PRE-
(DPP)
SDP
WITH DIGITAL
FINE CLAMP
04984-0-010
ADV7181B
The following sections describe the I2C signals that can be used
to influence the behavior of the clamping block.
Previous revisions of the ADV7181B had controls (FACL/FICL,
fast and fine clamp length) to allow configuration of the length
for which the coarse (fast) and fine current sources are switched
on. These controls were removed on the ADV7181-FT and
replaced by an adaptive scheme.
CCLEN Current Clamp Enable, Address 0x14 [4]
The current clamp enable bit allows the user to switch off the
current sources in the analog front end altogether. This may be
useful if the incoming analog video signal is clamped externally.
When CCLEN is 0, the current sources are switched off.
When CCLEN is 1 (default), the current sources are enabled.
DCT[1:0] Digital Clamp Timing, Address 0x15 [6:5]
The Clamp Timing register determines the time constant of the
digital fine clamp circuitry. It is important to realize that the
digital fine clamp reacts very quickly since it is supposed to
immediately correct any residual dc level error for the active
line. The time constant of the digital fine clamp must be much
quicker than the one from the analog blocks.
By default, the time constant of the digital fine clamp is adjusted
dynamically to suit the currently connected input signal.
Table 27. DCT Function
DCT[1:0] Description
00 Slow (TC = 1 sec).
01 Medium (TC = 0.5 sec).
10 (default) Fast (TC = 0.1 sec).
11
DCFE Digital Clamp Freeze Enable, Address 0x15 [4]
This register bit allows the user to freeze the digital clamp loop
at any time. It is intended for users who would like to do their
own clamping. Users should disable the current sources for
analog clamping via the appropriate register bits, wait until the
digital clamp loop settles, and then freeze it via the DCFE bit.
Determined by ADV7181B, depending on the
input video parameters.
LUMA FILTER
Data from the digital fine clamp block is processed by three sets
of filters. Note that the data format at this point is CVBS for
CVBS input or luma only for Y/C and YPrPb input formats.
•Luma antialias filter (YAA). The ADV7181B receives video
at a rate of 27 MHz. (In the case of 4× oversampled video,
the ADCs sample at 54 MHz, and the first decimation is
performed inside the DPP filters. Therefore, the data rate
into the ADV7181B is always 27 MHz.) The ITU-R BT.601
recommends a sampling frequency of 13.5 MHz. The luma
antialias filter decimates the oversampled video using a
high quality, linear phase, low-pass filter that preserves the
luma signal while at the same time attenuating out-of-band
components. The luma antialias filter (YAA) has a fixed
response.
•Luma shaping filters (YSH). The shaping filter block is a
programmable low-pass filter with a wide variety of
responses. It can be used to selectively reduce the luma
video signal bandwidth (needed prior to scaling, for
example). For some video sources that contain high
frequency noise, reducing the bandwidth of the luma signal
improves visual picture quality. A follow-on video
compression stage may work more efficiently if the video is
low-pass filtered.
The ADV7181B has two responses for the shaping filter:
one that is used for good quality CVBS, component, and SVHS type sources, and a second for nonstandard CVBS
signals.
The YSH filter responses also include a set of notches for
PAL and NTSC. However, it is recommended to use the
comb filters for YC separation.
•Digital resampling filter. This block is used to allow dynamic
resampling of the video signal to alter parameters such as
the time base of a line of video. Fundamentally, the resampler is a set of low-pass filters. The actual response is chosen
by the system with no requirement for user intervention.
Figure 11 through Figure 14 show the overall response of all
filters together. Unless otherwise noted, the filters are set into a
typical wideband mode.
When DCFE to 0 (default), the digital clamp is operational .
When DCFE is 1, the digital clamp loop is frozen.
Rev. 0 | Page 25 of 96
ADV7181B
Y Shaping Filter
For input signals in CVBS format, the luma shaping filters play
an essential role in removing the chroma component from a
composite signal. YC separation must aim for best possible
crosstalk reduction while still retaining as much bandwidth
(especially on the luma component) as possible. High quality
YC separation can be achieved by using the internal comb filters
of the ADV7181B. Comb filtering, however, relies on the
frequency relationship of the luma component (multiples of the
video line rate) and the color subcarrier (Fsc). For good quality
CVBS signals, this relationship is known; the comb filter
algorithms can be used to separate out luma and chroma with
high accuracy.
In the case of nonstandard video signals, the frequency
relationship may be disturbed and the comb filters may not be
able to remove all crosstalk artifacts in an optimum fashion
without the assistance of the shaping filter block.
An automatic mode is provided. Here, the ADV7181B evaluates
the quality of the incoming video signal and selects the filter
responses in accordance with the signal quality and video
standard. YFSM, WYSFMOVR, and WYSFM allow the user to
manually override the automatic decisions in part or in full.
In automatic mode, the system preserves the maximum possible
bandwidth for good CVBS sources (since they can successfully
be combed) as well as for luma components of YPrPb and YC
sources, since they need not be combed. For poor quality
signals, the system selects from a set of proprietary shaping
filter responses that complements comb filter operation in order
to reduce visual artifacts.
The decisions of the control logic are shown in Figure 10.
YSFM[4:0] Y Shaping Filter Mode, Address 0x17 [4:0]
The Y shaping filter mode bits allow the user to select from a
wide range of low-pass and notch filters. When switched in
automatic mode, the filter is selected based on other register
selections, for example, detected video standard, as well as
properties extracted from the incoming video itself, for
example, quality, time base stability. The automatic selection
always picks the widest possible bandwidth for the video input
encountered.
•If the YSFM settings specify a filter (i.e., YSFM is set to
values other than 00000 or 00001), the chosen filter is
applied to all video, regardless of its quality.
The luma shaping filter has three control registers:
•YSFM[4:0] allows the user to manually select a shaping
filter mode (applied to all video signals) or to enable an
automatic selection (dependent on video quality and video
standard).
•WYSFMOVR allows the user to manually override the
WYSFM decision.
•WYSFM[4:0] allows the user to select a different shaping
filter mode for good quality CVBS, component (YPrPb),
and S-VHS (YC) input signals.
•In automatic selection mode, the notch filters are only used
for bad quality video signals. For all other video signals,
wideband filters are used.
WYSFMOVR Wideband Y Shaping Filter Override,
Address 0x18,[7]
Setting the WYSFMOVR bit enables the use of the WYSFM[4:0]
settings for good quality video signals. For more information,
refer to the general discussion of the luma shaping filters in the
Y Shaping Filter section and the flowchart shown in Figure 10.
When WYSFMOVR is 0, the shaping filter for good quality
video signals is selected automatically.
Setting WYSFMOVR to 1 (default) enables manual override via
WYSFM[4:0].
Rev. 0 | Page 26 of 96
ADV7181B
SET YSFM
AUTO SELECT LUMA
SHAPING FILTER TO
COMPLEMENT COMB
Table 28. YSFM Function
YSFM[4:0] Description
0'0000
Automatic selection including a wide notch
response (PAL/NTSC/SECAM)
0'0001
(default)
Automatic selection including a narrow notch
response (PAL/NTSC/SECAM)
0'0010 SVHS 1
0'0011 SVHS 2
0'0100 SVHS 3
0'0101 SVHS 4
0'0110 SVHS 5
0'0111 SVHS 6
0'1000 SVHS 7
0'1001 SVHS 8
0'1010 SVHS 9
0'1011 SVHS 10
0'1100 SVHS 11
0'1101 SVHS 12
0'1110 SVHS 13
0'1111 SVHS 14
1'0000 SVHS 15
1'0001 SVHS 16
1'0010 SVHS 17
1'0011 SVHS 18 (CCIR 601)
1'0100 PAL NN 1
1'0101 PAL NN 2
1'0110 PAL NN 3
1'0111 PAL WN 1
1'1000 PAL WN 2
1'1001 NTSC NN 1
1'1010 NTSC NN 2
1'1011 NTSC NN 3
1'1100 NTSC WN 1
1'1101 NTSC WN 2
1'1110 NTSC WN 3
1'1111 Reserved
YESNO
VIDEO
BADGOOD
QUALITY
10
SELECT WIDEBAND
FILTER AS PER
WYSFM[4:0]
Figure 10. YSFM and WYSFM Control Flowchart
YSFM IN AUTO MODE?
WYSFMOVR
00000 OR 00001
USE YSFM SELECTED
FILTER REGARDLESS FOR
GOOD AND BAD VIDEO
SELECT AUTOMATIC
WIDEBAND FILTER
04984-0-011
WYSFM[4:0] Wide Band Y Shaping Filter Mode,
Address 0x18 [4:0]
The WYSFM[4:0] bits allow the user to manually select a
shaping filter for good quality video signals, for example, CVBS
with stable time base, luma component of YPrPb, luma
component of YC. The WYSFM bits are only active if the
WYSFMOVR bit is set to 1. See the general discussion of the
shaping filter settings in the Y Shaping Filter section.
Table 29. WYSFM Function
WYSFM[4:0] Description
0'0000 Do not use
0'0001 Do not use
0'0010 SVHS 1
0'0011 SVHS 2
0'0100 SVHS 3
0'0101 SVHS 4
0'0110 SVHS 5
0'0111 SVHS 6
0'1000 SVHS 7
0'1001 SVHS 8
0'1010 SVHS 9
0'1011 SVHS 10
0'1100 SVHS 11
0'1101 SVHS 12
0'1110 SVHS 13
0'1111 SVHS 14
1'0000 SVHS 15
1'0001 SVHS 16
1'0010 SVHS 17
1'0011 (default) SVHS 18 (CCIR 601)
1'0100–1’1111 Do not use
Rev. 0 | Page 27 of 96
ADV7181B
AMPLITUDE (dB)
v740a COMBINED Y ANTIALIAS, S-VHS LOW-PASS FILTERS,
0
–10
–20
–30
–40
–50
–60
–70
010864212
Y RESAMPLE
FREQUENCY (MHz)
04984-0-012
Figure 11. Y S-VHS Combined Responses
The filter plots in Figure 11 show the S-VHS 1 (narrowest) to
S-VHS 18 (widest) shaping filter settings. Figure 13 shows the
PAL notch filter responses. The NTSC-compatible notches are
shown in Figure 14.
v740a COMBINED Y ANTIALIAS, CCIR MODE SHAPING FILTER,
0
Y RESAMPLE
v740a COMBINED Y ANTIALIAS, NTSC NOTCH FILTERS,
0
–10
–20
–30
–40
AMPLITUDE (dB)
–50
–60
–70
010864212
Y RESAMPLE
FREQUENCY (MHz)
04984-0-015
Figure 14. Y S-VHS 18 Extra Wideband Filter (601)
CHROMA FILTER
Data from the digital fine clamp block is processed by three sets
of filters. Note that the data format at this point is CVBS for
CVBS inputs, chroma only for Y/C, or U/V interleaved for
YPrPb input formats.
–20
–40
–60
AMPLITUDE (dB)
–80
–100
–120
010864212
FREQUENCY (MHz)
04984-0-013
• Chroma Antialias Filter (CAA). The ADV7181B over-
• Chroma Shaping Filters (CSH). The shaping filter block
• Digital Resampling Filter. This block is used to allow
Figure 12.Y S-VHS 18 Extra Wideband Filter (CCIR 601 Compliant)
v740a COMBINED Y ANTIALIAS, PAL NOTCH FILTERS,
0
Y RESAMPLE
The plots in Figure 15 show the overall response of all filters
together.
–10
–20
–30
–40
AMPLITUDE (dB)
–50
samples the CVBS by a factor of 2 and the Chroma/PrPb
by a factor of 4. A decimating filter (CAA) is used to
preserve the active video band and to remove any out-ofband components. The CAA filter has a fixed response.
(CSH) can be programmed to perform a variety of lowpass responses. It can be used to selectively reduce the
bandwidth of the chroma signal for scaling or compression.
dynamic resampling of the video signal to alter parameters
such as the time base of a line of video. Fundamentally, the
resampler is a set of low-pass filters. The actual response is
chosen by the system without user intervention.
–60
–70
010864212
FREQUENCY (MHz)
04984-0-014
Figure 13.Y S-VHS 18 Extra Wideband Filter (CCIR 601 Compliant)
Rev. 0 | Page 28 of 96
ADV7181B
CSFM[2:0] C Shaping Filter Mode, Address 0x17 [7]
The C shaping filter mode bits allow the user to select from a
range of low-pass filters for the chrominance signal. When
switched in automatic mode, the widest filter is selected based
on the video standard/format and user choice (see settings 000
and 001 in Table 30).
Figure 15 shows the responses of SH1 (narrowest) to SH5
(widest) in addition to the wideband mode (in red).
GAIN OPERATION
The gain control within the ADV7181B is done on a purely
digital basis. The input ADCs support a 9-bit range, mapped
into a 1.6 V analog voltage range. Gain correction takes place
after the digitization in the form of a digital multiplier.
Advantages of this architecture over the commonly used PGA
(programmable gain amplifier) before the ADC include the fact
that the gain is now completely independent of supply,
temperature, and process variations.
As shown in Figure 16, the ADV7181B can decode a video
signal as long as it fits into the ADC window. The components
to this are the amplitude of the input signal and the dc level it
resides on. The dc level is set by the clamping circuitry (see the
Clamp Operation section).
If the amplitude of the analog video signal is too high, clipping
may occur, resulting in visual artifacts. The analog input range
of the ADC, together with the clamp level, determines the
maximum supported amplitude of the video signal.
The minimum supported amplitude of the input video is
determined by the ADV7181B’s ability to retrieve horizontal
and vertical timing and to lock to the color burst, if present.
There are separate gain control units for luma and chroma data.
Both can operate independently of each other. The chroma unit,
however, can also take its gain value from the luma path.
The possible AGC modes are summarized in Table 31.
It is possible to freeze the automatic gain control loops. This
causes the loops to stop updating and the AGC determined gain
at the time of the freeze to stay active until the loop is either
unfrozen or the gain mode of operation is changed.
The currently active gain from any of the modes can be read
back. Refer to the description of the dual-function manual gain
registers, LG[11:0] Luma Gain and CG[11:0] Chroma Gain, in
the Luma Gain and the Chroma Gain sections.
MAXIMUM
VOLTAGE
MINIMUM
VOLTAGE
CLAMP
LEVEL
ANALOG VOLTAGE
RANGE SUPPORTED BY ADC (1.6V RANGE FOR ADV7181B)
SDP
DATA
ADC
Figure 16. Gain Control Overview
Rev. 0 | Page 29 of 96
PRE-
PROCESSOR
(DPP)
(GAIN SELECTION ONLY)
GAIN
CONTROL
04984-0-017
ADV7181B
(
≤
<
Table 31. AGC Modes
Input Video Type Luma Gain Chroma Gain
Any Manual gain luma. Manual gain chroma.
CVBS
Peak White.
Y/C
Peak White.
YPrPb Dependent on horizontal sync depth. Taken from luma path.
Luma Gain
LAGC[2:0] Luma Automatic Gain Control, Address 0x30 [7:0]
The luma automatic gain control mode bits select the mode of
operation for the gain control in the luma path.
There are ADI internal parameters to customize the peak white
AGC (blank level to sync tip). No override through
peak white.
AGC (blank level to sync tip). Automatic override
through peak white.
LG[11:0] Luma Gain, Address 0x2F [3:0];
Address 0x30 [7:0]; LMG[11:0] Luma Manual Gain,
Address 0x2F [3:0]; Address 0x30 [7:0]
Luma gain [11:0] is a dual-function register. If written to, a
desired manual luma gain can be programmed. This gain
becomes active if the LAGC[2:0] mode is switched to manual
fixed gain. Equation 1 shows how to calculate a desired gain.
If read back, this register returns the current gain value.
Depending on the setting in the LAGC[2:0] bits, this is one of
the following values:
•Luma manual gain value (LAGC[2:0] set to luma manual
LAGT[1:0] Luma Automatic Gain Timing, Address 0x2F [7:6]
•Luma automatic gain value (LAGC[2:0] set to any of the
The luma automatic gain timing register allows the user to
influence the tracking speed of the luminance automatic gain
control. Note that this register only has an effect if the
LAGC[2:0] register is set to 001, 010, 011, or 100 (automatic
gain control modes).
If peak white AGC is enabled and active (see the
Table 34. LG/LMG Function
LG[11:0]/LMG[11:0] Read/Write Description
LMG[11:0] = X Write
LG[11:0] Read Actually used gain.
STATUS_1[7:0] Address 0x10 [7:0] section), the actual gain
update speed is dictated by the peak white AGC loop and, as a
result, the LAGT settings have no effect. As soon as the part
leaves peak white AGC, LAGT becomes relevant again.
Dependent on color burst amplitude. Dependent on horizontal sync depth.
Taken from luma path.
Dependent on color burst amplitude.
Taken from luma path.
Dependent on color burst amplitude. Dependent on horizontal sync depth.
Taken from luma path.
Dependent on color burst amplitude.
Taken from luma path.
gain mode)
automatic modes)
40950
_=
GainLuma
LG
=
2048
Manual gain for luma
path.
)
(1)
2...0
The update speed for the peak white algorithm can be
customized by the use of internal parameters. Contact ADI for
more information.
Rev. 0 | Page 30 of 96
ADV7181B
For example, program the ADV7181B into manual fixed gain
mode with a desired gain of 0.89.
Use Equation 1 to convert the gain:
1.
0.89 × 2048 = 1822.72
2.
Truncate to integer value:
1822.72 = 1822
Convert to hexadecimal:
3.
1822d = 0x71E
Split into two registers and program:
4.
Luma Gain Control 1 [3:0] = 0x7
Luma Gain Control 2 [7:0] = 0x1E
Enable Manual Fixed Gain Mode:
5.
Set LAGC[2:0] to 000
BETACAM Enable Betacam Levels, Address 0x01 [5]
If YPrPb data is routed through the ADV7181B, the automatic
gain control modes can target different video input levels, as
outlined in Table 41. Note that the BETACAM bit is valid only if
the input mode is YPrPb (component). The BETACAM bit
basically sets the target value for AGC operation.
A review of the following sections is useful:
SETADC_sw_man_en, Manual Input Muxing Enable,
•
Address C4 [7] to find how component video (YPrPb) can
be routed through the ADV7181B.
Video Standard Selection to select the various standards,
•
for example, with and without pedestal.
The automatic gain control (AGC) algorithms adjust the levels
based on the setting of the BETACAM bit (see Table 35.).
Table 35. BETACAM Function
BETACAM Description
0 (default) Assuming YPrPb is selected as input format.
Selecting PAL with pedestal selects MII.
Selecting PAL without pedestal selects SMPTE.
Selecting NTSC with pedestal selects MII.
Selecting NTSC without pedestal selects SMPTE.
1 Assuming YPrPb is selected as input format.
Selecting PAL with pedestal selects BETACAM.
Selecting NTSC with pedestal selects BETACAM.
Selecting PAL without pedestal selects BETACAM
variant.
Selecting NTSC without pedestal selects BETACAM
variant.
Table 38. Betacam Levels
Name Betacam (mV) Betacam Variant (mV) SMPTE (mV) MII (mV)
Y Range 0 to 714 (incl. 7.5% pedestal) 0 to 714 0 to 700 0 to 700 (incl. 7.5% pedestal)
Pb and Pr Range –467 to +467 –505 to +505 –350 to +350 –324 to +324
Sync Depth 286 286 300 300
PW_UPD Peak White Update, Address 0x2B [0]
The peak white and average video algorithms determine the
gain based on measurements taken from the active video. The
PW_UPD bit determines the rate of gain change. LAGC[2:0]
must be set to the appropriate mode to enable the peak white or
average video mode in the first place. For more information,
refer to the LAGC[2:0] Luma Automatic Gain Control, Address
0x30 [7:0] section.
Setting PW_UPD to 0 updates the gain once per video line.
Setting PW_UPD to 1 (default) updates the gain once per field.
Chroma Gain
CAGC[1:0] Chroma Automatic Gain Control,
Address 0x2C [1:0]
The two bits of Color Automatic Gain Control mode select the
basic mode of operation for automatic gain control in the
chroma path.
Table 36. CAGC Function
CAGC[1:0] Description
00 Manual fixed gain (use CMG[11:0]).
01 Use luma gain for chroma.
10 (default) Automatic gain (based on color burst).
11 Freeze chroma gain.
CAGT[1:0] Chroma Automatic Gain Timing,
Address 0x2D [7:6]
The Chroma Automatic Gain Timing register allows the user to
influence the tracking speed of the chroma automatic gain
control. This register has an effect only if the CAGC[1:0]
register is set to 10 (automatic gain).
CG[11:0] Chroma Gain, Address 0x2D [3:0]; Address 0x2E [7:0]
CMG[11:0] Chroma Manual Gain, Address 0x2D [3:0];
Address 0x2E [7:0]
Chroma gain [11:0] is a dual-function register. If written to, a
desired manual chroma gain can be programmed. This gain
becomes active if the CAGC[1:0] mode is switched to manual
fixed gain. Refer to Equation 2 for calculating a desired gain.
If read back, this register returns the current gain value.
Depending on the setting in the CAGC[1:0] bits, this is either:
Chroma manual gain value (CAGC[1:0] set to chroma
•
manual gain mode).
Chroma automatic gain value (CAGC[1:0] set to any of the
•
automatic modes).
Table 39. CG/CMG Function
CG[11:0]/CMG[11:0] Read/Write Description
CMG[11:0] Write
CG[11:0] Read Currently active gain.
_=
()
GainChroma
1024
For example, freezing the automatic gain loop and reading back
the CG[11:0] register results in a value of 0x47A.
1.
Convert the readback value to decimal:
0x47A = 1146d
Apply Equation 2 to convert the readback value:
2.
1146/1024 = 1.12
CKE Color Kill Enable, Address 0x2B [6]
The Color Kill Enable bit allows the optional color kill function
to be switched on or off.
For QAM-based video standards (PAL and NTSC) as well as
FM based systems (SECAM), the threshold for the color kill
decision is selectable via the CKILLTHR[2:0] bits.
If color kill is enabled, and if the color carrier of the incoming
video signal is less than the threshold for 128 consecutive video
lines, color processing is switched off (black and white output).
To switch the color processing back on, another 128 consecutive
lines with a color burst greater than the threshold are required.
The color kill option only works for input signals with a
modulated chroma part. For component input (YPrPb), there is
no color kill.
Setting CKE to 0 disables color kill.
Manual gain for chroma
path.
40950
≤<=CG
(2)
4...0
CKILLTHR[2:0] Color Kill Threshold,
Address 0x3D [6:4]
The CKILLTHR[2:0] bits allow the user to select a threshold for
the color kill function. The threshold applies to only QAMbased (NTSC and PAL) or FM-modulated (SECAM) video
standards.
To enable the color kill function, the CKE bit must be set. For
settings 000, 001, 010, and 011, chroma demodulation inside the
ADV7181B may not work satisfactorily for poor input video
signals.
Table 40. CKILLTHR Function
Description
CKILLTHR[2:0] SECAM NTSC, PAL
000 No color kill Kill at < 0.5%
001 Kill at < 5% Kill at < 1.5%
010 Kill at < 7% Kill at < 2.5%
011 Kill at < 8% Kill at < 4.0%
100 (default) Kill at < 9.5% Kill at < 8.5%
101 Kill at < 15% Kill at < 16.0%
110 Kill at < 32% Kill at < 32.0%
111
Reserved for ADI internal use only. Do not
select.
CHROMA TRANSIENT IMPROVEMENT (CTI)
The signal bandwidth allocated for chroma is typically much
smaller than that of luminance. In the past, this was a valid way
to fit a color video signal into a given overall bandwidth because
the human eye is less sensitive to chrominance than to
luminance.
The uneven bandwidth, however, may lead to visual artifacts in
sharp color transitions. At the border of two bars of color, both
components (luma and chroma) change at the same time (see
Figure 17). Due to the higher bandwidth, the signal transition of
the luma component is usually a lot sharper than that of the
chroma component. The color edge is not sharp but blurred, in
the worst case, over several pixels.
LUMA SIGNAL WITH A
LUMA
SIGNAL
DEMODULATED
CHROMA
SIGNAL
Figure 17. CTI Luma/Chroma Transition
TRANSITION, ACCOMPANIED
BY A CHROMA TRANSITION
ORIGINAL, "SLOW" CHROMA
TRANSITION PRIOR TO CTI
SHARPENED CHROMA
TRANSITION AT THE
OUTPUT OF CTI
04984-0-018
Setting CKE to 1 (default) enables color kill.
Rev. 0 | Page 32 of 96
ADV7181B
The chroma transient improvement block examines the input
video data. It detects transitions of chroma, and can be
programmed to “steepen” the chroma edges in an attempt to
artificially restore lost color bandwidth. The CTI block,
however, operates only on edges above a certain threshold to
ensure that noise is not emphasized. Care has also been taken to
ensure that edge ringing and undesirable saturation or hue
distortion are avoided.
Sharpest mixing between sharpened and original
chroma signal.
Chroma transient improvements are needed primarily for
signals that experienced severe chroma bandwidth limitations.
For those types of signals, it is strongly recommended to enable
the CTI block via CTI_EN.
The CTI_AB_EN bit enables an alpha-blend function within
the CTI block. If set to 1, the alpha blender mixes the transient
improved chroma with the original signal. The sharpness of the
alpha blending can be configured via the CTI_AB[1:0] bits.
For the alpha blender to be active, the CTI block must be
enabled via the CTI_EN bit.
Setting CTI_AB_EN to 0 disables the CTI alpha blender.
Setting CTI_AB_EN to 1 (default) enables the CTI alpha-blend
mixing function.
The CTI_C_TH[7:0] value is an unsigned, 8-bit number specifying how big the amplitude step in a chroma transition has to
be in order to be steepened by the CTI block. Programming a
small value into this register causes even smaller edges to be
steepened by the CTI block. Making CTI_C_TH[7:0] a large
value causes the block to improve large transitions only.
The default value for CTI_C_TH[7:0] is 0x08, indicating the
threshold for the chroma edges prior to CTI.
DIGITAL NOISE REDUCTION (DNR)
Digital noise reduction is based on the assumption that high
frequency signals with low amplitude are probably noise and
that their removal, therefore, improves picture quality.
DNR_EN Digital Noise Reduction Enable,
Address 0x4D [5]
The DNR_EN bit enables the DNR block or bypasses it.
Setting DNR_EN to 0 bypasses DNR (disables it).
Setting DNR_EN to 1 (default) enables digital noise reduction
on the luma data.
The CTI_AB[1:0] controls the behavior of alpha blend circuitry
that mixes the sharpened chroma signal with the original one. It
thereby controls the visual impact of CTI on the output data.
For CTI_AB[1:0] to become active, the CTI block must be
enabled via the CTI_EN bit, and the alpha blender must be
switched on via CTI_AB_EN.
Sharp blending maximizes the effect of CTI on the picture, but
may also increase the visual impact of small amplitude, high
frequency chroma noise.
The DNR_TH[7:0] value is an unsigned 8-bit number used to
determine the maximum edge that is interpreted as noise and
therefore blanked from the luma data. Programming a large
value into DNR_TH[7:0] causes the DNR block to interpret
even large transients as noise and remove them. The effect on
the video data is, therefore, more visible.
Programming a small value causes only small transients to be
seen as noise and to be removed.
The recommended DNR_TH[7:0] setting for A/V inputs is
0x04, and the recommended DNR_TH[7:0] setting for tuner
inputs is 0x0A.
The default value for DNR_TH[7:0] is 0x08, indicating the
threshold for maximum luma edges to be interpreted as noise.
ADV7181B
COMB FILTERS
The comb filters of the ADV7181B have been greatly improved
to automatically handle video of all types, standards, and levels
of quality. The NTSC and PAL configuration registers allow the
user to customize comb filter operation, depending on which
video standard is detected (by autodetection) or selected (by
manual programming). In addition to the bits listed in this
section, there are some further ADI internal controls; contact
ADI for more information.
The NSFSEL[1:0] control selects how much of the overall signal
bandwidth is fed to the combs. A narrow split filter selection
gives better performance on diagonal lines, but leaves more dot
crawl in the final output image. The opposite is true for selecting
a wide bandwidth split filter.
The NSFSEL[1:0] control selects how much of the overall signal
bandwidth is fed to the combs. A wide split filter selection
eliminates dot crawl, but shows imperfections on diagonal lines.
The opposite is true for selecting a narrow bandwidth split filter.
100 Disable chroma comb.
101 Fixed chroma comb (top lines of line memory).
110 Fixed chroma comb (all lines of line memory).
111 Fixed chroma comb (bottom lines of line memory).
Adaptive 3-line chroma comb for CTAPSP = 01.
Adaptive 4-line chroma comb for CTAPSP = 10.
Adaptive 5-line chroma comb for CTAPSP = 11.
Fixed 2-line chroma comb for CTAPSP = 01.
Fixed 3-line chroma comb for CTAPSP = 10.
Fixed 4-line chroma comb for CTAPSP = 11.
Fixed 3-line chroma comb for CTAPSP = 01.
Fixed 4-line chroma comb for CTAPSP = 10.
Fixed 5-line chroma comb for CTAPSP = 11.
Fixed 2-line chroma comb for CTAPSP = 01.
Fixed 3-line chroma comb for CTAPSP = 10.
Fixed 4-line chroma comb for CTAPSP = 11.
YCMP[2:0] Luma Comb Mode PAL, Address 0x39 [2:0]
Table 49. YCMP Function
YCMP[2:0] Description Configuration
0xx (default) Adaptive comb mode. Adaptive 5 lines (3 taps) luma comb.
100 Disable luma comb. Use low-pass/notch filter; see the Y Shaping Filter section.
101 Fixed luma comb (top lines of line memory). Fixed 3 lines (2 taps) luma comb.
110 Fixed luma comb (all lines of line memory). Fixed 5 lines (3 taps) luma comb.
111 Fixed luma comb (bottom lines of line memory). Fixed 3 lines (2 taps) luma comb.
Rev. 0 | Page 35 of 96
ADV7181B
S
AV CODE INSERTION AND CONTROLS
This section describes the I2C based controls that affect
Insertion of AV codes into the data stream.
•
Data blanking during the vertical blank interval (VBI).
•
The range of data values permitted in the output data
•
stream.
•
The relative delay of luma versus chroma signals.
Note that some of the decoded VBI data is being inserted
during the horizontal blanking interval. See the Gemstar Data
Recovery section for more information.
BT656-4 ITU Standard BT-R.656-4 Enable, Address 0x04 [7]
The ITU has changed the position for toggling of the V bit
within the SAV EAV codes for NTSC between revisions 3 and 4.
The BT656-4 standard bit allows the user to select an output
mode that is compliant with either the previous or the new
standard. For further information, review the standard at
http://www.itu.int.
Note that the standard change affects NTSC only and has no
bearing on PAL.
When BT656-4 is 0 (default), the BT656-3 specification is used.
The V bit goes low at EAV of Lines 10 and 273.
When BT656-4 is 1, the BT656-4 specification is used. The V bit
goes low at EAV of Lines 20 and 283.
SD_DUP_AV Duplicate AV codes, Address 0x03 [0]
Depending on the output interface width, it may be necessary to
duplicate the AV codes from the luma path into the chroma path.
In an 8-bit-wide output interface (Cb/Y/Cr/Y interleaved data),
the AV codes are defined as FF/00/00/AV, with AV being the
transmitted word that contains information about H/V/F.
In this output interface mode, the following assignment takes
place: Cb = FF, Y = 00, Cr = 00, and Y = AV.
In a 16-bit output interface where Y and Cr/Cb are delivered via
separate data buses, the AV code is over the whole 16 bits. The
SD_DUP_AV bit allows the user to replicate the AV codes on
both busses, so the full AV sequence can be found on the Y bus
as well as on the Cr/Cb bus. See Figure 18.
When SD_DUP_AV is 0 (default), the AV codes are in single
fashion (to suit 8-bit interleaved data output).
When SD_DUP_AV is 1, the AV codes are duplicated (for
16-bit interfaces).
VBI_EN Vertical Blanking Interval Data Enable,
Address 0x03 [7]
The VBI enable bit allows data such as intercast and closed
caption data to be passed through the luma channel of the
decoder with a minimal amount of filtering. All data for Lines 1
to 21 is passed through and available at the output port. The
ADV7181B does not blank the luma data, and automatically
switches all filters along the luma data path into their widest
bandwidth. For active video, the filter settings for YSH and YPK
are restored.
Refer to the BL_C_VBI Blank Chroma during VBI section for
information on the chroma path.
When VBI_EN is 0 (default), all video lines are filtered/scaled.
When VBI_EN is 1, only the active video region is
filtered/scaled.
SD_DUP_AV = 1SD_DUP_AV = 0
Y DATA BUS00AVYFF0000AVY
FFCr/Cb DATA BU
0000AVCbFF00Cb
AV CODE SECTIONAV CODE SECTION
Figure 18. AV Code Duplication Control
Rev. 0 | Page 36 of 96
Cb/Y/Cr/Y
INTERLEAVED
8-BIT INTERFACE16-BIT INTERFACE16-BIT INTERFACE
FF0000AV Cb
AV CODE SECTION
04984-0-019
ADV7181B
BL_C_VBI Blank Chroma during VBI, Address 0x04 [2]
LTA[1:0] Luma Timing Adjust, Address 0x27 [1:0]
Setting BL_C_VBI high, the Cr and Cb values of all VBI lines
are blanked. This is done so any data that may arrive during VBI
is not decoded as color and output through Cr and Cb. As a
result, it is possible to send VBI lines into the decoder, then
output them through an encoder again, undistorted. Without
this blanking, any wrongly decoded color is encoded by the
video encoder; therefore, the VBI lines are distorted.
Setting BL_C_VBI to 0 decodes and outputs color during VBI.
Setting BL_C_VBI to 1 (default) blanks Cr and Cb values
during VBI.
RANGE Range Selection, Address 0x04 [0]
AV codes (as per ITU-R BT-656, formerly known as CCIR-656)
consist of a fixed header made up of 0xFF and 0x00 values.
These two values are reserved and therefore are not to be used
for active video. Additionally, the ITU specifies that the nominal
range for video should be restricted to values between 16 and
235 for luma and 16 to 240 for chroma.
The RANGE bit allows the user to limit the range of values
output by the ADV7181B to the recommended value range. In
any case, it ensures that the reserved values of 255d (0xFF) and
00d (0x00) are not presented on the output pins unless they are
part of an AV code header.
The Chroma Timing Adjust register allows the user to specify a
timing difference between chroma and luma samples. This may
be used to compensate for external filter group delay differences
in the luma versus chroma path, and to allow a different number
of pipeline delays while processing the video downstream.
Review this functionality together with the LTA[1:0] register.
The chroma can be delayed/advanced only in chroma pixel
steps. One chroma pixel step is equal to two luma pixels. The
programmable delay occurs after demodulation, where one can
no longer delay by luma pixel steps.
Enabling the AUTO_PDC_EN function activates a function
within the ADV7181B that automatically programs the
LTA[1:0] and CTA[2:0] to have the chroma and luma data
match delays for all modes of operation. If set, manual registers
LTA[1:0] and CTA[2:0] are not used. If the automatic mode is
disabled (via setting the AUTO_PDC_EN bit to 0), the values
programmed into LTA[1:0] and CTA[2:0] registers become
active.
When AUTO_PDC_EN is 0, the ADV7181 uses the LTA[1:0]
and CTA[2:0] values for delaying luma and chroma samples.
Refer to the LTA[1:0] Luma Timing Adjust, Address 0x27 [1:0]
and the CTA[2:0] Chroma Timing Adjust, Address 0x27 [5:3]
sections.
When AUTO_PDC_EN is 1 (default), the ADV7181
automatically determines the LTA and CTA values to have luma
and chroma aligned at the output.
Rev. 0 | Page 37 of 96
For manual programming, use the following defaults:
The position of this edge is controlled by placing a binary
number into HSE[10:0]. The number applied offsets the edge
with respect to an internal counter that is reset to 0 immediately
after EAV code FF,00,00,XY (see Figure 19). HSE is set to
00000000000b, which is 0 LLC1 clock cycles from count[0].
The default value of HSE[10:0] is 000, indicating that the HS
pulse ends 0 pixels after falling edge of HS.
The HS Begin and HS End registers allow the user to freely
position the HS output (pin) within the video line. The values in
HSB[10:0] and HSE[10:0] are measured in pixel units from the
falling edge of HS. Using both values, the user can program
both the position and length of the HS output signal.
To shift the HS toward active video by 20 LLC1s, add 20
LLC1s to both HSB and HSE, i.e., HSB[10:0] =
[00000010110], HSE[10:0] = [00000010100].
2.
To shift the HS away from active video by 20 LLC1s, add
1696 LLC1s to both HSB and HSE (for NTSC), that is,
HSB[10:0] = [11010100010], HSE[10:0] = [11010100000].
The position of this edge is controlled by placing a binary
number into HSB[10:0]. The number applied offsets the edge
1696 is derived from the NTSC total number of Pixels =
1716.
with respect to an internal counter that is reset to 0 immediately
after EAV code FF,00,00,XY (see Figure 19). HSB is set to
00000000010b, which is 2 LLC1 clock cycles from count[0].
To move 20 LLC1s away from active video is equal to subtracting
20 from 1716 and adding the result in binary to both HSB[10:0]
and HSE[10:0].
The default value of HSB[10:0] is 0x002, indicating that the HS
pulse starts 2 pixels after the falling edge of HS.
PHS Polarity HS, Address 0x37 [7]
The polarity of the HS pin can be inverted using the PHS bit.
When PHS is 0 (default), HS is active high.
When PHS is 1, HS is active low.
Table 53. HS Timing Parameters (see Figure 19)
Characteristic
Standard
HS Begin Adjust
(HSB[10:0])
(default)
HS End Adjust
(HSE[10:0])(default)
HS to Active Video (LLC1
Clock Cycles)
(C in Figure 19) (default)
The following controls allow the user to configure the behavior
of the VS and FIELD output pins, as well as the generation of
embedded AV codes:
•
ADV encoder-compatible signals via NEWAVMODE PVS, PF
•
HVSTIM
•
VSBHO, VSBHE
•
VSBHO VS Begin Horizontal Position Odd, Address 0x32 [7]
The VSBHO and VSBHE bits select the position within a line at
which the VS pin (not the bit in the AV code) becomes active.
Some follow-on chips require the VS pin to only change state
when HS is high/low.
When VSBHO is 0 (default), the VS pin goes high at the middle
of a line of video (odd field).
When VSBHO is 1, the VS pin changes state at the start of a line
(odd field).
VSEHO, VSEHE
•
For NTSC control:
•
o NVBEGDELO, NVBEGDELE, NVBEGSIGN,
NVBEG[4:0]
o NVENDDELO, NVENDDELE, NVENDSIGN,
NVEND[4:0]
o NFTOGDELO, NFTOGDELE, NFTOGSIGN,
NFTOG[4:0]
For PAL control:
•
o PVBEGDELO, PVBEGDELE, PVBEGSIGN,
PVBEG[4:0]
o PVENDDELO, PVENDDELE, PVENDSIGN,
PVEND[4:0]
o PFTOGDELO, PFTOGDELE, PFTOGSIGN,
PFTOG[4:0]
NEWAVMODE New AV Mode, Address 0x31 [4]
When NEWAVMODE is 0, EAV/SAV codes are generated to
suit ADI encoders. No adjustments are possible.
Setting NEWAVMODE to 1 (default) enables the manual
position of the VSYNC, Field, and AV codes using Registers
0x34 to 0x37 and 0xE5 to 0xEA. Default register settings are
CCIR656 compliant; see Figure 20 for NTSC and Figure 25 for
PAL. For recommended manual user settings, see Table 54 and
Figure 21 for NTSC; see Table 55 and Figure 26 for PAL.
VSBHE VS Begin Horizontal Position Even, Address 0x32 [6]
The VSBHO and VSBHE bits select the position within a line at
which the VS pin (not the bit in the AV code) becomes active.
Some follow-on chips require the VS pin to only change state
when HS is high/low.
When VSBHE is 0 (default), the VS pin goes high at the middle
of a line of video (even field).
When VSBHE is 1, the VS pin changes state at the start of a line
(even field).
VSEHO VS End Horizontal Position Odd, Address 0x33 [7]
The VSEHO and VSEHE bits select the position within a line at
which the VS pin (not the bit in the AV code) becomes active.
Some follow-on chips require the VS pin to only change state
when HS is high/low.
When VSEHO is 0 (default), the VS pin goes low (inactive) at
the middle of a line of video (odd field).
When VSEHO is 1, the VS pin changes state at the start of a line
(odd field).
VSEHE VS End Horizontal Position Even, Address 0x33 [6]
The VSEHO and VSEHE bits select the position within a line at
which the VS pin (not the bit in the AV code) becomes active.
Some follow-on chips require the VS pin to only change state
when HS is high/low.
When VSEHE is 0 (default), the VS pin goes low (inactive) at
the middle of a line of video (even field).
HVSTIM Horizontal VS Timing, Address 0x31 [3]
The HVSTIM bit allows the user to select where the VS signal is
asserted within a line of video. Some interface circuitry may
require VS to go low while HS is low.
When HVSTIM is 0 (default), the start of the line is relative to
HSE.
When HVSTIM is 1, the start of the line is relative to HSB.
Rev. 0 | Page 39 of 96
When VSEHE is 1, the VS pin changes state at the start of a line
(even field).
PVS Polarity VS, Address 0x37 [5]
The polarity of the VS pin can be inverted using the PVS bit.
When PVS is 0 (default), VS is active high.
When PVS is 1, VS is active low.
ADV7181B
PF Polarity FIELD, Address 0x37 [3]
The polarity of the FIELD pin can be inverted using the PF bit.
Figure 21. NTSC Typical VSync/Field Positions Using Register Writes in Table 54
04984-0-022
Rev. 0 | Page 40 of 96
ADV7181B
Table 54. Recommended User Settings for NTSC
(See Figure 21)
Register Register Name Write
0x31 VSync Field Control 1 0x12
0x32 VSync Field Control 2 0x81
0x33 VSync Field Control 3 0x84
0x37 Polarity 0x29
0xE5 NTSV_V_Bit_Beg 0x0
0xE6 NTSC_V_Bit_End 0x3
0xE7 NTSC_F_Bit_Tog 0x85
NVBEGSIGN NTSC VSync Begin Sign, Address 0xE5 [5]
Setting NVBEGSIGN to 0 delays the start of VSync. Set for user
manual programming.
Setting NVBEGSIGN to 1 (default) advances the start of VSync.
Not recommended for user programming.
NVBEG[4:0] NTSC VSync Begin, Address 0xE5 [4:0]
The default value of NVBEG is 00101, indicating the NTSC
VSync begin position.
ADVANCE BEGIN OF
VSYNC BY NVBEG[4:0]
NOT VALID FOR USER
PROGRAMMING
NVBEGDELO
ADDITIONAL
DELAY BY
1 LINE
VSBHO
ADVANCE BY
0.5 LINE
10
10
NVBEGSIGN
ODD FIELD?
01
DELAY BEGIN OF
VSYNC BY NVBEG[4:0]
NOYES
NVBEGDELE
10
ADDITIONAL
DELAY BY
1 LINE
VSBHE
10
ADVANCE BY
0.5 LINE
For all NTSC/PAL VSync timing controls, both the V bit in the
AV code and the VSync on the VS pin are modified.
ADVANCE END OF
VSYNC BY NVEND[4:0]
NOT VALID FOR USER
PROGRAMMING
NVENDDELO
ADDITIONAL
DELAY BY
1 LINE
VSEHO
NVENDSIGN
ODD FIELD?
10
10
01
DELAY END OF VSYNC
BY NVEND[4:0]
NOYES
NVENDDELE
10
ADDITIONAL
DELAY BY
1 LINE
VSEHE
10
VSYNC BEGIN
04984-0-023
Figure 22. NTSC VSync Begin
NVBEGDELO NTSC VSync Begin Delay on Odd Field,
Address 0xE5 [7]
When NVBEGDELO is 0 (default), there is no delay.
Setting NVBEGDELO to 1 delays VSync going high on an odd
field by a line relative to NVBEG.
NVBEGDELE NTSC Vsync Begin Delay on Even Field,
Address 0xE5 [6]
When NVBEGDELE is 0 (default), there is no delay.
Setting NVBEGDELE to 1 delays VSync going high on an even
field by a line relative to NVBEG.
Rev. 0 | Page 41 of 96
ADVANCE BY
0.5 LINE
VSYNC END
ADVANCE BY
0.5 LINE
04984-0-024
Figure 23. NTSC VSync End
NVENDDELO NTSC VSync End Delay on Odd Field,
Address 0xE6 [7]
When NVENDDELO is 0 (default), there is no delay.
Setting NVENDDELO to 1 delays VSync from going low on an
odd field by a line relative to NVEND.
ADV7181B
NVENDDELE NTSC VSync End Delay on Even Field,
Address 0xE6 [6]
NFTOGSIGN
01
When NVENDDELE is set to 0 (default), there is no delay.
Setting NVENDDELE to 1 delays VSync from going low on an
even field by a line relative to NVEND.
NVENDSIGN NTSC VSync End Sign, Address 0xE6 [5]
Setting NVENDSIGN to 0 (default) delays the end of VSync. Set
for user manual programming.
Setting NVENDSIGN to 1 advances the end of VSync. Not
recommended for user programming.
NVEND NTSC[4:0] VSync End, Address 0xE6 [4:0]
The default value of NVEND is 00100, indicating the NTSC
VSync end position.
For all NTSC/PAL VSync timing controls, both the V bit in the
AV code and the VSync on the VS pin are modified.
NFTOGDELO NTSC Field Toggle Delay on Odd Field,
Address 0xE7 [7]
When NFTOGDELO is 0 (default), there is no delay.
ADVANCE TOGGLE OF
FIELD BY NFTOG[4:0]
NOT VALID FOR USER
PROGRAMMING
NFTOGDELO
ADDITIONAL
DELAY BY
1 LINE
ODD FIELD?
10
FIELD
TOGGLE
Figure 24. NTSC FIELD Toggle
DELAY TOGGLE OF
FIELD BY NFTOG[4:0]
NOYES
NFTOGDELE
10
ADDITIONAL
DELAY BY
1 LINE
NFTOGSIGN NTSC Field Toggle Sign, Address 0xE7 [5]
Setting NFTOGSIGN to 0 delays the field transition. Set for
user manual programming.
04984-0-025
Setting NFTOGDELO to 1 delays the field toggle/transition on
an odd field by a line relative to NFTOG.
NFTOGDELE NTSC Field Toggle Delay on Even Field,
Address 0xE7 [6]
When NFTOGDELE is 0, there is no delay.
Setting NFTOGDELE to 1 (default) delays the field toggle/
transition on an even field by a line relative to NFTOG.
Setting NFTOGSIGN to 1 (default) advances the field
transition. Not recommended for user programming.
NFTOG[4:0] NTSC Field Toggle, Address 0xE7 [4:0]
The default value of NFTOG is 00011, indicating the NTSC
Field toggle position.
For all NTSC/PAL Field timing controls, both the F bit in the
AV code and the Field signal on the FIELD/DE pin are modified.
Table 55. Recommended User Settings for PAL
(see Figure 26)
Register Register Name Write
0x31 VSync Field Control 1 0x12
0x32 VSync Field Control 2 0x81
0x33 VSync Field Control 3 0x84
0x37 Polarity 0x29
0xE8 PAL_V_Bit_Beg 0x1
0xE9 PAL_V_Bit_End 0x4
0xEA PAL_F_Bit_Tog 0x6
Rev. 0 | Page 42 of 96
ADV7181B
OUTPUT
VIDEO
OUTPUT
VIDEO
FIELD 1
62262362462512345678910222324
H
V
PVBEG[4:0] = 0x5PVEND[4:0] = 0x4
F
PFTOG[4:0] = 0x3
FIELD 2
310311312313314315316317318319320321 322335336337
H
V
PVBEG[4:0] = 0x5PVEND[4:0] = 0x4
F
PFTOG[4:0] = 0x3
Figure 25. PAL Default (BT.656). The polarity of H, V, and F is embedded in the data.
04984-0-026
OUTPUT
VIDEO
OUTPUT
OUTPUT
FIELD
OUTPUT
OUTPUT
VIDEO
OUTPUT
OUTPUT
FIELD
OUTPUT
FIELD 1
622623624
HS
VS
12345 678 91011 2324
625
PVBEG[4:0] = 0x1PVEND[4:0] = 0x4
PFTOG[4:0] = 0x6
FIELD 2
310311312
HS
VS
314315316317318319320321322323336337
313
PVBEG[4:0] = 0x1PVEND[4:0] = 0x4
PFTOG[4:0] = 0x6
04984-0-027
Figure 26. PAL Typical VSync/Field Positions Using Register Writes in Table 55
Rev. 0 | Page 43 of 96
ADV7181B
ADVANCE BEGIN OF
VSYNC BY PVBEG[4:0]
NOT VALID FOR USER
PROGRAMMING
PVBEGSIGN
ODD FIELD?
01
DELAY BEGIN OF
VSYNC BY PVBEG[4:0]
NOYES
PVBEG[4:0] PAL VSync Begin, Address 0xE8 [4:0]
The default value of PVBEG is 00101, indicating the PAL VSync
begin position.
For all NTSC/PAL VSync timing controls, both the V bit in the
AV code and the VSync on the VS pin are modified.
PVENDSIGN
01
PVBEGDELO
10
ADDITIONAL
DELAY BY
1 LINE
VSBHO
10
ADVANCE BY
0.5 LINE
VSYNC BEGIN
PVBEGDELE
10
ADDITIONAL
DELAY BY
1 LINE
VSBHE
10
ADVANCE BY
0.5 LINE
04984-0-028
Figure 27. PAL VSync Begin
PVBEGDELO PAL VSync Begin Delay on Odd Field,
Address 0xE8 [7]
When PVBEGDELO is 0 (default), there is no delay.
Setting PVBEGDELO to 1 delays VSync going high on an odd
field by a line relative to PVBEG.
ADVANCE END OF
VSYNC BY PVEND[4:0]
NOT VALID FOR USER
PROGRAMMING
PVENDDELO
ADDITIONAL
DELAY BY
1 LINE
VSEHO
ADVANCE BY
0.5 LINE
ODD FIELD?
10
10
VSYNC END
Figure 28. PAL VSync End
DELAY END OF VSYNC
BY PVEND[4:0]
NOYES
PVENDDELE
10
ADDITIONAL
DELAY BY
1 LINE
VSEHE
10
ADVANCE BY
0.5 LINE
04984-0-029
PVBEGDELE PAL VSync Begin Delay on Even Field,
Address 0xE8 [6]
When PVBEGDELE is 0, there is no delay.
Setting PVBEGDELE to 1 (default) delays VSync going high on
an even field by a line relative to PVBEG.
PVBEGSIGN PAL VSync Begin Sign, Address 0xE8 [5]
Setting PVBEGSIGN to 0 delays the beginning of VSync. Set for
user manual programming.
Setting PVBEGSIGN to 1(default) advances the beginning of
VSync. Not recommended for user programming.
Rev. 0 | Page 44 of 96
PVENDDELO PAL VSync End Delay on Odd Field,
Address 0xE9,[7]
When PVENDDELO is 0 (default), there is no delay.
Setting PVENDDELO to 1 delays VSync going low on an odd
field by a line relative to PVEND.
PVENDDELE PAL VSync End Delay on Even Field,
Address 0xE9,[6]
When PVENDDELE is 0 (default), there is no delay.
Setting PVENDDELE to 1 delays VSync going low on an even
field by a line relative to PVEND.
ADV7181B
PVENDSIGN PAL VSync End Sign, Address 0xE9 [5]
Setting PVENDSIGN to 0 (default) delays the end of VSync. Set
for user manual programming.
Setting PVENDSIGN to 1 advances the end of VSync. Not
recommended for user programming.
PVEND[4:0] PAL VSync End, Address 0xE9,[4:0]
The default value of PVEND is 10100, indicating the PAL VSync
end position.
For all NTSC/PAL VSync timing controls, both the V bit in the
AV code and the VSync on the VS pin are modified.
ADVANCE TOGGLE OF
FIELD BY PTOG[4:0]
NOT VALID FOR USER
PROGRAMMING
PFTOGDELO
10
PFTOGSIGN
ODD FIELD?
01
DELAY TOGGLE OF
FIELD BY PFTOG[4:0]
NOYES
PFTOGDELE
10
PFTOGDELO PAL Field Toggle Delay on Odd Field,
Address 0xEA [7]
When PFTOGDELO is 0 (default), there is no delay.
Setting PFTOGDELO to 1 delays the F toggle/transition on an
odd field by a line relative to PFTOG.
PFTOGDELE PAL Field Toggle Delay on Even Field,
Address 0xEA [6]
When PFTOGDELE is 0, there is no delay.
Setting PFTOGDELE to 1 (default) delays the F
toggle/transition on an even field by a line relative to PFTOG.
PFTOGSIGN PAL Field Toggle Sign, Address 0xEA [5]
Setting PFTOGSIGN to 0 delays the Field transition. Set for
user manual programming.
Setting PFTOGSIGN to 1 (default) advances the Field
transition. Not recommended for user programming.
PFTOG PAL Field Toggle, Address 0xEA [4:0]
The default value of PFTOG is 00011, indicating the PAL Field
toggle position.
For all NTSC/PAL Field timing controls, the F bit in the AV
code and the Field signal on the FIELD/DE pin are modified.
ADDITIONAL
DELAY BY
1 LINE
Figure 29. PAL F Toggle
FIELD
TOGGLE
ADDITIONAL
DELAY BY
1 LINE
04984-0-030
SYNC PROCESSING
The ADV7181B has two additional sync processing blocks that
postprocess the raw synchronization information extracted
from the digitized input video. If desired, the blocks can be
disabled via the following two I
ENHSPLL Enable HSync Processor, Address 0x01 [6]
The HSYNC processor is designed to filter incoming HSyncs
that have been corrupted by noise, providing improved performance for video signals with stable time bases but poor SNR.
Setting ENHSPLL to 0 disables the HSync processor.
Setting ENHSPLL to 1 (default) enables the HSync processor.
ENVSPROC Enable VSync Processor, Address 0x01 [3]
This block provides extra filtering of the detected VSyncs to
give improved vertical lock.
Setting ENVSPROC to 0
Setting ENVSPROC to 1(default) enables the VSync processor.
2
C bits.
disables the VSync processor.
Rev. 0 | Page 45 of 96
ADV7181B
VBI DATA DECODE
The following low data rate VBI signals can be decoded by the
ADV7181B:
CCAPD Closed Caption Detected, Address 0x90 [1]
Logic 1 for this bit indicates that the data in the CCAP1 and
CCAP2 registers is valid.
Wide screen signaling (WSS)
•
Copy generation management systems (CGMS)
•
Closed captioning (CCAP)
•
EDTV
•
Gemstar 1×- and 2×-compatible data recovery
•
The presence of any of the above signals is detected and, if
applicable, a parity check is performed. The result of this testing
is contained in a confidence bit in the VBI Info[7:0] register.
Users are encouraged to first examine the VBI Info register
before reading the corresponding data registers. All VBI data
decode bits are read-only.
All VBI data registers are double-buffered with the field signals.
This means that data is extracted from the video lines and
2
appears in the appropriate I
C registers with the next field
transition. They are then static until the next field.
The user should start an I
2
C read sequence with VS by first
examining the VBI Info register. Then, depending on what data
was detected, the appropriate data registers should be read.
The data registers are filled with decoded VBI data even if their
corresponding detection bits are low; it is likely that bits within
the decoded data stream are wrong.
The closed captioning data (CCAP) is available in the I
2
C
registers, and is also inserted into the output video data stream
during horizontal blanking.
The Gemstar-compatible data is not available in the I
2
C
registers, and is inserted into the data stream only during
horizontal blanking.
The CCAPD bit goes high if the rising edge of the start bit is
detected within a time window, and if the polarity of the parity
bit matches the transmitted data.
When CCAPD is 0, no CCAP signals are detected and
confidence in the decoded data is low.
When CCAPD is 1, the CCAP sequence is detected and
confidence in the decoded data is high.
EDTVD EDTV Sequence Detected, Address 0x90 [2]
Logic 1 for this bit indicates that the data in the EDTV1, 2, 3
registers is valid.
The EDTVD bit goes high if the rising edge of the start bit is
detected within a time window, and if the polarity of the parity
bit matches the transmitted data.
When EDTVD is 0, no EDTV sequence is detected. Confidence
in decoded data is low.
When EDTVD is 1, an EDTV sequence is detected. Confidence
in decoded data is high.
CGMSD CGMS-A Sequence Detected, Address 0x90 [3]
Logic 1 for this bit indicates that the data in the CGMS1, 2, 3
registers is valid. The CGMSD bit goes high if a valid CRC
checksum has been calculated from a received CGMS packet.
When CGMSD is 0, no CGMS transmission is detected and
confidence in decoded data is low.
When CGMSD is 1, the CGMS sequence is decoded and
confidence in decoded data is high.
Logic 1 for this bit indicates that the data in the WSS1 and
WSS2 registers is valid.
The WSSD bit goes high if the rising edge of the start bit is
detected within a time window, and if the polarity of the parity
bit matches the transmitted data.
When WSSD is 0, no WSS is detected and confidence in the
decoded data is low.
When WSSD is 1, WSS is detected and confidence in the
decoded data is high.
Rev. 0 | Page 46 of 96
CRC_ENABLE CRC CGMS-A Sequence, Address 0xB2 [2]
For certain video sources, the CRC data bits may have an
invalid format. In such circumstances, the CRC checksum
validation procedure can be disabled. The CGMSD bit goes
high if the rising edge of the start bit is detected within a time
window.
When CRC_ENABLE is 0, no CRC check is performed. The
CGMSD bit goes high if the rising edge of the start bit is
detected within a time window.
When CRC_ENABLE is 1 (default), CRC checksum is used to
validate the CGMS sequence. The CGMSD bit goes high for a
valid checksum. ADI recommended setting.
Figure 30 shows the bit correspondence between the analog
video waveform and the WSS1/WSS2 registers. WSS2[7:6] are
undetermined and should be masked out by software.
Figure 31 shows the bit correspondence between the analog
video waveform and the EDTV1/EDTV2/EDTV3 registers.
EDTV3[7:6] are undetermined and should be masked out by
software. EDTV3[5] is reserved for future use and, for now,
contains a 0. The three LSBs of the EDTV waveform are
currently not supported.
WSS2[5:0]WSS1[7:0]
0 1 2 3 4 5 6 7 0 1 2 3 4 5
38.4µs
42.5µs
ACTIVE
VIDEO
11.0µs
RUN-IN
SEQUENCE
START
CODE
Figure 30.WSS Data Extraction
Table 56. WSS Access Information
Signal Name Register Location Address Register Default Value
WSS1 [7:0] WSS 1 [7:0] 145d 0x91 Readback Only
WSS2 [5:0] WSS 2 [5:0] 146d 0x92 Readback Only
04984-0-031
EDTV1[7:0]EDTV2[7:0]EDTV3[5:0]
01
2
NOT SUPPORTED
3456701234567012345
Figure 31. EDTV Data Extraction
Table 57. EDTV Access Information
Signal Name Register Location Address Register Default Value
EDTV1[7:0] EDTV 1 [7:0] 147d 0x93 Readback Only
EDTV2[7:0] EDTV 2 [7:0] 148d 0x94 Readback Only
EDTV3[7:0] EDTV 3 [7:0] 149d 0x95 Readback Only
Figure 32 shows the bit correspondence between the analog
video waveform and the CGMS1/CGMS2/CGMS3 registers.
CGMS3[7:4] are undetermined and should be masked out by
software.
Figure 33 shows the bit correspondence between the analog
video waveform and the CCAP1/CCAP2 registers.
CCAP1[7] contains the parity bit from the first word.
CCAP2[7] contains the parity bit from the second word.
Refer to the GDECAD Gemstar Decode Ancillary Data Format,
Address 0x4C [0] section.
+100 IRE
+70 IRE
0 IRE
–40 IRE
11.2µs
2.235µs
012 3 45 6 7 01 2 34 56 7 0 12 3
±
20ns
CGMS2[7:0]CGMS3[3:0]CGMS1[7:0]REF
49.1µs±0.5µs
CRC SEQUENCE
Figure 32. CGMS Data Extraction
Table 58. CGMS Access Information
Signal Name Register Location Address Register Default Value
CGMS1[7:0] CGMS 1 [7:0] 150d 0x96 Readback Only
CGMS2[7:0] CGMS 2 [7:0] 151d 0x97 Readback Only
CGMS3[3:0] CGMS 3 [3:0] 152d 0x98 Readback Only
04984-0-033
10.5±0.25µs12.91µs
7 CYCLES
50 IRE
40 IRE
REFERENCE COLOR BURST
FREQUENCY = F
(9 CYCLES)
= 3.579545MHz
SC
AMPLITUDE = 40 IRE
10.003µs
27.382µs
OF 0.5035MHz
(CLOCK RUN-IN)
CCAP1[7:0]
0
1
2 3 4 5 6 7 0 1 2 3 4 5 67
S
T
A
R
T
P
A
R
I
T
Y
33.764µs
CCAP2[7:0]
BYTE 1BYTE 0
P
A
R
I
T
Y
Figure 33. Closed Caption Data Extraction
Table 59. CCAP Access Information
Signal Name Register Location Address Register Default Value
CCAP1[7:0] CCAP 1 [7:0] 153d 0x99 Readback Only
CCAP2[7:0] CCAP 2 [7:0] 154d 0x9A Readback Only
Rev. 0 | Page 48 of 96
04984-0-034
ADV7181B
Letterbox Detection
Incoming video signals may conform to different aspect ratios
(16:9 wide screen of 4:3 standard). For certain transmissions in
the wide screen format, a digital sequence (WSS) is transmitted
with the video signal. If a WSS sequence is provided, the aspect
ratio of the video can be derived from the digitally decoded bits
WSS contains.
In the absence of a WSS sequence, letterbox detection may be
used to find wide screen signals. The detection algorithm
examines the active video content of lines at the start and end of
a field. If black lines are detected, this may indicate that the
currently shown picture is in wide screen format.
The active video content (luminance magnitude) over a line of
video is summed together. At the end of a line, this accumulated
value is compared with a threshold, and a decision is made as to
whether or not a particular line is black. The threshold value
needed may depend on the type of input signal; some control is
provided via LB_TH[4:0].
LB_LCT[7:0] Letterbox Line Count Top, Address 0x9B [7:0];
LB_LCM[7:0] Letterbox Line Count Mid, Address 0x9C [7:0];
LB_LCB[7:0] Letterbox Line Count Bottom, Address 0x9D [7:0]
Table 60. LB_LCx Access Information
Signal Name Address Register Default Value
LB_LCT[7:0] 0x9B Readback only
LB_LCM[7:0] 0x9C Readback only
LB_LCB[7:0] 0x9D Readback only
01100 (default) Default threshold for detection of black lines.
01101 to
10000
00000 to
01011
Increase threshold (need larger active video
content before identifying non-black lines).
Decrease threshold (even small noise levels
can cause the detection of non-black lines).
Detection at the Start of a Field
The ADV7181B expects a section of at least six consecutive
black lines of video at the top of a field. Once those lines are
detected, Register LB_LCT[7:0] reports back the number of
black lines that were actually found. By default, the ADV7181B
starts looking for those black lines in sync with the beginning of
active video, for example, straight after the last VBI video line.
LB_SL[3:0] allows the user to set the start of letterbox detection
from the beginning of a frame on a line-by-line basis. The
detection window closes in the middle of the field.
Detection at the End of a Field
The ADV7181B expects at least six continuous lines of black
video at the bottom of a field before reporting back the number
of lines actually found via the LB_LCB[7:0] value. The activity
window for letterbox detection (end of field) starts in the middle of an active field. Its end is programmable via LB_EL[3:0].
Detection at the Midrange
Some transmissions of wide screen video include subtitles
within the lower black box. If the ADV7181B finds at least two
black lines followed by some more nonblack video, for example,
the subtitle, and is then followed by the remainder of the bottom
black block, it reports back a midcount via LB_LCM[7:0]. If no
subtitles are found, LB_LCM[7:0] reports the same number as
LB_LCB[7:0].
There is a 2-field delay in the reporting of any line count
parameters.
There is no “letterbox detected” bit. The user is asked to read the
LB_LCT[7:0] and LB_LCB[7:0] register values and to conclude
whether or not the letterbox-type video is present in software.
The LB_SL[3:0] bits are set at 0100b by default. This means that
letterbox detection window starts after the EDTV VBI data line.
For an NTSC signal, this window is from Line 23 to Line 286.
Changing the bits to 0101, the detection window starts on
Line 24 and ends on Line 287.
LB_EL[3:0] Letterbox End Line, Address 0xDD [3:0]
The LB_EL[3:0] bits are set at 1101b by default. This means that
letterbox detection window ends with the last active video line.
For an NTSC signal, this window is from Line 262 to Line 525.
Changing the bits to 1100, the detection window starts on
Line 261 and ends on Line 254.
Gemstar Data Recovery
The Gemstar-compatible data recovery block (GSCD) supports
1× and 2× data transmissions. In addition, it can also serve as a
closed caption decoder. Gemstar-compatible data transmissions
can only occur in NTSC. Closed caption data can be decoded in
both PAL and NTSC.
The block is configured via I
GDECEL[15:0] allow data recovery on selected video lines
•
2
C in the following way:
on even fields to be enabled and disabled.
GDECOL[15:0] enable the data recovery on selected lines
•
for odd fields.
GDECAD configures the way in which data is embedded
•
in the video data stream.
2
The recovered data is not available through I
C, but is inserted
into the horizontal blanking period of an ITU-R. BT656-compatible data stream. The data format is intended to comply with
Rev. 0 | Page 49 of 96
ADV7181B
the recommendation by the International Telecommunications
Union, ITU-R BT.1364. See Figure 34. For more information,
see the ITU website at www.itu.ch.
Entries within the packet are as follows:
Fixed preamble sequence of 0x00, 0xFF, 0xFF.
•
The format of the data packet depends on the following criteria:
Transmission is 1× or 2×
•
Data is output in 8-bit or 4-bit format (see the description
•
of the GDECAD Gemstar Decode Ancillary Data Format,
Address 0x4C [0] bit)
Data is closed caption (CCAP) or Gemstar-compatible
•
Data packets are output if the corresponding enable bit is set
(see the GDECEL and GDECOL descriptions), and if the
decoder detects the presence of data. This means that for video
lines where no data has been decoded, no data packet is output
even if the corresponding line enable bit is set.
Each data packet starts immediately after the EAV code of the
preceding line. Figure 34 and Table 62 show the overall
structure of the data packet.
DATA IDENTIFICATION
SECONDARY DATA IDENTIFICATION
Data identification word (DID). The value for the DID
•
marking a Gemstar or CCAP data packet is 0x140
(10-bit value).
Secondary data identification word (SDID) contains
•
information about the video line from which data was
retrieved, whether the Gemstar transmission was of 1× or
2× format, and whether it was retrieved from an even or
odd field.
•
Data count byte, giving the number of user data-words that
follow.
User dat a section.
•
Optional padding to ensure that the length of the user
•
data-word section of a packet is a multiple of four bytes,
requirement as set in ITU-R BT.1364.
Checksum byte.
•
Table 62 lists the values within a generic data packet that is
output by the ADV7181B in 8-bit format. In 8-bit systems,
Bits D1 and D0 in the data packets are disregarded.
00FFFFDIDSDID
PREAMBLE FOR ANCILLARY DATA
Figure 34. Gemstar and CCAP Embedded Data Packet (Generic)
•DID. The data identification value is 0x140 (10-bit value).
Care has been taken that in 8-bit systems, the 2 LSBs do
not carry vital information.
EP and !EP. The EP bit is set to ensure even parity on the
•
data-word D[8:0]. Even parity means there is always an
even number of 1s within the D[8:0] bit arrangement. This
includes the EP bit. !EP describes the logic inverse of EP
and is output on D[9]. The !EP is output to ensure that the
reserved codes of 00 and FF cannot happen.
EF. Even field identifier. EF = 1 indicates that the data was
•
recovered from a video line on an even field.
•
2X. This bit indicates whether the data sliced was in
Gemstar 1× or 2× format. A high indicates 2× format.
line[3:0]. This entry provides a code that is unique for each
•
of the possible 16 source lines of video from which
Gemstar data may have been retrieved. Refer to Table 72
and Table 73.
•
DC[1:0]. Data count value. The number of User Data
Words in the packet divided by 4. The number of user data
words (UDW) in any packet must be an integral number of
4. Padding is required at the end, if necessary (requirement
as set in ITU-R BT.1364). Refer to Table 63.
User Data-Words
(Including Padding) Padding Bytes DC[1:0]
•
CS[8:2]. The checksum is provided to determine the
integrity of the ancillary data packet. It is calculated by
summing up D[8:2] of DID, SDID, the Data Count byte,
and all UDWs, and ignoring any overflow during the
summation. Since all data bytes that are used to calculate
the checksum have their 2 LSBs set to 0, the CS[1:0] bits are
also always 0.
!CS[8] describes the logic inversion of CS[8]. The value
!CS[8] is included in the checksum entry of the data packet
to ensure that the reserved values of 0x00 and 0xFF do not
occur.
Table 64 to Table 67 outline the possible data packages.
Gemstar 2× Format, Half-Byte Output Mode
Half-byte output mode is selected by setting CDECAD = 0; fullbyte output mode is selected by setting CDECAD = 1. See the
GDECAD Gemstar Decode Ancillary Data Format, Address
0x4C [0] section.
Gemstar 1× Format
Half-byte output mode is selected by setting CDECAD = 0, fullbyte output mode is selected by setting CDECAD = 1. See the
GDECAD Gemstar Decode Ancillary Data Format, Address
0x4C [0] section.
The 2X bit determines whether the raw information
•
retrieved from the video line was 2 or 4 bytes. The state of
the GDECAD bit affects whether the bytes are transmitted
straight (i.e., two bytes transmitted as two bytes) or
whether they are split into nibbles (i.e., two bytes
transmitted as four half bytes). Padding bytes are then
added where necessary.
Half-byte output mode is selected by setting CDECAD = 0, the
full-byte mode is enabled by CDECAD = 1. Refer to the
GDECAD Gemstar Decode Ancillary Data Format, Address
0x4C [0] section. The data packet formats are shown in Table 68
and Table 69.
NTSC closed caption data is sliced on Line 21d on even and
odd fields. The corresponding enable bit has to be set high. See
the GDECEL[15:0] Gemstar Decoding Even Lines, Address
0x48 [7:0]; Address 0x49 [7:0]and the GDECOL[15:0] Gemstar
Decoding Odd Lines, Address 0x4A [7:0]; Address 0x4B [7:0]
sections.
Half-byte output mode is selected by setting CDECAD = 0, fullbyte output mode is selected by setting CDECAD = 1. See the
GDECAD Gemstar Decode Ancillary Data Format, Address
0x4C [0] section. Table 70 and Table 71 list the bytes of the data
packet.
PAL closed caption data is sliced from Lines 22 and 335. The
corresponding enable bits have to be set.
See the GDECEL[15:0] Gemstar Decoding Even Lines, Address
0x48 [7:0]; Address 0x49 [7:0] and the GDECOL[15:0] Gemstar
Decoding Odd Lines, Address 0x4A [7:0]; Address 0x4B [7:0]
sections.
When GDECAD is 0, the data is split into half-bytes and
inserted (default).
The 16 bits of the GDECEL[15:0] are interpreted as a collection
of 16 individual line decode enable signals. Each bit refers to a
line of video in an even field. Setting the bit enables the decoder
block trying to find Gemstar or closed caption-compatible data
on that particular line. Setting the bit to 0 prevents the decoder
from trying to retrieve data. See Table 72 and Table 73.
To retrieve closed caption data services on NTSC (Line 284),
GDECEL[11] must be set.
To retrieve closed caption data services on PAL (Line 335),
GDECEL[14] must be set.
The default value of GDECEL[15:0] is 0x0000. This setting
instructs the decoder not to attempt to decode Gemstar or
CCAP data from any line in the even field.
The 16 bits of the GDECOL[15:0] form a collection of 16
individual line decode enable signals. See Table 72 and Table 73.
To retrieve closed caption data services on NTSC (Line 21),
GDECOL[11] must be set.
To retrieve closed caption data services on PAL (Line 22),
GDECOL[14] must be set.
The default value of GDEC0L[15:0] is 0x0000. This setting
instructs the decoder not to attempt to decode Gemstar or
CCAP data from any line in the odd field.
GDECAD Gemstar Decode Ancillary Data Format,
Address 0x4C [0]
The decoded data from Gemstar-compatible transmissions or
closed caption transmissions is inserted into the horizontal
blanking period of the respective line of video. A potential
problem may arise if the retrieved data bytes have the value
0x00 or 0xFF. In an ITU-R BT.656-compatible data stream,
those values are reserved and used only to form a fixed
preamble.
When GDECAD is 1, the data is output straight in 8-bit format.
Table 72. NTSC Line Enable Bits and
Corresponding Line Numbering
The GDECAD bit allows the data to be inserted into the
horizontal blanking period in two ways:
•
Insert all data straight into the data stream, even the reserved
values of 0x00 and 0xFF, if they occur. This may violate the
output data format specification ITU-R BT.1364.
Split all data into nibbles and insert the half-bytes over
•
double the number of cycles in a 4-bit format.
Rev. 0 | Page 55 of 96
ADV7181B
Table 73. PAL Line Enable Bits and
Corresponding Line Numbering
Line Number
line[3:0]
(ITU-R BT.470) Enable Bit Comment
12 8 GDECOL[0] Not valid
13 9 GDECOL[1] Not valid
14 10 GDECOL[2] Not valid
15 11 GDECOL[3] Not valid
0 12 GDECOL[4] Not valid
1 13 GDECOL[5] Not valid
2 14 GDECOL[6] Not valid
3 15 GDECOL[7] Not valid
4 16 GDECOL[8] Not valid
5 17 GDECOL[9] Not valid
6 18 GDECOL[10] Not valid
7 19 GDECOL[11] Not valid
8 20 GDECOL[12] Not valid
9 21 GDECOL[13] Not valid
10 22 GDECOL[14] Closed caption
11 23 GDECOL[15] Not valid
12 321 (8) GDECEL[0] Not valid
13 322 (9) GDECEL[1] Not valid
14 323 (10) GDECEL[2] Not valid
15 324 (11) GDECEL[3] Not valid
0 325 (12) GDECEL[4] Not valid
1 326 (13) GDECEL[5] Not valid
2 327 (14) GDECEL[6] Not valid
3 328 (15) GDECEL[7] Not valid
4 329 (16) GDECEL[8] Not valid
5 330 (17) GDECEL[9] Not valid
6 331 (18) GDECEL[10] Not valid
7 332 (19) GDECEL[11] Not valid
8 333 (20) GDECEL[12] Not valid
9 334 (21) GDECEL[13] Not valid
10 335 (22) GDECEL[14] Closed caption
11 336 (23) GDECEL[15] Not valid
IF Compensation Filter
6
4
2
0
–2
–4
AMPLITUDE (dB)
–6
–8
–10
–12
2.04.03.53.02.55.04.5
FREQUENCY (MHz)
04984-0-043
Figure 35. NTSC IF Compensation Filter Responses
6
4
2
0
–2
AMPLITUDE (dB)
–4
–6
–8
3.05.04.54.03.56.05.5
FREQUENCY (MHz)
04984-0-045
Figure 36. PAL IF Compensation Filter Responses
2
P
I
P
C Interrupt System
The ADV7181B has a comprehensive interrupt register set. This
map is located in Register Access Page 2. See Table 82 or details
of the interrupt register map.
How to access this map is described in Figure 37.
IFFILTSEL[2:0] IF Filter Select Address 0xF8 [2:0]
The IFFILTSEL[2:0] register allows the user to compensate for
SAW filter characteristics on a composite input as would be
observed on tuner outputs. Figure 35 and Figure 36 show IF
filter compensation for NTSC and PAL.
The options for this feature are as follows:
•
Bypass mode (default) NTSC—consists of three filter characteristics
•
•
PAL—consists of three filter characteristics
See Table 84 for programming details.
Rev. 0 | Page 56 of 96
COMMON I2C SPACE
ADDRESS 0x00 => 0x3F
ADDRESS 0x0E BIT 6,5 = 00b
2
C SPACE
I
REGISTER ACCESS PAGE 1
ADDRESS 0x40 => 0xFF
NORMAL REGISTER SPACE
Figure 37. Register Access —Page 1 and Page 2
ADDRESS 0x0E BIT 6,5 = 01b
2
C SPACE
I
REGISTER ACCESS PAGE 2
ADDRESS 0x40 => 0x4C
INTERRUPT REGISTER SPACE
04984-0-044
ADV7181B
Interrupt Request Output Operation
When an interrupt event occurs, the interrupt pin
INTRQ
goes low with a programmable duration given by
INTRQ_DUR_SEL[1:0]
00 3 Xtal Periods (default)
01 15 Xtal Periods
10 63 Xtal Periods
11 Active until Cleared
When the “Active until Cleared” interrupt duration is selected
and the event that caused the interrupt is no longer in force, the
interrupt persists until it is masked or cleared.
For example, if the ADV7181B loses lock, an interrupt is
generated and the
returns to the locked state,
INTRQ
pin goes low. If the ADV7181B
INTRQ
continues to drive low
until the SD_LOCK bit is either masked or cleared.
Interrupt Drive Level
The ADV7181B resets with open drain enabled and all interrupts
masked off. Therefore,
INTRQ
is in a high impedance state after
reset. 01 or 10 must to be written to INTRQ_OP_SEL[1:0] for a
INTRQ
logic level to be driven out from the
pin.
It is also possible to write to a register in the ADV7181B that
manually asserts the
00 Open Drain (default)
01 Drive Low when Active
10 Drive High when active
11 Reserved
Multiple Interrupt Events
If Interrupt Event 1 occurs and then Interrupt Event 2 occurs
before the system controller has cleared or masked Interrupt
Event 1, the ADV7181B does not generate a second interrupt
signal. The system controller should check all unmasked
interrupt status bits since more than one may be active.
Macrovision Interrupt Selection Bits
The user can select between pseudo sync pulse and color stripe
detection as follows:
00 Reserved
01 Pseudo Sync Only (default)
10 Color Stripe Only
11 Either Pseudo Sync or Color Stripe
Additional information relating to the interrupt system is
detailed in Table 82.
Rev. 0 | Page 57 of 96
ADV7181B
PIXEL PORT CONFIGURATION
The ADV7181B has a very flexible pixel port that can be configured in a variety of formats to accommodate downstream ICs.
Table 77 and Table 78 summarize the various functions that the
ADV7181B pins can have in different modes of operation.
The ordering of components , for example, Cr versus Cb,
CHA/B/C, can be changed. Refer to the SWPC Swap Pixel
Cr/Cb, Address 0x27 [7] section. Table 77 indicates the default
positions for the Cr/Cb components.
OF_SEL[3:0] Output Format Selection, Address 0x03 [5:2]
The modes in which the ADV7181B pixel port can be configured
are under the control of OF_SEL[3:0]. See Table 78 for details.
The default LLC frequency output on the LLC1 pin is approximately 27 MHz. For modes that operate with a nominal data
rate of 13.5 MHz (0001, 0010), the clock frequency on the LLC1
pin stays at the higher rate of 27 MHz. For information on
outputting the nominal 13.5 MHz clock on the LLC1 pin, see
the LLC1 Output Selection, LLC_PAD_SEL[2:0],
Address 0x8F [6:4] section.
The following I2C write allows the user to select between the
LLC1 (nominally at 27 MHz) and LLC2 (nominally at
13.5 MHz).
The LLC2 signal is useful for LLC2-compatible wide bus
(16-bit) output modes. See OF_SEL[3:0] Output Format
Selection, Address 0x03 [5:2] for additional information. The
LLC2 signal and data on the data bus are synchronized. By
default, the rising edge of LLC1/LLC2 is aligned with the Y data;
the falling edge occurs when the data bus holds C data. The
polarity of the clock, and therefore the Y/C assignments to the
clock edges, can be altered by using the Polarity LLC pin.
When LLC_PAD_SEL is 000, the output is nominally 27 MHz
LLC on the LLC1 pin (default).
When LLC_PAD_SEL is 101, the output is nominally 13.5 MHz
LLC on the LLC1 pin.
SWPC Swap Pixel Cr/Cb, Address 0x27 [7]
This bit allows Cr and Cb samples to be swapped.
When SWPC is 0 (default), no swapping is allowed.
When SWPC is 1, the Cr and Cb values can be swapped.
Table 77. P15–P0 Output/Input Pin Mapping
Data Port Pins P[15:0]
Format and Mode 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Video Out, 8-Bit, 4:2:2 YCrCb[7:0]OUT
Video Out, 16-Bit, 4:2:2 Y[7:0]OUT CrCb[7:0] OUT
Table 78. Standard Definition Pixel Port Modes
P[15: 0]
OF_SEL[3:0]FormatP[15:8] P[7: 0]
0010 16-Bit @LLC2 4:2:2 Y[7:0] CrCb[7:0]
00118-Bit @LLC1 4:2:2 (default) YCrCb[7:0] Three-State
0110-1111 Reserved Reserved. Do not use.
Rev. 0 | Page 58 of 96
ADV7181B
S
S
MPU PORT DESCRIPTION
The ADV7181B supports a 2-wire (I2C-compatible) serial interface. Two inputs, serial data (SDA) and serial clock (SCLK),
2
carry information between the ADV7181B and the system I
C
master controller. Each slave device is recognized by a unique
address. The ADV7181B’s I
2
C port allows the user to set up and
configure the decoder and to read back captured VBI data. The
ADV7181B has four possible slave addresses for both read and
write operations, depending on the logic level on the ALSB pin.
These four unique addresses are shown in Table 79. The
ADV7181B’s ALSB pin controls Bit 1 of the slave address. By
altering the ALSB, it is possible to control two ADV7181Bs in
an application without having a conflict with the same slave
address. The LSB (Bit 0) sets either a read or write operation.
Logic 1 corresponds to a read operation; Logic 0 corresponds to
a write operation.
Table 79. I2C Address for ADV7181B
ALSB R/W Slave Address
0 0 0x40
0 1 0x41
1 0 0x42
1 1 0x43
To control the device on the bus, a specific protocol must be
followed. First, the master initiates a data transfer by establishing a start condition, which is defined by a high-to-low
transition on SDA while SCLK remains high. This indicates that
an address/data stream follows. All peripherals respond to the
start condition and shift the next eight bits (7-bit address +
R/W bit). The bits are transferred 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 SDA and SCLK
lines, waiting for the start condition and the correct transmitted
address. The R/W bit determines the direction of the data. Logic
0 on the LSB of the first byte means that the master writes
information to the peripheral. Logic 1 on the LSB of the first
byte means that the master reads information from the
peripheral.
The ADV7181B acts as a standard slave device on the bus. The
data on the SDA pin is eight bits long, supporting the 7-bit
addresses plus the R/W bit. The ADV7181B has 249 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 autoincrement, allowing 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 updating all the registers.
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 SCLK high period,
the user should only issue 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 ADV7181B does
not issue an acknowledge and returns to the idle condition.
If in auto-increment mode the user exceeds the highest
subaddress, the following action is taken:
1.
In read mode, the highest subaddress register contents
continue to be output until the master device issues a noacknowledge. This indicates the end of a read. A noacknowledge condition is when the SDA line is not pulled
low on the ninth pulse.
In write mode, the data for the invalid byte is not loaded
2.
into any subaddress register, a no acknowledge is issued by
the ADV7181B, and the part returns to the idle condition.
SDATA
SCLOCK
SP
1–71–78989 1–789
START ADDRACKACKDATAACKSTOPSUBADDRESS
R/W
Figure 38. Bus Data Transfer
04984-0-036
WRITE
EQUENCE
READ
EQUENCE
SLAVE ADDR A(S) SUB ADDR A(S)DATAA(S)
S
LSB = 1LSB = 0
SLAVE ADDRSLAVE ADDRA(S) SUB ADDR A(S) SA(S)DATAA(M)
S
S = START BIT
P = STOP BIT
A(S) = ACKNOWLEDGE BY SLAVE
A(M) = ACKNOWLEDGE BY MASTER
Figure 39: Read and Write Sequence
Rev. 0 | Page 59 of 96
A(S) = NO-ACKNOWLEDGE BY SLAVE
A(M) = NO-ACKNOWLEDGE BY MASTER
DATAA(S) P
DATAA(M) P
04984-0-037
ADV7181B
REGISTER ACCESSES
The MPU can write to or read from all of the ADV7181B’s
registers, except the Subaddress register, which is write-only.
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.
Then, 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 sections describe each register in terms of its
configuration. The Communications register is an 8-bit, writeonly 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. Table 81 lists the various operations
under the control of the Subaddress register for the control port.
Register Select (SR7–SR0)
These bits are set up to point to the required starting address.
I2C SEQUENCER
An I2C sequencer is used when a parameter exceeds eight bits,
and is therefore distributed over two or more I
example, HSB [11:0].
When such a parameter is changed using two or more I
operations, the parameter may hold an invalid value for the
time between the first I
2
C being completed and the last I2C
being completed. In other words, the top bits of the parameter
may already hold the new value while the remaining bits of the
parameter still hold the previous value.
2
To avoid this problem, the I
C sequencer holds the already
updated bits of the parameter in local memory; all bits of the
parameter are updated together once the last register write
operation has completed.
The correct operation of the I
2
C sequencer relies on the
following:
•
All I
2
C registers for the parameter in question must be
written to in order of ascending addresses. For example, for
HSB[10:0], write to Address 0x34 first, followed by 0x35.
No other I
•
2
C taking place between the two (or more) I2C
writes for the sequence. For example, for HSB[10:0], write
to Address 0x34 first, immediately followed by 0x35.
2
C registers, for
2
C write
Rev. 0 | Page 60 of 96
ADV7181B
I2C REGISTER MAPS
Table 80. Common and Normal (Page 1) Register Map Details
Subaddress
Register Name Reset Value rw
Input Control 0000 0000 rw 0 0x00
Video Selection 1100 1000 rw 1 0x01
Reserved 0000 0100 rw 2 0x02
Output Control 0000 1100 rw 3 0x03
Extended Output Control 01xx 0101 rw 4 0x04
Reserved 0000 0000 rw 5 0x05
Reserved 0000 0010 rw 6 0x06
Autodetect Enable 0111 1111 rw 7 0x07
Contrast 1000 0000 rw 8 0x08
Reserved 1000 0000 rw 9 0x09
Brightness 0000 0000 rw 10 0x0A
Hue 0000 0000 rw 11 0x0B
Default Value Y 0011 0110 rw 12 0x0C
Default Value C 0111 1100 rw 13 0x0D
ADI Control 0000 0000 rw 14 0x0E
Power Management 0000 0000 rw 15 0x0F
Status 1 xxxx xxxx r 16 0x10
Ident xxxx xxxx r 17 0x11
Status 2 xxxx xxxx r 18 0x12
Status 3 xxxx xxxx r 19 0x13
Analog Clamp Control 0001 0010 rw 20 0x14
Digital Clamp Control 1 0100 xxxx rw 21 0x15
Reserved xxxx xxxx rw 22 0x16
Shaping Filter Control 0000 0001 rw 23 0x17
Shaping Filter Control 2 1001 0011 rw 24 0x18
Comb Filter Control 1111 0001 rw 25 0x19
Reserved xxxx xxxx rw 26–28 0x1A–0x1C
ADI Control 2 0000 0xxx rw 29 0x1D
Reserved xxxx xxxx rw 30-38 0x1E-0x26
Pixel Delay Control 0101 1000 rw 39 0x27
Reserved xxxx xxxx rw 40-42 0x28–0x2A
Misc Gain Control 1110 0001 rw 43 0x2B
AGC Mode Control 1010 1110 rw 44 0x2C
Chroma Gain Control 1 1111 0100 rw 45 0x2D
Chroma Gain Control 2 0000 0000 rw 46 0x2E
Luma Gain Control 1 1111 xxxx rw 47 0x2F
Luma Gain Control 2 xxxx xxxx rw 48 0x30
VSync Field Control 1 0001 0010 rw 49 0x31
VSync Field Control 2 0100 0001 rw 50 0x32
VSync Field Control 3 1000 0100 rw 51 0x33
HSync Position Control 1 0000 0000 rw 52 0x34
HSync Position Control 2 0000 0010 rw 53 0x35
HSync Position Control 3 0000 0000 rw 54 0x36
Polarity 0000 0001 rw 55 0x37
NTSC Comb Control 1000 0000 rw 56 0x38
PAL Comb Control 1100 0000 rw 57 0x39
ADC Control 0001 0000 rw 58 0x3A
Dec Hex
Rev. 0 | Page 61 of 96
ADV7181B
Subaddress
Register Name Reset Value rw
Reserved xxxx xxxx rw 59–60 0x3B–0x3C
Manual Window Control 0100 0011 rw 61 0x3D
Reserved xxxx xxxx rw 62–64 0x3E–0x40
Resample Control 0100 0001 rw 65 0x41
Reserved xxxx xxxx rw 66-71 0x42-0x47
Gemstar Ctrl 1 00000000 rw 72 0x48
Gemstar Ctrl 2 0000 0000 rw 73 0x49
Gemstar Ctrl 3 0000 0000 rw 74 0x4A
Gemstar Ctrl 4 0000 0000 rw 75 0x4B
GemStar Ctrl 5 xxxx xxx0 rw 76 0x4C
CTI DNR Ctrl 1 1110 1111 rw 77 0x4D
CTI DNR Ctrl 2 0000 1000 rw 78 0x4E
Reserved xxxx xxxx rw 79 0x4F
CTI DNR Ctrl 4 0000 1000 rw 80 0x50
Lock Count 0010 0100 rw 81 0x51
Reserved xxxx xxxx rw 82–142 0x52–0x8E
Free Run Line Length 1 0000 0000 w 143 0x8F
Reserved 0000 0000 w 144 0x90
VBI Info xxxx xxxx r 144 0x90
WSS 1 xxxx xxxx r 145 0x91
WSS 2 xxxx xxxx r 146 0x92
EDTV 1 xxxx xxxx r 147 0x93
EDTV 2 xxxx xxxx r 148 0x94
EDTV 3 xxxx xxxx r 149 0x95
CGMS 1 xxxx xxxx r 150 0x96
CGMS 2 xxxx xxxx r 151 0x97
CGMS 3 xxxx xxxx r 152 0x98
CCAP 1 xxxx xxxx r 153 0x99
CCAP 2 xxxx xxxx r 154 0x9A
Letterbox 1 xxxx xxxx r 155 0x9B
Letterbox 2 xxxx xxxx r 156 0x9C
Letterbox 3 xxxx xxxx r 157 0x9D
Reserved xxxx xxxx rw 158-177 0x9E–0xB1
CRC Enable 0001 1100 w 178 0xB2
Reserved xxxx xxxx rw 179–194 0xB2–0xC2
ADC Switch 1 xxxx xxxx rw 195 0xC3
ADC Switch 2 0xxx xxxx rw 196 0xC4
Reserved xxxx xxxx rw 197–219 0xC5–0xDB
Letterbox Control 1 1010 1100 rw 220 0xDC
Letterbox Control 2 0100 1100 rw 221 0xDD
Reserved 0000 0000 rw 222 0xDE
Reserved 0000 0000 rw 223 0xDF
Reserved 0001 0100 rw 224 0xE0
SD Offset Cb 1000 0000 rw 225 0xE1
SD Offset Cr 1000 0000 rw 226 0xE2
SD Saturation Cb 1000 0000 rw 227 0xE3
SD Saturation Cr 1000 0000 rw 228 0xE4
NTSC V Bit Begin 0010 0101 rw 229 0xE5
NTSC V Bit End 0000 0100 rw 230 0xE6
NTSC F Bit Toggle 0110 0011 rw 231 0xE7
PAL V Bit Begin 0110 0101 rw 232 0xE8
PAL V Bit End 0001 0100 rw 233 0xE9
Dec Hex
Rev. 0 | Page 62 of 96
ADV7181B
Subaddress
Register Name Reset Value rw
PAL F Bit Toggle 0110 0011 rw 234 0xEA
Reserved xxxx xxxx rw 235-243 0xEB-0xF3
Drive Strength xx01 0101 rw 244 0xF4
Reserved xxxx xxxx rw 245-247 0xF5-0xF7
IF Comp Control 0000 0000 rw 248 0xF8
VS Mode Control 0000 0000 rw 249 0xF9
Table 81. Common and Normal (Page 1) Register Map Bit Names
Register
Name
Input Control VID_SEL.3 VID_SEL.2 VID_SEL.1 VID_SEL.0 INSEL.3 INSEL.2 INSEL.1 INSEL.0
Video
The following registers are located in Register Access Page 2.
Table 82. Interrupt Register Map Details4
Register
Name
Interrupt
Reset
Value
0001 x000 rw 64 0x40
Config 0
Reserved 65 0x41
Interrupt
r 66 0x42
Status 1
Interrupt
x000 0000 w 67 0x43
Clear 1
Interrupt
x000 0000 rw 68 0x44
Maskb 1
Reserved 69 0x45
Interrupt
r 70 0x46
Status 2
Interrupt
0xxx 0000 w 71 0x47
Clear 2
Interrupt
0xxx 0000 rw 72 0x48
Maskb 2
Raw Status 3 r 73 0x49
Interrupt
r 74 0x4A
Status 3
Interrupt
xx00 0000 w 75 0x4B
Clear 3
Interrupt
xx00 0000 rw 76 0x4C
Maskb 3
4
To access the Interrupt Register Map, the Register Access page [1:0] bits in Register Address 0x0E must be programmed to 01b.
Subaddress
rw
Dec Hex
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
INTRQ_
DUR_SEL.1
MPU_
STIM_
INTRQ_Q
MPU_
STIM_INT
RQ_CLR
MPU_
STIM_INT
RQ_MSKB
INTRQ_
DUR_SEL.0
MV_PS_
CS_Q
MV_PS_
CS_CLR
MV_PS_
CS_MSKB
MV_INTRQ
_SEL.1
SD_FR_
CHNG_Q
SD_FR_
CHNG_CLR
SD_FR_
CHNG_
MSKB
PAL_SW_
LK_
CHNG_Q
PAL_SW_
LK_CHNG
_CLR
PAL_SW_
LK_CHNG
_MSKB
MV_INTRQ
_SEL.0
SCM_
LOCK
SCM_
LOCK_
CHNG_Q
SCM_
LOCK_
CHNG_CLR
SCM_
LOCK_CH
NG_MSKB
WSS_
CHNGD_Q
WSS_
CHNGD_
CLR
WSS_CHN
GD_MSKB
SD_AD_
CHNG_Q
SD_AD_
CHNG_
CLR
SD_AD_
CHNG_
MSKB
MPU_
STIM_INTRQ
CGMS_
CHNGD_Q
CGMS_
CHNGD_
CLR
CGMS_
CHNGD_
MSKB
SD_H_
LOCK
SD_H_
LOCK_
CHNG_Q
SD_H_
LOCK_
CHNG_CLR
SD_H_
LOCK_CH
NG_MSKB
INTRQ_
OP_SEL.1
SD_
UNLOCK_Q
SD_UNLO
CK_CLR
SD_
UNLOCK_
MSKB
GEMD_Q CCAPD_Q
GEMD_
CLR
GEMD_
MSKB
SD_V_
LOCK
SD_V_
LOCK_
CHNG_Q
SD_V_LO
CK_CHNG
_CLR
SD_V_
LOCK_CH
NG_MSKB
INTRQ_
OP_SEL.0
SD_LOCK_
Q
SD_LOCK
_CLR
SD_LOCK
_MSKB
CCAPD_
CLR
CCAPD_
MSKB
SD_OP_
50HZ
SD_OP_
CHNG_Q
SD_OP_
CHNG_CLR
SD_OP_
CHNG_
MSKB
Table 83. Interrupt Register Map Details
Bit
Subaddress Register Bit Description 7 6 5 4 3 2 1 0 Comments Notes
0x40 Interrupt
Config 1
Register
Access
Page 2
INTRQ_OP_SEL[1:0].
Interrupt Drive Level Select
Manual Interrupt Set Mode
Reserved x Not used
MV_INTRQ_SEL[1:0].
Macrovision Interrupt Select
INTRQ_DUR_SEL[1:0].
Interrupt duration Select
0 0 Open drain
0 1 Drive low when active
1 0 Drive high when active
1 1 Reserved
0 Manual interrupt mode disabled MPU_STIM_INTRQ[1:0].
1 Manual interrupt mode enabled
0 0 Reserved
0 1 Pseudo sync only
1 0 Color stripe only
1 1 Pseudo sync or color stripe
0 0 3 Xtal periods
0 1 15 Xtal periods
1 0 63 Xtal periods
1 1 Active until cleared
Rev. 0 | Page 66 of 96
ADV7181B
Bit
Subaddress Register Bit Description 7 6 5 4 3 2 1 0 Comments Notes
0x41 Reserved x x x x x x x x
0x42 Interrupt
0x43 Interrupt
0x44 Interrupt
0x45 Reserved x x x x x x x x
Status 1
Read-Only
Register
Access
Page 2
Clear 1
Write-Only
Register
Access
Page 2
Mask 1
Read/Write
Register
Register
Access
Page 2
Reserved x
Reserved x
Reserved x
Reserved x
Reserved 0 Not used
Reserved 0 Not used
Reserved 0 Not used
Reserved
Reserved 0 Not used
Reserved 0 Not used
Reserved 0 Not used
Reserved
0 No change SD_LOCK_Q
1 SD input has caused the decoder
to go from an unlocked state to
a locked state
0 No change SD_UNLOCK_Q
1 SD input has caused the
decoder to go from a locked
state to an unlocked state
0 No change SD_FR_CHNG_Q
1 Denotes a change in the free-
run status
0 No change MV_PS_CS_Q
1 Pseudo sync/color striping
detected. See Reg 0x40
MV_INTRQ_SEL[1:0] for
selection
0 Do not clear SD_LOCK_CLR
1 Clears SD_LOCK_Q bit
0 Do not clear SD_UNLOCK_CLR
1 Clears SD_UNLOCK_Q bit
0 Do not clear SD_FR_CHNG_CLR
1 Clears SD_FR_CHNG_Q bit
0 Do not clear MV_PS_CS_CLR
1 Clears MV_PS_CS_Q bit
x Not used
0 Masks SD_LOCK_Q bit SD_LOCK_MSKB
1 Do not mask
0 Masks SD_UNLOCK_Q bit SD_UNLOCK_MSKB
1 Do not mask
0 Masks SD_FR_CHNG_Q bit SD_FR_CHNG_MSKB
1 Do not mask
0 Masks MV_PS_CS_Q bit MV_PS_CS_MSKB
1 Do not mask
x Not used
These bits
can be
cleared or
masked in
Resisters
0x43 and
0x44,
respectively.
Rev. 0 | Page 67 of 96
ADV7181B
Bit
Subaddress Register Bit Description 7 6 5 4 3 2 1 0 Comments Notes
0x46 Interrupt
Status 2
Read-Only
Register
Register
Access
Page 2
0x47 Interrupt
Clear 2
Write-Only
Register
Access
Page 2
0x48 Interrupt
Mask 2
Read /
Write
Register
Access
Page 2
CCAPD_Q
GEMD_Q
CGMS_CHNGD_Q
WSS_CHNGD_Q
Reserved x Not used
Reserved x Not used
Reserved x Not used
MPU_STIM_INTRQ_Q
Reserved x Not used
Reserved x Not used
Reserved x Not used
MPU_STIM_INTRQ_CLR
Reserved 0 Not used
Reserved 0 Not used
Reserved 0 Not used
MPU_STIM_INTRQ_MSKB
0 Closed captioning not detected
in the input video signal
1 Closed captioning data detected
in the video input signal
0 Gemstar data not detected in
the input video signal
1 Gemstar data detected in the
input video signal
0 No change detected in CGMS
data in the input video signal
1 A change is detected in the
CGMS data in the input video
signal
0 No change detected in WSS
data in the input video signal
1 A change is detected in the WSS
data in the input video signal
0 Manual interrupt not set
1 Manual interrupt set
0 Do not clear CCAPD_CLR
1 Clears CCAPD_Q bit
0 Do not clear GEMD_CLR
1 Clears GEMD_Q bit
0 Do not clear CGMS_CHNGD_CLR
1 Clears CGMS_CHNGD_Q bit
0 Do not clear WSS_CHNGD_CLR
1 Clears WSS_CHNGD_Q bit
0 Do not clear
1 Clears MPU_STIM_INTRQ_Q bit
0 Do not mask CCAPD_MSKB
1 Masks CCAPD_Q bit
0 Do not mask GEMD_MSKB
1 Masks GEMD_Q bit
0 Do not mask CGMS_CHNGD_MSKB
1 Masks CGMS_CHNGD_Q bit
0 Do not mask WSS_CHNGD_MSKB
1 Masks WSS_CHNGD_Q bit
0 Do not mask
Masks MPU_STIM_INTRQ_Q bit
These bits
can be
cleared or
masked by
Registers
0x47 and
0x48,
respectively.
Rev. 0 | Page 68 of 96
ADV7181B
Bit
Subaddress Register Bit Description 7 6 5 4 3 2 1 0 Comments Notes
0x49 Raw
0x4A Interrupt
Status 3
Read Only
Register
Register
Access
Page 2
Status 3
Read Only
Register
Register
Access
Page 2
SD 60/50Hz frame rate at
output
SD_V_LOCK
SD_H_LOCK
Reserved x Not used
SECAM Lock
Reserved x Not used
Reserved x Not used
Reserved x Not used
SD_OP_CHNG_Q
SD 60/50 Hz frame rate at
input
SD_V_LOCK_CHNG_Q
SD_H_LOCK_CHNG_Q
SD_AD_CHNG_Q
SD autodetect changed
SCM_LOCK_CHNG_Q
SECAM Lock
PAL_SW_LK_CHNG_Q
Reserved x Not used
Reserved x Not used
0 SD 60 Hz signal output SD_OP_50Hz
1 SD 50 Hz signal output
0 SD vertical sync lock not
established
1 SD vertical sync lock
established
0 SD horizontal sync lock not
established
1 SD horizontal sync lock
established
0 SECAM Lock not established SCM_LOCK
1 SECAM Lock established
0 No Change in SD signal
standard detected at the input
1 A Change in SD signal standard
is detected at the input
0 No Change in SD vertical sync
lock status
1 SD vertical sync lock status has
changed.
0 No change in SD horizontal sync
lock status.
1 SD horizontal sync lock status
has changed
x No change in AD_RESULT[2:0]
bits in Status Register 1.
AD_RESULT[2:0] bits in Status
Register 1 have changed
0 No Change in SECAM Lock
status
1 SECAM lock status has changed
x No change in PAL swinging
burst lock status
PAL swinging burst lock status
has changed
These bits
cannot be
cleared or
masked.
Register
0x4A is used
for this
purpose.
These bits
can be
cleared and
masked by
registers
0x4B and
0x4C,
respectively.
Rev. 0 | Page 69 of 96
ADV7181B
Bit
Subaddress Register Bit Description 7 6 5 4 3 2 1 0 Comments Notes
0x4B Interrupt
Clear 3
Write Only
register
Register
Access
Page 2
Reserved x Not used
Reserved
0x4C Interrupt
Mask 2
Read /
Write
Register
Register
Access
Page 2
Reserved x Not used
Reserved
0 Do not clear SD_OP_CHNG_CLR
1 Clears SD_OP_CHNG_Q bit
0 Do not clear SD_V_LOCK_CHNG_CLR
1 Clears SD_V_LOCK_CHNG_Q bit
0 Do not clear SD_H_LOCK_CHNG_CLR
1 Clears SD_H_LOCK_CHNG_Q bit
0 Do not clear SD_AD_CHNG_CLR
1 Clears SD_AD_CHNG_Q bit
0 Do not clear SCM_LOCK_CHNG_CLR
1 Clears SCM_LOCK_CHNG_Q bit
0 Do not clear PAL_SW_LK_CHNG_CLR
1 Clears PAL_SW_LK_CHNG_Q bit
x Not used
0 Do not mask SD_OP_CHNG_MSKB
1 Masks SD_OP_CHNG_Q bit
0 Do not mask SD_V_LOCK_CHNG_MSKB
1 Masks SD_V_LOCK_CHNG_Q bit
0 Do not mask SD_H_LOCK_CHNG_MSKB
1 Masks SD_H_LOCK_CHNG_Q bit
0 Do not mask SD_AD_CHNG_MSKB
1 Masks SD_AD_CHNG_Q bit
0 Do not mask SCM_LOCK_CHNG_MSKB
1 Masks SCM_LOCK_CHNG_Q bit
0 Do not mask PAL_SW_LK_CHNG_MSKB
1 Masks PAL_SW_LK_CHNG_Q bit
x Not used
Rev. 0 | Page 70 of 96
ADV7181B
Table 84. Common and Normal (Page 1) Register Map Details
Bits
Subaddress Register Bit Description
0x00 Input
Control
0x01 Video
Selection
INSEL [3:0]. The INSEL bits allow the
user to select an input channel as
well as the input format.
VID_SEL [3:0]. The VID_SEL bits
allow the user to select the input
video standard.
0 1 0 0 NTSC(J)
0 1 0 1 NTSC(M)
01 1 0 PAL 60
0 1 1 1 NTSC 4.43
10 0 0 PAL BGHID
1 0 0 1 PAL N (BGHID without
1 0 1 0 PAL M (without pedestal)
10 1 1 PAL M
11 0 0 PAL combination N
11 0 1 PAL combination N
1 1 1 0 SECAM (with pedestal)
1 1 1 1 SECAM (with pedestal)
0 Disable VSync processor ENVSPROC
0 Standard video input BETACAM
1 Betacam input enable 0 Disable HSync processor ENHSPL
1 Enable HSync processor
1 Set to default
1 Enable VSync processor
Comments Notes
NTSC (without pedestal),
SECAM
NTSC (M) (with pedestal),
SECAM
(M) (without pedestal),
SECAM
(M) (with pedestal),
SECAM
pedestal)
Rev. 0 | Page 71 of 96
ADV7181B
Subaddress Register Bit Description
0x03 Output
Control
0x04 Extended
Output
Control
codes from the Luma into the
chroma path.
Reserved 0 Set as default
OF_SEL [3:0]. Allows the user to
choose from a set of output formats.
TOD. Three-state output drivers.
This bit allows the user to threestate the output drivers: P[19:0], HS,
VS, FIELD, and SFL.
VBI_EN. Allows VBI data (Lines 1 to
21) to be passed through with only
a minimum amount of filtering
performed.
range of output values. Can be
BT656-compliant, or can fill the
whole accessible number range.
If set, enables data in the VBI region
to be passed through the decoder
undistorted.
enable.
Reserved x x
Reserved 1
BT656-4. Allows the user to select an
0 1 0 0 Not used
0 1 0 1 Not used
0 1 1 0 Not used
0 1 1 1 Not used
1 0 0 0 Not used
1 0 0 1 Not used
1 0 1 0 Not used
1 0 1 1 Not used
1 1 0 0 Not used
1 1 0 1 Not used
1 1 1 0 Not used
1 1 1 1 Not used
0 Output pins enabled See also TIM_OE
1 Drivers three-stated
0 All lines filtered and scaled
1 Only active video region
0 16 < Y < 235, 16 < C < 240 ITU-R BT.656 RANGE. Allows the user to select the
0 SFL output is disabled EN_SFL_PIN
1 SFL information output on
0 Decode and output color BL_C_VBI. Blank chroma during VBI.
0 HS, VS, F three-stated TIM_OE. Timing signals output
1 HS, VS, F forced active
0 BT656-3-compatible
1 BT656-4-compatible
1 Blank Cr and Cb
Comments Notes
interleaved data output
16-bit interfaces)
ITU-R BT.656
filtered
1 1 < Y < 254, 1 < C < 254 Extended range
the SFL pin
SD_DUP_AV. Duplicates the AV
and TRI_LLC
SFL output enables
encoder and
decoder to be
connected directly
COL_KILL. x Color kill is active = 1 Color Kill.
0x11 IDENT
0x12 MVCS DET x MV color striping detected 1 = Detected
MVCS T3 x MV color striping type 0 = Type 2,
MV PS DET x MV pseudo sync detected 1 = Detected
MV AGC DET x MV AGC pulses detected 1 = Detected
LL NSTD x Nonstandard line length 1 = Detected
FSC NSTD x Fsc frequency
0x13 INST_HLOCK x 1 = horizontal lock
FREE_RUN_ACT x 1 = Free-run mode active Blue screen output
0x14 Analog
Management
Status
Register 1.
Read-Only
Read-Only
Status
Register 2.
Read-Only.
Status
Register 3.
Read-Only.
Clamp
Control
Reserved
PDBP. Power-down bit priority
selects between PWRDN bit or PIN.
PWRDN. Power-down places the
decoder in a full power-down mode.
RES. Chip reset loads all I
default values.
FSC_LOCK x Fsc lock (right now) = 1
AD_RESULT[2:0]. Autodetection
result reports the standard of the
Input video.
IDENT[7:0] Provides identification
on the revision of the part.
Reserved x x
GEMD x 1 = Gemstar data detected
SD_OP_50HZ x SD 60 Hz detected
Reserved x SD 50 Hz detected
STD FLD_LEN x 1 = Field length standard Correct Field length
INTERLACED x 1 = Interlaced video
PAL_SW_LOCK x 1 = Swinging burst
Reserved 0 0 1 0 Set to default.
CCLEN. Current clamp enable allows
the user to switch off the current
sources in the analog front.
Reserved
2
C bits with
76 543 210
1 Bit has priority (pin
1 Powered down
1 Start reset sequence Executing reset
1 1 1 SECAM 525
x x x x x x x x ADV7181B = 0x13
0 Current sources switched
0 0 0 Set to default
1 Current sources enabled
Comments Notes
0 0 Set to default
controlled by pin
disregarded)
Lost lock (since last read) = 1
active = 1
nonstandard
achieved
detected
detected
off
See PDBP, 0x0F Bit 2.
takes approx. 2 ms.
This bit is selfclearing.
Provides
information about
the internal status of
the decoder.
0 0 0 Auto selection 15. MHz
0 0 1 Auto selection 2.17 MHz
0 1 0 SH1
0 1 1 SH2
1 0 0 SH3
1 0 1 SH4
1 1 0 SH5
Clamp
Control 1
Shaping
Filter
Control
Reserved 0 x x x x Set to default
DCT[1:0]. Digital clamp timing
determines the time constant of the
digital fine clamp circuitry.
Reserved
YSFM[4:0]. Selects Y Shaping Filter
mode when in CVBS only mode.
Allows the user to select a wide
range of low-pass and notch filters.
If either auto mode is selected, the
decoder selects the optimum Y filter
depending on the CVBS video
source quality (good vs. bad).
CSFM[2:0].
C Shaping Filter mode allows the
selection from a range of low-pass
chrominance filters.
If either auto mode is selected, the
decoder selects the optimum C filter
depending on the CVBS video
source quality (good vs. bad). Nonauto settings force a C filter for all
standards and quality of CVBS video.
76 543 210
0 0 Slow (TC = 1 s)
0 1 Medium (TC = 0.5 s)
1 0 Fast (TC = 0.1 s)
1 1 TC dependent on video
0 Set to default
0 0 0 0 0 Auto wide notch for poor
0 0 0 1 1 SVHS 2
1 1 1 1 1 Reserved
1 1 1 Wideband mode
0 0 0 0 1 Auto narrow notch for
Comments Notes
Decoder selects
quality sources or wideband filter with Comb for
good quality input
poor quality sources or
wideband filter with comb
for good quality input
optimum Y shaping
filter depending on
CVBS quality.
If one of these
modes is selected,.
the decoder does
not change filter
modes. Depending
on video quality, a
fixed filter response
(the one selected) is
used for good and
bad quality video.
Automatically
selects a C filter
based on video
standard and
quality.
Selects a C filter for
all video standards
and for good and
bad video.
Rev. 0 | Page 75 of 96
ADV7181B
Bits
Subaddress Register Bit Description
0x18 0 0 0 0 0 Reserved. Do not use.
0 0 0 0 1 Reserved. Do not use.
WYSFM[4:0]. Wideband Y Shaping
Filter mode allows the user to select
which Y shaping filter is used for the
Y component of Y/C, YPbPr, B/W
input signals; it is also used when a
good quality input CVBS signal is
detected. For all other inputs, the Y
shaping filter chosen is controlled
by YSFM[4:0].
76 543 210
0 0 0 1 0 SVHS 1
1 1 1 1 1 Reserved. Do not use.
Comments Notes
Reserved 0 0 Set to default 0 Manual select filter using
0x19 Comb
Filter
Control
0x1D ADI
Control 2
WYSFMOVR. Enables the use of
automatic WYSFN filter.
1 Autoselection of best filter
PSFSEL[1:0]. Controls the signal
bandwidth that is fed to the comb
filters (PAL).
NSFSEL[1:0]. Controls the signal
bandwidth that is fed to the comb
filters (NTSC).
Reserved
Reserved 0 0 x x x Set to default
TRI_LLC
0 0 Narrow
0 1 Medium
1 0 Wide
1 1 Widest
0 0 Narrow
0 1 Medium
1 0 Medium
1 1 Wide
1 1 1 1 Set as default
0 Enabled VS_JIT_COMP_EN
1 Disabled
0 Use 27 MHz crystal EN28XTAL
1 Use 28 MHz crystal
0 LLC pin active
1
WYSFM[4:0]
LLC pin three-stated
Rev. 0 | Page 76 of 96
ADV7181B
Bits
Subaddress Register Bit Description
0x27 Pixel Delay
Control
LTA[1:0]. Luma timing adjust allows
the user to specify a timing difference
between chroma and luma samples.
Reserved 0 Set to Zero
CTA[2:0]. Chroma timing adjust
allows a specified timing difference
between the luma and chroma
samples
AUTO_PDC_EN. Automatically
programs the LTA/CTA values so
that luma and chroma are aligned at
the output for all modes of
operation.
76 543 210
0 0 No Delay
1 0 Luma 1 clk (37 nS) delayed
1 0 Luma 2 clk (74 nS) early
1 1 Luma 1 clk (37 nS) early
0 0 0 Not valid setting
0 0 1 Chroma +2 pixels (early)
0 1 0 Chroma +1 pixel (early)
0 1 1 No delay
1 0 0 Chroma -1 pixel (late)
1 0 1 Chroma -2 pixels (late)
1 1 0 Chroma -3 pixels (late)
1 1 1 Not valid setting
0 Use values in LTA[1:0] and
1 LTA and CTA values
Comments Notes
CVBS mode
LTA[1:0] = 00b;
S-Video mode
LTA[1:0]= 01b,
YPrPb mode
LTA[1:0] = 01b
CVBS mode
CTA[2:0] = 011b
S-Video mode
CTA[2:0] = 101b
YPrPb mode
CTA[2:0] = 110b
CTA[2:0] for delaying
luma/chroma
determined automatically
SWPC. Allows the Cr and Cb samples
to be swapped.
0x2B 0 Update once per video
Reserved 1 0 0 0 0 Set to default 0 Color kill disabled
0x2C AGC Mode
Misc Gain
Control
Control
PW_UPD. Peak white update
determines the rate of gain.
CKE. Color kill enable allows the
color kill function to be switched on
and off.
Reserved 1 Set to default
CAGC[1:0]. Chroma automatic gain
control selects the basic mode of
operation for the AGC in the chroma
path.
Reserved 1 1 Set to 1
LAGC[2:0]. Luma automatic gain
control selects the mode of
operation for the gain control in the
luma path.
Reserved
0 No Swapping
1 Swap the Cr and Cb O/P
1 Color kill enabled
0 0 Manual fixed gain Use CMG[11:0]
0 1 Use luma gain for chroma
1 0 Automatic gain Based on color burst
1 1 Freeze chroma gain
0 0 0 Manual fixed gain Use LMG[11:0]
0 0 1 AGC no override through
0 1 0 AGC auto-override
0 1 1 AGC no override through
1 0 0 AGC auto-override through
1 0 1 AGC active video with
1 1 0 AGC active video with
1 1 1 Freeze gain
1 Set to 1
samples
line
1 Update once per field
peak white. Man IRE
control.
through peak white. Man
IRE control.
peak white. Auto IRE
control.
peak white. Auto IRE
control.
peak white
average video
See
Swap_CR_CB_WB,
Addr 0x89
Peak white must be
enabled. See
LAGC[2:0]
For SECAM color kill,
threshold is set at
8%
See CKILLTHR[2:0]
Blank level to sync
tip
Blank level to sync
tip
Blank level to sync
tip
Blank level to sync
tip
Rev. 0 | Page 77 of 96
ADV7181B
Bits
Subaddress Register Bit Description
0x2D Chroma
0x2E Chroma
0x2F Luma Gain
0x30 Luma Gain
0x31 Reserved 0 1 0 Set to default
0 Start of line relative to HSE HSE = Hsync end
0 EAV/SAV codes generated
0x32 VSync
0x33 VSync
Gain
Control 1
Gain
Control 2
Control 1
Control 2
VS and
FIELD
Control 1
Field
Control 2
Field
Control 3
CMG[11:8]. Chroma manual gain can
be used to program a desired
manual chroma gain. Reading back
from this register in AGC mode gives
the current gain.
Reserved 1 1 Set to 1
CAGT[1:0]. Chroma automatic gain
timing allows adjustment of the
chroma AGC tracking speed.
CMG[7:0]. Chroma manual gain
lower 8 bits. See CMG[11:8] for
description.
LMG[11:8]. Luma manual gain can
be used program a desired manual
chroma gain, or to read back the
actual gain value used.
Reserved 1 1 Set to 1
LAGT[1:0]. Luma automatic gain
timing allows adjustment of the
luma AGC tracking speed.
LMG[7:0]. Luma manual gain can be
used to program a desired manual
chroma gain or read back the actual
used gain value.
HVSTIM. Selects where within a line
of video the VS signal is asserted.
NEWAVMODE. Sets the EAV/SAV
mode.
Reserved
Reserved 0 0 0 0 0 1 Set to default
VSBHE 0 VS goes high in the middle
1 VS changes state at the
VSBHO 0 VS goes high in the middle
1 VS changes state at the
Reserved 0 0 0 1 0 0 Set to default
VSEHE 0 VS goes low in the middle
1 VS changes state at the
VSEHO
76 543 210
00 Slow (TC = 2 s)
01 Medium (TC = 1 s)
1 0 Fast (TC = 0.2 s)
1 1 Adaptive
0 0 0 0 0 0 0 0 CMG[11:0] = 750d; gain is
00 Slow (TC = 2 s)
01 Medium (TC = 1 s)
1 0 Fast (TC = 0.2 s)
1 1 Adaptive
x x x x x x x x LMG[11:0] = 1234d; gain is
1 Start of line relative to HSB HSB = Hsync begin
0 0 0 Set to default
0 VS goes low in the middle
1 VS changes state at the
0 1 0 0 CAGC[1:0] settings
x x x x LAGC[1:0] settings decide
1 Manual VS/Field position
Comments Notes
decide in which
mode CMG[11:0]
operates
Has an effect only if
CAGC[1:0] is set to
auto gain (10)
Min value is 0dec
1 in NTSC
CMG[11:0] = 741d; gain is
1 in PAL
in which mode LMG[11:0]
operates
1 in NTSC LMG[11:0] =
1266d; gain is 1 in PAL
to suit ADI encoders
controlled by registers
0x32, 0x33, and 0xE5–0xEA
of the line (even field)
start of the line (even field)
of the line (odd field)
start of the line (odd field)
of the line (even field)
start of the line (even
field)
of the line (odd field)
start of the line odd field
(G = –60 dB)
Max value is 3750
(Gain = 5)
Only has an effect if
LAGC[1:0] is set to
auto gain (001, 010,
011,or 100)
Min value
NTSC 1024 (G = 0.85)
PAL (G = 0.81)
Max value
NTSC 2468 (G = 2),
PAL = 2532 (G = 2)
NEWAVMODE bit
must be set high.
NEWAVMODE bit
must be set high.
Rev. 0 | Page 78 of 96
ADV7181B
Bits
Subaddress Register Bit Description
0x34 HS
Position
Control 1
0x35 HS
Position
Control 2
0x36 HS
Position
Control 3
0x37 Polarity
HSE[10:8]. HS end allows the
positioning of the HS output within
the video line.
Reserved 0 Set to 0
HSB[10:8]. HS begin allows the
positioning of the HS output within
the video line.
Reserved
HSB[7:0] See above, using HSB[10:0]
and HSE[10:0], the user can program
the position and length of HS output
signal.
HSE[7:0] See above.
Reserved 0 0 Set to 0
Reserved 0 Set to 0
Reserved 0 Set to 0
PHS. Sets HS Polarity.
76 543 210
0 0 0 HS output starts HSB[10:0]
0 Set to 0
0 0 0 0 0 0 1 0
0 0 0 0 0 0 0 0
0 Invert polarity PCLK. Sets the polarity of LLC1.
0 Active high PF. Sets the FIELD polarity.
1 Active low
0 Active high PVS. Sets the VS Polarity.
1 Active low
0 Active high
1 Active low
0 0 0 HS output ends HSE[10:0]
Comments Notes
pixels after the falling edge
of HSync
pixels after the falling edge
of HSync
1 Normal polarity as per the
timing diagrams
Using HSB and HSE
the user can
program the
position and length
of the output HSync
1 0 0 Use low-pass notch 1 1 0 Fixed luma comb
1 1 0 Fixed luma comb (5-line) All lines of memory
0 0 0 3-line adaptive for
1 0 0 Disable chroma comb
0 0 Adapts 5-lines – 2 lines
01 Not used 1 0 Adapts 5 lines – 3 lines
0x3A
0x3D Manual
PAL Comb
Control
Window
Control
YCMP[2:0]. Luma Comb mode, PAL.
CCMP[2:0]. Chroma Comb mode,
PAL.
CTAPSP[1:0]. Chroma comb taps, PAL.
Reserved 0 Set as default
down of ADC2.
down of ADC1.
down of ADC0.
Reserved
Reserved 0 0 1 1 Set to default
CKILLTHR[2:0].
Reserved
76 543 210
1 1 1 Fixed luma comb (3-line) Bottom lines of
1 0 1
1 1 0
1 1 1
1 1 Adapts 5 lines – 4 lines
0 ADC2 normal operation PWRDN_ADC_2. Enables power 1 Power down ADC2
0 ADC1 normal operation PWRDN_ADC_1. Enables power 1 Power down ADC1
0 ADC0 normal operation PWRDN_ADC_0. Enables power 1 Power down ADC0
0 0 0 1 Set as default
0 0 0 Kill at 0.5%
0 0 1 Kill at 1.5%
0 1 0 Kill at 2.5%
0 1 1 Kill at 4%
1 0 0 Kill at 8.5%
1 0 1 Kill at 16%
1 1 0 Kill at 32%
1 1 1 Reserved
0 Set to default
Comments Notes
luma comb
CTAPSN = 01
4-line adaptive for
CTAPSN = 10
5-line adaptive for
CTAPSN = 11
Fixed 2-line for CTAPSN = 01 Top lines of memory
Fixed 3-line for CTAPSN = 10
Fixed 4-line for CTAPSN = 11
Fixed 3-line for CTAPSN = 01
Fixed 4-line for CTAPSN = 10
Fixed 5-line for CTAPSN = 11
Fixed 2-line for CTAPSN = 01
Fixed 3-line for CTAPSN = 10
Fixed 4-line for CTAPSN = 11
(2 taps)
(3 taps)
(4 taps)
Top lines of memory
memory
All lines of memory
Bottom lines of
memory
CKE = 1 enables the
color kill function
and must be
enabled for
CKILLTHR[2:0] to
take effect.
Rev. 0 | Page 81 of 96
ADV7181B
Subaddress Register Bit Description
0x41 Resample
Control
0x48 Gemstar
Control 1
0x49 Gemstar
Control 2
0x4A Gemstar
Control 3
0x4B Gemstar
Control 4
0x4C Gemstar
Control 5
Reserved 0 1 0 0 0 0 Set to default
SFL_INV. Controls the behavior of
the PAL switch bit.
Reserved
GDECEL[15:8]. See the Comments
column.
GDECEL[7:0]. See above. 0 0 0 0 0 0 0 0
GDECOL[15:8]. See the Comments
column.
GDECOL[7:0]. See above. 0 0 0 0 0 0 0 0
which decoded Gemstar data is
inserted into the horizontal blanking
period.
Bits
76 543 210
0 SFL compatible with
1 SFL compatible with
0 Set to default
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 Split data into half byte To avoid 00/FF code. GDECAD. Controls the manner in
1 Output in straight 8-bit
Comments Notes
ADV7190/ADV7191/
ADV7194 encoders
ADV717x/ADV7173x
encoders
GDECEL[15:0]. 16
individual enable bits that
select the lines of video
(even field Lines 10–25)
that the decoder checks
for Gemstar-compatible
data.
GDECOL[15:0]. 16
individual enable bits that
select the lines of video
(odd field Lines 10–25)
that the decoder checks
for Gemstar-compatible
data.
format
LSB = Line 10 MSB =
Line 25
Default = Do not
check for Gemstar-
compatible data on
any lines [10–25] in
even fields
LSB = Line 10 MSB =
Line 25
Default = Do not
check for Gemstar-
compatible data on
any lines [10–25] in
odd fields
Reserved
0x4D CTI DNR
0x4E CTI DNR
0x50 CTI DNR
Control 1
Control 2
Control 4
the transient improved chroma with
the original signal.
CTI_AB[1:0]. Controls the behavior
of the alpha-blend circuitry.
Reserved 0 Set to default
block.
Reserved
CTI_CTH[7:0]. Specifies how big the
amplitude step must be to be
steepened by the CTI block.
DNR_TH[7:0]. Specifies the
maximum edge that is interpreted
as noise and is therefore blanked.
x x x x x x x Undefined
0 Disable CTI CTI_EN. CTI enable
0 Disable CTI alpha blender CTI_AB_EN. Enables the mixing of
0 0 Sharpest mixing
0 1 Sharp mixing
1 0 Smooth
0 Bypass the DNR block DNR_EN. Enable or bypass the DNR
1 1 Set to default
0 0 0 0 1 0 0 0
1 1 Smoothest
1 Enable the DNR block
1 Enable CTI
1 Enable CTI alpha blender
Set to 0x04 for A/V input;
set to 0x0A for tuner input
0 0 00 1 000
Rev. 0 | Page 82 of 96
ADV7181B
Bits
Subaddress Register Bit Description
0x51 Lock Count
0x8F Free Run
Line
Length 1
0x90 VBI Info
(Read
Only)
0x91 WSS1
(Read Only)
0x92 WSS2
(Read Only)
0x93 EDTV1
(Read Only)
0x94 EDTV2
(Read Only)
0x95 EDTV3
(Read Only)
0x96 CGMS1
(Read Only)
0x97 CGMS2
(Read Only)
0x98 CGMS3
(Read Only)
CIL[2:0]. Count-into-lock determines
the number of lines the system must
remain in lock before showing a
locked status.
COL[2:0]. Count-out-of-lock
determines the number of lines the
system must remain out-of-lock
before showing a lost-locked status.
SRLS. Select raw lock signal. Selects
the determination of the lock.
Status.
FSCLE. Fsc lock enable.
Reserved 0 0 0 0 Set to default
selection of clock for LLC1 pin.
Reserved
EDTVD. EDTV sequence
CGMSD. CGMS sequence
Reserved x x x x
WSS1[7:0]
Wide screen signaling data.
WSS2[7:0]
Wide screen signaling data.
EDTV1[7:0]
EDTV data register.
EDTV2[7:0]
EDTV data register.
EDTV3[7:0]
EDTV data register.
CGMS1[7:0]
CGMS data register.
CGMS2[7:0]
CGMS data register.
CGMS3[7:0]
CGMS data register.
76 543 210
0 0 0 1 line of video
0 0 1 2 lines of video
0 1 0 5 lines of video
0 1 1 10 lines of video
1 0 0 100 lines of video
1 0 1 500 lines of video
1 1 0 1000 lines of video
1 1 1 100000 lines of video
0 0 0 1 line of video
0 0 1 2 lines of video
0 1 0 5 lines of video
0 1 1 10 lines of video
1 0 0 100 lines of video
1 0 1 500 lines of video
1 1 0 1000 lines of video
1 1 1 100000 lines of video
0 Over field with vertical
1 Line-to-line evaluation
0 Lock status set only by
1 Lock status set by
0 0 0 LLC1 (nominal 27 MHz)
1 0 1 LLC2 (nominally 13.5 MHz)
0 Set to default 0 No WSS detected WSSD. Screen signaling detected.
1 WSS detected
0 No CCAP signals detected CCAPD. Closed caption data.
1 CCAP sequence detected
0 No EDTV sequence
1 EDTV sequence detected
0 No CGMS transition
1 CGMS sequence decoded
x x x x x x x x
x x x x x x x x WSS2[7:6] are
x x x x x x x x
x x x x x x x x
x x x x x x x x EDTV3[7:6] are
x x x x x x x x
x x x x x x x x
x x x x x x x x CGMS3[7:4] are
Comments Notes
info
horizontal lock
horizontal lock and
subcarrier lock.
selected out on LLC1 pin
selected out on LLC1 pin
detected
detected
LLC_PAD_SEL [2:0]. Enables manual
For 16-bit 4:2:2 out,
OF_SEL[3:0] = 0010
Read-only status
bits
undetermined
undetermined
undetermined
EDTV3[5] is reserved
for future use
Rev. 0 | Page 83 of 96
ADV7181B
Subaddress Register Bit Description
0x99 CCAP1
0x9A CCAP2
0x9B
0x9C
0x9D
0xB2 CRC
0xC3 ADC
(Read Only)
(Read Only)
Letterbox 1
(Read Only)
Letterbox 2
(Read Only)
Letterbox 3.
(Read Only)
Enable
Write
Register
SWITCH 1
CCAP1[7:0]
Closed caption data register.
CCAP2[7:0]
Closed caption data register.
LB_LCT[7:0]
Letterbox data register.
LB_LCM[7:0]
Letterbox data register.
LB_LCB[7:0]
Letterbox data register.
Reserved 0 0 Set as default
CRC_ENABLE. Enable CRC checksum
decoded from CGMS packet to
validate CGMSD.
Reserved
ADC0_SW[3:0]. Manual muxing
control for ADC0.
ADC1_SW[3:0]. Manual muxing
control for ADC1.
Bits
76 543 210
x x x x x x x x CCAP1[7] contains parity
x x x x x x x x CCAP2[7] contains parity
x x x x x x x x Reports the number of
x x x x x x x x
x x x x x x x x
Comments Notes
bit for byte 0
bit for byte 0
black lines detected at the
top of active video.
Reports the number of
black lines detected in the
bottom half of active video
if subtitles are detected.
Reports the number of
black lines detected at the
bottom of active video.
This feature
examines the active
video at the start
and at the end of
each field. It enables
format detection
even if the video is
not accompanied by
a CGMS or WSS
sequence.
0 Turn off CRC check
0 0 0 1 1 Set as default
0 0 0 0 No connection
0 0 0 1 AIN2
0 0 1 0 No connection
0 0 1 1 No connection
0 1 0 0 AIN4
0 1 0 1 AIN6
0 1 1 0 No connection
0 1 1 1 No connection
1 0 0 0 No connection
1 0 0 1 AIN1
1 0 1 0 No connection
1 0 1 1 No connection
1 1 0 0 AIN3
1 1 0 1 AIN5
1 1 1 0 No connection
1 1 1 1 No connection
0 0 0 0 No connection
0 0 0 1 No connection
0 0 1 0 No connection
0 0 1 1 No connection
0 1 0 0 AIN4
0 1 0 1 AIN6
0 1 1 0 No connection
0 1 1 1 No connection
1 0 0 0 No connection
1 0 0 1 No connection
1 0 1 0 No connection
1 0 1 1 No connection
1 1 0 0 AIN3
1 1 0 1 AIN5
1 1 1 0 No connection
1 1 1 1 No connection
1 CGMSD goes high with
valid checksum
SETADC_sw_
man_en = 1
SETADC_sw_
man_en = 1
Rev. 0 | Page 84 of 96
ADV7181B
Bits
Subaddress Register Bit Description
0xC4 ADC
SWITCH 2
0xDC Letterbox
Control 1
0xDD Letterbox
Control 2
0xDE Reserved 0 0 0 0 0 0 0 0
0xDF Reserved 0 0 0 0 0 0 0 0
0xE0 Reserved 0 0 0 1 0 1 0 0
0xE1 SD Offset
Cb
0xE2 SD Offset
Cr
0xE3 SD
Saturation
Cb
0xE4 SD
Saturation
Cr
0xE5 NTSC V Bit
Begin
ADC2_SW[3:0]. Manual muxing
control for ADC2.
Reserved x x x
ADC_SW_MAN_EN. Enable manual
setting of the input signal muxing.
LB_TH [4:0]. Sets the threshold value
that determines if a line is black.
Reserved
LB_EL[3:0]. Programs the end line of
the activity window for LB detection
(end of field).
LB_SL[3:0]. Program the start line of
the activity window for LB detection
(start of field).
SD_OFF_CB [7:0]. Adjusts the hue by
selecting the offset for the Cb
channel.
SD_OFF_CR [7:0]. Adjusts the hue by
selecting the offset for the Cr
channel.
SD_SAT_CB [7:0]. Adjusts the
saturation of the picture by
affecting gain on the Cb channel.
SD_SAT_CR [7:0]. Adjusts the
saturation of the picture by
affecting gain on the Cr channel.
NVBEG[4:0]. How many lines after
l
rollover to set V high.
COUNT
NVBEGSIGN
by one line relative to NVBEG (even
field).
NVBEGDELO. Delay V bit going high
by one line relative to NVBEG (odd
field).
76 543 210
0 0 0 0 No connection
0 0 0 1 No connection
0 0 1 0 No connection
0 0 1 1 No connection
0 1 0 0 No connection
0 1 0 1 AIN6
0 1 1 0 No connection
0 1 1 1 No connection
1 0 0 0 No connection
1 0 0 1 No connection
1 0 1 0 No connection
1 0 1 1 No connection
1 1 0 0 No connection
1 1 0 1 AIN5
1 1 1 0 No connection
1 1 1 1 No connection
0 Disable
1 Enable
0 1 1 0 0 Default threshold for the
1 0 1 Set as default
0 1 0 0 Letterbox detection
1 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 Chroma gain = 0 dB
1 0 0 0 0 0 0 0 Chroma gain = 0 dB
0 Set to low when manual
0 No delay NVBEGDELE. Delay V bit going high
1 Additional delay by 1 line
0 No delay
1 Additional delay by 1 line
1 1 0 0 LB detection ends with
0 0 1 0 1 NTSC default (BT.656)
1 Not suitable for user
Comments Notes
SETADC_sw_
man_en = 1
detection of black lines.
the last line of active video
on a field.
1100b: 262/525.
aligned with the start of
active video,
0100b: 23/286 NTSC.
programming
programming
Rev. 0 | Page 85 of 96
ADV7181B
Subaddress Register Bit Description
0xE6 NTSC V Bit
End
0xE7 NTSC F Bit
Toggle
0xE8 PAL V Bit
Begin
0xE9 PAL V Bit
End
0xEA PAL F Bit
Toggle
NVEND[4:0]. How many lines after
l
rollover to set V low.
COUNT
NVENDSIGN
by one line relative to NVEND (even
field).
NVENDDELO. Delay V bit going low
by one line relative to NVEND (odd
field).
NFTOG[4:0]. How many lines after
l
rollover to toggle F signal.
COUNT
NFTOGSIGN
one line relative to NFTOG (even
field).
NFTOGDELO. Delay F transition by
one line relative to NFTOG (odd
field).
PVBEG[4:0]. How many lines after
l
rollover to set V high.
COUNT
PVBEGSIGN
by one line relative to PVBEG (even
field).
PVBEGDELO. Delay V bit going high
by one line relative to PVBEG (odd
field).
PVEND[4:0]. How many lines after
l
rollover to set V low.
COUNT
PVENDSIGN
by one line relative to PVEND (even
field).
PVENDDELO. Delay V bit going low
by one line relative to PVEND (odd
field).
PFTOG[4:0]. How many lines after
l
rollover to toggle F signal.
COUNT
PFTOGSIGN
one line relative to PFTOG (even
field).
PFTOGDELO. Delay F transition by
one line relative to PFTOG (odd
field).
Bits
76 543 210
0 0 1 0 0 NTSC default (BT.656)
Comments Notes
0 Set to low when manual
programming
1 Not suitable for user
programming
0 No delay NVENDDELE. Delay V bit going low
1 Additional delay by 1 line
0 No delay
1 Additional delay by 1 line
0 0 0 1 1 NTSC default
0 Set to low when manual
programming
1 Not suitable for user
programming
0 No delay NFTOGDELE. Delay F transition by
1 Additional delay by 1 line
0 No delay
1 Additional delay by 1 line
0 0 1 0 1 PAL default (BT.656)
0 Set to low when manual
programming
1 Not suitable for user
programming
0 No delay PVBEGDELE. Delay V bit going high
1 Additional delay by 1 line
0 No delay
1 Additional delay by 1 line
1 0 1 0 0 PAL default (BT.656)
0 Set to low when manual
programming
1 Not suitable for user
programming
0 No delay PVENDDELE. Delay V bit going low
1 Additional delay by 1 line
0 No delay
1 Additional delay by 1 line
0 0 0 1 1 PAL default (BT.656)
0 Set to low when manual
programming
1 Not suitable for user
programming
0 No delay PFTOGDELE. Delay F transition by
1 Additional delay by 1 line
0 No delay
1 Additional delay by 1 line
Rev. 0 | Page 86 of 96
ADV7181B
Bits
Subaddress Register Bit Description
0xF4 Drive
Strength
0xF8 IF Comp
Control
0xF9 VS Mode
Control
DR_STR_S[1:0] Select the drive
strength for the Sync output signals.
DR_STR_C[1:0] Select the drive
strength for the Clock output signal.
DR_STR[1:0] Select the drive
strength for the data output signals.
Can be increased or decreased for
EMC or crosstalk reasons.
Reserved x x No delay
IFFILTSEL[2:0] IF filter selection for
All standards are supported through autodetect, 8-bit, 4:2:2, ITU-R BT.656 output on P15–P8.
Table 85. Mode 1 CVBS Input
Register Address Register Value Notes
0x15 0x00 Slow down digital clamps.
0x17 0x41 Set CSFM to SH1.
0x3A 0x16 Power down ADC 1 and ADC 2.
0x50 0x04 Set DNR threshold.
0xC3 0x05 Man mux AIN6 to ADC0 (0101).
0xC4 0x80 Enable manual muxing.
0x0E 0x80
ADI recommended programming sequence. This sequence must be followed exactly when
setting up the decoder.
MODE 2 S-VIDEO INPUT (Y ON AIN1 AND C ON AIN4)
All standards are supported through autodetect, 8-bit, ITU-R BT.656 output on P15–P8.
Table 86. Mode 2 S-Video Input
Register Address Register Value Notes
0x00 0x06 S-Video input
0x15 0x00 Slow down digital clamps.
0x3A 0x12 Power down ADC 2.
0x50 0x04 Set DNR threshold.
0xC3 0x41 Man mux AIN2 to ADC0 (0001), AIN4 to ADC1 (0100).
0xC4 0x80 Enable manual muxing
0x0E 0x80
ADI recommended programming sequence. This sequence must be followed exactly when
setting up the decoder.
MODE 4 CVBS TUNER INPUT CVBS PAL ON AIN6
8-bit, ITU-R BT.656 output on P15–P8.
Table 88. Mode 4 Tuner Input CVBS PAL Only
Register Address Register Value Notes
0x00 0x80 Force PAL input only mode.
0x07 0x01 Enable PAL autodetection only.
0x15 0x00 Slow down digital clamps.
0x17 0x41 Set CSFM to SH1.
0x19 0xFA Stronger dot crawl reduction.
0x3A 0x16 Power down ADC 1 and ADC 2.
0x50 0x0A Set higher DNR threshold.
0xC3 0x05 Man mux AIN6 to ADC0 (0101).
0xC4 0x80 Enable manual muxing
0x0E 0x80
ADI recommended programming sequence. This sequence must be followed exactly when
setting up the decoder.
Rev. 0 | Page 89 of 96
ADV7181B
PCB LAYOUT RECOMMENDATIONS
The ADV7181B is a high precision, high speed mixed-signal
device. To achieve the maximum performance from the part, it
is important to have a well laid-out PCB board. The following is
a guide for designing a board using the ADV7181B.
ANALOG INTERFACE INPUTS
Care should be taken when routing the inputs on the PCB.
Track lengths should be kept to a minimum, and 75 Ω trace
impedances should be used when possible. Trace impedances
other than 75 Ω also increase the chance of reflections.
POWER SUPPLY DECOUPLING
It is recommended to decouple each power supply pin with
0.1 µF and 10 nF capacitors. The fundamental idea is to have a
decoupling capacitor within about 0.5 cm of each power pin.
Also, avoid placing the capacitor on the opposite side of the PC
board from the ADV7181B, as doing so interposes resistive vias
in the path. The decoupling capacitors should be located
between the power plane and the power pin. Current should
flow from the power plane to the capacitor to the power pin. Do
not make the power connection between the capacitor and the
power pin. Placing a via underneath the 100 nF capacitor pads,
down to the power plane, is generally the best approach (see
Figure 40).
VDD
10nF
GND
Figure 40. Recommended Power Supply Decoupling
It is particularly important to maintain low noise and good
stability of PVDD. Careful attention must be paid to regulation,
filtering, and decoupling. It is highly desirable to provide
separate regulated supplies for each of the analog circuitry
groups (AVDD, DVDD, DVDDIO, and PVDD).
Some graphic controllers use substantially different levels of
power when active (during active picture time) and when idle
(during horizontal and vertical sync periods). This can result in
a measurable change in the voltage supplied to the analog
supply regulator, which can, in turn, produce changes in the
regulated analog supply voltage. This can be mitigated by
regulating the analog supply, or at least PVDD, from a different,
cleaner power source, for example, from a 12 V supply.
100nF
VIA TO SUPPLY
VIA TO GND
04984-0-038
It is also recommended to use a single ground plane for the
entire board. This ground plane should have a space between
the analog and digital sections of the PCB (see Figure 41).
ADV7181B
ANALOG
SECTION
Figure 41. PCB Ground Layout
DIGITAL
SECTION
04984-0-039
Experience has repeatedly shown that the noise performance is
the same or better with a single ground plane. Using multiple
ground planes can be detrimental because each separate ground
plane is smaller, and long ground loops can result.
In some cases, using separate ground planes is unavoidable. For
those cases, it is recommended to place a single ground plane
under the ADV7181B. The location of the split should be under
the ADV7181B. For this case, it is even more important to place
components wisely because the current loops are much longer
(current takes the path of least resistance). An example of a
current loop: power plane to ADV7181B to digital output trace
to digital data receiver to digital ground plane to analog ground
plane.
PLL
Place the PLL loop filter components as close as possible to the
ELPF pin. Do not place any digital or other high frequency
traces near these components. Use the values suggested in the
data sheet with tolerances of 10% or less.
DIGITAL OUTPU TS ( B OTH DATA AND CLOCKS)
Try to minimize the trace length that the digital outputs have to
drive. Longer traces have higher capacitance, which requires
more current, which causes more internal digital noise. Shorter
traces reduce the possibility of reflections.
Adding a 30 Ω to 50 Ω series resistor can suppress reflections,
reduce EMI, and reduce the current spikes inside the ADV7181B.
If series resistors are used, place them as close as possible to the
ADV7181B pins. However, try not to add vias or extra length to
the output trace to make the resistors closer.
If possible, limit the capacitance that each of the digital outputs
drives to less than 15 pF. This can easily be accomplished by
keeping traces short and by connecting the outputs to only one
device. Loading the outputs with excessive capacitance increases
the current transients inside the ADV7181B, creating more
digital noise on its power supplies.
Rev. 0 | Page 90 of 96
ADV7181B
DIGITAL INPUTS
The digital inputs on the ADV7181B are designed to work with
3.3 V signals, and are not tolerant of 5 V signals. Extra components are needed if 5 V logic signals are required to be applied
to the decoder.
ANTIALIASING FILTERS
For inputs from some video sources that are not bandwidth
limited, signals outside the video band can alias back into the
video band during A/D conversion and appear as noise on the
output video. The ADV7181B oversamples the analog inputs by
a factor of 4. This 54 MHz sampling frequency reduces the
requirement for an input filter; for optimal performance it is
recommended that an antialiasing filter be employed. The
recommended low cost circuit for implementing this buffer and
filter circuit for all analog input signals is shown in Figure 43.
The buffer is a simple emitter-follower using a single npn
transistor. The antialiasing filter is implemented using passive
components. The passive filter is a third-order Butterworth
filter with a −3 dB point of 9 MHz. The frequency response of
the passive filter is shown in Figure 42. The flat pass band up to
6 MHz is essential. The attenuation of the signal at the output of
the filter due to the voltage divider of R24 and R63 is compensated for in the ADV7181B part using the automatic gain control.
The ac-coupling capacitor at the input to the buffer creates a
high-pass filter with the biasing resistors for the transistor. This
filter has a cut-off of:
{2 × π × (
R39||R89) × C93}
–1
= 0.62 Hz
It is essential that the cutoff of this filter be less than 1 Hz to
ensure correct operation of the internal clamps within the part.
These clamps ensure that the video stays within the 5 V range of
the op amp used.
Examples of how to connect the ADV7181B video decoder are shown in Figure 43 and Figure 44. For a detailed schematic diagram for
the ADV7181B, refer to the ADV7181B evaluation note.
AVDD_5V
R43
0Ω
C
B
E
470Ω
Q6
R24
FILTER
L10
12µH
C95
22pF
C102
10pF
R63
820Ω
C93
100µF
R38
75Ω
BUFFER
R39
4.7kΩ
R53
56Ω
R89
5.6kΩ
AGND
04984-0-041
Figure 43. ADI Recommended Antialiasing Circuit for All Input Channels
Rev. 0 | Page 92 of 96
ADV7181B
33µF
DGND
33µF
AGND
33µF
AGND
33µF
DGND
75Ω
75Ω
FERRITE BEAD
FERRITE BEAD
FERRITE BEAD
FERRITE BEAD
100nF
AIN2
100nF
AIN1
100nF
AIN3
100nF
AIN4
100nF
AIN5
100nF
AIN6
75Ω
10µF
DGND
10µF
AGND
10µF
AGND
10µF
DGND
AVDD
PVDD
DVDD
ADV7181B
DVDDIO
0.1µF
DGND
0.1µF
AGND
0.1µF
AGND
0.1µF
DGND
P0
P1
P2
P3
P4
P5
P6
P7
P8
P9
P10
P11
P12
P13
P14
P15
POWER SUPPLY
0.01µF
DECOUPLING FOR
EACH POWER PIN
DGND
POWER SUPPLY
0.01µF
DECOUPLING FOR
EACH POWER PIN
AGND
POWER SUPPLY
0.01µF
DECOUPLING FOR
EACH POWER PIN
AGND
POWER SUPPLY
0.01µF
DECOUPLING FOR
EACH POWER PIN
DGND
MULTIFORMAT
PIXEL
PORT
P15–P8 8-BIT ITU-R BT.656 PIXEL DATA @ 27MHz
P7–P0 Cb AND Cr 16-BIT ITU-R BT.656 PIXEL DATA @ 13.5MHz
P15–P8 Y1 AND Y2 16-BIT ITU-R BT.656 PIXEL DATA @ 13.5MHz
AGND DGND
S-VIDEO
Y
Pr
Pb
CBVS
DVDDIO
75Ω
(3.3V)
PVDD
(1.8V)
AVDD
(3.3V)
DVDD
(1.8V)
75Ω
75Ω
AGND
+
10µF0.1µF
DVDDIO
2
C
SELECT I
ADDRESS
DVSS
MPU INTERFACE
CONTROL LINES
AGND
0.1µF
0.1µF
DVDDIO
DVDDIO DVDDIO
AGND
+
+
+
AGND
DGND
2kΩ2kΩ
0.1µF10µF
0.1µF
15pF
4.7kΩ
100nF
0.1µF10µF
27MHz
DGND
DVDDIO
DGND
0.1nF
0.1nF10µF
15pF
33Ω
33Ω
CAPY1
CAPY2
CAPC2
CML
REFOUT
XTAL
XTAL1
PWRDN
ALSB
SCLK
SDA
RESETRESET
AGNDDGND
AGNDDGND
LLC
INTRQ
SFLSFL O/P
HSHS O/P
VSVS O/P
FIELDFIELD O/P
ELPF
Figure 44. Typical Connection Diagram
27MHz OUTPUT CLOCK
INTERRUPT O/P
1.7kΩ10nF
82nF
PVDD
04984-0-042
Rev. 0 | Page 93 of 96
ADV7181B
OUTLINE DIMENSIONS
BSC SQ
PIN 1
INDICATOR
9.00
0.60 MAX
49
48
0.60 MAX
0.30
0.25
0.18
PIN 1
64
INDICATOR
1
1.00
0.85
0.80
12° MAX
SEATING
PLANE
TOP
VIEW
8.75
BSC SQ
0.45
0.40
0.35
0.80 MAX
0.65 TYP
0.50 BSC
*
COMPLIANT TO JEDEC STANDARDS MO-220-VMMD
EXCEPT FOR EXPOSED PAD DIMENSION
0.20 REF
0.05 MAX
0.02 NOM
33
32
EXPOSED PAD
(BOTTOM VIEW)
Figure 45. 64-Lead Lead Frame Chip Scale Package [LFCSP]
Note that the exposed metal paddle on the bottom of the LFCSP package must be soldered to PCB ground for proper heat dissipation and
also for noise and mechanical strength benefits.
Rev. 0 | Page 94 of 96
ADV7181B
ORDERING GUIDE
Model Temperature Range Package Description Package Option
ADV7181BBCPZ1 –40°C to +85°C Lead Frame Chip Scale Package (LFCSP) CP-64-3
ADV7181BBSTZ1 –40°C to +85°C Low Profile Quad Flat Package (LQFP) ST-64-2
EVAL-ADV7181BEBM Evaluation Board
1
Z = Pb-free part.
The ADV7181B is a Pb-free environmentally friendly product. It is manufactured using the most up-to-date materials and processes. The
coating on the leads of each device is 100% pure Sn electroplate. The device is suitable for Pb-free applications, and can withstand surfacemount soldering at up to 255°C (±5°C).
In addition, it is backward-compatible with conventional SnPb soldering processes. This means the electroplated Sn coating can be
soldered with Sn/Pb solder pastes at conventional reflow temperatures of 220°C to 235°C.
Rev. 0 | Page 95 of 96
ADV7181B
NOTES
Purchase of licensed I2C components of Analog Devices or one of its sublicensed Associated Companies conveys a license for the purchaser under the Philips I2C Patent
Rights to use these components in an I2C system, provided that the system conforms to the I2C Standard Specification as defined by Philips.